Property | Type | Description | |
---|---|---|---|
$ajaxLink | string | Ajax link where widget can grab content. | |
$widgetFactory | Widget factory object. |
Method | Description | |
---|---|---|
__construct ( |
||
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. |
Method | Description | |
---|---|---|
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. |
public __construct ( |
||
$widgetFactory |
protected constructAjaxCall ( ) : string | ||
return | string |
protected constructJqueryAjaxCall ( string $url ) : string | ||
$url | string | |
return | string |
protected constructNativeJsAjaxCall ( string $url ) : string | ||
$url | string | |
return | string |
public getContainerId ( ) : string | ||
return | string |
protected string $ajaxLink | ||
return | string |