Exemplo n.º 1
0
 /**
  * restore a deleted object
  * @return void
  */
 public function restore()
 {
     \CB\fireEvent('beforeNodeDbRestore', $this);
     DM\Tree::restore($this->id);
     $this->restoreCustomData();
     \CB\fireEvent('nodeDbRestore', $this);
     // we need to load this object on restore
     // for passing it to log and/or events
     if (!$this->loaded) {
         $this->load();
     }
     $this->logAction('restore');
 }