本文整理汇总了PHP中Zend_Form_Element_Hidden::setIgnore方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Hidden::setIgnore方法的具体用法?PHP Zend_Form_Element_Hidden::setIgnore怎么用?PHP Zend_Form_Element_Hidden::setIgnore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Form_Element_Hidden
的用法示例。
在下文中一共展示了Zend_Form_Element_Hidden::setIgnore方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
$oSelectEmailAddress = new Zend_Form_Element_Text("user_email_address");
$oSelectEmailAddress->addValidator(new Zend_Validate_EmailAddress());
$oSelectEmailAddress->setLabel("Adres e-mail:");
$oSelectEmailAddress->setRequired(TRUE);
//$oSelectEmailAddress->addMultiOptions($this->_aEmailAddress);
$oSelectEmailAddress->setAttrib("class", "valid");
$this->addElement($oSelectEmailAddress);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "submit");
$oSubmit->setLabel("Przypomnij hasło");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/passwordremind.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例3: init
public function init()
{
$this->setName(strtolower(get_class()));
$this->setMethod("post");
$this->setAction("user/files/addfile");
$oFormName = new Zend_Form_Element_Hidden("form_name");
$oFormName->setValue(get_class());
$oFormName->setIgnore(FALSE)->removeDecorator("Label");
$this->addElement($oFormName);
$oOrderId = new Zend_Form_Element_Text("id");
$oOrderId->setLabel("Numer zamówienia:");
$oOrderId->addValidator(new Zend_Validate_Digits());
$oOrderId->setRequired(TRUE);
$this->addElement($oOrderId);
$oScannedFile = new Zend_Form_Element_File("files");
$oScannedFile->setLabel("Plik:");
$oScannedFile->setRequired(TRUE);
$this->addElement($oScannedFile);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("user");
$oViewScript->setViewScript("_forms/uploadscannedfile.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例4: 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);
$oEmailAddress = new Zend_Form_Element_Text("email_address");
$oEmailAddress->setLabel("Adres e-mail:")->setFilters($this->_aFilters);
$oEmailAddress->addValidator(new Zend_Validate_EmailAddress());
$oEmailAddress->setRequired(TRUE);
$oEmailAddress->setAttrib("class", "valid");
$this->addElement($oEmailAddress);
$oSubmit = new Zend_Form_Element_Submit("submit_send_notification_history");
$oSubmit->setLabel("Wyślij");
$this->addElement($oSubmit);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例5: 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);
$oAddressSelect = new Zend_Form_Element_Select("address_select");
$oAddressSelect->setLabel("Nazwa:");
$oAddressSelect->setRequired(FALSE);
$oAddressSelect->addMultiOptions($this->_aAllAddressName);
$this->addElement($oAddressSelect);
$oAddressAnswer = new Zend_Form_Element_Textarea("address_answer");
$oAddressAnswer->setLabel("Odpowiedź:")->setFilters($this->_aFilters);
$oAddressAnswer->setRequired(TRUE);
$oAddressAnswer->setAttrib("class", "valid");
$this->addElement($oAddressAnswer);
$oSubmit = new Zend_Form_Element_Submit("submit_add_address");
$oSubmit->setLabel("Dodaj");
$this->addElement($oSubmit);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例6: 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);
$oSearchedText = new Zend_Form_Element_Text("searched_text");
$oSearchedText->setLabel("Szukana fraza:");
$oSearchedText->setRequired(TRUE);
$oSearchedText->setFilters($this->_aFilters);
$oSearchedText->setAttrib("class", "valid");
$this->addElement($oSearchedText);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "submit");
$oSubmit->setLabel("Szukaj");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例7: 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);
$oFormSliderEditId = new Zend_Form_Element_Hidden("slider_edit_id");
$oFormSliderEditId->setValue(0);
$oFormSliderEditId->setIgnore(FALSE)->removeDecorator("Label");
$this->addElement($oFormSliderEditId);
$oSliderName = new Zend_Form_Element_Text("name");
$oSliderName->setLabel("Nazwa slidera:");
$oSliderName->addValidator(new Zend_Validate_StringLength(array("min" => 3, "max" => 45)));
$oSliderName->setRequired(TRUE);
$oSliderName->setAttrib("class", "valid");
$this->addElement($oSliderName);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "submit");
$oSubmit->setLabel("Zapisz");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例8: 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);
$oBBarcode = new Zend_Form_Element_Text("bbarcode_id");
$oBBarcode->setLabel("Numer karty bibliotecznej:")->setFilters($this->_aFilters);
$oBBarcode->addValidator(new AppCms2_Validate_BBarcode());
$oBBarcode->addValidator(new Zend_Validate_Digits());
$oBBarcode->setRequired(TRUE);
$oBBarcode->setAttrib("class", "valid");
$this->addElement($oBBarcode);
$oSubmit = new Zend_Form_Element_Submit("submit_get_sybase_user_param");
$oSubmit->setLabel("Pobierz");
$this->addElement($oSubmit);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例9: 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);
$oRealEditMode = new Zend_Form_Element_Select("real_edit_mode");
$oRealEditMode->setLabel("Edycja w czasie rzeczywistym:");
$oRealEditMode->setRequired(TRUE);
$oRealEditMode->addMultiOptions(array("1" => "Włącz", "0" => "Wyłącz"));
$this->addElement($oRealEditMode);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "choose_site_submit");
$oSubmit->setLabel("Zapisz");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例10: 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);
$oTableName = new Zend_Form_Element_Multiselect("table_name");
$oTableName->addMultiOptions($this->_aTableName);
$oTableName->addValidator(new Zend_Validate_InArray(array_keys($this->_aTableName)));
$oTableName->setRequired(FALSE);
$oTableName->setLabel("Nazwa tabeli:");
$oTableName->setAttrib("class", "multiselect");
$this->addElement($oTableName);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "submit");
$oSubmit->setLabel("Zapisz");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例11: 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);
$oTranslation = new Zend_Form_Element_Select("translation");
$oTranslation->setLabel("Tłumaczenie:");
$oTranslation->setRequired(TRUE)->setAttrib("class", "valid");
$oTranslation->addMultiOptions($this->_aAllLang);
$this->addElement($oTranslation);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "submit");
$oSubmit->setLabel("Dalej");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/lang.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例12: 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);
$oSelectShow = new Zend_Form_Element_Select("show");
$oSelectShow->setLabel("Pokaż na stronie:");
$oSelectShow->setRequired(TRUE);
$oSelectShow->addMultiOptions(array(1 => "TAK", 0 => "NIE"));
$this->addElement($oSelectShow);
$oHref = new Zend_Form_Element_Text("href");
$oHref->setLabel("Adres strony Facebook:");
$oHref->setRequired(TRUE);
$this->addElement($oHref);
$oWidth = new Zend_Form_Element_Text("width");
$oWidth->setLabel("Szerokość:");
$oWidth->setRequired(TRUE);
$this->addElement($oWidth);
$oHeader = new Zend_Form_Element_Select("header");
$oHeader->setLabel("Pokaż pasek nagłówka:");
$oHeader->setRequired(TRUE);
$oHeader->addMultiOptions(array("true" => "TAK", "false" => "NIE"));
$this->addElement($oHeader);
$oStream = new Zend_Form_Element_Select("stream");
$oStream->setLabel("Pokaż strumień:");
$oStream->setRequired(TRUE);
$oStream->addMultiOptions(array("true" => "TAK", "false" => "NIE"));
$this->addElement($oStream);
$oShowFaces = new Zend_Form_Element_Select("show_faces");
$oShowFaces->setLabel("Pokaż zdjęcia użytkowników:");
$oShowFaces->addMultiOptions(array("true" => "TAK", "false" => "NIE"));
$this->addElement($oShowFaces);
$oColorScheme = new Zend_Form_Element_Select("color_scheme");
$oColorScheme->setLabel("Kolor:");
$oColorScheme->addMultiOptions(array("light" => "light", "dark" => "dark"));
$this->addElement($oColorScheme);
$oBorderColor = new Zend_Form_Element_Text("border_color");
$oBorderColor->setLabel("Kolor obramowania:");
$oBorderColor->setRequired(TRUE);
$this->addElement($oBorderColor);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "submit");
$oSubmit->setLabel("Zapisz");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例13: 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);
$oOrderEmailNotificationEditId = new Zend_Form_Element_Hidden("order_email_notification_edit_id");
$oOrderEmailNotificationEditId->setValue(0);
$oOrderEmailNotificationEditId->setIgnore(FALSE)->removeDecorator("Label");
$this->addElement($oOrderEmailNotificationEditId);
$oOrderStatusOldId = new Zend_Form_Element_Select("order_status_id_old");
$oOrderStatusOldId->setMultiOptions($this->_aAllOrderStatus);
$oOrderStatusOldId->setLabel("Status zamówienia - stary:");
$oOrderStatusOldId->setRequired(TRUE);
//$oOrderStatusOldId->setRequired(TRUE)->addValidator(new Zend_Validate_InArray($this->_aAllOrderStatus));
$oOrderStatusOldId->setAttrib("class", "valid");
$this->addElement($oOrderStatusOldId);
$oOrderStatusNewId = new Zend_Form_Element_Select("order_status_id_new");
$oOrderStatusNewId->setMultiOptions($this->_aAllOrderStatus);
$oOrderStatusNewId->setLabel("Status zamówienia - nowy:");
$oOrderStatusNewId->setRequired(TRUE);
//$oOrderStatusNewId->setRequired(TRUE)->addValidator(new Zend_Validate_InArray($this->_aAllOrderStatus));
$oOrderStatusNewId->setAttrib("class", "valid");
$this->addElement($oOrderStatusNewId);
$oNotificationSubject = new Zend_Form_Element_Textarea("notification_subject");
$oNotificationSubject->setLabel("Temat:");
$oNotificationSubject->setRequired(TRUE)->addValidator(new Zend_Validate_StringLength(array("max" => 160)));
$oNotificationSubject->setAttrib("class", "valid");
$this->addElement($oNotificationSubject);
$oNotification = new Zend_Form_Element_Textarea("notification");
$oNotification->setLabel("Treść:");
$oNotification->setRequired(FALSE);
$oNotification->setAttrib("class", "ckeditor");
$this->addElement($oNotification);
$oAppriseBorrower = new Zend_Form_Element_Checkbox("apprise_borrower");
$oAppriseBorrower->setLabel("Powiadom czytelnika:");
$this->addElement($oAppriseBorrower);
$oAppriseLibrarian = new Zend_Form_Element_Checkbox("apprise_librarian");
$oAppriseLibrarian->setLabel("Powiadom bibliotekarza:");
$this->addElement($oAppriseLibrarian);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "submit");
$oSubmit->setLabel("Zapisz");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例14: 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);
$oNotificationTypeId = new Zend_Form_Element_MultiCheckbox("notification_type_id");
$oNotificationTypeId->setLabel("Typ:");
$oNotificationTypeId->setRequired(FALSE);
$oNotificationTypeId->addMultiOptions($this->_aAllNotificationType);
$this->addElement($oNotificationTypeId);
$oNotificationStatusId = new Zend_Form_Element_MultiCheckbox("notification_status_id");
$oNotificationStatusId->setLabel("Status:");
$oNotificationStatusId->setRequired(FALSE);
$oNotificationStatusId->addMultiOptions($this->_aAllNotificationStatus);
$this->addElement($oNotificationStatusId);
$oNotificationPriorityId = new Zend_Form_Element_MultiCheckbox("notification_priority_id");
$oNotificationPriorityId->setLabel("Priorytet:");
$oNotificationPriorityId->setRequired(FALSE);
$oNotificationPriorityId->addMultiOptions($this->_aAllNotificationPriority);
$this->addElement($oNotificationPriorityId);
$oNotificationCategoryId = new Zend_Form_Element_Select("search_notification_category_id");
$oNotificationCategoryId->setLabel("Kategoria pytania:");
$oNotificationCategoryId->setRequired(FALSE);
$oNotificationCategoryId->addMultiOptions($this->_aAllNotificationCategory);
$this->addElement($oNotificationCategoryId);
$oUserId = new Zend_Form_Element_Select("search_notification_user_id");
$oUserId->setLabel("Konsultant:");
$oUserId->setRequired(FALSE);
$oUserId->addMultiOptions($this->_aAllUser);
$this->addElement($oUserId);
$oInitDate = new Zend_Form_Element_Text("init_date");
$oInitDate->setLabel("Data rozpoczęcia:");
$oInitDate->setRequired(FALSE);
$oInitDate->setFilters($this->_aFilters);
$this->addElement($oInitDate);
$oBlankNotificationUserId = new Zend_Form_Element_Checkbox("search_blank_notification_user_id");
$oBlankNotificationUserId->setLabel("Pokaż nieprzydzielone zgłoszenia:");
$this->addElement($oBlankNotificationUserId);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oSubmit = $this->createElement("submit", "search_notification");
$oSubmit->setLabel("Szukaj");
$this->addElement($oSubmit);
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}
示例15: 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);
$oNotificationTypeId = new Zend_Form_Element_Hidden("notification_type_id");
$oNotificationTypeId->setValue(0);
$oNotificationTypeId->setIgnore(FALSE)->removeDecorator("Label");
$this->addElement($oNotificationTypeId);
$oNotificationPriorityIdSelect = new Zend_Form_Element_Select("notification_priority_id");
$oNotificationPriorityIdSelect->setLabel("Priorytet:");
$oNotificationPriorityIdSelect->setRequired(TRUE);
$oNotificationPriorityIdSelect->addMultiOptions($this->_aAllNotificationPriority);
$this->addElement($oNotificationPriorityIdSelect);
$oNotificationStatusIdSelect = new Zend_Form_Element_Select("notification_status_id");
$oNotificationStatusIdSelect->setLabel("Status:");
$oNotificationStatusIdSelect->setRequired(TRUE);
$oNotificationStatusIdSelect->addMultiOptions($this->_aAllNotificationStatus);
$this->addElement($oNotificationStatusIdSelect);
$oNotificationCategoryIdSelect = new Zend_Form_Element_Select("notification_category_id");
$oNotificationCategoryIdSelect->setLabel("Kategoria pytania:");
$oNotificationCategoryIdSelect->setRequired(TRUE);
$oNotificationCategoryIdSelect->addMultiOptions($this->_aAllNotificationCategory);
$this->addElement($oNotificationCategoryIdSelect);
$oUserIdSelect = new Zend_Form_Element_Select("user_id");
$oUserIdSelect->setLabel("Konsultant:");
$oUserIdSelect->setRequired(TRUE);
$oUserIdSelect->addMultiOptions($this->_aAllUser);
$this->addElement($oUserIdSelect);
$oUserCategoryIdSelect = new Zend_Form_Element_Select("user_category_id");
$oUserCategoryIdSelect->setLabel("Kategoria użytkownika:");
$oUserCategoryIdSelect->setRequired(TRUE);
$oUserCategoryIdSelect->addMultiOptions($this->_aAllUserCategory)->setValue(10);
$this->addElement($oUserCategoryIdSelect);
$oSubmit = new Zend_Form_Element_Submit("submit_change_notification");
$oSubmit->setLabel("Zmień");
$this->addElement($oSubmit);
$this->addElement("hash", "csrf_token", array("ignore" => false, "timeout" => 7200));
$this->getElement("csrf_token")->removeDecorator("Label");
$oViewScript = new Zend_Form_Decorator_ViewScript();
$oViewScript->setViewModule("admin");
$oViewScript->setViewScript("_forms/_defaultform.phtml");
$this->clearDecorators();
$this->setDecorators(array(array($oViewScript)));
$oElements = $this->getElements();
foreach ($oElements as $oElement) {
$oElement->setFilters($this->_aFilters);
$oElement->removeDecorator("Errors");
}
}