Ejemplo n.º 1
0
 /**
  * Input data processing called by handleCommand method.
  */
 public function fetchInputData(Zikula_Form_View $view, &$args)
 {
     parent::fetchInputData($view, $args);
     // get treated entity reference from persisted member var
     $entity = $this->entityRef;
     $entityData = array();
     $this->reassignRelatedObjects();
     $entityData['Parent'] = isset($selectedRelations['parent']) ? $selectedRelations['parent'] : $this->retrieveRelatedObjects('posting', 'muboardPosting_ParentItemList', false, 'POST');
     $entityData['Forum'] = isset($selectedRelations['forum']) ? $selectedRelations['forum'] : $this->retrieveRelatedObjects('forum', 'muboardForum_ForumItemList', false, 'POST');
     // assign fetched data
     if (count($entityData) > 0) {
         $entity->merge($entityData);
     }
     // save updated entity
     $this->entityRef = $entity;
 }
Ejemplo n.º 2
0
 /**
  * Input data processing called by handleCommand method.
  */
 public function fetchInputData(Zikula_Form_View $view, &$args)
 {
     parent::fetchInputData($view, $args);
     // get treated entity reference from persisted member var
     $entity = $this->entityRef;
     $entityData = array();
     $this->reassignRelatedObjects();
     // assign fetched data
     if (count($entityData) > 0) {
         $entity->merge($entityData);
     }
     // save updated entity
     $this->entityRef = $entity;
 }