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


PHP Zend_Form_Element_Textarea::setFilters方法代码示例

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


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

示例1: init

 public function init()
 {
     $this->setName(strtolower(get_class()));
     $this->setMethod("post");
     $oFormName = new Zend_Form_Element_Hidden("form_name");
     $oFormName->setValue(get_class());
     $oFormName->setIgnore(FALSE)->removeDecorator("Label");
     $this->addElement($oFormName);
     $oMessage = new Zend_Form_Element_Textarea("message");
     $oMessage->setFilters($this->_aFilters);
     $oMessage->setRequired(FALSE);
     $oMessage->removeDecorator("label");
     $this->addElement($oMessage);
     $oIsDing = new Zend_Form_Element_Checkbox("is_ding");
     $oIsDing->setLabel("Włącz dźwięk");
     $oIsDing->setValue(1);
     $this->addElement($oIsDing);
     $oSubmit = new Zend_Form_Element_Submit("send_message");
     $oSubmit->setLabel("Wyślij wiadomość");
     $this->addElement($oSubmit);
     $oViewScript = new Zend_Form_Decorator_ViewScript();
     $oViewScript->setViewModule("admin");
     $oViewScript->setViewScript("_forms/chat.phtml");
     $this->clearDecorators();
     $this->setDecorators(array(array($oViewScript)));
     $oElements = $this->getElements();
     foreach ($oElements as $oElement) {
         $oElement->setFilters($this->_aFilters);
         $oElement->removeDecorator("Errors");
     }
 }
开发者ID:lstaszak,项目名称:zf_zk_aleph,代码行数:31,代码来源:Chat.php

示例2: init

 public function init()
 {
     $this->setName(strtolower(get_class()));
     $this->setMethod("post");
     $oFormName = new Zend_Form_Element_Hidden("form_name");
     $oFormName->setValue(get_class());
     $oFormName->setIgnore(FALSE)->removeDecorator("Label");
     $this->addElement($oFormName);
     $oNotificationId = new Zend_Form_Element_Hidden("notification_id");
     $oNotificationId->setValue(0);
     $oNotificationId->setIgnore(FALSE)->removeDecorator("Label");
     $this->addElement($oNotificationId);
     $oHelpdeskSessionId = new Zend_Form_Element_Hidden("helpdesk_session_id");
     $oHelpdeskSessionId->setValue(0);
     $oHelpdeskSessionId->setIgnore(FALSE)->removeDecorator("Label");
     $this->addElement($oHelpdeskSessionId);
     $oMessage = new Zend_Form_Element_Textarea("message");
     $oMessage->setFilters($this->_aFilters);
     $oMessage->setRequired(FALSE);
     $oMessage->setAttrib("class", "ckeditor");
     $oMessage->setLabel("Wiadomość:");
     $this->addElement($oMessage);
     $this->addFileIdElement();
     $oAddFile = new Zend_Form_Element_Button("add_file_button");
     $oAddFile->setLabel("Dodaj załącznik");
     $oFormName->setIgnore(FALSE)->removeDecorator("Label");
     $this->addElement($oAddFile);
     $this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
     $this->getElement("csrf_token")->removeDecorator("Label");
     $oSubmit = new Zend_Form_Element_Submit("submit_send_message");
     $oSubmit->setLabel("Wyślij wiadomość");
     $this->addElement($oSubmit);
     $oViewScript = new Zend_Form_Decorator_ViewScript();
     $oViewScript->setViewModule("admin");
     $oViewScript->setViewScript("_forms/mailnotification.phtml");
     $this->clearDecorators();
     $this->setDecorators(array(array($oViewScript)));
     $oElements = $this->getElements();
     foreach ($oElements as $oElement) {
         $oElement->setFilters($this->_aFilters);
         $oElement->removeDecorator("Errors");
     }
 }
开发者ID:lstaszak,项目名称:zf_zk_aleph,代码行数:43,代码来源:HelpdeskNotification.php


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