Class: iHRIS Country: Difference between revisions

From IHRIS Wiki
No edit summary
(Redirected page to Class: iHRIS Country (4.1.7))
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article describes the class ''iHRIS_Country''.
#REDIRECT [[Class: iHRIS_Country (4.1.7)]]
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*Location: Part of the module [[iHRIS Common Module List#Geography|Geography]] in the package [https://launchpad.net/ihris-common iHRIS Common]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0.0-release/annotate/head:/modules/Geography/lib/iHRIS_Country.php modules/Geography/lib/iHRIS_Country.php]
*Author: Luke Duncan <lduncan@intrahealth.org>
*Since: v1.0.0
@copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc.    Object for dealing with countries.
==Form Fields==
This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]]
==name==
The form field ''name'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==alpha_two==
The form field ''alpha_two'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==code==
The form field ''code'' is implemented by [[Class: I2CE_FormField_INT |INT ]]
==primary==
The form field ''primary'' is implemented by [[Class: I2CE_FormField_YESNO |YESNO ]]
==location==
The form field ''location'' is implemented by [[Class: I2CE_FormField_YESNO |YESNO ]]
==Constants==
===iHRIS_Country::SORT_FIELD===
The sort field name to be used for sorting the display list.
Defined as: "-primary"
==Methods==
===listLocation()===
Populate the options for a selection element in the [[Class: I2CE_Template | ]] List all countries that are used for locations.
*Signature: static public function listLocation($form_name)
*Parameters:
** [http://www.php.net/manual/en/language.types.string.php string ] $form_name <br/>The form being listed. returns $array
 
 
[[Category:Class Documentation]]

Latest revision as of 09:54, 23 August 2013