Class: I2CE Module (Development): Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
 
Line 11: Line 11:
** [[Class: iHRIS_Module_Currency (Development) | iHRIS_Module_Currency]]
** [[Class: iHRIS_Module_Currency (Development) | iHRIS_Module_Currency]]
** [[Class: I2CE_Module_CustomReports (Development) | I2CE_Module_CustomReports]]
** [[Class: I2CE_Module_CustomReports (Development) | I2CE_Module_CustomReports]]
** [[Class: I2CE_Module_ReportSelector (Development) | I2CE_Module_ReportSelector]]
** [[Class: iHRIS_Module_DHISDashboard (Development) | iHRIS_Module_DHISDashboard]]
** [[Class: I2CE_Module_DatePicker (Development) | I2CE_Module_DatePicker]]
** [[Class: I2CE_Module_DatePicker (Development) | I2CE_Module_DatePicker]]
** [[Class: I2CE_DisplayData (Development) | I2CE_DisplayData]]
** [[Class: I2CE_DisplayData (Development) | I2CE_DisplayData]]
Line 24: Line 26:
** [[Class: I2CE_Module_Login (Development) | I2CE_Module_Login]]
** [[Class: I2CE_Module_Login (Development) | I2CE_Module_Login]]
** [[Class: iHRIS_Module_ManageRegistration (Development) | iHRIS_Module_ManageRegistration]]
** [[Class: iHRIS_Module_ManageRegistration (Development) | iHRIS_Module_ManageRegistration]]
** [[Class: iHRIS_Module_ManageSelfServiceApplication (Development) | iHRIS_Module_ManageSelfServiceApplication]]
** [[Class: I2CE_MootoolsCore (Development) | I2CE_MootoolsCore]]
** [[Class: I2CE_MootoolsCore (Development) | I2CE_MootoolsCore]]
** [[Class: I2CE_Module_Debugging (Development) | I2CE_Module_Debugging]]
** [[Class: I2CE_Module_Debugging (Development) | I2CE_Module_Debugging]]
Line 29: Line 32:
** [[Class: I2CE_Module_StretchPage (Development) | I2CE_Module_StretchPage]]
** [[Class: I2CE_Module_StretchPage (Development) | I2CE_Module_StretchPage]]
** [[Class: I2CE_Module_TreeSelect (Development) | I2CE_Module_TreeSelect]]
** [[Class: I2CE_Module_TreeSelect (Development) | I2CE_Module_TreeSelect]]
** [[Class: I2CE_Module_OpenLayers (Development) | I2CE_Module_OpenLayers]]
** [[Class: I2CE_Template_Options (Development) | I2CE_Template_Options]]
** [[Class: I2CE_Template_Options (Development) | I2CE_Template_Options]]
** [[Class: iHRIS_Module_Person (Development) | iHRIS_Module_Person]]
** [[Class: iHRIS_Module_Person (Development) | iHRIS_Module_Person]]
Line 42: Line 46:
** [[Class: iHRIS_Module_Resume (Development) | iHRIS_Module_Resume]]
** [[Class: iHRIS_Module_Resume (Development) | iHRIS_Module_Resume]]
** [[Class: I2CE_Module_PrintedForms (Development) | I2CE_Module_PrintedForms]]
** [[Class: I2CE_Module_PrintedForms (Development) | I2CE_Module_PrintedForms]]
** [[Class: iHRIS_Module_RecordStatus (Development) | iHRIS_Module_RecordStatus]]
** [[Class: I2CE_Module_ReportArchiver (Development) | I2CE_Module_ReportArchiver]]
** [[Class: I2CE_Module_ReportArchiver (Development) | I2CE_Module_ReportArchiver]]
** [[Class: I2CE_Module_UserRequest (Development) | I2CE_Module_UserRequest]]
** [[Class: iHRIS_Module_SelfService (Development) | iHRIS_Module_SelfService]]
** [[Class: I2CE_Module_Tags (Development) | I2CE_Module_Tags]]
** [[Class: I2CE_Module_Tags (Development) | I2CE_Module_Tags]]
** [[Class: I2CE_Timer (Development) | I2CE_Timer]]
** [[Class: I2CE_Timer (Development) | I2CE_Timer]]
Line 50: Line 57:
** [[Class: I2CE_Module_UserAccess_LDAP (Development) | I2CE_Module_UserAccess_LDAP]]
** [[Class: I2CE_Module_UserAccess_LDAP (Development) | I2CE_Module_UserAccess_LDAP]]
** [[Class: I2CE_Module_UserAccess_LDAP_Hybrid (Development) | I2CE_Module_UserAccess_LDAP_Hybrid]]
** [[Class: I2CE_Module_UserAccess_LDAP_Hybrid (Development) | I2CE_Module_UserAccess_LDAP_Hybrid]]
** [[Class: I2CE_Module_UserAccess_Single (Development) | I2CE_Module_UserAccess_Single]]
** [[Class: iHRIS_Module_UserCronReports (Development) | iHRIS_Module_UserCronReports]]
** [[Class: iHRIS_Module_UserStatistics (Development) | iHRIS_Module_UserStatistics]]
** [[Class: I2CE_Module_YAML (Development) | I2CE_Module_YAML]]
** [[Class: I2CE_Module_YAML (Development) | I2CE_Module_YAML]]
** [[Class: iHRIS_Module_Accident (Development) | iHRIS_Module_Accident]]
** [[Class: iHRIS_Module_Accident (Development) | iHRIS_Module_Accident]]
** [[Class: I2CE_Module_Cron (Development) | I2CE_Module_Cron]]
** [[Class: iHRIS_Module_Dependents (Development) | iHRIS_Module_Dependents]]
** [[Class: iHRIS_Module_Dependents (Development) | iHRIS_Module_Dependents]]
** [[Class: iHRIS_Module_DisciplinaryAction (Development) | iHRIS_Module_DisciplinaryAction]]
** [[Class: iHRIS_Module_DisciplinaryAction (Development) | iHRIS_Module_DisciplinaryAction]]
** [[Class: I2CE_Module_FieldLimits (Development) | I2CE_Module_FieldLimits]]
** [[Class: I2CE_Module_FieldLimits (Development) | I2CE_Module_FieldLimits]]
** [[Class: I2CE_Module_FormLimits (Development) | I2CE_Module_FormLimits]]
** [[Class: I2CE_Module_FormLimits (Development) | I2CE_Module_FormLimits]]
** [[Class: I2CE_Module_FormRelationshipBasedPermissions (Development) | I2CE_Module_FormRelationshipBasedPermissions]]
** [[Class: I2CE_Module_TaskLog_FormStorage (Development) | I2CE_Module_TaskLog_FormStorage]]
** [[Class: I2CE_ModuleAccess (Development) | I2CE_ModuleAccess]]
*** [[Class: iHRIS_Module_ManageAccessFacility (Development) | iHRIS_Module_ManageAccessFacility]]
** [[Class: I2CE_Module_Forms (Development) | I2CE_Module_Forms]]
** [[Class: I2CE_Module_Forms (Development) | I2CE_Module_Forms]]
** [[Class: I2CE_FormStorage (Development) | I2CE_FormStorage]]
** [[Class: I2CE_FormStorage (Development) | I2CE_FormStorage]]
Line 66: Line 81:
** [[Class: iHRIS_Module_PersonPosition (Development) | iHRIS_Module_PersonPosition]]
** [[Class: iHRIS_Module_PersonPosition (Development) | iHRIS_Module_PersonPosition]]
** [[Class: iHRIS_Module_ManageSalary (Development) | iHRIS_Module_ManageSalary]]
** [[Class: iHRIS_Module_ManageSalary (Development) | iHRIS_Module_ManageSalary]]
** [[Class: iHRIS_Module_Confirmation (Development) | iHRIS_Module_Confirmation]]
** [[Class: iHRIS_Module_Manage_SampleData (Development) | iHRIS_Module_Manage_SampleData]]
** [[Class: iHRIS_Module_Manage_SampleData (Development) | iHRIS_Module_Manage_SampleData]]
** [[Class: iHRIS_Module_Qualify (Development) | iHRIS_Module_Qualify]]
** [[Class: iHRIS_Module_Qualify (Development) | iHRIS_Module_Qualify]]
** [[Class: iHRIS_Module_QualifyPersonTraining (Development) | iHRIS_Module_QualifyPersonTraining]]
** [[Class: iHRIS_Module_Qualify_SampleData (Development) | iHRIS_Module_Qualify_SampleData]]
** [[Class: iHRIS_Module_Qualify_SampleData (Development) | iHRIS_Module_Qualify_SampleData]]
** [[Class: I2CE_Module_Jumper (Development) | I2CE_Module_Jumper]]
** [[Class: I2CE_Module_Jumper (Development) | I2CE_Module_Jumper]]
Line 82: Line 99:
** [[Class: I2CE_Module_TemplateData (Development) | I2CE_Module_TemplateData]]
** [[Class: I2CE_Module_TemplateData (Development) | I2CE_Module_TemplateData]]
** [[Class: iHRIS_Module_Training_Course (Development) | iHRIS_Module_Training_Course]]
** [[Class: iHRIS_Module_Training_Course (Development) | iHRIS_Module_Training_Course]]
** [[Class: iHRIS_Module_Training_Exam (Development) | iHRIS_Module_Training_Exam]]
** [[Class: iHRIS_Module_TrainingInstitution (Development) | iHRIS_Module_TrainingInstitution]]
** [[Class: iHRIS_Module_TrainingInstitution (Development) | iHRIS_Module_TrainingInstitution]]
** [[Class: iHRIS_Module_TrainingSimpleCompetency (Development) | iHRIS_Module_TrainingSimpleCompetency]]
** [[Class: iHRIS_Module_TrainingSimpleCompetency (Development) | iHRIS_Module_TrainingSimpleCompetency]]
*Location: Part of the module [[I2CE Module List (Development)#I2CE|I2CE]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev
** [[Class: I2CE_Module_User (Development) | I2CE_Module_User]]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L34 lib/I2CE_Module.php] on line 34
*Location: Part of the module [[I2CE Module List (Development)#I2CE|I2CE]] in the package [https://launchpad.net/i2ce I2CE] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L34 lib/I2CE_Module.php] on line 34
The abstract class for that all modules must implement
The abstract class for that all modules must implement
==Methods==
==Methods==
===__construct()===
===__construct()===
Construct this object
Construct this object
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L41 i2ce/lib/I2CE_Module.php] on line 41
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L41 i2ce/lib/I2CE_Module.php] on line 41
*Signature: public function __construct()
*Signature: public function __construct()
===action_configure()===
===action_configure()===
Method called to perform the configuration for this module All the configuration should take place within the div with id 'moduleConfiguration'
Method called to perform the configuration for this module All the configuration should take place within the div with id 'moduleConfiguration'
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L101 i2ce/lib/I2CE_Module.php] on line 101
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L101 i2ce/lib/I2CE_Module.php] on line 101
*Signature: public function action_configure()
*Signature: public function action_configure()
===action_disable()===
===action_disable()===
Perform any actions that a module needs to when it is disabled.
Perform any actions that a module needs to when it is disabled.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L219 i2ce/lib/I2CE_Module.php] on line 219
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L194 i2ce/lib/I2CE_Module.php] on line 194
*Signature: public function action_disable()
*Signature: public function action_disable()
*Returns: boolean.<br/>Returns true on success, returns false on failure and prevents the module from being disabled.
*Returns: boolean.<br/>Returns true on success, returns false on failure and prevents the module from being disabled.
===action_enable()===
===action_enable()===
Perform any actions that a module needs to when it is enabled.
Perform any actions that a module needs to when it is enabled.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L209 i2ce/lib/I2CE_Module.php] on line 209
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L184 i2ce/lib/I2CE_Module.php] on line 184
*Signature: public function action_enable()
*Signature: public function action_enable()
*Returns: boolean.<br/>Returns true on success, returns false on failure and prevents the module from being enabled.
*Returns: boolean.<br/>Returns true on success, returns false on failure and prevents the module from being enabled.
===action_initialize()===
===action_initialize()===
Method called before the module is enabled for the first time. @param boolean -- returns true on success. false on error.
Method called before the module is enabled for the first time. @param boolean -- returns true on success. false on error.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L92 i2ce/lib/I2CE_Module.php] on line 92
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L92 i2ce/lib/I2CE_Module.php] on line 92
*Signature: public function action_initialize()
*Signature: public function action_initialize()
===getCLIHooks()===
Method called to get the modules' hooks which are run from the command line pages
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L154 i2ce/lib/I2CE_Module.php] on line 154
*Signature: static public function getCLIHooks()
*Returns: an<br/>associative array where the key is the hookname and the value is mixed. The first option for the value is that it is a string.  This string is the method name to call. <br/> The second option for the value is that it is an array. This array has key 'method' with value the method of the class to call at the indicated hook.  It also has key 'proiority'  which gives a scheduling priority to the action. <br/> Example we may return: array('pre_page_display'=>array('method'=>'doSomething,'prioriy'=>10), 'post_page_display'=>'array('method'=>doSomethingElse,'priority'=>50), 'post_configure'=>'andNowForSomethingCompletelyDifferent') Each of the methods takes either 0 or 1 argument depending on the hook. For a complete list of hooks and their arguments see....
===getCLIMethods()===
===getCLIMethods()===
Any 'fuzzy' methods that this module implements on the command line.
Any 'fuzzy' methods that this module implements on the command line.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L197 i2ce/lib/I2CE_Module.php] on line 197
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L172 i2ce/lib/I2CE_Module.php] on line 172
*Signature: static public function getCLIMethods()
*Signature: static public function getCLIMethods()
*Returns: an<br/>associative array. the keys are the form of $key = '$class::$method' where $class is the name of a class which is an instance of I2CE_FuzzyMethod and $method is the name of a $method we wish to add to the class $class and which is not already in the class. the value is the name of a public function in the I2CE_Module subclass which will handle the call to $method. Example: array('I2CE_Template->setForm'=>'setForm') You also have the option of array('I2CE_Template->setForm'=>array('method'=>'setForm','priority'=>100) If you wish to set a priority.  The default proiority is the priority of the module
*Returns: an<br/>associative array. the keys are the form of $key = '$class::$method' where $class is the name of a class which is an instance of I2CE_FuzzyMethod and $method is the name of a $method we wish to add to the class $class and which is not already in the class. the value is the name of a public function in the I2CE_Module subclass which will handle the call to $method. Example: array('I2CE_Template->setForm'=>'setForm') You also have the option of array('I2CE_Template->setForm'=>array('method'=>'setForm','priority'=>100) If you wish to set a priority.  The default proiority is the priority of the module
===getConfig()===
===getConfig()===
Get the configuration data for this module
Get the configuration data for this module
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L84 i2ce/lib/I2CE_Module.php] on line 84
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L84 i2ce/lib/I2CE_Module.php] on line 84
*Signature: public function getConfig()
*Signature: public function getConfig()
*Returns: [[Class: I2CE_MagicDataNode (Development) | I2CE_MagicDataNode]]
*Returns: [[Class: I2CE_MagicDataNode (Development) | I2CE_MagicDataNode]]
===getHooks()===
===getHooks()===
Method called to get the modules' hooks
Method called to get the modules' hooks
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L128 i2ce/lib/I2CE_Module.php] on line 128
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L128 i2ce/lib/I2CE_Module.php] on line 128
*Signature: static public function getHooks()
*Signature: static public function getHooks()
*Returns: an<br/>associative array where the key is the hookname and the value is mixed. The first option for the value is that it is a string.  This string is the method name to call.  The priority for the method in this case is the priority of the module <br/> The second options is is that each value consists of an array with keys integers, the priority, and values the methods <br/> Example we may return: array('post_configure'=>'andNowForSomethingCompletelyDifferent', 'post_junk'=>array( -10=>'method0' 10=>'method1' 100=>'method2' 1004=>'method3' ) ) <br/> Each of the methods takes either 0 or 1 argument depending on the hook. For a complete list of hooks and their arguments see....
*Returns: an<br/>associative array where the key is the hookname and the value is mixed. The first option for the value is that it is a string.  This string is the method name to call.  The priority for the method in this case is the priority of the module <br/> The second options is is that each value consists of an array with keys integers, the priority, and values the methods <br/> Example we may return: array('post_configure'=>'andNowForSomethingCompletelyDifferent', 'post_junk'=>array( -10=>'method0' 10=>'method1' 100=>'method2' 1004=>'method3' ) ) <br/> Each of the methods takes either 0 or 1 argument depending on the hook. For a complete list of hooks and their arguments see....
===getMethods()===
===getMethods()===
Any 'fuzzy' methods that this module implements.
Any 'fuzzy' methods that this module implements.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L174 i2ce/lib/I2CE_Module.php] on line 174
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L149 i2ce/lib/I2CE_Module.php] on line 149
*Signature: static public function getMethods()
*Signature: static public function getMethods()
*Returns: an<br/>associative array. the keys are the form of $key = '$class::$method' where $class is the name of a class which is an instance of I2CE_FuzzyMethod and $method is the name of a $method we wish to add to the class $class and which is not already in the class. the value is the name of a public function in the I2CE_Module subclass which will handle the call to $method. Example: array('I2CE_Template->setForm'=>'setForm') You also have the option of array('I2CE_Template->setForm'=>array('method'=>'setForm','priority'=>100) If you wish to set a priority.  The default proiority is the priority of the module
*Returns: an<br/>associative array. the keys are the form of $key = '$class::$method' where $class is the name of a class which is an instance of I2CE_FuzzyMethod and $method is the name of a $method we wish to add to the class $class and which is not already in the class. the value is the name of a public function in the I2CE_Module subclass which will handle the call to $method. Example: array('I2CE_Template->setForm'=>'setForm') You also have the option of array('I2CE_Template->setForm'=>array('method'=>'setForm','priority'=>100) If you wish to set a priority.  The default proiority is the priority of the module
===post_update()===
===post_update()===
Post Update this module if necessary
Post Update this module if necessary
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L60 i2ce/lib/I2CE_Module.php] on line 60
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L60 i2ce/lib/I2CE_Module.php] on line 60
*Signature: public function post_update($old_vers,$new_vers)
*Signature: public function post_update($old_vers,$new_vers)
*Parameters:
*Parameters:
Line 145: Line 159:
===pre_upgrade()===
===pre_upgrade()===
Run the pre upgrade for this module.  This can use the old config data before it has been changed from the config.
Run the pre upgrade for this module.  This can use the old config data before it has been changed from the config.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L75 i2ce/lib/I2CE_Module.php] on line 75
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L75 i2ce/lib/I2CE_Module.php] on line 75
*Signature: public function pre_upgrade($old_vers,$new_vers,$new_storage)
*Signature: public function pre_upgrade($old_vers,$new_vers,$new_storage)
*Parameters:
*Parameters:
Line 154: Line 168:
===upgrade()===
===upgrade()===
Upgrade this module if necessary
Upgrade this module if necessary
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/lib/I2CE_Module.php#L50 i2ce/lib/I2CE_Module.php] on line 50
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/lib/I2CE_Module.php#L50 i2ce/lib/I2CE_Module.php] on line 50
*Signature: public function upgrade($old_vers,$new_vers)
*Signature: public function upgrade($old_vers,$new_vers)
*Parameters:
*Parameters:

