Class ChartWidget
- CComponent
- CBaseController
- CWidget
- X2Widget
- SortableWidget
- ChartWidget
Package: application\components\sortableWidget
Located at x2engine/protected/components/sortableWidget/ChartWidget.php
public
|
|
public
array
|
#
getViewFileParams( )
Magic getter. Returns an array of parameters which should be passed to the
view file associated with this |
public static
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
protected
|
|
protected
array
|
|
protected
array
|
|
protected
|
#
getStartEndTimestamp( mixed $defaultStartTs, mixed $defaultEndTs )
Returns an array containing a start and end timestamp. If a date range cookie is set, the timestamps get generated. Otherwise start and end timestamp cookies are used. Specified default timestamps will be used when cookies are not set. |
__construct(),
ajaxRender(),
behaviors(),
getModule(),
renderFile(),
setModule()
|
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderInternal(),
widget()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
integer |
SECPERDAY
|
86400 |
|
integer |
SECPERWEEK
|
604800 |
PROFILE_WIDGET_PATH_ALIAS,
RECORD_VIEW_WIDGET_PATH_ALIAS
|
public
string
|
$template | '<div class="submenu-title-bar widget-title-bar">{widgetLabel}{chartSubtypeSelector}{closeButton}{minimizeButton}{settingsMenu}</div>{widgetContents}' |
#
A mixture of html and attributes inside curly braces. This gets used by renderWidget to render widget elements specified in child classes. As with X2GridView, each attribute inside curly braces should have a corresponding method called render<attribute_name>. |
public
string
|
$chartType |
|
#
the type of chart (e.g. 'eventsChart', 'usersChart') |
public
string
|
$viewFile | '_chartWidget' |
#
The name of the view file containing the widget contents |
protected
string
|
$containerClass | 'sortable-widget-container x2-layout-island sortable-chart-widget' |
#
CSS class to be added to the container element |
protected
array
|
$_translations |
|
#
translations to be passed along with $_JSSortableWidgetParams to the JS
Sortable |
$_module
|
$actionPrefix,
$skin
|
$module
|
$controller,
$id,
$owner,
$viewPath
|