|
|
(15 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| This article describes the class ''I2CE_FormField_IMAGE''.
| | #REDIRECT [[Class: I2CE_FormField_IMAGE (4.1.7)]] |
| *Extends the class: [[Class: I2CE_FormField_BINARY_FILE | I2CE_FormField_BINARY_FILE]].
| |
| *Parent Classses: [[Class: I2CE_FormField_BINARY_FILE | I2CE_FormField_BINARY_FILE]] [[Class: I2CE_FormField_DB_BLOB | I2CE_FormField_DB_BLOB]] [[Class: I2CE_FormField | I2CE_FormField]] [[Class: I2CE_Fuzzy | I2CE_Fuzzy]]
| |
| *Location: Part of the module [[I2CE Module List#BinField|BinField]] in the package [https://launchpad.net/i2ce I2CE]
| |
| *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.0-release/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php 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 [[Class: I2CE_Form | ]] object.
| |
| ==Methods==
| |
| ===defaultExtension()===
| |
| get the default extension for this image
| |
| *Signature: protected function defaultExtension()
| |
| *Returns: [http://www.php.net/manual/en/language.types.string.php string ]
| |
| ===defaultMimeType()===
| |
| get the default extension for this image
| |
| *Signature: protected function defaultMimeType()
| |
| *Returns: [http://www.php.net/manual/en/language.types.string.php string ]
| |
| ===getDisplayNode()===
| |
| Return the display value of this form field as a DOM Node.
| |
| *Signature: public function getDisplayNode($node,$template)
| |
| *Parameters:
| |
| ** [http://www.php.net/manual/en/class.domnode.php DOMNode ] $node
| |
| ** [[Class: I2CE_Template | I2CE_Template]] $template
| |
| *Returns: [http://www.php.net/manual/en/class.domnode.php DOMNode ]
| |
| ===isValidMimeType()===
| |
| Checks to see if a mime type is a valid image mime type
| |
| *Signature: public function isValidMimeType($mime_type)
| |
| *Parameters:
| |
| ** [http://www.php.net/manual/en/language.types.string.php string ] $mime_type <br/>The mime type we are varifying is valid
| |
| *Returns: true<br/>if valid. false otherwise
| |
| ===processDOMEditable()===
| |
| *Signature: public function processDOMEditable($node,$template,$form_node)
| |
| *Parameters:
| |
| **$node
| |
| **$template
| |
| **$form_node
| |
| | |
| | |
| [[Category:Class Documentation]]
| |