PHP Класс BcAppHelper

Наследование: extends Helper
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( View $View, $settings = [] ) : void Constructor.
afterLayout ( type $layoutFile ) afterLayout
dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed イベントを発火
url ( mixed $url = null, boolean $full = false, $sessionId = true ) : string Finds URL for specified action.
webroot ( string $file ) : string Checks if a file exists when theme is used, if no file is found default location is returned

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( View $View, $settings = [] ) : void
$View View
Результат void

afterLayout() публичный Метод

afterLayout
public afterLayout ( type $layoutFile )
$layoutFile type

dispatchEvent() публичный Метод

イベントを発火
public dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed
$name string
$params array
Результат mixed

url() публичный Метод

Returns an URL pointing to a combination of controller and action. Param $url can be: + Empty - the method will find adress to actuall controller/action. + '/' - the method will find base URL of application. + A combination of controller/action - the method will find url for it.
public url ( mixed $url = null, boolean $full = false, $sessionId = true ) : string
$url mixed Cake-relative URL, like "/products/edit/92" or "/presidents/elect/4" or an array specifying any of the following: 'controller', 'action', and/or 'plugin', in addition to named arguments (keyed array elements), and standard URL arguments (indexed array elements)
$full boolean If true, the full base URL will be prepended to the result
Результат string Full translated URL with base path.

webroot() публичный Метод

PENDING Core Hack
public webroot ( string $file ) : string
$file string
Результат string $webPath web path to file.