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