QCAD
Open Source 2D CAD
ItemPeer.js File Reference

Functions

void ItemPeer ()
 Copyright (c) 2011-2015 by Andrew Mustun. More...
 

Function Documentation

void ItemPeer ( )

Copyright (c) 2011-2015 by Andrew Mustun.

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
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.
Object with item IDs of all decendants (children, grand children, ...) of type file of the given parent item as properties. All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.