PHP Class Arrilot\Widgets\AbstractWidget

Afficher le fichier Open project: arrilot/laravel-widgets Class Usage Examples

Méthodes publiques

Свойство Type Description
$cacheTime integer | float | boolean False means no caching at all.
$reloadTimeout integer | float | boolean False means no reload at all.

Protected Properties

Свойство Type Description
$config array The configuration array.

Méthodes publiques

Méthode Description
__construct ( array $config = [] ) Constructor.
cacheKey ( array $params = [] ) : string Cache key that is used if caching is enabled.
container ( ) : array Async and reloadable widgets are wrapped in container.
placeholder ( ) : string Placeholder for async widget.

Méthodes protégées

Méthode Description
addConfigDefaults ( array $defaults ) Add defaults to configuration array.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $config = [] )
$config array

addConfigDefaults() protected méthode

Add defaults to configuration array.
protected addConfigDefaults ( array $defaults )
$defaults array

cacheKey() public méthode

Cache key that is used if caching is enabled.
public cacheKey ( array $params = [] ) : string
$params array
Résultat string

container() public méthode

You can customize it by overriding this method.
public container ( ) : array
Résultat array

placeholder() public méthode

You can customize it by overwriting this method.
public placeholder ( ) : string
Résultat string

Property Details

$cacheTime public_oe property

False means no caching at all.
public int|float|bool $cacheTime
Résultat integer | float | boolean

$config protected_oe property

The configuration array.
protected array $config
Résultat array

$reloadTimeout public_oe property

False means no reload at all.
public int|float|bool $reloadTimeout
Résultat integer | float | boolean