コード例 #1
0
 /**
  * Construct the query string URI.
  *
  * @access private
  */
 private function __construct()
 {
     $this->_sUri = (new HttpRequest())->requestUri();
     /*** We remove the latest slash in order to avoid taking a wrong fragment URL ***/
     if (substr($this->_sUri, -1) === PH7_SH) {
         $this->_sUri = substr($this->_sUri, 0, -1);
     }
     /*** Here, we put the string into array ***/
     self::$_aFragments = explode(PH7_SH, $this->_sUri);
 }
コード例 #2
0
ファイル: Uri.class.php プロジェクト: joswilson/NotJustOK
 /**
  * Construct the query string URI.
  *
  * @access private
  */
 private function __construct()
 {
     $this->_sUri = $_SERVER['QUERY_STRING'];
     /*** We remove the last slash to avoid taking a new fragment url empty ***/
     if (substr($this->_sUri, -1) === PH7_SH) {
         $this->_sUri = substr($this->_sUri, 0, -1);
     }
     /*** Here, we put the string into array ***/
     self::$_aFragments = explode(PH7_SH, $this->_sUri);
 }