function display($var) { global $gbl, $sgbl, $login, $ghtml; if ($var === 'description') { if ($this->isSeparator()) { return "--Separator--"; } if (isset($this->{$var}) && $this->{$var}) { return $this->{$var}; } $url = base64_decode($this->url); $buttonpath = get_image_path() . "/button/"; $description = $ghtml->getActionDetails($url, null, $buttonpath, $path, $post, $file, $name, $image, $__t_identity); return "{$description['2']} for {$__t_identity}"; } return parent::display($var); }
function display($var) { $this->customer_name = $this->getParentO()->customer_name; if ($var === 'directory') { return "/home/{$this->customer_name}/ror/{$this->getParentname()}/{$this->appname}"; } if ($var === 'url') { if ($this->isOn('accessible_directly')) { return "http://{$this->getParentname()}/"; } else { return "http://{$this->getParentname()}/{$this->appname}/"; } } return parent::display($var); }