Class: I2CE FormField IMAGE (Development): Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
 
Line 2: Line 2:
This article describes the class ''I2CE_FormField_IMAGE'' .
This article describes the class ''I2CE_FormField_IMAGE'' .
*Extends the class: [[Class: I2CE_FormField_BINARY_FILE (Development) | I2CE_FormField_BINARY_FILE]].
*Extends the class: [[Class: I2CE_FormField_BINARY_FILE (Development) | I2CE_FormField_BINARY_FILE]].
*Location: Part of the module [[I2CE Module List (Development)#BinField|BinField]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev
*Child Classes:
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L28 modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 28
** [[Class: I2CE_FormField_PASSPORT (Development) | I2CE_FormField_PASSPORT]]
*Location: Part of the module [[I2CE Module List (Development)#BinField|BinField]] in the package [https://launchpad.net/i2ce I2CE] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L28 modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 28
*Author: Carl Leitner <litlfred@ibiblio.org>
*Author: Carl Leitner <litlfred@ibiblio.org>
*Since: v2.0.0
*Since: v2.0.0
Class for defining all the database fields used by a [[Class: I2CE_Form (Development) | ]] object.
Class for defining all the database fields used by a [[Class: I2CE_Form (Development) | ]] object.
==Variables==
===$image_rsrc===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L76 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 76
*Type: protected $image_rsrc
==Methods==
==Methods==
===createImageResource()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L154 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 154
*Signature: protected function createImageResource()
===defaultExtension()===
===defaultExtension()===
get the default extension for this image
get the default extension for this image
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L59 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 59
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L62 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 62
*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
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L68 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 68
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L71 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 71
*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.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L79 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 79
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L212 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 212
*Signature: public function getDisplayNode($node,$template)
*Signature: public function getDisplayNode($node,$template)
*Parameters:
*Parameters:
Line 26: Line 36:
** [[Class: I2CE_Template (Development) | I2CE_Template]] $template
** [[Class: I2CE_Template (Development) | I2CE_Template]] $template
*Returns: [http://www.php.net/manual/en/class.domnode.php DOMNode ]
*Returns: [http://www.php.net/manual/en/class.domnode.php DOMNode ]
===getImageHeight()===
Gets the height of the image in pixels
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L197 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 197
*Signature: public function getImageHeight()
*Returns: mixed.<br/>Int on success, false on failure
===getImageResource()===
Returns an image resource (see PHP GD http://us2.php.net/manual/en/ref.image.php) for the internal data.    This resource can then be manipulated (resized etc).  Once manipulation is done, then {@see setFromReosurce} should be called.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L83 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 83
*Signature: public function getImageResource()
*Returns: mixed.<br/>False on failure, an image resource on success.
===getImageWidth()===
Gets the width of the image in pixels
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L186 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 186
*Signature: public function getImageWidth()
*Returns: mixed.<br/>Int on success, false on failure
===isValidMimeType()===
===isValidMimeType()===
Checks to see if a mime type is a valid image mime type
Checks to see if a mime type is a valid image mime type
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L34 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 34
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L34 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 34
*Signature: public function isValidMimeType($mime_type)
*Signature: public function isValidMimeType($mime_type)
*Parameters:
*Parameters:
Line 34: Line 59:
*Returns: true<br/>if valid.  false otherwise
*Returns: true<br/>if valid.  false otherwise
===processDOMEditable()===
===processDOMEditable()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L39 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 39
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L39 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 39
*Signature: public function processDOMEditable($node,$template,$form_node)
*Signature: public function processDOMEditable($node,$template,$form_node)
*Parameters:
*Parameters:
Line 40: Line 65:
**$template  
**$template  
**$form_node  
**$form_node  
===setFromDB()===
Sets the value of this field from the database format.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L174 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 174
*Signature: public function setFromDB($value)
*Parameters:
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $value
===setFromData()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L162 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 162
*Signature: public function setFromData($data,$file_name,$mime_type,$fmod_time)
*Parameters:
**$data
**$file_name
**$mime_type
***Default Value: false
**$fmod_time
***Default Value: false
===setFromResource()===
Reload the image data from the image reousrce
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php#L94 i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_IMAGE.php] on line 94
*Signature: public function setFromResource()
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]<br/>true on success
==Inherited Methods==
==Inherited Methods==
===__construct()===
===__construct()===
Line 67: Line 113:
===getHeaders()===
===getHeaders()===
This public method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#getHeaders() | I2CE_FormField_BINARY_FILE->getHeaders()]]
This public method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#getHeaders() | I2CE_FormField_BINARY_FILE->getHeaders()]]
===getMetaValue()===
This public method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#getMetaValue() | I2CE_FormField_BINARY_FILE->getMetaValue()]]


===getMimeType()===
===getMimeType()===
Line 85: Line 134:
===processDOMNotEditable()===
===processDOMNotEditable()===
This public method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#processDOMNotEditable() | I2CE_FormField_BINARY_FILE->processDOMNotEditable()]]
This public method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#processDOMNotEditable() | I2CE_FormField_BINARY_FILE->processDOMNotEditable()]]
===setFromDB()===
This public method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#setFromDB() | I2CE_FormField_BINARY_FILE->setFromDB()]]
===setFromData()===
This public method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#setFromData() | I2CE_FormField_BINARY_FILE->setFromData()]]


===setFromPost()===
===setFromPost()===
Line 98: Line 141:
This protected method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#getLink() | I2CE_FormField_BINARY_FILE->getLink()]]
This protected method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#getLink() | I2CE_FormField_BINARY_FILE->getLink()]]


===addHistory()===
===getTmpFileKeyValue()===
This public method is inherited from [[Class: I2CE_FormField (Development)#addHistory() | I2CE_FormField->addHistory()]]
This protected method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#getTmpFileKeyValue() | I2CE_FormField_BINARY_FILE->getTmpFileKeyValue()]]


===compare()===
===hasTmpFileKey()===
This public method is inherited from [[Class: I2CE_FormField (Development)#compare() | I2CE_FormField->compare()]]
This protected method is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#hasTmpFileKey() | I2CE_FormField_BINARY_FILE->hasTmpFileKey()]]


===createField()===
===setFromTemporaryLocation()===
This public method is inherited from [[Class: I2CE_FormField (Development)#createField() | I2CE_FormField->createField()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setFromTemporaryLocation() | I2CE_FormField_STORE_BINARY_FILE->setFromTemporaryLocation()]]


===firstHistory()===
===setFromTemporaryTable()===
This public method is inherited from [[Class: I2CE_FormField (Development)#firstHistory() | I2CE_FormField->firstHistory()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setFromTemporaryTable() | I2CE_FormField_STORE_BINARY_FILE->setFromTemporaryTable()]]


===getAttribute()===
===setTempKey()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getAttribute() | I2CE_FormField->getAttribute()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setTempKey() | I2CE_FormField_STORE_BINARY_FILE->setTempKey()]]


===getContainer()===
===storeInTemporaryLocation()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getContainer() | I2CE_FormField->getContainer()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#storeInTemporaryLocation() | I2CE_FormField_STORE_BINARY_FILE->storeInTemporaryLocation()]]


===getDBType()===
===storeInTemporaryTable()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getDBType() | I2CE_FormField->getDBType()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#storeInTemporaryTable() | I2CE_FormField_STORE_BINARY_FILE->storeInTemporaryTable()]]


===getDisplays()===
===save()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getDisplays() | I2CE_FormField->getDisplays()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#save() | I2CE_FormField_STORE_BINARY_FILE->save()]]
 
===getFromDB()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getFromDB() | I2CE_FormField->getFromDB()]]
 
===getHTMLName()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getHTMLName() | I2CE_FormField->getHTMLName()]]
 
===getHeader()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getHeader() | I2CE_FormField->getHeader()]]
 
===getHref()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getHref() | I2CE_FormField->getHref()]]
 
===getInvalid()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getInvalid() | I2CE_FormField->getInvalid()]]
 
===getMDB2Type()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getMDB2Type() | I2CE_FormField->getMDB2Type()]]
 
