PHP Class Microweber\Providers\UrlManager

Afficher le fichier Open project: microweber/microweber

Méthodes publiques

Свойство Type Description
$current_url_var
$repaced_urls
$site_url_var

Méthodes publiques

Méthode Description
api_link ( $str = '' )
current ( boolean $skip_ajax = false, boolean $no_get = false ) : string Returns the current url as a string.
download ( $requestUrl, $post_params = false, $save_to_file = false )
hostname ( )
is_ajax ( ) : true | false Return true if the current request is via ajax.
link_to_file ( $path )
param ( $param, $skip_ajax = false, $force_url = false )
param_set ( $param, $value = false, $url = false )
param_unset ( $param, $url = false )
params ( $skip_ajax = false )
redirect ( $url )
replace_site_url ( $arr )
replace_site_url_back ( $arr )
segment ( $num, boolean $page_url = false ) : string | false Returns single URL segment.
segments ( boolean $page_url = false ) : array | false Returns ALL URL segments as array.
set ( $url = false )
set_current ( $url = false )
site ( $add_string = false )
site_url ( $add_string = false )
slug ( $text )
string ( boolean $skip_ajax = false ) : string Returns the current url path, does not include the domain name.
strleft ( $s1, $s2 )
to_path ( $path )

Method Details

current() public méthode

Returns the current url as a string.
public current ( boolean $skip_ajax = false, boolean $no_get = false ) : string
$skip_ajax boolean If true it will try to get the referring url from ajax request
$no_get boolean If true it will remove the params after '?'
Résultat string the url string

download() public méthode

public download ( $requestUrl, $post_params = false, $save_to_file = false )

hostname() public méthode

public hostname ( )

is_ajax() public méthode

Return true if the current request is via ajax.
public is_ajax ( ) : true | false
Résultat true | false

param() public méthode

public param ( $param, $skip_ajax = false, $force_url = false )

param_set() public méthode

public param_set ( $param, $value = false, $url = false )

param_unset() public méthode

public param_unset ( $param, $url = false )

params() public méthode

public params ( $skip_ajax = false )

redirect() public méthode

public redirect ( $url )

replace_site_url() public méthode

public replace_site_url ( $arr )

replace_site_url_back() public méthode

public replace_site_url_back ( $arr )

segment() public méthode

Returns single URL segment.
public segment ( $num, boolean $page_url = false ) : string | false
$num The segment number
$page_url boolean If false it will use the current URL
Résultat string | false the url segment or false

segments() public méthode

Returns ALL URL segments as array.
public segments ( boolean $page_url = false ) : array | false
$page_url boolean If false it will use the current URL
Résultat array | false the url segments or false

set() public méthode

public set ( $url = false )

set_current() public méthode

public set_current ( $url = false )

site() public méthode

public site ( $add_string = false )

site_url() public méthode

public site_url ( $add_string = false )

slug() public méthode

public slug ( $text )

string() public méthode

Returns the current url path, does not include the domain name.
public string ( boolean $skip_ajax = false ) : string
$skip_ajax boolean If true it will try to get the referring url from ajax request
Résultat string the url string

strleft() public méthode

public strleft ( $s1, $s2 )

to_path() public méthode

public to_path ( $path )

Property Details

$current_url_var public_oe property

public $current_url_var

$repaced_urls public_oe property

public $repaced_urls

$site_url_var public_oe property

public $site_url_var