Class: iHRIS Module Contact (Development): Difference between revisions

From IHRIS Wiki
(Created page with '{{otherversions|Class: iHRIS_Module_Contact}} This article describes the class ''iHRIS_Module_Contact'' . *Extends the class: I2CE_Module. …')
 
No edit summary
 
Line 2: Line 2:
This article describes the class ''iHRIS_Module_Contact'' .
This article describes the class ''iHRIS_Module_Contact'' .
*Extends the class: [[Class: I2CE_Module (Development) | I2CE_Module]].
*Extends the class: [[Class: I2CE_Module (Development) | I2CE_Module]].
*Location: Part of the module [[iHRIS Common Module List (Development)#Contact|Contact]] in the package [https://launchpad.net/ihris-common iHRIS Common] 4.0-dev
*Location: Part of the module [[iHRIS Common Module List (Development)#Contact|Contact]] in the package [https://launchpad.net/ihris-common iHRIS Common] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L32 modules/Contact/lib/iHRIS_Module_Contact.php] on line 32
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.1-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L32 modules/Contact/lib/iHRIS_Module_Contact.php] on line 32
*Author: Luke Duncan <lduncan@intrahealth.org>
*Author: Luke Duncan <lduncan@intrahealth.org>


Line 12: Line 12:
===$constant_migrate===
===$constant_migrate===
@var protected static $constant_migraate  array with keys the numeric ids of contact types before the new I2CE_FormField_MAPPED was introduced. The values are the corresponding id's after I2CE_FormField_MAPPED.
@var protected static $constant_migraate  array with keys the numeric ids of contact types before the new I2CE_FormField_MAPPED was introduced. The values are the corresponding id's after I2CE_FormField_MAPPED.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L62 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 62
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.1-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L62 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 62
*Type: static protected $constant_migrate
*Type: static protected $constant_migrate


Line 18: Line 18:
===changeContactForm()===
===changeContactForm()===
Change the all child contact form with given type of a form to a form which subclasses the contact form.
Change the all child contact form with given type of a form to a form which subclasses the contact form.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L113 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 113
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.1-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L113 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 113
*Signature: static public function changeContactForm($parent_form,$contact_type,$new_child_form,$delete_old,$remove_contact)
*Signature: static public function changeContactForm($parent_form,$contact_type,$new_child_form,$delete_old,$remove_contact)
*Parameters:
*Parameters:
Line 30: Line 30:
===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/ihris-common/4.0-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L42 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 42
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.1-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L42 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 42
*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 39: Line 39:
===removeContactForm()===
===removeContactForm()===
Remove the contact form from the given parent form
Remove the contact form from the given parent form
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L226 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 226
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.1-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L247 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 247
*Signature: static public function removeContactForm($parent_form)
*Signature: static public function removeContactForm($parent_form)
*Parameters:
*Parameters:
Line 46: Line 46:
===upgrade()===
===upgrade()===
Upgrade this module if necessary
Upgrade this module if necessary
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L76 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 76
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.1-dev/annotate/head:/modules/Contact/lib/iHRIS_Module_Contact.php#L76 common/modules/Contact/lib/iHRIS_Module_Contact.php] on line 76
*Signature: public function upgrade($old_vers,$new_vers)
*Signature: public function upgrade($old_vers,$new_vers)
*Parameters:
*Parameters:
Line 67: Line 67:
===action_initialize()===
===action_initialize()===
This public method is inherited from [[Class: I2CE_Module (Development)#action_initialize() | I2CE_Module->action_initialize()]]
This public method is inherited from [[Class: I2CE_Module (Development)#action_initialize() | I2CE_Module->action_initialize()]]
===getCLIHooks()===
This public method is inherited from [[Class: I2CE_Module (Development)#getCLIHooks() | I2CE_Module->getCLIHooks()]]


===getCLIMethods()===
===getCLIMethods()===

Latest revision as of 08:26, 6 May 2015


This article describes the class iHRIS_Module_Contact .

  • Author: Carl Leitner <litlfred@intrahealth.org>
  • Since: 3.2.3

I2CE_Module_Contact

Variables

$constant_migrate

@var protected static $constant_migraate array with keys the numeric ids of contact types before the new I2CE_FormField_MAPPED was introduced. The values are the corresponding id's after I2CE_FormField_MAPPED.

Methods

changeContactForm()

Change the all child contact form with given type of a form to a form which subclasses the contact form.

  • Defined in common/modules/Contact/lib/iHRIS_Module_Contact.php on line 113
  • Signature: static public function changeContactForm($parent_form,$contact_type,$new_child_form,$delete_old,$remove_contact)
  • Parameters:
    • string $parent_form
      The parent form @param string This function assumes that iHRIS_Module_Contact->upgrade() has been called for $new_vers >= 3.2.5 so that the $contact_type should be one of the values of  ::$contact_type. E.g. 'contact_type|facilty'
    • $contact_type
    • string $new_child_form
      The new child form (which should subclass contact) in which the existing values are to be saved.
    • boolean $delete_old
      If true the old child (matching) forms are removed
    • boolean $remove_contact
      Defaults to true in which case we remove 'contact' as a child form
      • Default Value: true
  • Returns: boolean.
    True on success.

pre_upgrade()

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

removeContactForm()

Remove the contact form from the given parent form

upgrade()

Upgrade this module if necessary

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()

getHooks()

This public method is inherited from I2CE_Module->getHooks()

getMethods()

This public method is inherited from I2CE_Module->getMethods()

post_update()

This public method is inherited from I2CE_Module->post_update()

_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()