Class: iHRIS Country: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This article describes the class ''iHRIS_Country''. | This article describes the class ''iHRIS_Country''. | ||
*Extends the class: [[Class: I2CE_List | I2CE_List]]. | *Extends the class: [[Class: I2CE_List | I2CE_List]]. | ||
*Location: Part of the module [[iHRIS Module List#Geography|Geography]] in the package [https://launchpad.net/ihris-common iHRIS Common] | *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] | *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> | *Author: Luke Duncan <lduncan@intrahealth.org> |
Revision as of 13:11, 19 October 2009
This article describes the class iHRIS_Country.
- Extends the class: I2CE_List.
- Location: Part of the module Geography in the package iHRIS Common
- Source: Defined in the file modules/Geography/lib/iHRIS_Country.php
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v1.0.0
@copyright Copyright © 2007, 2008 IntraHealth International, Inc. Object for dealing with countries.
Form Fields
This class is a form class and provides the following form fields
name
The form field name is implemented by STRING_LINE
alpha_two
The form field alpha_two is implemented by STRING_LINE
code
The form field code is implemented by INT
primary
The form field primary is implemented by YESNO
location
The form field location is implemented by 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 List all countries that are used for locations.
- Signature: static public function listLocation($form_name)
- Parameters:
- string $form_name
The form being listed. returns $array
- string $form_name