Example #1
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $attr = array();
     $content = !empty($this->text) ? $this->text : (isset($this->items) ? $this->items->generateAllHTML() : "");
     foreach ($this->attributes as $a_name => $a_val) {
         $attr[] = $a_name . '="' . str_replace("\"", "\\\"", $a_val) . '"';
     }
     $this->tpl->setParamsArray(array("attributes" => implode(" ", $attr), "real_tagname" => $this->real_tagname, "content" => $content));
     parent::assignVars();
 }
Example #2
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("action" => $this->getAction(), "enctype" => $this->getEnctype(), "method" => $this->getMethod(), "form_content" => $this->items->generateAllHTML(), "vc_rules" => !empty($this->vc_rules) ? implode(", ", $this->vc_rules) : null, "vc_messages" => !empty($this->vc_messages) ? Language::encodePair(implode(", ", $this->vc_messages)) : null, "signature" => $this->getMethod() != "post" ? null : $this->form_signature, "signature_name" => $this->getMethod() != "post" ? null : self::signature_name, "widget_id" => $this->getId()));
     parent::assignVars();
 }
Example #3
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("li_content" => $this->items->generateAllHTML()));
     parent::assignVars();
 }
Example #4
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("legend" => Language::encodePair($this->getLegend()), "fieldset_content" => $this->items->generateAllHTML()));
     parent::assignVars();
 }
Example #5
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParams(t(new TemplateParams())->set("content", $this->items->generateAllHTML()));
     parent::assignVars();
 }
Example #6
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("align" => isset($this->align) ? "align=\"" . $this->getAlign() . "\"" : "", "valign" => isset($this->valign) ? "valign=\"" . $this->getValign() . "\"" : "", "colspan" => isset($this->colspan) ? "colspan=\"" . $this->getColspan() . "\"" : "", "rowspan" => isset($this->rowspan) ? "rowspan=\"" . $this->getRowspan() . "\"" : "", "width" => isset($this->width) ? "width=\"" . $this->getWidth() . "\"" : "", "column_content" => $this->items->generateAllHTML()));
     parent::assignVars();
 }
Example #7
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("align" => isset($this->align) ? "align=\"" . $this->getAlign() . "\"" : "", "valign" => isset($this->valign) ? "valign=\"" . $this->getValign() . "\"" : "", "row_content" => $this->items->generateAllHTML(), "thead" => $this->thead));
     parent::assignVars();
 }
Example #8
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     if ($this->total_pages == 1) {
         $this->setVisible(0);
     }
     $items = array();
     for ($i = $this->begin; $i <= $this->end; $i++) {
         //for($i = $this->end; $i >= $this->begin; $i--)
         $items[$i] = array("title" => $i, "class" => $i == $this->current_page ? "class=\"current\"" : "", "link" => $this->makeLink($i));
     }
     $this->tpl->setParamsArray(array("items" => $items, "show_prev" => 0 + $this->show_prev, "show_next" => 0 + $this->show_next, "first_link" => $this->makeLink($this->current_page - 1), "last_link" => $this->makeLink($this->current_page + 1)));
     parent::assignVars();
 }
Example #9
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     if ($this->is_h) {
         $this->tpl->setParamsArray(array("heading" => $this->heading));
     }
     $this->tpl->setParamsArray(array('value' => StringProcessorFactory::create($this->getStringProcess())->process(Language::encodePair($this->text)), 'repeat_count' => $this->getRepeatCount()));
     parent::assignVars();
 }
Example #10
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     if (isset($this->text)) {
         $this->tpl->setParamsArray(array("text" => StringProcessorFactory::create($this->getStringProcess())->process(Language::encodePair($this->getText()))));
     } else {
         $this->tpl->setParamsArray(array("text" => Language::encodePair($this->items->generateAllHTML())));
     }
     parent::assignVars();
 }
Example #11
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $hrefs = array();
     $titles = array();
     $selected = -1;
     for ($i = 0, $c = $this->tabs->count(); $i < $c; $i++) {
         if ($this->tabs->getItem($i)->getHref()) {
             $hrefs[$i] = $this->tabs->getItem($i)->getHref();
         } else {
             $hrefs[$i] = "#" . $this->tabs->getItem($i)->getHTMLId();
         }
         $titles[$i] = Language::encodePair($this->tabs->getItem($i)->getTabTitle());
         if ($this->tabs->getItem($i)->getSelected()) {
             $selected = $i;
         }
     }
     $this->tpl->setParams(t(new TemplateParams())->set("href", $hrefs)->set("title", $titles)->set("tabs", $this->tabs->generateAllHTML())->set('selected', $selected));
     parent::assignVars();
 }
Example #12
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array("cellpadding" => isset($this->cellpadding) ? "cellpadding=\"" . $this->getCellpadding() . "\"" : "", "cellspacing" => isset($this->cellspacing) ? "cellspacing=\"" . $this->getCellspacing() . "\"" : "", "frame" => isset($this->frame) ? "frame=\"" . $this->getFrame() . "\"" : "", "rules" => isset($this->rules) ? "rules=\"" . $this->getRules() . "\"" : "", "border" => isset($this->border) ? "border=\"" . $this->getBorder() . "\"" : "", "width" => isset($this->width) ? "width=\"" . $this->getWidth() . "\"" : "", "summary" => isset($this->summary) ? "summary=\"" . $this->getSummary() . "\"" : "", "table_content" => $this->items->generateAllHTML(), "table_sorter" => $this->getTableSorter(), "odd_class" => $this->getOddClass(), "even_class" => $this->getEvenClass(), "hover_class" => $this->getHoverClass()));
     parent::assignVars();
 }
Example #13
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    void
  * @return   void
  */
 function assignVars()
 {
     $this->tpl->setParamsArray(array('href' => $this->getHREF(), 'name' => !empty($this->name) ? " name=\"" . $this->getName() . "\" " : '', "rev" => !empty($this->rev) ? ' rev="' . $this->rev . '" ' : '', "rel" => !empty($this->rel) ? ' rel="' . $this->rel . '" ' : '', "target" => !empty($this->target) ? ' target="' . $this->target . '" ' : '', "text" => Language::encodePair($this->items->generateAllHTML())));
     parent::assignVars();
 }