Class: iHRIS Country: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]] | This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]] | ||
==name== | ==name== | ||
The form field ''name'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]] | |||
==alpha_two== | ==alpha_two== | ||
The form field ''alpha_two'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]] | |||
==code== | ==code== | ||
The form field ''code'' is implemented by [[Class: I2CE_FormField_INT |INT ]] | |||
==primary== | ==primary== | ||
The form field ''primary'' is implemented by [[Class: I2CE_FormField_YESNO |YESNO ]] | |||
==location== | ==location== | ||
The form field ''location'' is implemented by [[Class: I2CE_FormField_YESNO |YESNO ]] | |||
==Constants== | ==Constants== | ||
===iHRIS_Country::SORT_FIELD=== | ===iHRIS_Country::SORT_FIELD=== |
Revision as of 12:49, 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