public function style($style, $element) { parent::style($style, $element); $element->setAttribute('height', $style->getStyle('height')); $element->setAttribute('color', $style->getStyle('color')); $element->setAttribute('size', $style->getStyle('size')); $element->setImageAttribute('backgroundimage', $style->getStyle('backgroundimage')); }
public function getObjects(&$obj) { parent::getObjects($obj); $myImage =& $this->getImageObject('thumbnail'); if ($myImage) { $obj['images'][$myImage['id']] = $myImage; } }
public function &getObj() { if (!$this->myObj) { $obj =& parent::getObj(); $obj['type'] = 'checkbox'; $obj['value'] = $this->value; $obj['title'] = $this->getAttribute('title'); } return $this->myObj; }
public function &getObj() { if (!$this->myObj) { $obj =& parent::getObj(); $obj['type'] = 'picker'; $obj['title'] = $this->getAttribute('title'); $obj['pickertype'] = $this->pickerType; $obj['defaultValue'] = $this->getAttribute('defaultvalue'); } return $this->myObj; }
public function &getObj() { if (!$this->myObj) { $obj =& parent::getObj(); $obj['type'] = 'textbox'; $obj['title'] = $this->getAttribute('title'); $obj['defaultValue'] = $this->getAttribute('defaultvalue'); $obj['placeholder'] = $this->placeholder; $obj['autocomplete'] = $this->autocomplete; $obj['autocompleteVar'] = $this->autocompleteVar; } return $this->myObj; }
public function getNode($xml) { $node = parent::getNode($xml); if ($this->true) { $trueNode = $xml->createElement('true'); $node->appendChild($trueNode); $trueNode->appendChild($this->true->getNode($xml)); } if ($this->false) { $falseNode = $xml->createElement('false'); $node->appendChild($falseNode); $falseNode->appendChild($this->false->getNode($xml)); } return $node; $items = $xml->createElement('items'); $items->appendChild($node); return $items; }
public function getNode($xml) { $node = parent::getNode($xml); $items = new AppBuilderAPIElement('items'); $items = $items->getNode($xml); foreach ($this->options as $option) { $optionNode = new AppBuilderAPIElement('option'); foreach ($option as $k => $v) { $optionNode->setAttribute($k, $v); } $optionNode = $optionNode->getNode($xml); $items->appendChild($optionNode); } $node->appendChild($items); return $node; }