Class: I2CE FormField IMAGE
From IHRIS Wiki
This article describes the class I2CE_FormField_IMAGE.
- 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_IMAGE.php
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v2.0.0
Class for defining all the database fields used by a object.
Methods
defaultExtension()
get the default extension for this image
- Signature: protected function defaultExtension()
- Returns: string
defaultMimeType()
get the default extension for this image
- Signature: protected function defaultMimeType()
- Returns: string
getDisplayNode()
Return the display value of this form field as a DOM Node.
- Signature: public function getDisplayNode($node,$template)
- Parameters:
- DOMNode $node
- I2CE_Template $template
- Returns: DOMNode
isValidMimeType()
Checks to see if a mime type is a valid image mime type
- Signature: public function isValidMimeType($mime_type)
- Parameters:
- string $mime_type
The mime type we are varifying is valid
- string $mime_type
- Returns: true
if valid. false otherwise
processDOMEditable()
- Signature: public function processDOMEditable($node,$template,$form_node)
- Parameters:
- $node
- $template
- $form_node