/**
* Loads a list of thumanils for the specicifies parameters, returns an array of Schedule\Task elements
*
* @return array
*/
public function load()
{
$tasks = array();
$tasksData = $this->db->fetchCol("SELECT id FROM schedule_tasks" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
foreach ($tasksData as $taskData) {
$tasks[] = Model\Schedule\Task::getById($taskData);
}
$this->model->setTasks($tasks);
return $tasks;
}