function __construct($id = null) { if (is_null($id)) { $this->entity = new gzipEntity(); } else { $this->entity = TaskStorage::getById($id); } }
public function getAction($id) { Viewer::render('Task:taskInfo', array('task' => TaskStorage::getById($id))); }