PHP 클래스 System\Uri

파일 보기 프로젝트 열기: rwarasaurus/nano 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$current string The current uri

공개 메소드들

메소드 설명
current ( ) : string Get the current uri string
full ( $uri, $secure = null ) : string Get full uri relative to the application
secure ( $uri ) : string Get full secure uri relative to the application
to ( $uri ) : string Get a path relative to the application

비공개 메소드들

메소드 설명
detect ( ) : string Try and detect the current uri
format ( $uri, $server ) : string Format the uri string remove any malicious characters and relative paths
remove ( $value, $uri ) : string Remove a value from the start of a string in this case the passed uri string
remove_relative_uri ( $uri ) : string Remove the relative path from the uri set in the application config
remove_script_name ( $uri, $server ) : string Remove the SCRIPT_NAME from the uri path

메소드 상세

current() 공개 정적인 메소드

Get the current uri string
public static current ( ) : string
리턴 string

full() 공개 정적인 메소드

Get full uri relative to the application
public static full ( $uri, $secure = null ) : string
리턴 string

secure() 공개 정적인 메소드

Get full secure uri relative to the application
public static secure ( $uri ) : string
리턴 string

to() 공개 정적인 메소드

Get a path relative to the application
public static to ( $uri ) : string
리턴 string

프로퍼티 상세

$current 공개적으로 정적으로 프로퍼티

The current uri
public static string $current
리턴 string