Class EventsChartProfileWidget
- CComponent
- CBaseController
- CWidget
- X2Widget
- SortableWidget
- ChartWidget
- EventsChartProfileWidget
Located at x2engine/protected/components/sortableWidget/profileWidgets/EventsChartProfileWidget.php
public static
|
|
public static
|
#
getChartData( mixed $startTimestamp, mixed $endTimestamp )
Retrieves all events between start and end timestamp. Query results are used to populate the activity feed chart. |
public static
|
#
getChartSettingsProvider( )
Returns a data provider containing chart settings records with the specified type |
public
string
|
#
getSetupScript( )
Instantiates a subclass of X2Chart, passing it a function which allows it to save widget settings. |
public
array
|
#
getViewFileParams( )
Magic getter. Returns an array of parameters which should be passed to the
view file associated with this |
public
|
|
protected
array
|
|
protected
|
#
getInitialChartData( )
Collect initial chart data so the client doesn't have to request it via ajax . Decreases time before chart render after page is loaded. |
getChartSetting(),
getChartSettings(),
getCss(),
getJSSortableWidgetParams(),
getStartEndTimestamp(),
renderChartSubtypeSelector()
|
__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()
|
SECPERDAY,
SECPERWEEK
|
PROFILE_WIDGET_PATH_ALIAS,
RECORD_VIEW_WIDGET_PATH_ALIAS
|
public
boolean
|
$canBeDeleted | true |
#
If true, the widget can be deleted by the user from the widget settings menu |
public
string
|
$defaultTitle | 'Events' |
|
public
boolean
|
$relabelingEnabled | true |
#
If true, the widget can be relabeled by the user from the widget settings menu |
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 | 'eventsChart' |
#
the type of chart (e.g. 'eventsChart', 'usersChart') |
$_translations,
$containerClass,
$viewFile
|
$_module
|
$actionPrefix,
$skin
|
$module
|
$controller,
$id,
$owner,
$viewPath
|