function recursiveRender(){
$this->add('Text')->set('test');
return parent::recursiveRender(); // will render Text also
}
When cut_object is specified in the GET arguments, then output
of HTML would be limited to object with matching $name or $short_name.
This method will be called instead of default render() and it will
stop rendering process and output object's HTML once it finds
a suitable object. Exception_StopRender is used to terminate
rendering process and bubble up to the APP. This exception is
not an error.
public recursiveRender ( ) |
function recursiveRender() { if (isset($_GET['cut_page']) && !isset($_GET['cut_object']) && !isset($_GET['cut_region'])) { $_GET['cut_object'] = $this->short_name; } if ($this->title && $this->owner instanceof ApiFrontend) { $this->owner->template->trySet('page_title', $this->title); } parent::recursiveRender(); }
function recursiveRender() { if (isset($_GET['cut_page']) && !isset($_GET['cut_object']) && !isset($_GET['cut_region'])) { $_GET['cut_object'] = $this->short_name; } parent::recursiveRender(); }