Esempio n. 1
0
 public function __construct($id)
 {
     $this->webStorageIndex = WebStorageIndex::getInstance();
     if ($this->webStorageIndex->indexHasId($id)) {
         $this->info = $this->webStorageIndex->getIndexById($id);
         $this->id = $id;
         $this->extractDataTimesheet(Yaml::parse(file_get_contents($this->info['absolutePath'])));
     } else {
         throw new MyTimesheetException('Timesheet with id "' . $id . '" does not exists in index.');
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->webStorageIndex = WebStorageIndex::getInstance();
 }
 public function preAction()
 {
     $this->webStorageIndex = WebStorageIndex::getInstance();
 }