当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Form_Element_Hidden::__construct方法代码示例

本文整理汇总了PHP中Zend_Form_Element_Hidden::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Hidden::__construct方法的具体用法?PHP Zend_Form_Element_Hidden::__construct怎么用?PHP Zend_Form_Element_Hidden::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Form_Element_Hidden的用法示例。


在下文中一共展示了Zend_Form_Element_Hidden::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->associatedElement = $options['associatedElement'];
     $this->pathTmp = $options['pathTmp'];
     $this->contentID = $options['contentID'];
 }
开发者ID:anunay,项目名称:stentors,代码行数:7,代码来源:ImagePicker.php

示例2: __construct

 public function __construct($spec, $aOptions = array())
 {
     if (isset($aOptions['ajax'])) {
         $this->_ajax = $aOptions['ajax'];
         unset($aOptions['ajax']);
     }
     parent::__construct($spec, $aOptions);
 }
开发者ID:netixx,项目名称:Stock,代码行数:8,代码来源:Hidden.php

示例3: __construct

 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->_menu = empty($options['menu']) ? '' : $options['menu'];
     $this->_associatedElement = empty($options['associatedElement']) ? '' : $options['associatedElement'];
     $this->_onClick = "javascript:assignPage(\"{$this->getId()}\",\"%PAGEID%\",\"{$this->_associatedElement}\",\"%PAGEINDEX%\");";
     if (!empty($options['onclick'])) {
         $this->_onClick .= $options['onclick'];
     }
 }
开发者ID:anunay,项目名称:stentors,代码行数:10,代码来源:PagePicker.php

示例4: __construct

 public function __construct($spec, $params = array(), $options = null)
 {
     parent::__construct($spec, $options);
     $this->_lang = empty($options['lang']) ? 1 : $options['lang'];
     if ($options['mode'] == 'add') {
         $this->_mode = 'add';
         $config = Zend_registry::get('config');
         $this->_lang = $config->defaultEditLanguage;
     }
     $this->_params = $params;
 }
开发者ID:anunay,项目名称:stentors,代码行数:11,代码来源:LanguageSelector.php

示例5: __construct

 /**
  *
  * @param string $spec    Id of the element for html tag.
  * @param array  $options Options to create the element.<br />
  *                        The following ones are mandatory:<br />
  *                         <p>- associatedElement: Element containing the
  *                          file path. It's the form element to be saved into db.</p>
  *                         <p>- displayElement: The field name to display the file name.</p>
  *                         <p>- pathTmp: Path to initialize the browser.</p>
  *                         <p>- setInit: Set to true for the first element.
  * This is not usefull if there is more than one element.</p>
  *                         <p>- contentID: OPTIONAL</p>
  */
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     if (isset($options['associatedElement'])) {
         $this->associatedElement = $options['associatedElement'] . "-";
     } else {
         $this->associatedElement = "";
     }
     $this->displayElement = $options['displayElement'];
     $this->pathTmp = $options['pathTmp'];
     $this->contentID = $options['contentID'];
     $this->setInit = $options['setInit'];
     // var_dump($options);
 }
开发者ID:anunay,项目名称:stentors,代码行数:27,代码来源:FileManager.php

示例6: __construct

 public function __construct($spec = null, $options = null)
 {
     parent::__construct($spec, $options);
     $this->removeDecorator('label')->removeDecorator('HtmlTag');
 }
开发者ID:AlexanderMazaletskiy,项目名称:gym-Tracker-App,代码行数:5,代码来源:Hidden.php

示例7: __construct

 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->associatedElement = $options['associatedElement'];
     $this->galleryID = $options['galleryID'];
 }
开发者ID:anunay,项目名称:stentors,代码行数:6,代码来源:ImageGalleryPicker.php


注:本文中的Zend_Form_Element_Hidden::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。