Method: getObjects()

Return the result set form the last getList() call as a collection of File Objects.

If more than one FileType is expected in the result set, this method eturns an array of arrays of file objects

Default behavour:
[

  • $fileobject ,
  • $fileobject ,
  • $fileobject ,
  • ... etc ...

]

Multi Object Type behaviour:

[

  • {
    • 'filetype1' => $fileobject ,
    • 'filetype2' => $fileobject ,
    • 'filetype3' => $fileobject
  • } ,
  • {
    • 'filetype1' => $fileobject ,
    • 'filetype2' => $fileobject ,
    • 'filetype3' => $fileobject
  • } ,
  • {
    • 'filetype1' => $fileobject ,
    • 'filetype2' => $fileobject ,
    • 'filetype3' => $fileobject
  • } ,
  • ... etc ...

]

Returns:

ARRAY of File OBJECTs

Example:

$results = $obj_list->getObjects()

Example 2:

$obj_list->addFileType('document');
$obj_list->addFileType('user');
$results = $obj_list->getObjects()

Contact Us

Address: 22a Fishergate York, YO10 4AB · Tel: 01904 636677 · Email: info@dotadmin.com