function renderInnerOutput($context = array()) { $pre = ''; $post = ''; if ($this->getConfiguration('type') == 't') { if ($this->getOption('prepend')) { $pre = '<span class="formunit">' . $this->getOption('prepend') . '</span>'; } if ($this->getOption('append')) { $post = '<span class="formunit">' . $this->getOption('append') . '</span>'; } } return $pre . parent::renderInnerOutput($context) . $post; }
public function renderInnerOutput($context = array()) { $definition = Tracker_Definition::get($this->getOption('trackerId')); $field = $definition->getField($this->getOption('listFieldIdThere')); if ($field['type'] == 'e' || $field['type'] == 'r') { $item = $this->getItemData(); $item['ins_' . $this->getOption('listFieldIdThere')] = array($this->getValue()); $field['value'] = $this->getValue(); $handler = TikiLib::lib('trk')->get_field_handler($field, $item); $field = array_merge($field, $handler->getFieldData($item)); // get category field to build it's data arrays $handler = TikiLib::lib('trk')->get_field_handler($field, $item); return $handler->renderOutput($context); } else { return parent::renderInnerOutput($context); } }