Property | Type | Description | |
---|---|---|---|
$app | ApplicationWrapperContract; | Laravel application wrapper for better testability. | |
$skipWidgetContainer | boolean | The flag for not wrapping content in a special container. | |
$widgetFullParams | array | Array of widget parameters including the first one (config). | |
$widgetName | string | The name of the widget being called. | |
$widgetParams | array | Array of widget parameters excluding the first one (config). |
Property | Type | Description | |
---|---|---|---|
$javascriptFactory | Another factory that produces some javascript. | ||
$widget | Widget object to work with. | ||
$widgetConfig | array | Widget configuration array. |
Method | Description | |
---|---|---|
__call ( string $widgetName, array $params = [] ) : mixed | Magic method that catches all widget calls. | |
__construct ( Arrilot\Widgets\Contracts\ApplicationWrapperContract $app ) | Constructor. | |
decryptWidgetParams ( string $params ) : array | Decrypt widget params that were transported via HTTP. | |
encryptWidgetParams ( array $params ) : string | Encrypt widget params to be transported via HTTP. |
Method | Description | |
---|---|---|
instantiateWidget ( array $params = [] ) | Set class properties and instantiate a widget object. | |
parseFullWidgetNameFromString ( $widgetName ) : string | Convert stuff like 'profile.feedWidget' to 'Profile\FeedWidget'. | |
wrapContentInContainer ( $content ) : string | Wrap the given content in a container if it's not an ajax call. |
public __construct ( Arrilot\Widgets\Contracts\ApplicationWrapperContract $app ) | ||
$app | Arrilot\Widgets\Contracts\ApplicationWrapperContract |
public decryptWidgetParams ( string $params ) : array | ||
$params | string | |
return | array |
public encryptWidgetParams ( array $params ) : string | ||
$params | array | |
return | string |
protected instantiateWidget ( array $params = [] ) | ||
$params | array |
protected parseFullWidgetNameFromString ( $widgetName ) : string | ||
$widgetName | ||
return | string |
protected wrapContentInContainer ( $content ) : string | ||
$content | ||
return | string |
public ApplicationWrapperContract; $app | ||
return | ApplicationWrapperContract; |
protected JavascriptFactory,Arrilot\Widgets\Factories $javascriptFactory | ||
return |
public static bool $skipWidgetContainer | ||
return | boolean |
protected AbstractWidget,Arrilot\Widgets $widget | ||
return |
protected array $widgetConfig | ||
return | array |
public array $widgetFullParams | ||
return | array |
public string $widgetName | ||
return | string |
public array $widgetParams | ||
return | array |