PHP Class Arrilot\Widgets\Factories\WidgetFactory

Inheritance: extends AbstractWidgetFactory
Datei anzeigen Open project: arrilot/laravel-widgets Class Usage Examples

Public Methods

Method Description
run ( ) : mixed Run widget without magic method.

Protected Methods

Method Description
getCacheTime ( ) : boolean | float | integer Get widget cache time or false if it's not meant to be cached.
getContent ( ) : mixed Make call and get return widget content.
getContentFromCache ( $args ) : mixed Gets content from cache if it's turned on.
getReloadTimeout ( ) : boolean | float | integer Get widget reload timeout or false if it's not reloadable.

Method Details

getCacheTime() protected method

Get widget cache time or false if it's not meant to be cached.
protected getCacheTime ( ) : boolean | float | integer
return boolean | float | integer

getContent() protected method

Make call and get return widget content.
protected getContent ( ) : mixed
return mixed

getContentFromCache() protected method

Runs widget class otherwise.
protected getContentFromCache ( $args ) : mixed
$args
return mixed

getReloadTimeout() protected method

Get widget reload timeout or false if it's not reloadable.
protected getReloadTimeout ( ) : boolean | float | integer
return boolean | float | integer

run() public method

Run widget without magic method.
public run ( ) : mixed
return mixed