objToRel ( [ 'command' => 0, 'priority' => 1, 'result' => 2, 'runTime' => 3 ] ) ); $crud = new CRUD ( $dao->tableName ); $crud->setColDisplay ( $cols[0], CRUD::DISPLAY ); $crud->setColDisplay ( $cols[1], [ CRUD::SELECT, [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] ] ); $crud->setColDisplay ( $cols[2], CRUD::DISPLAY ); $crud->setColDisplay ( $cols[3], CRUD::TIMESTAMP ); return $crud->index (); } public static function cleanup( $numDays=5 ) { $keepSeconds = time() - ( $numDays * 24 * 60 * 60 ); $deletedRecords = DB::exec( DB::DEF, 'DELETE from tblCronQueue WHERE fldRunTime