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