PHP 클래스 Arrilot\Widgets\Factories\AbstractWidgetFactory

파일 보기 프로젝트 열기: arrilot/laravel-widgets 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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).

보호된 프로퍼티들

프로퍼티 타입 설명
$javascriptFactory JavascriptFactory Another factory that produces some javascript.
$widget Arrilot\Widgets\AbstractWidget Widget object to work with.
$widgetConfig array Widget configuration array.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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.

메소드 상세

__call() 공개 메소드

Magic method that catches all widget calls.
public __call ( string $widgetName, array $params = [] ) : mixed
$widgetName string
$params array
리턴 mixed

__construct() 공개 메소드

Constructor.
public __construct ( Arrilot\Widgets\Contracts\ApplicationWrapperContract $app )
$app Arrilot\Widgets\Contracts\ApplicationWrapperContract

decryptWidgetParams() 공개 메소드

Decrypt widget params that were transported via HTTP.
public decryptWidgetParams ( string $params ) : array
$params string
리턴 array

encryptWidgetParams() 공개 메소드

Encrypt widget params to be transported via HTTP.
public encryptWidgetParams ( array $params ) : string
$params array
리턴 string

instantiateWidget() 보호된 메소드

Set class properties and instantiate a widget object.
protected instantiateWidget ( array $params = [] )
$params array

parseFullWidgetNameFromString() 보호된 메소드

Convert stuff like 'profile.feedWidget' to 'Profile\FeedWidget'.
protected parseFullWidgetNameFromString ( $widgetName ) : string
$widgetName
리턴 string

wrapContentInContainer() 보호된 메소드

Wrap the given content in a container if it's not an ajax call.
protected wrapContentInContainer ( $content ) : string
$content
리턴 string

프로퍼티 상세

$app 공개적으로 프로퍼티

Laravel application wrapper for better testability.
public ApplicationWrapperContract; $app
리턴 ApplicationWrapperContract;

$javascriptFactory 보호되어 있는 프로퍼티

Another factory that produces some javascript.
protected JavascriptFactory,Arrilot\Widgets\Factories $javascriptFactory
리턴 JavascriptFactory

$skipWidgetContainer 공개적으로 정적으로 프로퍼티

The flag for not wrapping content in a special container.
public static bool $skipWidgetContainer
리턴 boolean

$widget 보호되어 있는 프로퍼티

Widget object to work with.
protected AbstractWidget,Arrilot\Widgets $widget
리턴 Arrilot\Widgets\AbstractWidget

$widgetConfig 보호되어 있는 프로퍼티

Widget configuration array.
protected array $widgetConfig
리턴 array

$widgetFullParams 공개적으로 프로퍼티

Array of widget parameters including the first one (config).
public array $widgetFullParams
리턴 array

$widgetName 공개적으로 프로퍼티

The name of the widget being called.
public string $widgetName
리턴 string

$widgetParams 공개적으로 프로퍼티

Array of widget parameters excluding the first one (config).
public array $widgetParams
리턴 array