Class: iHRIS Module UserStatistics (4.1.7)
This article describes the class iHRIS_Module_UserStatistics .
- Extends the class: I2CE_Module.
- Location: Part of the module UserStatistics in the package iHRIS Common 4.1.7-release
- Source: Defined in the file modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 34
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v4.1
@filesource Class iHRIS_Module_UserStatistics
Variables
$db
The database object
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 39
- Type: static protected MDB2 $db
$prepared
The list of prepared statements.
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 44
- Type: static protected array $prepared
$entries
The cache of entry history information.
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 50
- Type: static protected array $entries
Methods
getHooks()
Return the array of hooks available in this module.
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 90
- Signature: static public function getHooks()
- Returns: array
getLoginHistory()
Return a database rowset for the user login history.
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 258
- Signature: static protected function getLoginHistory($userid,$limit)
- Parameters:
- integer $userid
The user id - integer $limit
The number of records to return.- Default Value: 10
- integer $userid
- Returns: MDB2_Result
post_page_view_user()
Handle any additional actions after all the child forms have been loaded on the user view page.
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 101
- Signature: public function post_page_view_user($page)
- Parameters:
- iHRIS_PageViewUser $page
setupDB()
Set up the database and prepared statements if necessary.
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 55
- Signature: static protected function setupDB()
setupEntryHistory()
Return the entry history for this person as an array
- Defined in common/modules/UserStatistics/lib/iHRIS_Module_UserStatistics.php on line 275
- Signature: static protected function setupEntryHistory($userid,$days)
- Parameters:
- integer $userid
The user id - integer $days
The number of days to include- Default Value: 5
- integer $userid
- Returns: array
Inherited Methods
__construct()
This public method is inherited from I2CE_Module->__construct()
action_configure()
This public method is inherited from I2CE_Module->action_configure()
action_disable()
This public method is inherited from I2CE_Module->action_disable()
action_enable()
This public method is inherited from I2CE_Module->action_enable()
action_initialize()
This public method is inherited from I2CE_Module->action_initialize()
getCLIMethods()
This public method is inherited from I2CE_Module->getCLIMethods()
getConfig()
This public method is inherited from I2CE_Module->getConfig()
getMethods()
This public method is inherited from I2CE_Module->getMethods()
post_update()
This public method is inherited from I2CE_Module->post_update()
pre_upgrade()
This public method is inherited from I2CE_Module->pre_upgrade()
upgrade()
This public method is inherited from I2CE_Module->upgrade()
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Fuzzy Methods
launchBackgroundProcess()
This method is inherited from I2CE_Module->launchBackgroundProcess()
launchBackgroundPHPScript()
This method is inherited from I2CE_Module->launchBackgroundPHPScript()
launchBackgroundPage()
This method is inherited from I2CE_Module->launchBackgroundPage()
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()