public static function statusFromSchedulerWorkerArray($arr) { $newArr = new KalturaSchedulerWorkerArray(); foreach ($arr as $obj) { $nObj = new KalturaSchedulerWorker(); $nObj->statusFromObject($obj); $newArr[] = $nObj; } return $newArr; }