Esempio n. 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();
 }
Esempio n. 2
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    array $data  
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setAction($data->get('action'));
     $this->setEnctype($data->get('enctype'));
     $this->setMethod($data->get('method'));
     parent::setData($data);
 }
Esempio n. 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();
 }
Esempio n. 4
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    array $data  
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setWidth($data->get('width'));
     $this->setAlign($data->get('align'));
     $this->setAlign($data->get('valign'));
     $this->setColspan($data->get('colspan'));
     $this->setRowspan($data->get('rowspan'));
     parent::setData($data);
 }
Esempio n. 5
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setLegend($data->getDef());
     $this->setLegend($data->get('legend'));
     parent::setData($data);
 }
Esempio n. 6
0
 function handleEvent(WidgetEvent $event)
 {
     if ($event->getName() == "ruler_settotal") {
         $this->setTotalCount($event->getParam('total_count'));
         $this->calc();
         Controller::getInstance()->getDispatcher()->notify(new WidgetEvent("roll_setlimits", $this->getId(), $event->getSrc(), array('from' => ($this->current_page - 1) * $this->res_per_page, "limit" => ($_r = $this->total_count - $this->current_page * $this->res_per_page) < 0 ? $this->res_per_page + $_r : $this->res_per_page)));
     } elseif ($event->getName() == "ruler_has_another_instance") {
         $this->setUseGET(1);
         $controller = Controller::getInstance();
         $controller->getDisplayModeParams()->predicted_from = $controller->getDisplayModeParams()->prdicted_limit = null;
     }
     parent::handleEvent($event);
 }
Esempio n. 7
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setCount($data->getDef());
     $this->setCount($data->get('count'));
     parent::setData($data);
 }
Esempio n. 8
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setAlign($data->get('align'));
     $this->setValign($data->get('valign'));
     parent::setData($data);
 }
Esempio n. 9
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setTabTitle($data->getDef());
     $this->setTabTitle($data->get('tab_title'));
     $this->setHref($data->get('href'));
     $this->setSelected($data->get('selected'));
     parent::setData($data);
 }
Esempio n. 10
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setTextStyle($data);
     $this->setText($data->getDef());
     $this->setText($data->get('text'));
     parent::setData($data);
 }
Esempio n. 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();
 }
Esempio n. 12
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     $this->setCellspacing($data->get('cellspacing'));
     $this->setCellpadding($data->get('cellpadding'));
     $this->setFrame($data->get('frame'));
     $this->setBorder($data->get('border'));
     $this->setRules($data->get('rules'));
     $this->setWidth($data->get('width'));
     $this->setSummary($data->get('summary'));
     $this->setOddClass($data->get('odd'));
     $this->setEvenClass($data->get('even'));
     $this->setHoverClass($data->get('even'));
     parent::setData($data);
 }
Esempio n. 13
0
 /**
  * Method description
  *
  * More detailed method description
  * @param    mixed $data
  * @return   void
  */
 function setData(WidgetResultSet $data)
 {
     parent::setData($data);
 }
Esempio n. 14
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();
 }