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