Ejemplo n.º 1
0
 /**
  * Get form values
  */
 function getFormValues()
 {
     $values["type"] = $this->content_obj->getTabType();
     $values["content_width"] = $this->content_obj->getContentWidth();
     $values["content_height"] = $this->content_obj->getContentHeight();
     $values["align"] = $this->content_obj->getHorizontalAlign();
     $values["behavior"] = $this->content_obj->getBehavior();
     $this->form->setValuesByArray($values);
     if ($values["type"] == ilPCTabs::ACCORDION_VER) {
         $va = $this->form->getItemByPostVar("vaccord_templ");
         $v = "t:" . ilObjStyleSheet::_lookupTemplateIdByName($this->getStyleId(), $this->content_obj->getTemplate()) . ":" . $this->content_obj->getTemplate();
         $va->setValue($v);
     }
     if ($values["type"] == ilPCTabs::ACCORDION_HOR) {
         $ha = $this->form->getItemByPostVar("haccord_templ");
         $v = "t:" . ilObjStyleSheet::_lookupTemplateIdByName($this->getStyleId(), $this->content_obj->getTemplate()) . ":" . $this->content_obj->getTemplate();
         $ha->setValue($v);
     }
 }
Ejemplo n.º 2
0
 /**
  * Get properties form
  */
 function getPropertiesFormValues()
 {
     $values = array();
     $values["width"] = $this->content_obj->getWidth();
     $values["border"] = $this->content_obj->getBorder();
     $values["padding"] = $this->content_obj->getCellPadding();
     $values["spacing"] = $this->content_obj->getCellSpacing();
     $values["row_header"] = $this->content_obj->getHeaderRows();
     $values["row_footer"] = $this->content_obj->getFooterRows();
     $values["col_header"] = $this->content_obj->getHeaderCols();
     $values["col_footer"] = $this->content_obj->getFooterCols();
     if ($this->content_obj->getTemplate() != "") {
         $values["characteristic"] = "t:" . ilObjStyleSheet::_lookupTemplateIdByName($this->getStyleId(), $this->content_obj->getTemplate()) . ":" . $this->content_obj->getTemplate();
     } else {
         $values["characteristic"] = $this->content_obj->getClass();
     }
     $values["align"] = $this->content_obj->getHorizontalAlign();
     $values["caption"] = $this->content_obj->getCaption();
     $values["cap_align"] = $this->content_obj->getCaptionAlign();
     $values["language"] = $this->content_obj->getLanguage();
     $this->form->setValuesByArray($values);
     $ca = $this->form->getItemByPostVar("cap_align");
     $ca->setValue($this->content_obj->getCaptionAlign());
 }