Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 /**
  * @return Url
  */
 public function getUriObject()
 {
     if (!Url::isValid($this->oUri)) {
         $this->oUri = UrlParserA::url($this->getUri());
     }
     return $this->oUri;
 }