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