Class ZmSearch
Class Detail
ZmSearch(params)
Creates a new search with the given properties.
Method Detail
clearCursor()
Clears cursor-related fields from this search so that it will not create a cursor.
getConv(params)
Fetches a conversation from the server.
{String}
getTitle()
Gets a title that summarizes this search.
hasContentTerm()
Returns true if the query has a "content" term.
hasFolderTerm(path)
Returns true if the query has a folder-related term with the given value.
hasTagTerm(tagName)
Returns true if the query has a tag term with the given value.
hasUnreadTerm()
Returns true if the query has a term related to unread status.
isAnywhere()
Returns true if the query has the term "is:anywhere".
{Boolean}
isMultiAccount()
Checks if this search is multi-account.
isSimple()
Returns true if the query has just one term, and it's a folder or tag term.
matches(item)
Tests the given item against a matching function generated from the query.
{boolean}
replaceFolderTerm(oldPath, newPath)
Replaces the old folder path with the new folder path in the query string, if found.
{boolean}
replaceTagTerm(oldName, newName)
Replaces the old tag name with the new tag name in the query string, if found.
|
||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:39 GMT-0400 (EDT)
|