|
DOCUMENTS 5 - PortalScripting API
|
The FileResultset class supports basic functions to loop through a list of DocFile objects. More...
Public Member Functions | |
| FileResultset | FileResultset (String fileType, String filter="", String sortOrder="") |
| Create a new FileResultset object. More... | |
| DocFile | first () |
| Retrieve the first DocFile object in the FileResultset. More... | |
| string [] | getIds () |
| Returns an array with all file ids in the FileResultset. More... | |
| DocFile | last () |
| Retrieve the last DocFile object in the FileResultset. More... | |
| DocFile | next () |
| Retrieve the next DocFile object in the FileResultset. More... | |
| int | size () |
| Get the amount of DocFile objects in the FileResultset. More... | |
The FileResultset class supports basic functions to loop through a list of DocFile objects.
You can manually create a FileResultset as well as access the (selected) files of a (public) Folder.
| FileResultset FileResultset::FileResultset | ( | String | fileType, |
| String | filter = "", |
||
| String | sortOrder = "" |
||
| ) |
Create a new FileResultset object.
Like in other programming languages you create a new object with the new operator (refer to example below).
| fileType | String containing the technical name of the desired filetype |
| filter | String containing an optional filter criterium; use empty String ('') if you don't want to filter at all |
| sortOrder | String containing an optional sort order; use empty String ('') if you don't want to sort at all |
DocFile objects in the system | DocFile FileResultset::first | ( | ) |
Retrieve the first DocFile object in the FileResultset.
null in case of an empty FileResultset | string [] FileResultset::getIds | ( | ) |
Returns an array with all file ids in the FileResultset.
| DocFile FileResultset::last | ( | ) |
Retrieve the last DocFile object in the FileResultset.
null if end of FileResultset is reached. | DocFile FileResultset::next | ( | ) |
Retrieve the next DocFile object in the FileResultset.
null if end of FileResultset is reached. | int FileResultset::size | ( | ) |
Get the amount of DocFile objects in the FileResultset.