public function __construct($config = array()) { $this->_referenceMap['Component']['refModelClass'] = 'Kwc_Basic_TextMailTxt_Mail_Text_TestModel'; $config['proxyModel'] = new Kwf_Model_FnF(array('primaryKey' => 'id', 'columns' => array('id', 'component_id', 'component', 'nr', 'saved'), 'data' => array(array('id' => 1, 'component_id' => 'root_mail1-content', 'component' => 'link', 'nr' => 1, 'saved' => true)))); parent::__construct($config); }
protected function _beforeDelete() { $table = new Kwc_Basic_Text_ChildComponentsModel(); $rows = $table->fetchAll(array('component_id = ?' => $this->component_id)); foreach ($rows as $row) { $t = substr($row->component, 0, 1); $admin = Kwc_Admin::getInstance($this->_classes[$row->component]); $admin->delete($this->component_id . '-' . $t . $row->nr); $row->delete(); } }
public function __construct($config = array()) { $this->_referenceMap['Component']['refModelClass'] = 'Kwc_Basic_Text_TestModel'; $config['proxyModel'] = new Kwf_Model_FnF(array('primaryKey' => 'id', 'columns' => array('id', 'component_id', 'component', 'nr', 'saved'), 'data' => array(array('id' => 1, 'component_id' => '1000', 'component' => 'link', 'nr' => 3, 'saved' => true), array('id' => 2, 'component_id' => '1000', 'component' => 'link', 'nr' => 1, 'saved' => true), array('id' => 3, 'component_id' => '1000', 'component' => 'link', 'nr' => 2, 'saved' => true), array('id' => 4, 'component_id' => '1007', 'component' => 'link', 'nr' => 1, 'saved' => true), array('id' => 5, 'component_id' => '1013', 'component' => 'download', 'nr' => 1, 'saved' => true), array('id' => 6, 'component_id' => '1015', 'component' => 'image', 'nr' => 1, 'saved' => true), array('id' => 7, 'component_id' => '1011', 'component' => 'image', 'nr' => 1, 'saved' => true)))); parent::__construct($config); }
public function __construct($config = array()) { $this->_referenceMap['Component']['refModelClass'] = 'Kwc_Trl_Text_Text_TestModel'; $config['proxyModel'] = new Kwf_Model_FnF(array('primaryKey' => 'id', 'columns' => array('id', 'component_id', 'component', 'nr', 'saved'), 'data' => array())); parent::__construct($config); }
public function __construct($config = array()) { $this->_referenceMap['Component']['refModelClass'] = 'Kwc_Basic_TextSessionModel_TestModel'; $config['proxyModel'] = new Kwf_Model_Session(array('namespace' => 'TextSessionModel_TestChildComponentsModel', 'primaryKey' => 'id', 'columns' => array('id', 'component_id', 'component', 'nr', 'saved'))); parent::__construct($config); }
public function __construct($config = array()) { $this->_referenceMap['Component']['refModelClass'] = 'Kwc_Basic_TextConvertLinkOnlyExtern_TestModel'; $config['proxyModel'] = new Kwf_Model_FnF(array('primaryKey' => 'id', 'columns' => array('id', 'component_id', 'component', 'nr', 'saved'), 'data' => array(array('id' => 4, 'component_id' => '1007', 'component' => 'link', 'nr' => 1, 'saved' => true)))); parent::__construct($config); }