private function _saveData() { $Entity = new TaskEntity(); $FormEntity = new TaskFormEntity($_POST); $ExecuteTimeEntity = new taskExecuteTimeEntity($FormEntity); $execute_time = $ExecuteTimeEntity->compute(); $Entity->create($FormEntity, $execute_time); }
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(); $entity = new TaskEntity($uniqid); $info = $entity->getData(); $additional = $entity->getAdditional(); SimpleView::assign('info', $info); SimpleView::assign('runnum', $additional['runnum']); SimpleView::assign('lasttime', $additional['lasttime']); SimpleView::display('task_info.html'); }
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'); }
private function _deleteById($uniqid) { $entity = new TaskEntity($uniqid); $entity->delete(); $entity->recordDeleted(); }