Exemplo n.º 1
0
 private function _saveData()
 {
     $Entity = new TaskEntity();
     $FormEntity = new TaskFormEntity($_POST);
     $ExecuteTimeEntity = new taskExecuteTimeEntity($FormEntity);
     $execute_time = $ExecuteTimeEntity->compute();
     $Entity->create($FormEntity, $execute_time);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
 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');
 }
Exemplo n.º 4
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');
 }
Exemplo n.º 5
0
 private function _deleteById($uniqid)
 {
     $entity = new TaskEntity($uniqid);
     $entity->delete();
     $entity->recordDeleted();
 }