FileFormField::setErrorCode()

setErrorCode(int $error) Sets the PHP error code associated with the field. Parameters int $error The error code (one of UPLOADERRINISIZE, UPLOADERRFORMSIZE, UPLOADERRPARTIAL, UPLOADERRNOFILE, UPLOADERRNOTMPDIR, UPLOADERRCANTWRITE, or UPLOADERREXTENSION) Exceptions InvalidArgumentException When error code doesn't exist

FileFormField

class FileFormField extends FormField FileFormField represents a file form field (an HTML file input tag). Methods __construct(DOMElement $node) Constructor. from FormField string getName() Returns the name of the field. from FormField string|array getValue() Gets the value of the field. from FormField setValue(string $value) Sets the value of the field. bool hasValue() Returns true if the field should be included in the submitted values. from FormField bool isDisabl

FileExistenceResource::unserialize()

unserialize($serialized) {@inheritdoc} Parameters $serialized

FileExistenceResource::serialize()

serialize() {@inheritdoc}

FileExistenceResource::isFresh()

bool isFresh(int $timestamp) Returns true if the resource has not been updated since the given timestamp. Parameters int $timestamp The last time the resource was loaded Return Value bool True if the resource has not been updated, false otherwise

FileExistenceResource::getResource()

string getResource() Return Value string The file path to the resource

FileExistenceResource

class FileExistenceResource implements SelfCheckingResourceInterface, Serializable FileExistenceResource represents a resource stored on the filesystem. Freshness is only evaluated against resource creation or deletion. The resource can be a file or a directory. Methods __construct(string $resource) Constructor. string __toString() Returns a string representation of the Resource. string getResource() bool isFresh(int $timestamp) Returns true if the resource has not been u

FileException

class FileException extends RuntimeException Thrown when an error occurred in the component File.

FileDumper::setRelativePathTemplate()

setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. Parameters string $relativePathTemplate A template for the relative paths to files

FileDumper::setBackup()

setBackup(bool $backup) Sets backup flag. Parameters bool $backup