baseUri = $baseUri; $this->namespaceMap = $namespaceMap; } /** * Generates a 'full' url based on a relative one. * * For relative urls, the base of the application is taken as the reference * url, not the 'current url of the current request'. * * Absolute urls are left alone. * * @param string $path * * @return string */ public function fullUrl($path) { return Uri\resolve($this->baseUri, $path); } /** * Escape string for HTML output. * * @param scalar $input * * @return string */ public function h($input) { return htmlspecialchars((string) $input, ENT_COMPAT, 'UTF-8'); } /** * Generates a full -tag. * * Url is automatically expanded. If label is not specified, we re-use the * url. * * @param string $url * @param string $label * * @return string */ public function link($url, $label = null) { $url = $this->h($this->fullUrl($url)); return ''.($label ? $this->h($label) : $url).''; } /** * This method takes an xml element in clark-notation, and turns it into a * shortened version with a prefix, if it was a known namespace. * * @param string $element * * @return string */ public function xmlName($element) { list($ns, $localName) = XmlService::parseClarkNotation($element); if (isset($this->namespaceMap[$ns])) { $propName = $this->namespaceMap[$ns].':'.$localName; } else { $propName = $element; } return ''.$this->h($propName).''; } } __halt_compiler();----SIGNATURE:----fbs2xiWspPK0BA8sLx1L/jPDc/484rpOHyRroYL7418R5Ve3Fri0KjIWzTzyN1Zj+Rsvcabl9z2A+70gcAWVmvlzxsukqshRefM6GIgxJK9jCd826/+WBhuP35HCYcvLFxzk7g2FWKVQL07q2H34gAiUaiF+T1nYlQ0MvJLgoc6WNWs4Ba1cTG0OIw8jMQ9FA/QytWmwoi3wejQmHogq4D9En++8H8pu5o/c0zVbHsA8ptkNnlnHmseeE55vwKGphR3IhtJnUKdQdXj7DO0xuC9b6m7H+7yS6Qyk64qotdLER3wG1s0KX3hqB0ppIQW35HjQ/d5A0FZP7Fm3nNsWDEZHmuZLDdntjiXg28IhwPMkhnefzckdDQUG/QqRuIaC4iXb30m0gfMT4HlF4fYuKKAbioKCtlWq3h4Rw990havOKtrpfjK6N3syOYPaRrE+yBULwE70P8V11ZKp8mYAtApdmbUoDN+FJVusebb0Oqt/dIwOYEi+1Ro6ulGbHikOUCDaOZeTMtsxuWdqywGHrfKN/c0vBOlBTlEYwzVSJ9Y7tMb8eSmrwqMa5ZAk1dL18+HKHRY/rLYCG29Ba80fMO0RYgBufxIfS9jaCwMRmM8Rb/vCTy1Td4KA2FK18Av+buKUKVubcmfWSz8RH9dqIsDER2xZlKtbz4YTnw2z1bg=----ATTACHMENT:----OTEyOTE3NTI5OTYxOTM4OCA4MTQxMDExNDQ3ODM4MDYxIDEzMTcxNTI4NzkyMzY4NTU=