~kibsden/ihris-uganda/baylor-train

« back to all changes in this revision

Viewing changes to modules/Mentor/lib/iHRIS_PageHistoryPrivateFacility.php

  • Committer: Dennis Kibiye
  • Date: 2012-08-15 12:39:06 UTC
  • Revision ID: kibsden@gmail.com-20120815123906-ckmfgnpgi8xqiz9o
First Initialisation of In Service Baylor Training System Based on iHRIS Manage

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
 * The page class for displaying the history of a form associated with a person's record.
 
22
 * @package iHRIS
 
23
 * @subpackage Qualify
 
24
 * @access public
 
25
 * @author Luke Duncan <lduncan@intrahealth.org>
 
26
 * @copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc. 
 
27
 * @since v2.0.0
 
28
 * @version v2.0.0
 
29
 */
 
30
 
 
31
/**
 
32
 * The page class for displaying the history of a form associated with a person's record.
 
33
 * @package iHRIS
 
34
 * @subpackage Qualify
 
35
 * @access public
 
36
 */
 
37
class iHRIS_PageHistoryPrivateFacility extends iHRIS_PageHistory {
 
38
 
 
39
    /**
 
40
     * Return a prefix to be used for templates associated with this page.
 
41
     * @return string
 
42
     */
 
43
    protected function getPrefix() { return "private_"; }
 
44
        
 
45
    /**
 
46
     * Load the history object for this page.
 
47
     */
 
48
    protected function loadObjects() {
 
49
        $factory = I2CE_FormFactory::instance();
 
50
        $this->history = $factory->createContainer( $this->get('id') );
 
51
        $this->history->populate();
 
52
        $this->template->setForm( $this->history );    
 
53
    }
 
54
        
 
55
}
 
56
 
 
57
 
 
58
# Local Variables:
 
59
# mode: php
 
60
# c-default-style: "bsd"
 
61
# indent-tabs-mode: nil
 
62
# c-basic-offset: 4
 
63
# End: