当前位置: 首页>>代码示例>>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;未经允许,请勿转载。