Class UsersChartProfileWidget
- CComponent
- CBaseController
- CWidget
- X2Widget
- SortableWidget
- ChartWidget
- UsersChartProfileWidget
Located at x2engine/protected/components/sortableWidget/profileWidgets/UsersChartProfileWidget.php
public static
|
|
public static
|
#
getChartSettingsProvider( mixed $chartType )
Returns a data provider containing chart settings records with the specified type |
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
string
|
#
getSetupScript( )
Instantiates a subclass of X2Chart, passing it a function which allows it to save widget settings. |
public
array
|
|
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
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 | 'usersChart' |
#
the type of chart (e.g. 'eventsChart', 'usersChart') |
public
string
|
$defaultTitle | 'Users Summary' |
$_translations,
$containerClass,
$viewFile
|
$_module
|
$actionPrefix,
$skin
|
$module
|
$controller,
$id,
$owner,
$viewPath
|