public function duplicate(array $data = array())
 {
     $ret = parent::duplicate($data);
     $ret->custom_filename = false;
     $ret->save();
     return $ret;
 }
Ejemplo n.º 2
0
 public function __get($name)
 {
     if ($name == 'name_path') {
         return $this->getTreePath();
     } else {
         return parent::__get($name);
     }
 }
Ejemplo n.º 3
0
 protected function _beforeDelete()
 {
     parent::_beforeDelete();
     // Dranhängende Komponente löschen
     $generators = Kwf_Component_Data_Root::getInstance()->getPageGenerators();
     foreach ($generators as $generator) {
         $class = Kwc_Abstract::getChildComponentClass($generator->getClass(), null, $this->component);
         Kwc_Admin::getInstance($class)->delete($this->id);
     }
 }
 public function __construct(Kwf_Model_Tree_Row $row)
 {
     $this->_rowset = $row->getChildNodes();
 }