Class: I2CE FormField PASSPORT (Development)
This article describes the class I2CE_FormField_PASSPORT .
- Extends the class: I2CE_FormField_IMAGE.
- Location: Part of the module BinField in the package I2CE 4.1-dev
- Source: Defined in the file modules/Forms/modules/Binary_Files/lib/I2CE_FormField_PASSPORT.php on line 28
- Author: Sovello Hildebrand <sovellohpmgani@gmail.com>
- Since: v4.1
Class defining the passport field.
Methods
imageToPassport()
Resizes the image to a passport size specified
- Defined in i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_PASSPORT.php on line 123
- Signature: protected function imageToPassport($image,$n_width,$n_height,$width,$height)
- Parameters:
imagecreatefrombmp()
.bmp is just hex encoded RGB values. All you need to do is open in binary mode and seperate the header from the body. Decode the width and height from the header. Then create the image pixel by pixel from the RGB values in the body. source: http://www.php.net/manual/en/function.imagecreatefromwbmp.php
- Defined in i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_PASSPORT.php on line 140
- Signature: protected function imagecreatefrombmp($filename)
- Parameters:
- $filename
setFromData()
Sets the value of this field from the posted form. @param mixed $post
- Defined in i2ce/modules/Forms/modules/Binary_Files/lib/I2CE_FormField_PASSPORT.php on line 36
- 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
Inherited Methods
getDisplayNode()
This public method is inherited from I2CE_FormField_IMAGE->getDisplayNode()
getImageHeight()
This public method is inherited from I2CE_FormField_IMAGE->getImageHeight()
getImageResource()
This public method is inherited from I2CE_FormField_IMAGE->getImageResource()
getImageWidth()
This public method is inherited from I2CE_FormField_IMAGE->getImageWidth()
isValidMimeType()
This public method is inherited from I2CE_FormField_IMAGE->isValidMimeType()
processDOMEditable()
This public method is inherited from I2CE_FormField_IMAGE->processDOMEditable()
setFromDB()
This public method is inherited from I2CE_FormField_IMAGE->setFromDB()
setFromResource()
This public method is inherited from I2CE_FormField_IMAGE->setFromResource()
createImageResource()
This protected method is inherited from I2CE_FormField_IMAGE->createImageResource()
defaultExtension()
This protected method is inherited from I2CE_FormField_IMAGE->defaultExtension()
defaultMimeType()
This protected method is inherited from I2CE_FormField_IMAGE->defaultMimeType()
__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
$image_rsrc
Theis protected variable is inherited from I2CE_FormField_IMAGE->$image_rsrc
$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