本文整理匯總了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");
}
}
示例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");
}
}