/** * Obtains a UUID from the model if the {@link $uuid} property is empty. */ public function save() { if (!$this->uuid) { $this->uuid = $this->model->obtain_uuid(); } return parent::save(); }
/** * Clears the sites cache. */ public function save() { global $core; unset($core->vars['cached_sites']); return parent::save(); }