public function htmlBuildResult() { $this->pushResult('baseUrl' , eZINI::instance()->variable( 'SiteAccessSettings', 'BaseUrl' )); $this->pushResult('children' , ApplicationObject::fetchByParent($this->applicationObject()->id)); $this->pushResult('application' , $this->applicationObject()); }
private function buildResultFull() { $this->pushResult('application' , $this->_applicationFull); $this->pushResult('is_full' , true); // for anonymous users $ids = CountryAppsBar::fetchAppsBarApplicationIds(); $applications_anonymous = array(); foreach($ids as $id) { $applications_anonymous[] = (string)$id; } $this->pushResult('applications_anonymous', $applications_anonymous); // related application (children or brothers) $relatedApps = array(); if($this->_applicationFull->attribute('parent_id')) { $brother = ApplicationObject::fetchByParent($this->_applicationFull->attribute('parent_id'), $this->_applicationFull->attribute('id')); if($brother) { $relatedApps = $brother; } } else { $children = ApplicationObject::fetchByParent($this->_applicationFull->attribute('id')); if($children) { $relatedApps = $children; } } $this->pushResult('related_apps', $relatedApps); }