コード例 #1
0
ファイル: MappingA.php プロジェクト: bogdananton/vsc
 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;
 }
コード例 #2
0
ファイル: HttpRequestA.php プロジェクト: bogdananton/vsc
 /**
  * @return Url
  */
 public function getUriObject()
 {
     if (!Url::isValid($this->oUri)) {
         $this->oUri = UrlParserA::url($this->getUri());
     }
     return $this->oUri;
 }