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
DetailsZend_File_Transfer_Adapter_Abstract $_adapter = ''
Detailsinteger $_counter = '1'
Detailsinteger $_maxFileSize = '1'
Detailsboolean $_validated = 'false'
Detailsboolean $_valueDisabled = 'false'
Detailsstring $helper = 'formFile'
Details_convertIniToInteger(
string $setting
)
:
integerConverts a ini setting to a integer value
Details_getErrorMessages(
)
:
arrayRetrieve error messages and perform translation and value substitution
DetailsaddFilter(
string|array $filter, string|array $options
=
null
)
:
Zend_Form_Element_FileAdd Filter; proxy to adapter
DetailsaddFilters(
array $filters
)
:
Zend_Form_Element_FileAdd Multiple filters at once; proxy to adapter
DetailsaddPrefixPath(
string $prefix, string $path, string $type
=
null
)
:
Zend_Form_Element_FileAdd prefix path for plugin loader
DetailsaddValidator(
string|Zend_Validate_Interface $validator, bool $breakChainOnFailure
=
false, mixed $options
=
array
)
:
Zend_Form_Element_FileAdd Validator; proxy to adapter
DetailsaddValidators(
array $validators
)
:
Zend_Form_Element_FileAdd multiple validators at once; proxy to adapter
DetailsclearFilters(
)
:
Zend_Form_Element_FileRemove all filters; proxy to adapter
DetailsclearValidators(
)
:
Zend_Form_Element_FileRemove all validators; proxy to adapter
DetailsgetDestination(
)
:
stringGet the upload destination
DetailsgetErrors(
)
:
arrayRetrieve error codes; proxy to transfer adapter
DetailsgetFileInfo(
string $value
=
null
)
:
arrayGet internal file informations
DetailsgetFileName(
string $value
=
null, boolean $path
=
true
)
:
stringGet the final filename
DetailsgetFileSize(
)
:
string|arrayReturns the filesize for this file element
DetailsgetFilter(
string $name
)
:
Zend_Filter_Interface|nullRetrieve individual filter; proxy to adapter
DetailsgetFilters(
)
:
arrayReturns all set filters; proxy to adapter
DetailsgetHash(
string $hash
=
crc32
)
:
string|arrayReturns the hash for this file element
DetailsgetMaxFileSize(
)
:
integerSets the maximum file size of the form
DetailsgetMessages(
)
:
arrayRetrieve error messages; proxy to transfer adapter
DetailsgetMimeType(
)
:
string|arrayReturns the mimetype for this file element
DetailsgetMultiFile(
)
:
integerReturns the multifile element number
DetailsgetPluginLoader(
string $type
)
:
Zend_Loader_PluginLoader_InterfaceGet Plugin Loader
DetailsgetTransferAdapter(
)
:
Zend_File_Transfer_Adapter_AbstractGet transfer adapter
Lazy loads HTTP transfer adapter when no adapter registered.
DetailsgetTranslator(
)
:
Zend_Translate_Adapter|nullRetrieve localization translator object
DetailsgetValidator(
string $name
)
:
Zend_Validate_Interface|nullRetrieve validator by name; proxy to adapter
DetailsgetValidators(
)
:
arrayRetrieve all validators; proxy to adapter
DetailsgetValue(
)
:
null|stringProcesses the file, returns null or the filename only For the complete path, use getFileName
DetailshasErrors(
)
:
boolAre there errors registered?
DetailsisFiltered(
)
:
boolHas the file been filtered?
DetailsisReceived(
)
:
boolWas the file received?
DetailsisUploaded(
)
:
boolWas the file uploaded?
DetailsisValid(
string $value, mixed $context
=
null
)
:
boolValidate upload
DetailsisValueDisabled(
)
:
booleanReturns if the file will be uploaded when calling getValues()
DetailsloadDefaultDecorators(
)
:
voidLoad default decorators
Detailsreceive(
)
:
booleanReceive the uploaded file
DetailsremoveFilter(
string $name
)
:
Zend_Form_Element_FileRemove an individual filter; proxy to adapter
DetailsremoveValidator(
string $name
)
:
Zend_Form_Element_FileRemove validator by name; proxy to adapter
Detailsrender(
Zend_View_Interface $view
=
null
)
:
stringRender form element Checks for decorator interface to prevent errors
DetailssetDestination(
string $path
)
:
Zend_Form_Element_FileSet the upload destination
DetailssetDisableTranslator(
bool $flag
)
:
Zend_Form_Element_FileIndicate whether or not translation should be disabled
DetailssetFilters(
$filters
)
:
Zend_Form_Element_FileSets a filter for the class, erasing all previous set; proxy to adapter
DetailssetMaxFileSize(
integer $size
)
:
integerSets the maximum file size of the form
DetailssetMultiFile(
integer $count
)
:
Zend_Form_Element_FileSet a multifile element
DetailssetPluginLoader(
Zend_Loader_PluginLoader_Interface $loader, string $type
)
:
Zend_Form_Element_FileSet plugin loader
DetailssetTransferAdapter(
string|Zend_File_Transfer_Adapter_Abstract $adapter
)
:
Zend_Form_Element_FileSet transfer adapter
DetailssetTranslator(
Zend_Translate|null $translator
=
null
)
:
Zend_Form_Element_FileSet translator object for localization
DetailssetValidators(
array $validators
)
:
Zend_Form_Element_FileAdd multiple validators at once, overwriting; proxy to adapter
DetailssetValue(
mixed $value
)
:
Zend_Form_Element_FileDisallow setting the value
DetailssetValueDisabled(
boolean $flag
)
:
Zend_Form_Element_FileSet if the file will be uploaded when getting the value This defaults to false which will force receive() when calling getValues()
DetailstranslatorIsDisabled(
)
:
boolIs translation disabled?
Details