function addContextButtonTo(&$buttons) { $contextHref = $this->getContextHref($this->getFootprintId()); if (!$contextHref) return; $qSep = strPos($contextHref, '?') ? '&' : '?'; $contextHref = $contextHref. $qSep. 'pntScd=u&pntRef=' . $this->controller->converter->urlEncode($this->getFootprintId()); $contextHref = $this->getConverter()->toJsLiteral($contextHref, "'"); $buttons[]=$this->getButton('Context', "document.location.href=$contextHref;"); } |