/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['href'])) { $this->setHREF((string) $elem['href']); } if (isset($elem['rel'])) { $this->setAttribute('rel', (string) $elem['rel']); } if (isset($elem['rev'])) { $this->setAttribute('rev', (string) $elem['rev']); } if (isset($elem['target'])) { $this->setAttribute('target', (string) $elem['target']); } if (isset($elem['text'])) { $this->setText((string) $elem['text']); } if (isset($elem['name'])) { $this->setName((string) $elem['name']); } if (isset($elem['subst_href'])) { $this->setSubstHREF((string) $elem['subst_href']); } if (isset($elem['clear_link'])) { $this->setClearLink((string) $elem['clear_link']); } $this->items = new MixedCollection($this->getId(), $elem); $this->addToMemento(array("href", "label", "rel", "rev", "target", "name", "subst_href")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['legend'])) { $this->setLegend((string) $elem['legend']); } $this->items = new WidgetCollection($this->getId(), $elem); $this->addToMemento(array("legend_text")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['text'])) { $this->setText((string) $elem['text']); } $this->items = new MixedCollection($this->getId(), $elem); $this->addToMemento(array("text")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['align'])) { $this->setAlign((string) $elem['align']); } if (isset($elem['valign'])) { $this->setValign((string) $elem['valign']); } $this->items = new WidgetCollection($this->getId(), $elem); $this->addToMemento(array("align", "valign")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['ul'])) { $this->setIsUl((string) $elem['ul']); $this->setIsOl(0); } if (isset($elem['ol'])) { $this->setIsOl((string) $elem['ol']); $this->setIsUl(0); } $this->items = new WidgetCollection($this->getId(), $elem); $this->addToMemento(array("is_ul", "is_ol")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['tab_title'])) { $this->setTabTitle((string) $elem['tab_title']); } if (isset($elem['href'])) { $this->setHref((string) $elem['href']); } if (isset($elem['selected'])) { $this->setSelected((string) $elem['selected']); } $this->items = new MixedCollection($this->getId(), $elem); $this->addToMemento(array("tab_title", "href", "selected")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array $params * @return void */ function parseParams(SimpleXMLElement $params) { $this->setTextStyle($params); if (!count($params->children())) { $this->setText((string) $params); } else { $this->items = new WidgetCollection($this->getId(), $params); } foreach ($this as $prop_name => $prop_val) { if (substr($prop_name, 0, 3) == "is_") { $a[] = $prop_name; } } $a[] = "text"; $this->addToMemento($a); parent::parseParams($params); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['max_res_per_page'])) { $this->setMaxResPerPage((string) $elem['max_res_per_page']); } if (($c_rpp = Controller::getInstance()->get->{$this->getId() . "_rpp"}) !== null) { $this->setResPerPage($c_rpp, true); } elseif (isset($elem['res_per_page'])) { $this->setResPerPage((string) $elem['res_per_page']); } if (isset($elem['links_per_page'])) { $this->setLinksPerPage((string) $elem['links_per_page']); } if (isset($elem['use_get'])) { $this->setUseGET((string) $elem['use_get']); } parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array $params * @return void */ function parseParams(SimpleXMLElement $elem) { foreach ($elem->attributes() as $attr => $attr_value) { if (substr($attr, 0, 2) !== "__") { $this->attributes[$attr] = (string) $attr_value; } } $this->real_tagname = (string) $elem['__real_tagname']; if (isset($elem['__use_cdata'])) { $this->use_cdata = (bool) (string) $elem['__use_cdata']; } if ($this->use_cdata) { $dom_node = dom_import_simplexml($elem); foreach ($dom_node->childNodes as $cn) { $this->text .= html_entity_decode($cn->ownerDocument->saveXML($cn), ENT_QUOTES, "UTF-8"); } } else { $this->items = new MixedCollection($this->getId(), $elem); } parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['align'])) { $this->setAlign((string) $elem['align']); } if (isset($elem['valign'])) { $this->setValign((string) $elem['valign']); } if (isset($elem['colspan'])) { $this->setColspan((string) $elem['colspan']); } if (isset($elem['rowspan'])) { $this->setRowspan((string) $elem['rowspan']); } if (isset($elem['width'])) { $this->setWidth((string) $elem['width']); } $this->items = new MixedCollection($this->getId(), $elem); $this->addToMemento(array("align", "valign", "colspan", "rowspan", "width")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['ruler'])) { $this->setRuler((string) $elem['ruler']); } if (isset($elem['count'])) { $this->setCount((string) $elem['count']); } if (isset($elem['if_empty'])) { $this->setIfEmpty((string) $elem['if_empty']); } if (isset($elem['even_class'])) { $this->setEvenClass((string) $elem['even_class']); } if (isset($elem['odd_class'])) { $this->setOddClass((string) $elem['odd_class']); } $this->items = new IterableCollection($this->getId(), $elem); $this->addToMemento(array("count")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['action'])) { $this->setAction((string) $elem['action']); } if (isset($elem['enctype'])) { $this->setEnctype((string) $elem['enctype']); } if (isset($elem['method'])) { $this->setMethod((string) $elem['method']); } if (isset($elem['no_check'])) { if ($this->id[0] == "_") { trigger_error("In order to use no_check set proper id for the form"); } else { $this->no_check = 0 + $elem['no_check']; } } $this->items = new WidgetCollection($this->getId(), $elem); $this->addToMemento(array("action", "enctype", "method")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { $this->tabs = new WidgetCollection($this->getId(), $elem); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['cellpadding'])) { $this->setCellpadding((string) $elem['cellpadding']); } if (isset($elem['cellspacing'])) { $this->setCellspacing((string) $elem['cellspacing']); } if (isset($elem['frame'])) { $this->setFrame((string) $elem['frame']); } if (isset($elem['rules'])) { $this->setRules((string) $elem['rules']); } if (isset($elem['border'])) { $this->setBorder((string) $elem['border']); } if (isset($elem['width'])) { $this->setWidth((string) $elem['width']); } if (isset($elem['summary'])) { $this->setSummary((string) $elem['summary']); } if (isset($elem['table_sorter'])) { $this->setTableSorter((string) $elem['table_sorter']); } if (isset($elem['odd'])) { $this->setOddClass((string) $elem['odd']); } if (isset($elem['even'])) { $this->setEvenClass((string) $elem['even']); } if (isset($elem['hover'])) { $this->setHoverClass((string) $elem['hover']); } $this->items = new WidgetCollection($this->getId(), $elem); $this->addToMemento(array("cellspacing", "cellpadding", "frame", "rules", "border", "width", "summary", "table_sorter", "odd_class", "even_class", "hover_class")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { $this->items = new MixedCollection($this->getId(), $elem); parent::parseParams($elem); }