Class: I2CE FormField BINARY FILE (4.1.12)

From IHRIS Wiki


This article describes the abstract class I2CE_FormField_BINARY_FILE .

Class for defining the binary file field used by a object.

Variables

$mime_type

The magically determined mime type @var protected mixed $file_name. Either false or a string

$null_term

The number of null \0 at the end of the string (it seems MDB2 does truncates \0 when getting results)

$file_name

The file name as it was uploaded (may not be set) . Either false or string

$fmod_time

The time the file was uploaded (may not be set) . Either false or integer(unix time stamp)

$keys

An array whose keys are the keys to the metadata for the file and values are the variables they should be stored in . All keys need to be a string of length 9 @protected static array of string $keys

Methods

__construct()

Create a new instance of a I2CE_FormField

defaultExtension()

get the default extension for this

defaultMimeType()

get the default extension for this

getBinaryData()

Gets the binary data for the form field

getContentLength()

Gets the length of the conten

getDBValue()

Returns the value of this field ready to be stored in the database.

getDisplayNode()

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

getDisplayValue()

Returns the value of this field as a human readable format.

getExtension()

Get the extension associated with this binary file

getFieldLink()

Generate the link to the given binary field in the given form id

getFileName()

Get the file name associated to this binary field. if none, it will generate one based on the form and field

getHeaders()

Any headers that need to be sent when this field is dumped

getLink()

Gets the link to this binary field. It will fail if there is field is not attached to any form

getMetaValue()

Return the meta data as a string for this file.

getMimeType()

Get the magically determined mime type

getModTime()

Returns the last modification time of this field, or false if unknown @param mixed.

getTmpFileKeyValue()

getValue()

Returns the value of this field.

hasTmpFileKey()

isTooBig()

Check if the set value is too big

isValid()

Checks to see if the current value for this is set and valid.

isValidMimeType()

Checks to see if a mime type is a valid mime type for this binary file

processDOMEditable()

processDOMNotEditable()

setFromDB()

Sets the value of this field from the database format.

setFromData()

setFromPost()

Sets the value of this field from the posted form.

Inherited Methods

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

$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