Esempio n. 1
0
 public function gridColumns()
 {
     $ret = array();
     $c = new Kwf_Grid_Column('string', trlKwf('Product'), 200);
     $c->setData(new Kwf_Component_Abstract_ToStringData($this->_class));
     $ret['string'] = $c;
     return $ret;
 }
Esempio n. 2
0
 public function gridColumns()
 {
     $ret = parent::gridColumns();
     $c = new Kwf_Grid_Column('infotext', trlKwf('Descriptiontext'));
     $c->setData(new Kwf_Data_Kwc_Table(Kwc_Abstract::getSetting($this->_class, 'ownModel'), 'infotext', $this->_class));
     $c->setEditor(new Kwf_Form_Field_TextField());
     $ret['infotext'] = $c;
     return $ret;
 }
Esempio n. 3
0
 public function gridColumns()
 {
     $ret = array();
     $c = new Kwf_Grid_Column('string', trlKwf('Link Text'));
     $c->setData(new Kwf_Component_Abstract_ToStringData($this->_class));
     $ret['string'] = $c;
     $ret = array_merge($ret, parent::gridColumns());
     return $ret;
 }
Esempio n. 4
0
 public function gridColumns()
 {
     $ret = array();
     $c = new Kwf_Grid_Column('pic', trlKwf('Image'), 100);
     $c->setData(new Kwf_Data_Kwc_Image($this->_class, 'gridRow'))->setRenderer('mouseoverPic');
     $ret['pic'] = $c;
     $c = new Kwf_Grid_Column('pic_large');
     $c->setData(new Kwf_Data_Kwc_Image($this->_class, 'gridRowLarge'));
     $ret['pic_large'] = $c;
     if (Kwc_Abstract::getSetting($this->_class, 'imageCaption')) {
         $c = new Kwf_Grid_Column('image_caption', trlKwf('Image caption'));
         $c->setData(new Kwf_Data_Kwc_Table(Kwc_Abstract::getSetting($this->_class, 'ownModel'), 'image_caption', $this->_class));
         $c->setEditor(new Kwf_Form_Field_TextField());
         $ret['image_caption'] = $c;
     }
     return $ret;
 }