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


PHP Zend_Form_Element_Text::__construct方法代碼示例

本文整理匯總了PHP中Zend_Form_Element_Text::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Form_Element_Text::__construct方法的具體用法?PHP Zend_Form_Element_Text::__construct怎麽用?PHP Zend_Form_Element_Text::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Form_Element_Text的用法示例。


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

示例1:

 /**
  * @brief	Constructeur de classe
  *
  *
  * @author	francoisespinet
  * @version 1 mars 2012 - 11:58:44
  */
 function __construct()
 {
     //appel du constructeur du parent
     parent::__construct($this->id);
     //ajout du validateur
     $this->addValidator(new Projet_Validate_Trigramme());
 }
開發者ID:netixx,項目名稱:Stock,代碼行數:14,代碼來源:Trigramme.php

示例2: __construct

 public function __construct($spec, $options = array())
 {
     $options = array_merge($options, array('disableLoadDefaultDecorators' => true));
     parent::__construct($spec, $options);
     $this->_decorator = new Monkeys_Form_Decorator_Composite();
     $this->addDecorator($this->_decorator);
 }
開發者ID:sdgdsffdsfff,項目名稱:auth-center,代碼行數:7,代碼來源:Text.php

示例3: __construct

 /**
  * Constructor figures out which type of input to render
  * @param $spec
  * @param $options
  * @return Void
  */
 public function __construct($spec, $options = null)
 {
     if (empty($options['type'])) {
         $options['type'] = $this->_getType();
     }
     parent::__construct($spec, $options);
 }
開發者ID:grrr-amsterdam,項目名稱:garp3,代碼行數:13,代碼來源:Text.php

示例4: __construct

 /**
  * Constructor that takes into account the type given, if given
  * Proxies its parent constructor to provide rest of functionality
  *
  * @param $spec
  * @param $options
  * @uses Zend_Form_Element
  */
 public function __construct($spec, $options = null)
 {
     if ($this->_isHtml5() && !isset($options['type'])) {
         $options['type'] = $this->_getType($spec);
     }
     parent::__construct($spec, $options);
 }
開發者ID:nstapelbroek,項目名稱:Glitch_Lib,代碼行數:15,代碼來源:Text.php

示例5: __construct

 public function __construct($spec, $options = NULL)
 {
     if ($spec instanceof BuggyPress_Issue) {
         $this->_issue = $spec;
         $spec = self::FIELD_NAME;
     }
     parent::__construct($spec, $options);
 }
開發者ID:jbrinley,項目名稱:BuggyPress,代碼行數:8,代碼來源:BuggyPress_Form_Element_IssueTitle.php

示例6: __construct

 /**
  * Contructeur, prend le nom interne, le titre et la description du champ.
  * Peut egalement prendre la valeur par defaut.
  * 
  * @param string $internalName
  * @param string $label
  * @param string $description
  * @param string $default
  */
 public function __construct($internalName, $label, $description, $default = false)
 {
     parent::__construct($internalName);
     $this->setLabel($label)->setDescription($description);
     if ($default !== false) {
         $this->setValue($default);
     }
     $this->setAttrib('size', '5')->addFilter('StripTags')->addValidator('Alnum');
 }
開發者ID:esandre,項目名稱:CoeurDeTruffes,代碼行數:18,代碼來源:PostalField.php

示例7: __construct

 /**
  * Contructeur, prend le nom interne, le titre et la description du champ.
  * Peut egalement prendre la valeur par defaut.
  * 
  * @param string $internalName
  * @param string $label
  * @param string $description
  * @param string $default
  */
 public function __construct($internalName, $label, $description, $default = false)
 {
     parent::__construct($internalName);
     $this->setLabel($label)->setDescription($description);
     if ($default !== false) {
         $this->setValue($default);
     }
     $this->setAttrib('size', '32')->addValidator('stringLength', false, array(4, 32))->addFilters(array('StripTags', 'StringtoLower'));
 }
開發者ID:esandre,項目名稱:CoeurDeTruffes,代碼行數:18,代碼來源:NomField.php

示例8: __construct

 public function __construct($spec, $options = null)
 {
     $this->_table = $options['table'];
     if (isset($options['field'])) {
         $this->_field = $options['field'];
     } else {
         $this->_field = 'nome';
     }
     parent::__construct($spec, $options);
 }
開發者ID:adrianosouzas,項目名稱:calculo-tributos,代碼行數:10,代碼來源:Chave.php

示例9: __construct

 public function __construct($spec, $options = null)
 {
     if (isset($options['format'])) {
         $this->_format = $options['format'];
         unset($options['format']);
     }
     if (isset($options['db_format'])) {
         $this->_db_format = $options['db_format'];
         unset($options['db_format']);
     }
     parent::__construct($spec, $options);
 }
開發者ID:adrianosouzas,項目名稱:calculo-tributos,代碼行數:12,代碼來源:Date.php

示例10: __construct

 public function __construct($spec, $aOptions = array())
 {
     if (isset($aOptions['ajax'])) {
         $this->_ajax = $aOptions['ajax'];
         unset($aOptions['ajax']);
     }
     if (isset($aOptions['deco'])) {
         $this->_deco = $aOptions['deco'];
         unset($aOptions['deco']);
     }
     parent::__construct($spec, $aOptions);
 }
開發者ID:netixx,項目名稱:Stock,代碼行數:12,代碼來源:Text.php

示例11: __construct

 public function __construct($spec = null, $options = null, $required = false)
 {
     parent::__construct($spec, $options);
     $this->addFilter('StringTrim')->setRequired($required)->setLabel($options['label'])->setAttrib('class', $options['class'])->addValidator('StringLength', false, array(1, 255));
     if ($required && isset($options['notEmptyErrorMessage'])) {
         $this->addValidator('NotEmpty', false, array('messages' => $options['notEmptyErrorMessage']));
     }
     if (isset($options['value'])) {
         $this->setValue($options['value']);
     }
     if (isset($options['removeDecorators'])) {
         $this->removeDecorator('HtmlTag')->removeDecorator('Label');
     } else {
         $this->setDecorators(array(new vkNgine_Form_Element_Decorator_Text()));
     }
 }
開發者ID:AlexanderMazaletskiy,項目名稱:gym-Tracker-App,代碼行數:16,代碼來源:Text.php

示例12: __construct

 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
 }
開發者ID:robertsonmello,項目名稱:projetos,代碼行數:4,代碼來源:Zoom.php

示例13: __construct

 /**
  * Constructor
  *
  * $spec may be:
  * - string: name of element
  * - array: options with which to configure element
  * - \Zend_Config: \Zend_Config with options for configuring element
  *
  * @param  string|array|\Zend_Config $spec
  * @param  array|\Zend_Config $options
  * @return void
  * @throws \Zend_Form_Exception if no element name after initialization
  */
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->addClass($this->_elementClass);
 }
開發者ID:GemsTracker,項目名稱:MUtil,代碼行數:18,代碼來源:Text.php

示例14: __construct

 public function __construct($spec, $options = null)
 {
     $options = array_merge($options, $this->_defaultOptions);
     return parent::__construct($spec, $options);
 }
開發者ID:rom1git,項目名稱:Centurion,代碼行數:5,代碼來源:DateTimePicker.php


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