ImmutableEventDispatcher::addSubscriber()

addSubscriber(EventSubscriberInterface $subscriber) Adds an event subscriber. The subscriber is asked for all the events he is interested in and added as a listener for these events. Parameters EventSubscriberInterface $subscriber The subscriber

ImageValidator

class ImageValidator extends FileValidator Validates whether a value is a valid image file and is valid against minWidth, maxWidth, minHeight and maxHeight constraints. Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. KB_BYTES MB_BYTES KIB_BYTES MIB_BYTES Methods initialize(ExecutionContextInterface $context) Initializes the constra

Image

class Image extends File 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 SIZE_NOT_DETECTED_ERROR TOO_WIDE_ERROR TOO_NARROW_ERROR TOO_HIGH_ERROR TOO_LOW_ERROR RATIO_TOO_BIG_ERRO

Image

class Image extends AbstractUriElement Image represents an HTML image (an HTML img tag). Methods __construct(DOMElement $node, string $currentUri) DOMElement getNode() Gets the node associated with this link. from AbstractUriElement string getMethod() Gets the method associated with this link. from AbstractUriElement string getUri() Gets the URI associated with this link. from AbstractUriElement Details __construct(DOMElement $node, string $c

IdReader::isSingleId()

bool isSingleId() Returns whether the class has a single-column ID. Return Value bool Returns true if the class has a single-column ID and false otherwise.

IdReader::isIntId()

bool isIntId() Returns whether the class has a single-column integer ID. Return Value bool Returns true if the class has a single-column integer ID and false otherwise.

IdReader::getIdValue()

mixed getIdValue(object $object) Returns the ID value for an object. This method assumes that the object has a single-column ID. Parameters object $object The object Return Value mixed The ID value

IdentityTranslator::transChoice()

string transChoice(string $id, int $number, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given choice message by choosing a translation according to a number. Parameters string $id The message id (may also be an object that can be cast to string) int $number The number to use to find the indice of the message array $parameters An array of parameters for the message string|null $domain The domain for the message or null to u

IdentityTranslator::trans()

string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given message. Parameters string $id The message id (may also be an object that can be cast to string) array $parameters An array of parameters for the message string|null $domain The domain for the message or null to use the default string|null $locale The locale or null to use the default Return Value string The translated string Exceptions InvalidArgum

IdentityTranslator::setLocale()

setLocale(string $locale) Sets the current locale. Parameters string $locale The locale Exceptions InvalidArgumentException If the locale contains invalid characters