Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Form_Element
TRANSFER_ADAPTER = 'TRANSFER_ADAPTER'
Plugin loader type
Zend_File_Transfer_Adapter_Abstract $_adapter = ''
integer $_counter = '1'
integer $_maxFileSize = '1'
boolean $_validated = 'false'
boolean $_valueDisabled = 'false'
string $helper = 'formFile'
_convertIniToInteger(
string $setting
)
:
integer
Converts a ini setting to a integer value
_getErrorMessages(
)
:
array
Retrieve error messages and perform translation and value substitution
addFilter(
string|array $filter, string|array $options
=
null
)
:
Zend_Form_Element_File
Add Filter; proxy to adapter
addFilters(
array $filters
)
:
Zend_Form_Element_File
Add Multiple filters at once; proxy to adapter
addPrefixPath(
string $prefix, string $path, string $type
=
null
)
:
Zend_Form_Element_File
Add prefix path for plugin loader
addValidator(
string|Zend_Validate_Interface $validator, bool $breakChainOnFailure
=
false, mixed $options
=
array
)
:
Zend_Form_Element_File
Add Validator; proxy to adapter
addValidators(
array $validators
)
:
Zend_Form_Element_File
Add multiple validators at once; proxy to adapter
clearFilters(
)
:
Zend_Form_Element_File
Remove all filters; proxy to adapter
clearValidators(
)
:
Zend_Form_Element_File
Remove all validators; proxy to adapter
getDestination(
)
:
string
Get the upload destination
getErrors(
)
:
array
Retrieve error codes; proxy to transfer adapter
getFileInfo(
string $value
=
null
)
:
array
Get internal file informations
getFileName(
string $value
=
null, boolean $path
=
true
)
:
string
Get the final filename
getFileSize(
)
:
string|array
Returns the filesize for this file element
getFilter(
string $name
)
:
Zend_Filter_Interface|null
Retrieve individual filter; proxy to adapter
getFilters(
)
:
array
Returns all set filters; proxy to adapter
getHash(
string $hash
=
crc32
)
:
string|array
Returns the hash for this file element
getMaxFileSize(
)
:
integer
Sets the maximum file size of the form
getMessages(
)
:
array
Retrieve error messages; proxy to transfer adapter
getMimeType(
)
:
string|array
Returns the mimetype for this file element
getMultiFile(
)
:
integer
Returns the multifile element number
getPluginLoader(
string $type
)
:
Zend_Loader_PluginLoader_Interface
Get Plugin Loader
getTransferAdapter(
)
:
Zend_File_Transfer_Adapter_Abstract
Get transfer adapter
Lazy loads HTTP transfer adapter when no adapter registered.
getTranslator(
)
:
Zend_Translate_Adapter|null
Retrieve localization translator object
getValidator(
string $name
)
:
Zend_Validate_Interface|null
Retrieve validator by name; proxy to adapter
getValidators(
)
:
array
Retrieve all validators; proxy to adapter
getValue(
)
:
null|string
Processes the file, returns null or the filename only For the complete path, use getFileName
hasErrors(
)
:
bool
Are there errors registered?
isFiltered(
)
:
bool
Has the file been filtered?
isReceived(
)
:
bool
Was the file received?
isUploaded(
)
:
bool
Was the file uploaded?
isValid(
string $value, mixed $context
=
null
)
:
bool
Validate upload
isValueDisabled(
)
:
boolean
Returns if the file will be uploaded when calling getValues()
loadDefaultDecorators(
)
:
void
Load default decorators
receive(
)
:
boolean
Receive the uploaded file
removeFilter(
string $name
)
:
Zend_Form_Element_File
Remove an individual filter; proxy to adapter
removeValidator(
string $name
)
:
Zend_Form_Element_File
Remove validator by name; proxy to adapter
render(
Zend_View_Interface $view
=
null
)
:
string
Render form element Checks for decorator interface to prevent errors
setDestination(
string $path
)
:
Zend_Form_Element_File
Set the upload destination
setDisableTranslator(
bool $flag
)
:
Zend_Form_Element_File
Indicate whether or not translation should be disabled
setFilters(
$filters
)
:
Zend_Form_Element_File
Sets a filter for the class, erasing all previous set; proxy to adapter
setMaxFileSize(
integer $size
)
:
integer
Sets the maximum file size of the form
setMultiFile(
integer $count
)
:
Zend_Form_Element_File
Set a multifile element
setPluginLoader(
Zend_Loader_PluginLoader_Interface $loader, string $type
)
:
Zend_Form_Element_File
Set plugin loader
setTransferAdapter(
string|Zend_File_Transfer_Adapter_Abstract $adapter
)
:
Zend_Form_Element_File
Set transfer adapter
setTranslator(
Zend_Translate|null $translator
=
null
)
:
Zend_Form_Element_File
Set translator object for localization
setValidators(
array $validators
)
:
Zend_Form_Element_File
Add multiple validators at once, overwriting; proxy to adapter
setValue(
mixed $value
)
:
Zend_Form_Element_File
Disallow setting the value
setValueDisabled(
boolean $flag
)
:
Zend_Form_Element_File
Set if the file will be uploaded when getting the value This defaults to false which will force receive() when calling getValues()
translatorIsDisabled(
)
:
bool
Is translation disabled?