3
* © Copyright 2007, 2008 IntraHealth International, Inc.
5
* This File is part of iHRIS
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.
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.
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/>.
21
* @author Carl Leitner <litlfred@ibiblio.org>
22
* @copyright Copyright © 2007, 2008 IntraHealth International, Inc.
27
* Class for defining all the database fields used by a {@link I2CE_Form} object.
31
class I2CE_FormField_IMAGE extends I2CE_FormField_BINARY_FILE {
33
* Checks to see if a mime type is a valid image mime type
34
* @param string $mime_type
35
* @returns true if valid. false otherwise
37
public function isValidMimeType($mime_type) {
38
return preg_match('/^image/',$mime_type);
47
# c-default-style: "bsd"
48
# indent-tabs-mode: nil