public function &getObj() { if (!$this->myObj) { $obj =& parent::getObj(); $obj['type'] = 'select'; $obj['title'] = $this->getAttribute('title'); $obj['defaultValue'] = $this->getAttribute('defaultvalue'); $obj['options'] = array(); foreach ($this->options as $options) { $o = array('id' => AppBuilderAPIElement::id(), 'name' => $options['title'], 'value' => $options['value'], 'item' => $obj['id']); $obj['options'][] = $o; } } return $this->myObj; }