本文整理汇总了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'];
}
示例2: saveBack
/** {@inheritdoc} */
public function saveBack(Zend_Form_SubForm $form)
{
$values = $form->getValues(true);
$this->content = $values['content'];
}
示例3: saveBack
/** {@inheritdoc} */
public function saveBack(Zend_Form_SubForm $form)
{
$values = $form->getValues(true);
$this->direction = $values['direction'];
$this->rootPageId = $values['root'];
}
示例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);
}
}
示例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;
}
示例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'];
}
示例7: saveBack
/** {@inheritdoc} */
public function saveBack(Zend_Form_SubForm $form)
{
$values = $form->getValues(true);
$this->images = $values;
}
示例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'];
}
示例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'];
}
示例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'];
}
}
示例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;
}
示例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'];
}