当前位置: 首页>>代码示例>>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;未经允许,请勿转载。