protected function initialize(array $taskInfo, tx_scheduler_Task $task = NULL, tx_scheduler_Module $schedulerModule) { $this->taskInformation = $taskInfo; $this->task = $task; $this->schedulerModule = $schedulerModule; if ($schedulerModule->CMD == 'edit') { $this->site = $task->getSite(); } }