modules/Emails/Dashlets/MyEmailsDashlet/MyEmailsDashlet.php
\MyEmailsDashlet
Generic Dashlet class
- Parent(s)
- \DashletGeneric < \Dashlet
Properties
int
$autoRefresh= '"0"'
Time period in minutes to refresh the dashlet (0 for never) Do not refresh if $isRefreshable is set to false
Inherited from: \Dashlet::$$autoRefresh\DashletGeneric::$$autoRefreshTo support auto refresh all refreshable dashlets that override process() must call processAutoRefresh()
"0"
Details- Type
- int
- Inherited_from
- \Dashlet::$$autoRefresh
- Inherited_from
- \DashletGeneric::$$autoRefresh
string
$configureSS= ''
smarty object for the generic configuration template
Inherited from: \DashletGeneric::$$configureSS- Type
- string
- Inherited_from
- \DashletGeneric::$$configureSS
string
$configureTpl= ''include/Dashlets/DashletGenericConfigure.tpl''
location of smarty template file for configuring
Inherited from: \DashletGeneric::$$configureTpl'include/Dashlets/DashletGenericConfigure.tpl'
Details- Type
- string
- Inherited_from
- \DashletGeneric::$$configureTpl
array
$currentSearchFields= ''
search inputs to be populated in configure template.
Inherited from: \DashletGeneric::$$currentSearchFieldsmodify this after processDisplayOptions, but before displayOptions to modify search inputs
- Type
- array
- Inherited_from
- \DashletGeneric::$$currentSearchFields
array
$dashletStrings= ''
Language strings, must be loaded at the Dashlet level w/ loadLanguage
Inherited from: \Dashlet::$$dashletStrings\DashletGeneric::$$dashletStrings- Type
- array
- Inherited_from
- \Dashlet::$$dashletStrings
- Inherited_from
- \DashletGeneric::$$dashletStrings
array
$displayColumns= 'null'
Actual columns to display, will be a subset of $columns
Inherited from: \DashletGeneric::$$displayColumnsnull
Details- Type
- array
- Inherited_from
- \DashletGeneric::$$displayColumns
int
$displayRows= ''5''
'5'
Details- Type
- int
- Inherited_from
- \DashletGeneric::$$displayRows
string
$displayTpl= ''include/Dashlets/DashletGenericDisplay.tpl''
'include/Dashlets/DashletGenericDisplay.tpl'
Details- Type
- string
- Inherited_from
- \DashletGeneric::$$displayTpl
array
$filters= 'null'
null
Details- Type
- array
- Inherited_from
- \DashletGeneric::$$filters
bool
$hasScript= 'false'
true if the Dashlet contains javascript
Inherited from: \Dashlet::$$hasScript\DashletGeneric::$$hasScriptfalse
Details- Type
- bool
- Inherited_from
- \Dashlet::$$hasScript
- Inherited_from
- \DashletGeneric::$$hasScript
bool
$isConfigPanelClearShown= 'true'
true if the Dashlet configuration options panel has the clear button
Inherited from: \Dashlet::$$isConfigPanelClearShown\DashletGeneric::$$isConfigPanelClearShowntrue
Details- Type
- bool
- Inherited_from
- \Dashlet::$$isConfigPanelClearShown
- Inherited_from
- \DashletGeneric::$$isConfigPanelClearShown
bool
$isConfigurable= 'false'
true if the Dashlet has configuration options.
Inherited from: \Dashlet::$$isConfigurable\DashletGeneric::$$isConfigurablefalse
Details- Type
- bool
- Inherited_from
- \Dashlet::$$isConfigurable
- Inherited_from
- \DashletGeneric::$$isConfigurable
bool
$isRefreshable= 'true'
true if the Dashlet is refreshable (ie charts that provide their own refresh)
Inherited from: \Dashlet::$$isRefreshable\DashletGeneric::$$isRefreshabletrue
Details- Type
- bool
- Inherited_from
- \Dashlet::$$isRefreshable
- Inherited_from
- \DashletGeneric::$$isRefreshable
$layoutManager= ''
- Type
- n/a
- Inherited_from
- \DashletGeneric::$$layoutManager
bool
$myItemsOnly= 'true'
Flag to display only the current users's items.
Inherited from: \DashletGeneric::$$myItemsOnlytrue
Details- Type
- bool
- Inherited_from
- \DashletGeneric::$$myItemsOnly
bool
$showMyItemsOnly= 'true'
Flag to display "myItemsOnly" checkbox in the DashletGenericConfigure.
Inherited from: \DashletGeneric::$$showMyItemsOnlytrue
Details- Type
- bool
- Inherited_from
- \DashletGeneric::$$showMyItemsOnly
string
$title= ''Generic Dashlet''
'Generic Dashlet'
Details- Type
- string
- Inherited_from
- \Dashlet::$$title
- Inherited_from
- \DashletGeneric::$$title
Methods
DashletGeneric(
$id, $options
=
null
)
:
void
Name | Type | Description |
---|---|---|
$id | ||
$options |
display(
)
:
string
Displays the Dashlet, must call process() prior to calling this
Inherited from: \DashletGeneric::display()Type | Description |
---|---|
string | HTML that displays Dashlet |
getAutoRefreshOptions(
)
:
array
Returns the available auto refresh settings you can set a dashlet to
Inherited from: \Dashlet::getAutoRefreshOptions()\DashletGeneric::getAutoRefreshOptions()Type | Description |
---|---|
array | options available |
getFooter(
)
:
string
Called when Dashlet is displayed
Inherited from: \Dashlet::getFooter()\DashletGeneric::getFooter()Type | Description |
---|---|
string | footer HTML |
getHeader(
string $text
=
''
)
:
string
Called when Dashlet is displayed
Inherited from: \Dashlet::getHeader()\DashletGeneric::getHeader()Name | Type | Description |
---|---|---|
$text | string | text after the title |
Type | Description |
---|---|
string | Header html |
getTitle(
string $text
=
''
)
:
string
Name | Type | Description |
---|---|---|
$text | string |
Type | Description |
---|---|
string | HTML |
hasAccess(
)
:
bool
Override this in the subclass. It is used to determine whether the dashlet can be displayed.
Inherited from: \Dashlet::hasAccess()\DashletGeneric::hasAccess()Type | Description |
---|---|
bool | indicating whether or not the current user has access to display this Dashlet. |
isAutoRefreshable(
)
:
bool
Returns true if the dashlet is auto refreshable
Inherited from: \Dashlet::isAutoRefreshable()\DashletGeneric::isAutoRefreshable()Type | Description |
---|---|
bool |
loadLanguage(
string $dashletClassname, string $dashletDirectory
=
'modules/Home/Dashlets/'
)
:
void
Sets the language strings
Inherited from: \Dashlet::loadLanguage()\DashletGeneric::loadLanguage()Name | Type | Description |
---|---|---|
$dashletClassname | string | classname of the dashlet |
$dashletDirectory | string | directory path of the dashlet |
loadOptions(
)
:
array
Generic way to retrieve options array from UserPreferences
Inherited from: \Dashlet::loadOptions()\DashletGeneric::loadOptions()Type | Description |
---|---|
array | options array stored in UserPreferences |
process(
)
:
void
Does all dashlet processing, here's your chance to modify the rows being displayed!
processAutoRefresh(
int $dashletOffset
=
0
)
:
string
Processes and displays the auto refresh code for the dashlet
Inherited from: \Dashlet::processAutoRefresh()\DashletGeneric::processAutoRefresh()Name | Type | Description |
---|---|---|
$dashletOffset | int |
Type | Description |
---|---|
string | HTML code |
processDisplayOptions(
)
:
string
Sets up the display options template
Inherited from: \DashletGeneric::processDisplayOptions()Type | Description |
---|---|
string | HTML that shows options |
saveOptions(
array $req
)
:
array
Filter the $_REQUEST and only save only the needed options
Inherited from: \DashletGeneric::saveOptions()Name | Type | Description |
---|---|---|
$req | array | the array to pull options from |
Type | Description |
---|---|
array | options array |
setConfigureIcon(
)
:
string
Returns the HTML for the configure icon
Inherited from: \Dashlet::setConfigureIcon()\DashletGeneric::setConfigureIcon()Type | Description |
---|---|
string | HTML |
setDeleteIcon(
)
:
string
Returns the HTML for the delete icon
Inherited from: \Dashlet::setDeleteIcon()\DashletGeneric::setDeleteIcon()Type | Description |
---|---|
string | HTML |
setRefreshIcon(
)
:
string
Returns the HTML for the refresh icon
Inherited from: \Dashlet::setRefreshIcon()\DashletGeneric::setRefreshIcon()Type | Description |
---|---|
string | HTML |
storeOptions(
array $optionsArray
)
:
void
Generic way to store an options array into UserPreferences
Inherited from: \Dashlet::storeOptions()\DashletGeneric::storeOptions()Name | Type | Description |
---|---|---|
$optionsArray | array | the array to save |