~oh-dev/openhealth/phit-tools

« back to all changes in this revision

Viewing changes to ihris-suite/lib/common/modules/Geography/lib/iHRIS_Country.php

  • Committer: litlfred at ibiblio
  • Date: 2009-10-26 13:55:16 UTC
  • Revision ID: litlfred@ibiblio.org-20091026135516-7er0260tad01febt
ihris suite updated to 4.0.1 pre-release...
follows that did not get added on the last attempt did this time... the problem is that bzr does not like to include branches in a sub-directory even if you add them in which 
  is how ihris-suite/lib/* was structed.  so i had to move ihris-suite/lib/*/.bzr to ihris-suite/lib/*/.bzr_dir to trick it
the site will now succesfully install.  have not attempted change the root drive letter yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/*
 
3
 * © Copyright 2007, 2008 IntraHealth International, Inc.
 
4
 * 
 
5
 * This File is part of iHRIS
 
6
 * 
 
7
 * iHRIS is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 3 of the License, or
 
10
 * (at your option) any later version.
 
11
 * 
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 * 
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 */
 
20
/**
 
21
 * @package iHRIS
 
22
 * @subpackage Common
 
23
 * @author Luke Duncan <lduncan@intrahealth.org>
 
24
 * @copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc. 
 
25
 * @since v1.0.0
 
26
 * @version v2.0.0
 
27
 */
 
28
/**
 
29
 * Object for dealing with countries.
 
30
 * 
 
31
 * @package iHRIS
 
32
 * @subpackage Common
 
33
 * @access public
 
34
 */
 
35
class iHRIS_Country extends I2CE_List {
 
36
 
 
37
    /**
 
38
     * The sort field name to be used for sorting the display list.
 
39
     */
 
40
    const SORT_FIELD = "-primary";
 
41
 
 
42
 
 
43
 
 
44
 
 
45
    /**
 
46
     * Populate the options for a selection element in the {@link I2CE_Template}
 
47
     *
 
48
     * List all countries that are used for locations. 
 
49
     * 
 
50
     * @param string $form_name The form being listed.
 
51
     * returns $array
 
52
     */
 
53
    static public function listLocation (  $form_name ) {
 
54
        return parent::listOptions( $form_name, "location", 1 );
 
55
    }
 
56
    
 
57
}
 
58
 
 
59
# Local Variables:
 
60
# mode: php
 
61
# c-default-style: "bsd"
 
62
# indent-tabs-mode: nil
 
63
# c-basic-offset: 4
 
64
# End: