Copyright (c) 2011-2018 by Andrew Mustun.
- Returns
- Available sources in DB as array of Item objects.
- Parameters
-
fields | Fields 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
-
id | Item ID. |
categoryName | Tag category name. E.g. "title" |
localeName | Locale name e.g. "en". |
- Returns
- Item with the given absolute path or relative path or name and parent ID.
- Parameters
-
path | Absolute path of the item or relative path if parentId is given. |
parentId | ID of parent item or undefined if the given path is absolute. |
fields | Fields to query from DB or undefined to query all fields. |
- Returns
- Item with the given ID.
- Parameters
-
fields | Fields to query from DB or undefined to query all fields. |
- Returns
- All items with the given IDs, sorted by directory / file, name.
- Parameters
-
ids | Array of item IDs. |
fields | Fields 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
-
tagIds | Array of tag IDs. |
text | Search text. |
onlyFiles | True: 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
-
tagIds | Array of tag IDs. |
text | Search string. |
fields | Fields 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 descendants (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.