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