/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['cols'])) { $this->setCols((string) $elem['cols']); } if (isset($elem['rows'])) { $this->setRows((string) $elem['rows']); } $this->addToMemento(array("cols", "rows")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['size'])) { $this->setSize((string) $elem['size']); } if (isset($elem['max_file_size'])) { $this->setMaxFileSize((string) $elem['max_file_size']); } $this->addToMemento(array("size", 'max_file_size')); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['src'])) { $this->setSrc((string) $elem['src']); } if (isset($elem['type'])) { $this->setType((string) $elem['type']); } if (isset($elem['alt'])) { $this->setAlt((string) $elem['alt']); } $this->addToMemento(array("type", "src", "alt")); parent::parseParams($elem); }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['checked'])) { $this->setchecked((string) $elem['checked']); } if (isset($elem['text'])) { $this->setText((string) $elem['text']); } $this->addToMemento(array("checked", "text")); parent::parseParams($elem); $t = (string) $elem; if (!empty($t)) { $this->setText($t); } }
/** * Method description * * More detailed method description * @param array * @return void */ function parseParams(SimpleXMLElement $elem) { if (isset($elem['maxlength'])) { $this->setMaxLength((string) $elem['maxlength']); } if (isset($elem['size'])) { $this->setSize((string) $elem['size']); } if (isset($elem['type'])) { $this->setType((string) $elem['type']); } if (isset($elem['switch'])) { $this->setSwitch((string) $elem['switch']); } if (isset($elem['default'])) { $this->setDefault((string) $elem['default']); } $this->addToMemento(array("maxlength", "size", "type")); parent::parseParams($elem); }