コード例 #1
0
 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');
     }
 }
コード例 #2
0
ファイル: Valuelist.php プロジェクト: blackskaarj/webgr
 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'));
 }
コード例 #3
0
 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);
 }
コード例 #4
0
ファイル: CSSFunction.php プロジェクト: jubinpatel/horde
 public function __toString()
 {
     $aArguments = parent::__toString();
     return "{$this->sName}({$aArguments})";
 }
コード例 #5
0
 public function __construct($items = array(), $separator = ',')
 {
     return parent::__construct($items, $separator);
 }
コード例 #6
0
ファイル: CSSFunction.php プロジェクト: gabrielrosset/moodle
 public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat)
 {
     $aArguments = parent::render($oOutputFormat);
     return "{$this->sName}({$aArguments})";
 }
コード例 #7
0
 public function __construct($sSeparator = ',')
 {
     parent::__construct(array(), $sSeparator);
 }
コード例 #8
0
 public function __construct($sSeparator = ',', $iLineNo = 0)
 {
     parent::__construct(array(), $sSeparator, $iLineNo);
 }