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


PHP Zend_Form_Element_Hidden::clearDecorators方法代码示例

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


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

示例1: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     // Channel Configuration
     $this->addElement('text', 'channel_title', array('label' => 'Channel title:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_link', array('label' => 'Channel link:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_description', array('label' => 'Channel description:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_language', array('label' => 'Channel language:', 'filters' => array('StringTrim'), 'value' => 'en-us'));
     $this->addElement('text', 'channel_copyright', array('label' => 'Channel copyright:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_image_title', array('label' => 'Channel image title:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_image_url', array('label' => 'Channel image url:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_image_link', array('label' => 'Channel image link:', 'filters' => array('StringTrim')));
     $this->addDisplayGroup(array('channel_title', 'channel_link', 'channel_description', 'channel_language', 'channel_copyright', 'channel_image_title', 'channel_image_url', 'channel_image_link'), 'general', array('legend' => 'Channel Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     // FTP Configuration
     $this->addElement('text', 'ftp_host', array('label' => 'FTP Host:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_login', array('label' => 'FTP Login:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_password', array('label' => 'FTP Password:', 'filters' => array('StringTrim')));
     $this->addDisplayGroup(array('ftp_host', 'ftp_login', 'ftp_password'), 'sftp', array('legend' => 'FTP Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     // Feed URL
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:25,代码来源:UverseProfileConfiguration.php

示例2: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('DoubleClick Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $element = new Zend_Form_Element_Text('cue_points_provider');
     $element->setLabel('Cue Points Provider:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('items_per_page');
     $element->setLabel('Items Per Page:');
     $this->addElement($element);
     $this->setDefault('items_per_page', 100);
     $this->addDisplayGroup(array('cue_points_provider', 'items_per_page'), 'general_group', array('legend' => 'General', 'decorators' => array('FormElements', 'Fieldset')));
     $element = new Zend_Form_Element_Text('channel_title');
     $element->setLabel('Channel title:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('channel_description');
     $element->setLabel('Channel description:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('channel_link');
     $element->setLabel('Channel link:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Checkbox('ignore_scheduling_in_feed');
     $element->setLabel('Ignore Scheduling In Feed, As Default Feed Behavior');
     $this->addElement($element);
     $this->addDisplayGroup(array('channel_title', 'channel_description', 'channel_link', 'ignore_scheduling_in_feed'), 'channel', array('legend' => 'Feed Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:33,代码来源:DoubleClickProfileConfiguration.php

示例3: init

 /**
  * Initialization form
  */
 public function init()
 {
     // Вызываем родительский метод
     parent::init();
     //---------------- Форма ----------------
     // Указываем action формы
     $urlAction = $this->getUrl('login', 'account');
     $urlForgotPassword = $this->getUrl('fetchpassword', 'account');
     $this->setAction($urlAction);
     //Зададим метод передачи данных
     $this->setMethod('post');
     // Задаем атрибут class для формы
     $this->setAttrib('class', 'myfrm span5');
     $this->setAttrib('id', 'login-form');
     //$this->setAttrib('class', 'row');
     //---------- Имя пользователя --------------
     $this->addElement('text', 'username', array('label' => 'Имя входа пользователя', 'required' => true, 'filters' => array('StringTrim')));
     //---------- Пароль пользователя --------------
     $this->addElement('password', 'password', array('label' => 'Пароль', 'required' => true));
     //----------- Скрытый элемент для создания ссылки -----------
     //если пользователь забыл свой пароль
     $forgot_password = new Zend_Form_Element_Hidden('forgot_password', array('label' => $this->Translate('Забыли пароль') . '?'));
     $forgot_password->clearDecorators();
     $forgot_password->addDecorator('AnchorLabel', array('href' => $urlForgotPassword));
     $this->addElement($forgot_password);
     //--------- Добавим кнопку -----------
     $this->addElement('submit', 'send', array('ignore' => true, 'label' => 'Вход'));
     $this->getElement('send')->setAttrib('class', 'btn btn-primary');
     //---------------- Группа Авторизационные данные ----------------
     // Группируем элементы
     // Группа полей связанных с авторизационными данными
     $this->addDisplayGroup(array('username', 'password', 'forgot_password', 'send'), 'authDataGroup', array('legend' => 'Авторизационные данные'));
     //Добавим скрытый элемент для перенаправления входа пользователя
     $this->addElement('hidden', 'redirect', array());
 }
开发者ID:bsa-git,项目名称:zf-myblog,代码行数:38,代码来源:UserLogin.php

示例4: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('TV.com Provider Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_title');
     $element->setLabel('Feed title:');
     $element->addValidator(new Zend_Validate_StringLength(0, 128));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_link');
     $element->setLabel('Feed link:');
     $element->addValidator(new Zend_Validate_StringLength(0, 255));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_description');
     $element->setLabel('Feed description:');
     $element->addValidator(new Zend_Validate_StringLength(0, 255));
     $this->addElement($element);
     $this->addElement('Text', 'feed_language', array('label' => 'Feed language:', 'value' => 'en-us'));
     $this->addElement('Text', 'feed_copyright', array('label' => 'Feed copyright:'));
     $this->addElement('Text', 'feed_image_title', array('label' => 'Feed image title:'));
     $this->addElement('Text', 'feed_image_url', array('label' => 'Feed image url:'));
     $this->addElement('Text', 'feed_image_link', array('label' => 'Feed image link:'));
     $this->addElement('Text', 'feed_image_width', array('label' => 'Feed image width:'));
     $this->addElement('Text', 'feed_image_height', array('label' => 'Feed image height:'));
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_title', 'feed_link', 'feed_description', 'feed_language', 'feed_copyright'), 'feed', array('legend' => 'Feed Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addDisplayGroup(array('feed_image_title', 'feed_image_url', 'feed_image_link', 'feed_image_width', 'feed_image_height'), 'feed_image', array('legend' => 'Feed Image Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:33,代码来源:TVComProfileConfiguration.php

示例5: addTargetElement

 public function addTargetElement()
 {
     require_once 'Zend/Form/Element/Hidden.php';
     $element = new Zend_Form_Element_Hidden($this->getTargetParam());
     $element->clearDecorators()->addDecorator('viewHelper');
     $this->addElement($element);
     return $this;
 }
开发者ID:sitengine,项目名称:sitengine,代码行数:8,代码来源:LoginForm.php

示例6: addIntendedMethodElement

 public function addIntendedMethodElement()
 {
     require_once 'Zend/Form/Element/Hidden.php';
     $element = new Zend_Form_Element_Hidden($this->getIntendedMethodParam());
     $element->clearDecorators()->addDecorator('viewHelper')->setValue('');
     $this->addElement($element);
     return $this;
 }
开发者ID:sitengine,项目名称:sitengine,代码行数:8,代码来源:Form.php

示例7: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:9,代码来源:TimeWarnerProfileConfiguration.php

示例8: form

 public function form()
 {
     if ($this->_formElement != null) {
         return $this->_formElement;
     }
     $e = new Zend_Form_Element_Hidden($this->key);
     $e->clearDecorators()->addDecorator('ViewHelper');
     return $this->_formElement = $e;
 }
开发者ID:laiello,项目名称:xinhuxi,代码行数:9,代码来源:Data.php

示例9: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addElement('text', 'background_image_wide', array('label' => 'Wide Background Image:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'background_image_standard', array('label' => 'Standard Background Image:', 'filters' => array('StringTrim')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:11,代码来源:UverseClickToOrderProfileConfiguration.php

示例10: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $this->addElement('text', 'feed_title', array('label' => 'Feed Title:', 'filters' => array('StringTrim'), 'required' => true));
     $this->addElement('text', 'feed_subtitle', array('label' => 'Feed Subtitle:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'feed_link', array('label' => 'Feed Link:', 'filters' => array('StringTrim'), 'required' => true));
     $this->addElement('text', 'feed_author_name', array('label' => 'Feed Author Name:', 'filters' => array('StringTrim')));
     $this->addDisplayGroup(array('feed_title', 'feed_subtitle', 'feed_link', 'feed_author_name'), 'feed_default_values', array('legend' => 'Default Feed Values', 'decorators' => array('FormElements', 'Fieldset')));
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:14,代码来源:SynacorHboProfileConfiguration.php

示例11: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('AVN Provider Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_title');
     $element->setLabel('Feed title:');
     $element->addValidator(new Zend_Validate_StringLength(0, 128));
     $this->addElement($element);
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_title', 'feed_link', 'feed_description'), 'feed', array('legend' => 'Feed Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:17,代码来源:AvnProfileConfiguration.php

示例12: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addElement('text', 'channel_title', array('label' => 'Channel title:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_link', array('label' => 'Channel link:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_description', array('label' => 'Channel description:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_language', array('label' => 'Channel language:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_copyright', array('label' => 'Channel copyright:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_image_title', array('label' => 'Channel image title:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_image_url', array('label' => 'Channel image url:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_image_link', array('label' => 'Channel image link:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'item_media_rating', array('label' => 'Item media rating:', 'filters' => array('StringTrim')));
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:18,代码来源:NdnProfileConfiguration.php

示例13: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription('');
     $this->loadDefaultDecorators();
     $this->addDecorator('Description', array('placement' => 'prepend'));
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('At&t Uverse Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('text', 'channel_title', array('label' => 'Channel Title:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_host', array('label' => 'FTP Host:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_username', array('label' => 'FTP user name:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_password', array('label' => 'FTP password:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_path', array('label' => 'FTP Path:', 'filters' => array('StringTrim')));
     // Feed URL
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addMetadataForm();
 }
开发者ID:DBezemer,项目名称:server,代码行数:22,代码来源:AttUverseProfileConfiguration.php

示例14: formElement

 public static function formElement()
 {
     $request = Zend_Controller_Front::getInstance()->getRequest();
     $config = self::$_registry->get("config");
     $hidden = new Zend_Form_Element_Hidden(self::hash_name, array("required" => true, 'filters' => array('MagicCookies'), 'validators' => array(array('validator' => 'MagicCookies', 'options' => array("allowed_referer_hosts" => array($config['webhost']))))));
     $hidden->clearDecorators();
     //see bug http://framework.zend.com/issues/browse/ZF-8449
     $hidden->setAttrib("id", "hash" . self::$_hashQuantity);
     self::$_hashQuantity += 1;
     $hidden->setValue(self::getLast(true));
     $hidden->setDecorators(array('ViewHelper', 'Errors', array('HtmlTag', array('tag' => 'dd'))));
     return $hidden;
 }
开发者ID:henvic,项目名称:MediaLab,代码行数:13,代码来源:MagicCookies.php

示例15: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Comcast MRSS Provider Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_title');
     $element->setLabel('Feed title:');
     $element->setRequired(true);
     $element->addValidator(new Zend_Validate_StringLength(0, 38));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_link');
     $element->setLabel('Feed link:');
     $element->addValidator(new Zend_Validate_StringLength(0, 80));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_description');
     $element->setLabel('Feed description:');
     $element->setRequired(true);
     $element->addValidator(new Zend_Validate_StringLength(0, 128));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_last_build_date');
     $element->setLabel('Feed last build date:');
     $element->setRequired(true);
     $date = new DateTime('now', new DateTimeZone('UTC'));
     $element->setValue(str_replace('+0000', 'Z', $date->format(DateTime::ISO8601)));
     // comcast used Z for UTC timezone in their example (2008-04-11T12:30:00Z)
     $this->addElement($element);
     $this->addElement('select', 'c_platform_tv_series_field', array('label' => 'cPlatform TV Series Field:'));
     $this->addElement('textarea', 'cplatform_xml', array('label' => 'cPlatform TV Series XML', 'rows' => 8));
     $this->addMetadataFieldsAsValues('c_platform_tv_series_field');
     $this->addDisplayGroup(array('feed_title', 'feed_link', 'feed_description', 'feed_last_build_date', 'cplatform_xml', 'c_platform_tv_series_field'), 'feed', array('legend' => 'Feed Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:GElkayam,项目名称:server,代码行数:37,代码来源:ComcastMrssProfileConfiguration.php


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