PHP Class ChosenHelper

Author: Luke Wilkins ([email protected])
Afficher le fichier Open project: paulredmond/chosen-cakephp

Méthodes publiques

Свойство Type Description
$helpers
$settings Settings configured Configure class, ie. Configure::write('Chosen.asset_base', '/path'); take precedence over settings configured through Controller::$helpers property.

Méthodes publiques

Méthode Description
__construct ( View $view, $settings = [] )
afterRender ( $viewFile )
getDebug ( )
getLoadStatus ( )
getSetting ( $setting )
getSettings ( )
isSupportedFramework ( $val ) : boolean Test if a JS framework is supported by this helper.
loadScripts ( )
select ( $name, $options = [], $attributes = [] ) Chosen select element.

Méthodes protégées

Méthode Description
getElement ( $element ) : string Gets the Plugin's element file based on JS framework being used.

Method Details

__construct() public méthode

public __construct ( View $view, $settings = [] )
$view View

afterRender() public méthode

public afterRender ( $viewFile )

getDebug() public méthode

public getDebug ( )

getElement() protected méthode

Gets the Plugin's element file based on JS framework being used.
protected getElement ( $element ) : string
$element string Name of the plugin element to use.
Résultat string rendered javascript block based on the JS framework element.

getLoadStatus() public méthode

public getLoadStatus ( )

getSetting() public méthode

public getSetting ( $setting )

getSettings() public méthode

public getSettings ( )

isSupportedFramework() public méthode

Test if a JS framework is supported by this helper.
public isSupportedFramework ( $val ) : boolean
$val The 'framework' setting must use a supported framework.
Résultat boolean

loadScripts() public méthode

public loadScripts ( )

select() public méthode

Chosen select element.
public select ( $name, $options = [], $attributes = [] )

Property Details

$helpers public_oe property

public $helpers

$settings public_oe property

Settings configured Configure class, ie. Configure::write('Chosen.asset_base', '/path'); take precedence over settings configured through Controller::$helpers property.
public $settings