QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ItemPeer.js File Reference

Functions

void ItemPeer ()

Function Documentation

void ItemPeer ( )
Returns:
Available sources in DB as array of Item objects.
Parameters:
fieldsFields to query from DB or undefined to query all fields.
Returns:
The tag values of the tags in the given category of the item with the given ID and all ancestors if available, undefined otherwise.
Parameters:
idItem ID.
categoryNameTag category name. E.g. "title"
localeNameLocale name e.g. "en".
Returns:
Item with the given absolute path or relative path or name and parent ID.
Parameters:
pathAbsolute path of the item or relative path if parentId is given.
parentIdID of parent item or undefined if the given path is absolute.
fieldsFields to query from DB or undefined to query all fields.
Returns:
Item with the given ID.
Parameters:
fieldsFields to query from DB or undefined to query all fields.
Returns:
All items with the given IDs, sorted by directory / file, name.
Parameters:
idsArray of item IDs.
fieldsFields to query from DB or undefined to query all fields.
Returns:
ID of parent item.
IDs of all ancestor items.
Array of item IDs that match the given tag IDs and search text.
Parameters:
tagIdsArray of tag IDs.
textSearch text.
onlyFilesTrue: return only IDs of file items (directory matches return all file items in them recursively). Default. False: return matching directory item IDs without searching for descendants.
Returns:
Array of file items which match the given tags and search text.
Parameters:
tagIdsArray of tag IDs.
textSearch string.
fieldsFields to query from DB or undefined to query all fields.
Returns:
Array of item IDs which match the given tag IDs.
Array of item IDs which match the given tag IDs. File and dir items are returned. Directory items that match are also returned as well as all child items (recursively).
Object with item IDs of all decendants (children, grand children, ...) of type file of the given parent item as properties.