File::move()

File move(string $directory, string $name = null) Moves the file to a new location. Parameters string $directory The destination folder string $name The new file name Return Value File A File object representing the new file Exceptions FileException if the target file could not be created

File::guessExtension()

string|null guessExtension() Returns the extension based on the mime type. If the mime type is unknown, returns null. This method uses the mime type as guessed by getMimeType() to guess the file extension. Return Value string|null The guessed extension or null if it cannot be guessed See also ExtensionGuesser getMimeType()

File::getMimeType()

string|null getMimeType() Returns the mime type of the file. The mime type is guessed using a MimeTypeGuesser instance, which uses finfo(), mimecontenttype() and the system binary "file" (in this order), depending on which of those are available. Return Value string|null The guessed mime type (e.g. "application/pdf") See also MimeTypeGuesser

File

class File extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NOT_FOUND_ERROR NOT_READABLE_ERROR EMPTY_ERROR TOO_LARGE_ERROR INVALID_MIME_TYPE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The group

File

class File extends SplFileInfo A file in the file system. Methods __construct(string $path, bool $checkPath = true) Constructs a new file from the given path. string|null guessExtension() Returns the extension based on the mime type. string|null getMimeType() Returns the mime type of the file. File move(string $directory, string $name = null) Moves the file to a new location. Details __construct(string $path, bool $checkPath = true)

FieldVote::getField()

getField()

FieldVote::getDomainObject()

getDomainObject()

FieldVote

class FieldVote This class is a lightweight wrapper around field vote requests which does not violate any interface contracts. Methods __construct($domainObject, $field) getDomainObject() getField() Details __construct($domainObject, $field) Parameters $domainObject $field getDomainObject() getField()

FieldEntryInterface

interface FieldEntryInterface implements EntryInterface Interface for entries which are restricted to specific fields Methods AclInterface getAcl() The ACL this ACE is associated with. from EntryInterface integer getId() The primary key of this ACE from EntryInterface integer getMask() The permission mask of this ACE from EntryInterface SecurityIdentityInterface getSecurityIdentity() The security identity associated with this ACE from EntryInterface string getStrategy() T

FieldEntry::unserialize()

unserialize(string $serialized) Implementation of \Serializable Parameters string $serialized