Class: iHRIS Country

From IHRIS Wiki
Revision as of 13:11, 19 October 2009 by Litlfred (talk | contribs)

This article describes the class iHRIS_Country.

@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