Class: I2CE FormField IMAGE: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This article desrcibes the class '''I2CE_FormField_IMAGE''' | This article desrcibes the class '''I2CE_FormField_IMAGE'''. | ||
*Extends the class: [[Class: I2CE_FormField_BINARY_FILE | I2CE_FormField_BINARY_FILE]]. | |||
It is contained in the module [[iHRIS Module List#BinField|BinField]] in the package [https://launchpad.net/i2ce I2CE] | It is contained in the module [[iHRIS Module List#BinField|BinField]] in the package [https://launchpad.net/i2ce I2CE] | ||
Line 11: | Line 12: | ||
get the default extension for this image | get the default extension for this image | ||
*Signature: protected function defaultExtension() | *Signature: protected function defaultExtension() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===defaultMimeType()=== | ===defaultMimeType()=== | ||
get the default extension for this image | get the default extension for this image | ||
*Signature: protected function defaultMimeType() | *Signature: protected function defaultMimeType() | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===getDisplayNode()=== | ===getDisplayNode()=== | ||
Return the display value of this form field as a DOM Node. | Return the display value of this form field as a DOM Node. | ||
*Signature: public function getDisplayNode($node,$template) | *Signature: public function getDisplayNode($node,$template) | ||
*Returns: [http://www.php.net/manual/en/class.domnode.php DOMNode] | *Returns: [http://www.php.net/manual/en/class.domnode.php DOMNode ] | ||
Parameters: | Parameters: | ||
* [http://www.php.net/manual/en/class.domnode.php | * [http://www.php.net/manual/en/class.domnode.php DOMNode ] $node | ||
* [[Class: I2CE_Template | I2CE_Template]] $template | * [[Class: I2CE_Template | I2CE_Template]] $template | ||
===isValidMimeType()=== | ===isValidMimeType()=== | ||
Line 28: | Line 29: | ||
*Returns: true if valid. false otherwise | *Returns: true if valid. false otherwise | ||
Parameters: | Parameters: | ||
* [http://www.php.net/manual/en/language.types.string.php string] $mime_type<br/>The mime type we are varifying is valid | * [http://www.php.net/manual/en/language.types.string.php string ] $mime_type<br/>The mime type we are varifying is valid | ||
===processDOMEditable()=== | ===processDOMEditable()=== | ||
*Signature: public function processDOMEditable($node,$template,$form_node) | *Signature: public function processDOMEditable($node,$template,$form_node) |
Revision as of 21:24, 16 October 2009
This article desrcibes the class I2CE_FormField_IMAGE.
- Extends the class: I2CE_FormField_BINARY_FILE.
It is contained in the module BinField in the package I2CE
The class is defined in the file: modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php
Class for defining all the database fields used by a {@link I2CE_Form} object.
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v2.0.0
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)
- Returns: DOMNode
Parameters:
- DOMNode $node
- I2CE_Template $template
isValidMimeType()
Checks to see if a mime type is a valid image mime type
- Signature: public function isValidMimeType($mime_type)
- Returns: true if valid. false otherwise
Parameters:
- string $mime_type
The mime type we are varifying is valid
processDOMEditable()
- Signature: public function processDOMEditable($node,$template,$form_node)
Parameters:
- $node
- $template
- $form_node
Inherited Variables
$mime_type
Theis protected variable is inherited from I2CE_FormField_BINARY_FILE->$mime_type
$name
Theis protected variable is inherited from I2CE_FormField->$name
$options
Theis protected variable is inherited from I2CE_FormField->$options
$value
Theis protected variable is inherited from I2CE_FormField->$value
$headers
Theis protected variable is inherited from I2CE_FormField->$headers
$href
Theis protected variable is inherited from I2CE_FormField->$href
$form
Theis protected variable is inherited from I2CE_FormField->$form
$history
Theis protected variable is inherited from I2CE_FormField->$history
$history_idx
Theis protected variable is inherited from I2CE_FormField->$history_idx
$attributes
Theis protected variable is inherited from I2CE_FormField->$attributes
$invalid
Theis protected variable is inherited from I2CE_FormField->$invalid
Inherited Fuzzy Methods
cachedTableReference()
This method is inherited from I2CE_FormField->cachedTableReference()
isNumeric()
This method is inherited from I2CE_FormField->isNumeric()
getLimitStyles()
This method is inherited from I2CE_FormField->getLimitStyles()
generateLimit()
This method is inherited from I2CE_FormField->generateLimit()
generateLimit_null()
This method is inherited from I2CE_FormField->generateLimit_null()
generateLimit_not_null()
This method is inherited from I2CE_FormField->generateLimit_not_null()
generateLimit_null_not_null()
This method is inherited from I2CE_FormField->generateLimit_null_not_null()
checkLimit_null()
This method is inherited from I2CE_FormField->checkLimit_null()
checkLimit_not_null()
This method is inherited from I2CE_FormField->checkLimit_not_null()
checkLimit_null_not_null()
This method is inherited from I2CE_FormField->checkLimit_null_not_null()
checkLimitString_null()
This method is inherited from I2CE_FormField->checkLimitString_null()
checkLimitString_not_null()
This method is inherited from I2CE_FormField->checkLimitString_not_null()
checkLimitString_null_not_null()
This method is inherited from I2CE_FormField->checkLimitString_null_not_null()
getLimitMenu_null()
This method is inherited from I2CE_FormField->getLimitMenu_null()
getLimitMenu_not_null()
This method is inherited from I2CE_FormField->getLimitMenu_not_null()
getLimitMenu_null_not_null()
This method is inherited from I2CE_FormField->getLimitMenu_null_not_null()
processLimitMenu_null()
This method is inherited from I2CE_FormField->processLimitMenu_null()
processLimitMenu_not_null()
This method is inherited from I2CE_FormField->processLimitMenu_not_null()
processLimitMenu_null_not_null()
This method is inherited from I2CE_FormField->processLimitMenu_null_not_null()
generateLimit_max_parent()
This method is inherited from I2CE_FormField->generateLimit_max_parent()
generateLimit_min_parent()
This method is inherited from I2CE_FormField->generateLimit_min_parent()
generateLimit_max_parent_form()
This method is inherited from I2CE_FormField->generateLimit_max_parent_form()
generateLimit_min_parent_form()
This method is inherited from I2CE_FormField->generateLimit_min_parent_form()
getLimitMenu_max_parent()
This method is inherited from I2CE_FormField->getLimitMenu_max_parent()
getLimitMenu_min_parent()
This method is inherited from I2CE_FormField->getLimitMenu_min_parent()
getLimitMenu_max_parent_form()
This method is inherited from I2CE_FormField->getLimitMenu_max_parent_form()
getLimitMenu_min_parent_form()
This method is inherited from I2CE_FormField->getLimitMenu_min_parent_form()
processLimitMenu_max_parent()
This method is inherited from I2CE_FormField->processLimitMenu_max_parent()
processLimitMenu_min_parent()
This method is inherited from I2CE_FormField->processLimitMenu_min_parent()
processLimitMenu_max_parent_form()
This method is inherited from I2CE_FormField->processLimitMenu_max_parent_form()
processLimitMenu_min_parent_form()
This method is inherited from I2CE_FormField->processLimitMenu_min_parent_form()
save()
This method is inherited from I2CE_FormField->save()
populateHistory()
This method is inherited from I2CE_FormField->populateHistory()
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()