Esempio n. 1
0
 /**
  * @param array $options
  */
 public function save(array $options = [])
 {
     if (!$this->preview_key) {
         $this->preview_key = md5($this->page_id . '-' . $this->version . '-' . time());
     }
     parent::save($options);
 }
Esempio n. 2
0
 /**
  * @param array $options
  */
 public function save(array $options = [])
 {
     if ($this->path == '') {
         $this->setPath();
     }
     parent::save($options);
 }