/** * Function to render inner object * * @param Application $renderer Renderer object * @return string HTML string */ protected function viewField($renderer) { return $renderer->view($this->fieldView)->set('field_' . $this->dbObject->id, 'fieldId')->set($this->value(), 'value')->output(); }
/** * Function to render class * * @param Application $renderer Renderer object * @param string $saveHandler Save controller name * @return string HTML string */ public function view($renderer, $saveHandler = 'save') { return $renderer->view($this->defaultView)->set('cssClass', $this->cssClass)->set('value', $this->value())->set('action', url_build(preg_replace('/(_\\d+)/', '', $renderer->id()), $saveHandler))->set('entity', $this->entity)->set('param', $this->param)->set('objectId', $this->dbObject->id)->set('view', $this->viewField($renderer))->output(); }