task = $task; return $this; } /** * Apply formatter * * @access public * @return mixed */ public function format() { if (! empty($this->task)) { $this->task['url'] = $this->helper->url->to('TaskViewController', 'show', array('task_id' => $this->task['id'], 'project_id' => $this->task['project_id']), '', true); $this->task['color'] = $this->colorModel->getColorProperties($this->task['color_id']); } return $this->task; } }