public function showAction() { $this->view->atDeId = $this->atDeId; $this->view->atDeName = Default_SimpleQuery::getAttributeName($this->atDeId); if (Default_ReferenceQuery::hasValueListData($this->atDeId)) { $table = new ValueList(); $select = $table->select(); $select->where(ValueList::COL_ATTRIBUTE_DESCRIPTOR_ID . "= ?", $this->atDeId, 'int'); $rowset = $table->fetchAll($select); $array = $rowset->toArray(); $this->view->list = $array; $this->render('list'); } }
public function __construct($atDeId) { parent::__construct(); $table = new ValueList(); $select = $table->select(); $select->where(ValueList::COL_ATTRIBUTE_DESCRIPTOR_ID . "= ?", $atDeId, 'int'); $rowset = $table->fetchAll($select); $array = $rowset->toArray(); foreach ($array as $valiDataset) { $this->addElement('text', 'VALI_' . $valiDataset[ValueList::COL_ID], array('label' => 'Current value: ' . $valiDataset[ValueList::COL_NAME], 'value' => $valiDataset[ValueList::COL_VALUE], 'required' => true, 'validators' => array(new Zend_Validate_Alnum(true)))); } $this->setAction('/admin/valuelist/update/' . AttributeDescriptor::COL_ID . "/" . $atDeId); $this->addElement('submit', 'submit', array('label' => 'Update')); }
public function __construct($attributId, $spec = '', $options = '') { parent::__construct($spec, $options); $table = new ValueList(); $select = $table->select(); $select->order(ValueList::COL_NAME); $select->where(ValueList::COL_ATTRIBUTE_DESCRIPTOR_ID . "= ?", $attributId); $rowset = $table->fetchAll($select); $array = $rowset->toArray(); $optArray = array(null => 'Please select'); foreach ($array as $value) { $optArray = $optArray + array($value[ValueList::COL_ID] => $value[ValueList::COL_NAME]); } $this->setMultiOptions($optArray); }
public function __toString() { $aArguments = parent::__toString(); return "{$this->sName}({$aArguments})"; }
public function __construct($items = array(), $separator = ',') { return parent::__construct($items, $separator); }
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) { $aArguments = parent::render($oOutputFormat); return "{$this->sName}({$aArguments})"; }
public function __construct($sSeparator = ',') { parent::__construct(array(), $sSeparator); }
public function __construct($sSeparator = ',', $iLineNo = 0) { parent::__construct(array(), $sSeparator, $iLineNo); }