public function __construct($config = array())
 {
     $this->_referenceMap['Component']['refModelClass'] = 'Kwc_Legacy_Columns_Basic_TestModel';
     $config['proxyModel'] = new Kwf_Model_FnF(array('columns' => array('id', 'component_id', 'pos', 'visible', 'data'), 'primaryKey' => 'id', 'siblingModels' => array(new Kwf_Model_Field(array('fieldName' => 'data')))));
     $config['proxyModel']->createRow(array('id' => 1, 'component_id' => 3000, 'pos' => 1, 'visible' => 1, 'width' => '100'))->save();
     $config['proxyModel']->createRow(array('id' => 2, 'component_id' => 3000, 'pos' => 1, 'visible' => 1, 'width' => '100'))->save();
     $config['proxyModel']->createRow(array('id' => 3, 'component_id' => 3000, 'pos' => 1, 'visible' => 1, 'width' => '50'))->save();
     parent::__construct($config);
 }
Ejemplo n.º 2
0
 public function __construct($config = array())
 {
     if (isset($config['componentClass'])) {
         $this->_componentClass = $config['componentClass'];
     }
     parent::__construct($config);
     if (!$this->_componentClass) {
         throw new Kwf_Exception('componentClass is required');
     }
     $this->setFactoryConfig(array('type' => 'Kwc_Columns_Abstract_ModelFactory', 'id' => $this->_componentClass . '.childModel', 'componentClass' => $this->_componentClass));
 }
Ejemplo n.º 3
0
 public function __construct($config = array())
 {
     $this->_referenceMap['Component']['refModelClass'] = 'Kwc_Trl_Legacy_Columns_Columns_Model';
     $config['proxyModel'] = new Kwf_Model_FnF(array('columns' => array('id', 'component_id', 'pos', 'visible', 'data'), 'primaryKey' => 'id', 'data' => array(array('id' => 1, 'component_id' => 'root-master_test', 'pos' => 1, 'visible' => 1, 'width' => '100'), array('id' => 2, 'component_id' => 'root-master_test', 'pos' => 2, 'visible' => 1, 'width' => '100'), array('id' => 3, 'component_id' => 'root-master_test', 'pos' => 3, 'visible' => 1, 'width' => '50')), 'siblingModels' => array(new Kwf_Model_Field(array('fieldName' => 'data')))));
     parent::__construct($config);
 }
Ejemplo n.º 4
0
 public function __construct($config = array())
 {
     $config['proxyModel'] = new Kwf_Model_FnF(array('columns' => array('id', 'component_id', 'visible', 'pos'), 'data' => array(array('id' => 1, 'component_id' => 2200, 'visible' => 1, 'pos' => 1), array('id' => 2, 'component_id' => 2200, 'visible' => 1, 'pos' => 2), array('id' => 3, 'component_id' => 2200, 'visible' => 1, 'pos' => 3))));
     parent::__construct($config);
 }