Latest revision as of 09:15, 6 May 2015


This article describes the abstract class I2CE_Module .

The abstract class for that all modules must implement

Methods

__construct()

Construct this object

action_configure()

Method called to perform the configuration for this module All the configuration should take place within the div with id 'moduleConfiguration'

action_disable()

Perform any actions that a module needs to when it is disabled.

  • Defined in i2ce/lib/I2CE_Module.php on line 194
  • Signature: public function action_disable()
  • Returns: boolean.
    Returns true on success, returns false on failure and prevents the module from being disabled.

action_enable()

Perform any actions that a module needs to when it is enabled.

  • Defined in i2ce/lib/I2CE_Module.php on line 184
  • Signature: public function action_enable()
  • Returns: boolean.
    Returns true on success, returns false on failure and prevents the module from being enabled.

action_initialize()

Method called before the module is enabled for the first time. @param boolean -- returns true on success. false on error.

getCLIMethods()

Any 'fuzzy' methods that this module implements on the command line.

  • Defined in i2ce/lib/I2CE_Module.php on line 172
  • Signature: static public function getCLIMethods()
  • Returns: an
    associative array. the keys are the form of $key = '$class::$method' where $class is the name of a class which is an instance of I2CE_FuzzyMethod and $method is the name of a $method we wish to add to the class $class and which is not already in the class. the value is the name of a public function in the I2CE_Module subclass which will handle the call to $method. Example: array('I2CE_Template->setForm'=>'setForm') You also have the option of array('I2CE_Template->setForm'=>array('method'=>'setForm','priority'=>100) If you wish to set a priority. The default proiority is the priority of the module

getConfig()

Get the configuration data for this module

getHooks()

Method called to get the modules' hooks

  • Defined in i2ce/lib/I2CE_Module.php on line 128
  • Signature: static public function getHooks()
  • Returns: an
    associative array where the key is the hookname and the value is mixed. The first option for the value is that it is a string. This string is the method name to call. The priority for the method in this case is the priority of the module
    The second options is is that each value consists of an array with keys integers, the priority, and values the methods
    Example we may return: array('post_configure'=>'andNowForSomethingCompletelyDifferent', 'post_junk'=>array( -10=>'method0' 10=>'method1' 100=>'method2' 1004=>'method3' ) )
    Each of the methods takes either 0 or 1 argument depending on the hook. For a complete list of hooks and their arguments see....

getMethods()

Any 'fuzzy' methods that this module implements.

  • Defined in i2ce/lib/I2CE_Module.php on line 149
  • Signature: static public function getMethods()
  • Returns: an
    associative array. the keys are the form of $key = '$class::$method' where $class is the name of a class which is an instance of I2CE_FuzzyMethod and $method is the name of a $method we wish to add to the class $class and which is not already in the class. the value is the name of a public function in the I2CE_Module subclass which will handle the call to $method. Example: array('I2CE_Template->setForm'=>'setForm') You also have the option of array('I2CE_Template->setForm'=>array('method'=>'setForm','priority'=>100) If you wish to set a priority. The default proiority is the priority of the module

post_update()

Post Update this module if necessary

pre_upgrade()

Run the pre upgrade for this module. This can use the old config data before it has been changed from the config.

upgrade()

Upgrade this module if necessary

Inherited Methods

_hasMethod()

This public method is inherited from I2CE_Fuzzy->_hasMethod()

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()

Fuzzy Methods

launchBackgroundProcess()

This method is implemented by I2CE_BackgroundProcess->launchBackgroundProcess()

launchBackgroundPHPScript()

This method is implemented by I2CE_BackgroundProcess->launchBackgroundPHPScript()

launchBackgroundPage()

This method is implemented by I2CE_BackgroundProcess->launchBackgroundPage()