private function getResourcePath($sPath) { if (is_file($this->getModulePath() . $sPath)) { $sPath = $this->getModulePath() . $sPath; } $oUrl = UrlParserA::url($sPath); if ($oUrl->isLocal()) { // I had a bad habit of correcting external URL's $sPath = $oUrl->getPath(); } return $sPath; }
/** * @return Url */ public function getUriObject() { if (!Url::isValid($this->oUri)) { $this->oUri = UrlParserA::url($this->getUri()); } return $this->oUri; }