Class: I2CE FormField DOCUMENT
From IHRIS Wiki
This article describes the class I2CE_FormField_DOCUMENT.
- Extends the class: I2CE_FormField_BINARY_FILE.
- Parent Classses: I2CE_FormField_BINARY_FILE I2CE_FormField_DB_BLOB I2CE_FormField I2CE_Fuzzy
- Location: Part of the module BinField in the package I2CE
- Source: Defined in the file modules/Forms/modules/Binary_Files/lib/I2CE_FormField_DOCUMENT.php
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v2.0.0
Class for defining all the database fields used by a object.
Variables
$valid_types
- Type: static protected $valid_types
Methods
defaultExtension()
get the default extension for this document
- Signature: protected function defaultExtension()
- Returns: string
defaultMimeType()
get the default extension for this docuemnt
- Signature: protected function defaultMimeType()
- Returns: string
isValidMimeType()
Checks to see if a mime type is a valid docuement mime type
- Signature: public function isValidMimeType($mime_type)
- Parameters:
- string $mime_type
- Returns: true
if valid. false otherwise