I can get into the API and retrieve the schedule information using getSchedule. The problem is that the array maxes out at 50 even though there are more than 50 records to return. Does anyone know how I can fix this or point me to where I can find this within the API to fix it myself?
My code:
$schedule_obj = new TimeTrexClientAPI( 'Schedule' );
$schedule_filter = array(
'filter_data' => array(
'start_date' => strtotime('20150426'),
'end_date' => strtotime('20150502')
)
);
$result = $schedule_obj->getSchedule($schedule_filter);
$schedule_data = $result->getResult();
Any help would be much appreciated.
getSchedule array maximum size
Re: getSchedule array maximum size
Pass the 2nd argument to getSchedule() as TRUE, that disables paging and returns all results.
Code: Select all
$result = $schedule_obj->getSchedule($schedule_filter, TRUE );