PHP Class skeeks\cms\helpers\UrlHelper

Inheritance: extends yii\helpers\BaseUrl, use trait skeeks\sx\traits\Entity
Mostrar archivo Open project: skeeks-cms/cms Class Usage Examples

Public Properties

Property Type Description
$currentUrl null | UrlHelper

Protected Properties

Property Type Description
$_absolute
$_route

Public Methods

Method Description
__construct ( $route, array $data = [] )
construct ( $route, array $data = [] ) : static
constructCurrent ( ) : static
createAbsoluteUrl ( ) : string
createUrl ( ) : string
disableAbsolute ( )
disableAdmin ( )
enableAbsolute ( ) Включить абсолютный адрес
enableAdmin ( ) Это урл админки.
enableAjaxValidateForm ( ) Добавить параметры, указывающие что запрос на валидацию данных формы.
getCurrent ( ) : static
getRef ( ) : null | string
getSystem ( null | string $key = null, null $default = null ) : array | mixed Получить системный параметр
isAdmin ( ) : boolean
issetSystemParam ( $key ) : boolean
normalizeCurrentRoute ( )
setCurrentRef ( )
setRef ( $ref )
setRoute ( $route )
setSystem ( $systemData = [] )
setSystemParam ( string $key, $value = '' )
toArray ( ) : array
toString ( )

Method Details

__construct() public method

public __construct ( $route, array $data = [] )
$route
$data array

construct() public static method

public static construct ( $route, array $data = [] ) : static
$route
$data array
return static

constructCurrent() public static method

public static constructCurrent ( ) : static
return static

createAbsoluteUrl() public method

public createAbsoluteUrl ( ) : string
return string

createUrl() public method

public createUrl ( ) : string
return string

disableAbsolute() public method

public disableAbsolute ( )

disableAdmin() public method

public disableAdmin ( )

enableAbsolute() public method

Включить абсолютный адрес
public enableAbsolute ( )

enableAdmin() public method

Это урл админки.
public enableAdmin ( )

enableAjaxValidateForm() public method

Добавить параметры, указывающие что запрос на валидацию данных формы.

getCurrent() public static method

public static getCurrent ( ) : static
return static

getRef() public method

public getRef ( ) : null | string
return null | string

getSystem() public method

Получить системный параметр
public getSystem ( null | string $key = null, null $default = null ) : array | mixed
$key null | string
$default null
return array | mixed

isAdmin() public method

public isAdmin ( ) : boolean
return boolean

issetSystemParam() public method

public issetSystemParam ( $key ) : boolean
$key
return boolean

normalizeCurrentRoute() public method

setCurrentRef() public method

public setCurrentRef ( )

setRef() public method

public setRef ( $ref )
$ref

setRoute() public method

public setRoute ( $route )
$route

setSystem() public method

public setSystem ( $systemData = [] )
$systemData

setSystemParam() public method

public setSystemParam ( string $key, $value = '' )
$key string
$value

toArray() public method

public toArray ( ) : array
return array

toString() public method

public toString ( )

Property Details

$_absolute protected_oe property

protected $_absolute

$_route protected_oe property

protected $_route

$currentUrl public_oe static_oe property

public static null|UrlHelper,skeeks\cms\helpers $currentUrl
return null | UrlHelper