當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。