Esempio n. 1
0
 public static function createAllObjectList($start = 0, $length = 50, $orderBy = NULL, $objects = NULL)
 {
     $engine = EngineAPI::singleton();
     $objects = isnull($objects) ? objects::getObjects(0, NULL, FALSE) : $objects;
     //array_slice($objects, $start, $length);
     $data = array();
     foreach ($objects as $object) {
         $form = forms::get($object['formID']);
         $data[] = array($object['ID'], $object['idno'], isset($object['data'][$form['objectTitleField']]) ? $object['data'][$form['objectTitleField']] : '', self::genLinkURLs("view", $object['ID']), self::genLinkURLs("edit", $object['ID']));
     }
     return self::createTable($data);
 }