===getName()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getName() | I2CE_FormField->getName()]]
 
===getOption()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getOption() | I2CE_FormField->getOption()]]
 
===getString()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getString() | I2CE_FormField->getString()]]
 
===getTypeString()===
This public method is inherited from [[Class: I2CE_FormField (Development)#getTypeString() | I2CE_FormField->getTypeString()]]
 
===hasAttribute()===
This public method is inherited from [[Class: I2CE_FormField (Development)#hasAttribute() | I2CE_FormField->hasAttribute()]]
 
===hasDisplay()===
This public method is inherited from [[Class: I2CE_FormField (Development)#hasDisplay() | I2CE_FormField->hasDisplay()]]
 
===hasHeader()===
This public method is inherited from [[Class: I2CE_FormField (Development)#hasHeader() | I2CE_FormField->hasHeader()]]
 
===hasInvalid()===
This public method is inherited from [[Class: I2CE_FormField (Development)#hasInvalid() | I2CE_FormField->hasInvalid()]]
 
===hasNextHistory()===
This public method is inherited from [[Class: I2CE_FormField (Development)#hasNextHistory() | I2CE_FormField->hasNextHistory()]]
 
===hasOption()===
This public method is inherited from [[Class: I2CE_FormField (Development)#hasOption() | I2CE_FormField->hasOption()]]
 
===isInDB()===
This public method is inherited from [[Class: I2CE_FormField (Development)#isInDB() | I2CE_FormField->isInDB()]]
 
===isSameValue()===
This public method is inherited from [[Class: I2CE_FormField (Development)#isSameValue() | I2CE_FormField->isSameValue()]]
 
===issetValue()===
This public method is inherited from [[Class: I2CE_FormField (Development)#issetValue() | I2CE_FormField->issetValue()]]
 
===nextHistory()===
This public method is inherited from [[Class: I2CE_FormField (Development)#nextHistory() | I2CE_FormField->nextHistory()]]
 
===processDOM()===
This public method is inherited from [[Class: I2CE_FormField (Development)#processDOM() | I2CE_FormField->processDOM()]]
 
===setAttribute()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setAttribute() | I2CE_FormField->setAttribute()]]
 
===setContainer()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setContainer() | I2CE_FormField->setContainer()]]
 
===setDefaultOptions()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setDefaultOptions() | I2CE_FormField->setDefaultOptions()]]
 
===setHeaders()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setHeaders() | I2CE_FormField->setHeaders()]]
 
===setHref()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setHref() | I2CE_FormField->setHref()]]
 
===setInvalid()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setInvalid() | I2CE_FormField->setInvalid()]]
 
===setValue()===
This public method is inherited from [[Class: I2CE_FormField (Development)#setValue() | I2CE_FormField->setValue()]]
 
===unsetValue()===
This public method is inherited from [[Class: I2CE_FormField (Development)#unsetValue() | I2CE_FormField->unsetValue()]]


===displayInvalid()===
===setFromTemporaryFile()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#displayInvalid() | I2CE_FormField->displayInvalid()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setFromTemporaryFile() | I2CE_FormField_STORE_BINARY_FILE->setFromTemporaryFile()]]


===getDefaultValue()===
===setupStorageFile()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#getDefaultValue() | I2CE_FormField->getDefaultValue()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setupStorageFile() | I2CE_FormField_STORE_BINARY_FILE->setupStorageFile()]]


===getElement()===
===setupTemporaryDirectory()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#getElement() | I2CE_FormField->getElement()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setupTemporaryDirectory() | I2CE_FormField_STORE_BINARY_FILE->setupTemporaryDirectory()]]


===getOptionsByPath()===
===storeInTemporaryFile()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#getOptionsByPath() | I2CE_FormField->getOptionsByPath()]]
This public method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#storeInTemporaryFile() | I2CE_FormField_STORE_BINARY_FILE->storeInTemporaryFile()]]


===optionsHasPath()===
===setFromPostUpload()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#optionsHasPath() | I2CE_FormField->optionsHasPath()]]
This protected method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setFromPostUpload() | I2CE_FormField_STORE_BINARY_FILE->setFromPostUpload()]]


===setElement()===
===setValueFromTempFile()===
This protected method is inherited from [[Class: I2CE_FormField (Development)#setElement() | I2CE_FormField->setElement()]]
This protected method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#setValueFromTempFile() | I2CE_FormField_STORE_BINARY_FILE->setValueFromTempFile()]]


===_hasMethod()===
===getStorageFile()===
This public method is inherited from [[Class: I2CE_Fuzzy (Development)#_hasMethod() | I2CE_Fuzzy->_hasMethod()]]
This protected method is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#getStorageFile() | I2CE_FormField_STORE_BINARY_FILE->getStorageFile()]]
==Inherited Variables==
==Inherited Variables==
===$mime_type===
===$mime_type===
Line 245: Line 201:
Theis protected variable is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#$keys | I2CE_FormField_BINARY_FILE->$keys]]
Theis protected variable is inherited from [[Class: I2CE_FormField_BINARY_FILE (Development)#$keys | I2CE_FormField_BINARY_FILE->$keys]]


===$name===
===$tmp_key===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$name | I2CE_FormField->$name]]
Theis protected variable is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#$tmp_key | I2CE_FormField_STORE_BINARY_FILE->$tmp_key]]
 
===$options===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$options | I2CE_FormField->$options]]
 
===$value===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$value | I2CE_FormField->$value]]
 
===$headers===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$headers | I2CE_FormField->$headers]]
 
===$href===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$href | I2CE_FormField->$href]]
 
===$container===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$container | I2CE_FormField->$container]]
 
===$history===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$history | I2CE_FormField->$history]]
 
===$history_idx===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$history_idx | I2CE_FormField->$history_idx]]
 
===$attributes===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$attributes | I2CE_FormField->$attributes]]
 
===$invalid===
Theis protected variable is inherited from [[Class: I2CE_FormField (Development)#$invalid | I2CE_FormField->$invalid]]
==Inherited Fuzzy Methods==
===cachedTableReference()===
This method is inherited from [[Class: I2CE_FormField (Development)#cachedTableReference() | I2CE_FormField->cachedTableReference()]]
 
===isNumeric()===
This method is inherited from [[Class: I2CE_FormField (Development)#isNumeric() | I2CE_FormField->isNumeric()]]
 
===getLimitStyles()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitStyles() | I2CE_FormField->getLimitStyles()]]
 
===generateLimit()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit() | I2CE_FormField->generateLimit()]]
 
===generateLimit_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit_null() | I2CE_FormField->generateLimit_null()]]
 
===generateLimit_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit_not_null() | I2CE_FormField->generateLimit_not_null()]]
 
