public function setTask(Nag_Task $task) { $this->_task = $task; if (!$this->_task->childrenCompleted()) { $this->_completedVar->disable(); } }