Пример #1
0
 private function _readLogData($uniqid)
 {
     $entity = new TaskEntity($uniqid);
     $entityLog = new TaskLogEntity($entity);
     $info = $entity->getData();
     $files = $entityLog->getFiles();
     return array('info' => $info, 'files' => $files);
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $uniqid = $this->getUniqid();
     $date = intval($_GET['date']);
     $entity = new TaskEntity($uniqid);
     $entityLog = new TaskLogEntity($entity);
     $info = $entity->getData();
     $content = $entityLog->getContent($date);
     SimpleView::assign('info', $info);
     SimpleView::assign('date', $date);
     SimpleView::assign('content', $content);
     SimpleView::assign('log_dir', $this->Config['log_dir']);
     SimpleView::display('task_logcontent.html');
 }