~oh-dev/openhealth/phit-tools

« back to all changes in this revision

Viewing changes to ihris-suite/lib/i2ce/modules/Forms/lib/fields/I2CE_FormField_DB_STRING.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
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
 
2
/**
 
3
 * @copyright © 2007, 2008, 2009 Intrahealth International, Inc.
 
4
 * This File is part of I2CE
 
5
 *
 
6
 * I2CE is free software; you can redistribute it and/or modify it
 
7
 * under the terms of the GNU General Public License as published by
9
8
 * the Free Software Foundation; either version 3 of the License, or
10
9
 * (at your option) any later version.
11
10
 * 
16
15
 * 
17
16
 * You should have received a copy of the GNU General Public License
18
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
 *//**
20
18
    * @package I2CE
21
19
    * @author Luke Duncan <lduncan@intrahealth.org>
22
 
    * @copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc. 
23
20
    * @since v2.0.0
24
21
    * @version v2.0.0
25
22
    */
30
27
 */
31
28
abstract class I2CE_FormField_DB_STRING extends I2CE_FormField { 
32
29
 
33
 
 
34
 
 
35
 
    /**
36
 
     * Create a new instance of a I2CE_FormField
37
 
     * @param string $name
38
 
     * @param array $options A list of options for this form field.
39
 
     */
40
 
    public function __construct( $name, $options ) {
41
 
        parent::__construct($name, $options);
42
 
        $this->field_type_string = 'string';
43
 
        $this->field_type_report_db = 'VARCHAR(255)';
44
 
        $this->field_type_db = 'text';
45
 
    }
46
 
        
47
 
 
48
 
 
49
 
        
50
30
    /**
51
31
     * Checks to see if the current value for this is set and valid.
52
32
     * @return boolean