當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Form_SubForm::getValues方法代碼示例

本文整理匯總了PHP中Zend_Form_SubForm::getValues方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Form_SubForm::getValues方法的具體用法?PHP Zend_Form_SubForm::getValues怎麽用?PHP Zend_Form_SubForm::getValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Form_SubForm的用法示例。


在下文中一共展示了Zend_Form_SubForm::getValues方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: saveBack

 /** {@inheritdoc} */
 public function saveBack(\Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->source = $values['source'];
     $this->title = $values['title'];
     $this->description = $values['description'];
     $this->link = $values['link'];
 }
開發者ID:bombayworks,項目名稱:currycms,代碼行數:9,代碼來源:Image.php

示例2: saveBack

 /** {@inheritdoc} */
 public function saveBack(Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->content = $values['content'];
 }
開發者ID:varvanin,項目名稱:currycms,代碼行數:6,代碼來源:Text.php

示例3: saveBack

 /** {@inheritdoc} */
 public function saveBack(Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->direction = $values['direction'];
     $this->rootPageId = $values['root'];
 }
開發者ID:varvanin,項目名稱:currycms,代碼行數:7,代碼來源:Breadcrumb.php

示例4: saveBack

 /** {@inheritdoc} */
 public function saveBack(Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->flash = $values['embed']['flash'];
     $this->method = $values['embed']['method'];
     $this->width = $values['embed']['width'];
     $this->height = $values['embed']['height'];
     $this->target = $values['embed']['target'];
     $this->version = $values['embed']['version'];
     $this->expressInstall = $values['embed']['express_install'];
     $this->addToFlashvars = (array) $values['embed']['add_to_flashvars'];
     $this->alternativeContent = $values['embed']['alternative_content'];
     $this->attributes = self::filterEmpty($values['attributes']);
     $this->params = self::filterEmpty($values['params']);
     $this->flashvars = (array) $values['flashvars'];
     $this->className = $values['emodule']['class_name'];
     $this->template = $values['emodule']['template'];
     $this->moduleFlashvar = $values['emodule']['flashvar'];
     // Create module instance
     if ($this->className) {
         if (!$this->module instanceof $this->className) {
             $this->module = new $this->className();
         }
     } else {
         $this->module = null;
     }
     $subform = $form->getSubForm('submodule');
     if ($this->module && $subform) {
         $this->module->setModuleDataId(false);
         $this->module->saveBack($subform);
     }
 }
開發者ID:varvanin,項目名稱:currycms,代碼行數:33,代碼來源:Flash.php

示例5: subFormIsValid

 public function subFormIsValid(Zend_Form_SubForm $subForm, array $data)
 {
     $name = $subForm->getName();
     if ($subForm->isValid($data)) {
         $this->getSessionNamespace()->{$name} = $subForm->getValues();
         return true;
     }
     return false;
 }
開發者ID:swastikit,項目名稱:devotees,代碼行數:9,代碼來源:DevoteesController.php

示例6: saveBack

 /** {@inheritdoc} */
 public function saveBack(\Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->script = (array) $values['script'];
     $this->stylesheet = (array) $values['stylesheet'];
     $this->inlineScript = $values['inline_script']['source'];
 }
開發者ID:bombayworks,項目名稱:currycms,代碼行數:8,代碼來源:Includes.php

示例7: saveBack

 /** {@inheritdoc} */
 public function saveBack(Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->images = $values;
 }
開發者ID:varvanin,項目名稱:currycms,代碼行數:6,代碼來源:Images.php

示例8: saveBack

 /** {@inheritdoc} */
 public function saveBack(\Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->to = $values['to'];
     $this->from = $values['from'];
     $this->sender = $values['sender'];
     $this->subject = $values['subject'];
 }
開發者ID:bombayworks,項目名稱:currycms,代碼行數:9,代碼來源:SendForm.php

示例9: saveBack

 /** {@inheritdoc} */
 public function saveBack(Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->snippetLength = $values['snippet_length'];
     $this->onlyThisLanguage = $values['only_this_language'];
     $this->alwaysWildcard = $values['always_wildcard'];
 }
開發者ID:varvanin,項目名稱:currycms,代碼行數:8,代碼來源:Search.php

示例10: saveBack

 /** {@inheritdoc} */
 public function saveBack(\Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     if ($form->advanced->switch->isChecked()) {
         $this->editor = $values['advanced']['editor'];
     } else {
         $this->content = $values['content'];
         $this->allowTemplateSyntax = (bool) $values['advanced']['allow_template_syntax'];
     }
 }
開發者ID:bombayworks,項目名稱:currycms,代碼行數:11,代碼來源:Article.php

示例11: getValues

 /**
  * Przeciążenie związane z tym, że wszystkie formularze dziedziczą po Zend_SubForm
  *
  * @param bool $suppressArrayNotation
  * @return array
  */
 public function getValues($suppressArrayNotation = true)
 {
     $values = parent::getValues($suppressArrayNotation);
     $elements = parent::getElements();
     foreach ($elements as $key => $ele) {
         if ($ele instanceof Zend_Form_Element_Hash) {
             unset($values[$key]);
         }
     }
     return $values;
 }
開發者ID:knatorski,項目名稱:SMS,代碼行數:17,代碼來源:Abstract.php

示例12: saveBack

 /** {@inheritdoc} */
 public function saveBack(\Zend_Form_SubForm $form)
 {
     $values = $form->getValues(true);
     $this->pageId = $values['page_id'] ? $values['page_id'] : null;
     $this->depthOffset = $values['depth_offset'];
     $this->useParentPage = $values['use_parent_page'];
     $this->showHidden = $values['show_hidden'];
     $this->sortOrder = $values['sort_order'];
 }
開發者ID:bombayworks,項目名稱:currycms,代碼行數:10,代碼來源:Navigation.php


注:本文中的Zend_Form_SubForm::getValues方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。