~oh-dev/openhealth/phit-tools

« back to all changes in this revision

Viewing changes to ihris-suite/lib/ihris-manage/lib/iHRIS_PositionSelect.php

  • Committer: litlfred at ibiblio
  • Date: 2009-10-23 12:59:28 UTC
  • Revision ID: litlfred@ibiblio.org-20091023125928-u5lkafz0urm9t8eq
updated ihris-suite to 4.0.1-prerelease -- not debugged

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 Manage
23
 
 * @author Luke Duncan <lduncan@intrahealth.org>
24
 
 * @copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc. 
25
 
 * @since v2.0.0
26
 
 * @version v2.0.0
27
 
 */
28
 
/**
29
 
 * Object for dealing with selecting positions for a drop down.
30
 
 * 
31
 
 * This object is based on the normal positions but only includes the status and id so that
32
 
 * the position select page can limit choices based on the current status.
33
 
 * @package iHRIS
34
 
 * @subpackage Manage
35
 
 * @access public
36
 
 */
37
 
class iHRIS_PositionSelect extends I2CE_List {
38
 
 
39
 
    /**
40
 
     * The main field name used for display a description of a record.
41
 
     */
42
 
    const MAIN_FIELD = "code";
43
 
    /**
44
 
     * The secondary field name used for displaying a description of a record in combination with the MAIN_FIELD.
45
 
     */
46
 
    const SEC_FIELD = "title";
47
 
 
48
 
    /**
49
 
     * Create a new instance of a position.
50
 
     * 
51
 
     * @param integer $id
52
 
     * @param boolean $for_discontinue Set to true to only create the status field so it can be discontinued.
53
 
     */
54
 
    public function __construct( $form, $id = 0 ) {
55
 
        parent::__construct( $form, $id );
56
 
        //$this->setDisplayName( "Position Select" );
57
 
        $this->fields['status']->setValue( 1 );
58
 
        $this->fields['type']->setValue( "position" );
59
 
                                
60
 
    }
61
 
        
62
 
}
63
 
 
64
 
# Local Variables:
65
 
# mode: php
66
 
# c-default-style: "bsd"
67
 
# indent-tabs-mode: nil
68
 
# c-basic-offset: 4
69
 
# End: