Esempio n. 1
0
 public function save()
 {
     if (empty($this->addedAt)) {
         $this->addedAt = TimeMachine::getInstance()->now();
     }
     return parent::save();
 }
Esempio n. 2
0
 public function save()
 {
     if (is_array($this->meta)) {
         $this->meta = json_encode($this->meta);
     }
     return parent::save();
 }
Esempio n. 3
0
 public function save()
 {
     if ($this->hash instanceof Undefined) {
         $this->hash = md5_file($this->path);
     }
     parent::save();
     // TODO: Change the autogenerated stub
 }
Esempio n. 4
0
 public function save()
 {
     $this->updated = time();
     parent::save();
 }