private function _readLogData($uniqid) { $entity = new TaskEntity($uniqid); $entityLog = new TaskLogEntity($entity); $info = $entity->getData(); $files = $entityLog->getFiles(); return array('info' => $info, 'files' => $files); }
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'); }