===generateLimit_null_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit_null_not_null() | I2CE_FormField->generateLimit_null_not_null()]]
 
===checkLimit_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#checkLimit_null() | I2CE_FormField->checkLimit_null()]]
 
===checkLimit_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#checkLimit_not_null() | I2CE_FormField->checkLimit_not_null()]]
 
===checkLimit_null_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#checkLimit_null_not_null() | I2CE_FormField->checkLimit_null_not_null()]]
 
===checkLimitString_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#checkLimitString_null() | I2CE_FormField->checkLimitString_null()]]
 
===checkLimitString_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#checkLimitString_not_null() | I2CE_FormField->checkLimitString_not_null()]]
 
===checkLimitString_null_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#checkLimitString_null_not_null() | I2CE_FormField->checkLimitString_null_not_null()]]
 
===getLimitMenu_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitMenu_null() | I2CE_FormField->getLimitMenu_null()]]
 
===getLimitMenu_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitMenu_not_null() | I2CE_FormField->getLimitMenu_not_null()]]
 
===getLimitMenu_null_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitMenu_null_not_null() | I2CE_FormField->getLimitMenu_null_not_null()]]
 
===processLimitMenu_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#processLimitMenu_null() | I2CE_FormField->processLimitMenu_null()]]
 
===processLimitMenu_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#processLimitMenu_not_null() | I2CE_FormField->processLimitMenu_not_null()]]
 
