Пример #1
0
 /** {@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);
     }
 }