當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Dojo_Form_Element_Dijit類代碼示例

本文整理匯總了PHP中Zend_Dojo_Form_Element_Dijit的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Dojo_Form_Element_Dijit類的具體用法?PHP Zend_Dojo_Form_Element_Dijit怎麽用?PHP Zend_Dojo_Form_Element_Dijit使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Zend_Dojo_Form_Element_Dijit類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getLabel

 /**
  * Return label
  *
  * If no label is present, returns the currently set name.
  *
  * If a translator is present, returns the translated label.
  *
  * @return string
  */
 public function getLabel()
 {
     $value = parent::getLabel();
     if (null === $value) {
         $value = $this->getName();
     }
     if (null !== ($translator = $this->getTranslator())) {
         return $translator->translate($value);
     }
     return $value;
 }
開發者ID:crlang44,項目名稱:frapi,代碼行數:20,代碼來源:Button.php

示例2: setValue

 /**
  * Set value
  *
  * If value matches checked value, sets to that value, and sets the checked
  * flag to true.
  *
  * Any other value causes the unchecked value to be set as the current
  * value, and the checked flag to be set as false.
  *
  *
  * @param  mixed $value
  * @return Zend_Form_Element_Checkbox
  */
 public function setValue($value)
 {
     if ($value == $this->getCheckedValue()) {
         parent::setValue($value);
         $this->checked = true;
     } else {
         parent::setValue($this->getUncheckedValue());
         $this->checked = false;
     }
     return $this;
 }
開發者ID:brianbui171,項目名稱:website_zend_1.11,代碼行數:24,代碼來源:CheckBox.php

示例3: isValid

 /**
  * Is the value provided valid?
  *
  * Autoregisters InArray validator if necessary.
  *
  * @param  string $value
  * @param  mixed $context
  * @return bool
  */
 public function isValid($value, $context = null)
 {
     if ($this->registerInArrayValidator()) {
         if (!$this->getValidator('InArray')) {
             $options = $this->getMultiOptions();
             $this->addValidator('InArray', true, array(array_keys($options)));
         }
     }
     return parent::isValid($value, $context);
 }
開發者ID:ramonornela,項目名稱:Zebra,代碼行數:19,代碼來源:DijitMulti.php

示例4: __call

 /**
  * __call
  *
  * @param  string $name  Method name
  * @param  array $arguments Arguments
  * @return mixed
  */
 public function __call($method, array $args)
 {
     $action = substr($method, 0, 3);
     $attribute = lcfirst(substr($method, 3));
     switch ($action) {
         case 'get':
             if (!$this->hasDijitParam(lcfirst($attribute))) {
                 return false;
             }
             return $this->getDijitParam(lcfirst($attribute));
             break;
         case 'set':
             $this->setDijitParam(lcfirst($attribute), $args[0]);
             return $this;
             break;
         default:
             if ($return = parent::__call($method, $args)) {
                 return $return;
             }
             break;
     }
 }
開發者ID:BGCX261,項目名稱:zlayer-svn-to-git,代碼行數:29,代碼來源:CustomElementDijit.php

示例5: render

 /**
  * Render
  *
  * Ensure that options property is set when rendering.
  * 
  * @param  Zend_View_Interface $view 
  * @return string
  */
 public function render(Zend_View_Interface $view = null)
 {
     $this->options = array('checked' => $this->getCheckedValue(), 'unChecked' => $this->getUncheckedValue());
     return parent::render($view);
 }
開發者ID:ronseigel,項目名稱:agent-ohm,代碼行數:13,代碼來源:CheckBox.php

示例6: isValid

 public function isValid($value, $context = null)
 {
     /*        $storeInfo = $this->getStoreInfo();
             if (!empty($storeInfo)) {
                 $this->setRegisterInArrayValidator(false);
             }
     */
     return parent::isValid($value, $context);
 }
開發者ID:TDMU,項目名稱:contingent5_statserver,代碼行數:9,代碼來源:CheckedMultiSelect.php


注:本文中的Zend_Dojo_Form_Element_Dijit類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。