===processLimitMenu_null_not_null()===
This method is inherited from [[Class: I2CE_FormField (Development)#processLimitMenu_null_not_null() | I2CE_FormField->processLimitMenu_null_not_null()]]
 
===generateLimit_max_parent()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit_max_parent() | I2CE_FormField->generateLimit_max_parent()]]
 
===generateLimit_min_parent()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit_min_parent() | I2CE_FormField->generateLimit_min_parent()]]
 
===generateLimit_max_parent_form()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit_max_parent_form() | I2CE_FormField->generateLimit_max_parent_form()]]
 
===generateLimit_min_parent_form()===
This method is inherited from [[Class: I2CE_FormField (Development)#generateLimit_min_parent_form() | I2CE_FormField->generateLimit_min_parent_form()]]
 
===getLimitMenu_max_parent()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitMenu_max_parent() | I2CE_FormField->getLimitMenu_max_parent()]]
 
===getLimitMenu_min_parent()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitMenu_min_parent() | I2CE_FormField->getLimitMenu_min_parent()]]
 
===getLimitMenu_max_parent_form()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitMenu_max_parent_form() | I2CE_FormField->getLimitMenu_max_parent_form()]]
 
===getLimitMenu_min_parent_form()===
This method is inherited from [[Class: I2CE_FormField (Development)#getLimitMenu_min_parent_form() | I2CE_FormField->getLimitMenu_min_parent_form()]]
 
===processLimitMenu_max_parent()===
This method is inherited from [[Class: I2CE_FormField (Development)#processLimitMenu_max_parent() | I2CE_FormField->processLimitMenu_max_parent()]]


===processLimitMenu_min_parent()===
===$setStmt===
This method is inherited from [[Class: I2CE_FormField (Development)#processLimitMenu_min_parent() | I2CE_FormField->processLimitMenu_min_parent()]]
Theis protected variable is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#$setStmt | I2CE_FormField_STORE_BINARY_FILE->$setStmt]]
 
===processLimitMenu_max_parent_form()===
This method is inherited from [[Class: I2CE_FormField (Development)#processLimitMenu_max_parent_form() | I2CE_FormField->processLimitMenu_max_parent_form()]]
 
===processLimitMenu_min_parent_form()===
This method is inherited from [[Class: I2CE_FormField (Development)#processLimitMenu_min_parent_form() | I2CE_FormField->processLimitMenu_min_parent_form()]]
 
===save()===
This method is inherited from [[Class: I2CE_FormField (Development)#save() | I2CE_FormField->save()]]


===populateHistory()===
===$storeStmt===
This method is inherited from [[Class: I2CE_FormField (Development)#populateHistory() | I2CE_FormField->populateHistory()]]
Theis protected variable is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#$storeStmt | I2CE_FormField_STORE_BINARY_FILE->$storeStmt]]


===userMessage()===
===$temp_file===
This method is inherited from [[Class: I2CE_Fuzzy (Development)#userMessage() | I2CE_Fuzzy->userMessage()]]
Theis protected variable is inherited from [[Class: I2CE_FormField_STORE_BINARY_FILE (Development)#$temp_file | I2CE_FormField_STORE_BINARY_FILE->$temp_file]]
==Inherited Fuzzy CLI Methods==
===cachedTableReference()===
This method is inherited from [[Class: I2CE_FormField (Development)#cachedTableReference() | I2CE_FormField->cachedTableReference()]]




[[Category:Class Documentation (Development)]]
[[Category:Class Documentation (Development)]]

Latest revision as of 08:13, 6 May 2015


This article describes the class I2CE_FormField_IMAGE .

Class for defining all the database fields used by a object.

Variables

$image_rsrc

Methods

createImageResource()

defaultExtension()

get the default extension for this image

defaultMimeType()

get the default extension for this image

getDisplayNode()

Return the display value of this form field as a DOM Node.

getImageHeight()

Gets the height of the image in pixels

getImageResource()

Returns an image resource (see PHP GD http://us2.php.net/manual/en/ref.image.php) for the internal data. This resource can then be manipulated (resized etc). Once manipulation is done, then {@see setFromReosurce} should be called.

getImageWidth()

Gets the width of the image in pixels

isValidMimeType()

Checks to see if a mime type is a valid image mime type

processDOMEditable()

setFromDB()

Sets the value of this field from the database format.

setFromData()

setFromResource()

Reload the image data from the image reousrce

Inherited Methods

__construct()

This public method is inherited from I2CE_FormField_BINARY_FILE->__construct()

getBinaryData()

This public method is inherited from I2CE_FormField_BINARY_FILE->getBinaryData()

getContentLength()

This public method is inherited from I2CE_FormField_BINARY_FILE->getContentLength()

getDBValue()

This public method is inherited from I2CE_FormField_BINARY_FILE->getDBValue()

getDisplayValue()

This public method is inherited from I2CE_FormField_BINARY_FILE->getDisplayValue()

getExtension()

This public method is inherited from I2CE_FormField_BINARY_FILE->getExtension()

getFieldLink()

This public method is inherited from I2CE_FormField_BINARY_FILE->getFieldLink()

getFileName()

This public method is inherited from I2CE_FormField_BINARY_FILE->getFileName()

getHeaders()

This public method is inherited from I2CE_FormField_BINARY_FILE->getHeaders()

getMetaValue()

This public method is inherited from I2CE_FormField_BINARY_FILE->getMetaValue()

getMimeType()

This public method is inherited from I2CE_FormField_BINARY_FILE->getMimeType()

getModTime()

This public method is inherited from I2CE_FormField_BINARY_FILE->getModTime()

getValue()

This public method is inherited from I2CE_FormField_BINARY_FILE->getValue()

isTooBig()

This public method is inherited from I2CE_FormField_BINARY_FILE->isTooBig()

isValid()

This public method is inherited from I2CE_FormField_BINARY_FILE->isValid()

processDOMNotEditable()

This public method is inherited from I2CE_FormField_BINARY_FILE->processDOMNotEditable()

setFromPost()

This public method is inherited from I2CE_FormField_BINARY_FILE->setFromPost()

getLink()

This protected method is inherited from I2CE_FormField_BINARY_FILE->getLink()

getTmpFileKeyValue()

This protected method is inherited from I2CE_FormField_BINARY_FILE->getTmpFileKeyValue()

hasTmpFileKey()

This protected method is inherited from I2CE_FormField_BINARY_FILE->hasTmpFileKey()

setFromTemporaryLocation()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->setFromTemporaryLocation()

setFromTemporaryTable()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->setFromTemporaryTable()

setTempKey()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->setTempKey()

storeInTemporaryLocation()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->storeInTemporaryLocation()

storeInTemporaryTable()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->storeInTemporaryTable()

save()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->save()

setFromTemporaryFile()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->setFromTemporaryFile()

setupStorageFile()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->setupStorageFile()

setupTemporaryDirectory()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->setupTemporaryDirectory()

storeInTemporaryFile()

This public method is inherited from I2CE_FormField_STORE_BINARY_FILE->storeInTemporaryFile()

setFromPostUpload()

This protected method is inherited from I2CE_FormField_STORE_BINARY_FILE->setFromPostUpload()

setValueFromTempFile()

This protected method is inherited from I2CE_FormField_STORE_BINARY_FILE->setValueFromTempFile()

getStorageFile()

This protected method is inherited from I2CE_FormField_STORE_BINARY_FILE->getStorageFile()

Inherited Variables

$mime_type

Theis protected variable is inherited from I2CE_FormField_BINARY_FILE->$mime_type

$null_term

Theis protected variable is inherited from I2CE_FormField_BINARY_FILE->$null_term

$file_name

Theis protected variable is inherited from I2CE_FormField_BINARY_FILE->$file_name

$fmod_time

Theis protected variable is inherited from I2CE_FormField_BINARY_FILE->$fmod_time

$keys

Theis protected variable is inherited from I2CE_FormField_BINARY_FILE->$keys

$tmp_key

Theis protected variable is inherited from I2CE_FormField_STORE_BINARY_FILE->$tmp_key

$setStmt

Theis protected variable is inherited from I2CE_FormField_STORE_BINARY_FILE->$setStmt

$storeStmt

Theis protected variable is inherited from I2CE_FormField_STORE_BINARY_FILE->$storeStmt

$temp_file

Theis protected variable is inherited from I2CE_FormField_STORE_BINARY_FILE->$temp_file