Example #1
0
 public static function getAll($client, $search = "")
 {
     $output = array();
     $output['projects'] = array();
     $offset = 0;
     do {
         $rows = Project::getPagedList($client, $offset, $search, null);
         $output['projects'] = array_merge($output['projects'], $rows['projects']);
     } while (($offset = $rows['offset'] + $rows['limit']) < $rows['total_count']);
     return $output;
 }