PHP 클래스 Arrilot\Widgets\Factories\JavascriptFactory

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

보호된 프로퍼티들

프로퍼티 타입 설명
$ajaxLink string Ajax link where widget can grab content.
$widgetFactory AbstractWidgetFactory Widget factory object.

공개 메소드들

메소드 설명
__construct ( AbstractWidgetFactory $widgetFactory )
getContainerId ( ) : string Get the current widget container id.
getLoader ( ) : string Construct javascript code to load the widget.
getReloader ( float | integer $timeout ) : string Construct javascript code to reload the widget.

보호된 메소드들

메소드 설명
constructAjaxCall ( ) : string Construct ajax call for loaders.
constructJqueryAjaxCall ( string $url ) : string Construct ajax call with jquery.
constructNativeJsAjaxCall ( string $url ) : string Construct ajax call without jquery.
useJquery ( ) : boolean Determine what to use - jquery or native js.

메소드 상세

__construct() 공개 메소드

public __construct ( AbstractWidgetFactory $widgetFactory )
$widgetFactory AbstractWidgetFactory

constructAjaxCall() 보호된 메소드

Construct ajax call for loaders.
protected constructAjaxCall ( ) : string
리턴 string

constructJqueryAjaxCall() 보호된 메소드

Construct ajax call with jquery.
protected constructJqueryAjaxCall ( string $url ) : string
$url string
리턴 string

constructNativeJsAjaxCall() 보호된 메소드

Construct ajax call without jquery.
protected constructNativeJsAjaxCall ( string $url ) : string
$url string
리턴 string

getContainerId() 공개 메소드

Get the current widget container id.
public getContainerId ( ) : string
리턴 string

getLoader() 공개 메소드

Construct javascript code to load the widget.
public getLoader ( ) : string
리턴 string

getReloader() 공개 메소드

Construct javascript code to reload the widget.
public getReloader ( float | integer $timeout ) : string
$timeout float | integer
리턴 string

useJquery() 보호된 메소드

Determine what to use - jquery or native js.
protected useJquery ( ) : boolean
리턴 boolean

프로퍼티 상세

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

Widget factory object.
protected AbstractWidgetFactory,Arrilot\Widgets\Factories $widgetFactory
리턴 AbstractWidgetFactory