Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 /**
  * Clears the sites cache.
  */
 public function save()
 {
     global $core;
     unset($core->vars['cached_sites']);
     return parent::save();
 }