ArrayInput::hasParameterOption()

bool hasParameterOption(string|array $values, bool $onlyParams = false) Returns true if the raw parameters (not parsed) contain a value. This method is to be used to introspect the input parameters before they have been validated. It must be used carefully. Parameters string|array $values The values to look for in the raw parameters (can be an array) bool $onlyParams Only check real parameters, skip those following an end of options (--) signal Return Value bool true if the val

ArrayInput::getFirstArgument()

string getFirstArgument() Returns the first argument from the raw parameters (not parsed). Return Value string The value of the first argument or null otherwise

ArrayDenormalizer::supportsDenormalization()

bool supportsDenormalization(mixed $data, string $type, string $format = null) Checks whether the given class is supported for denormalization by this normalizer. Parameters mixed $data Data to denormalize from string $type The class to which the data should be denormalized string $format The format being deserialized from Return Value bool

ArrayDenormalizer::setSerializer()

setSerializer(SerializerInterface $serializer) Sets the owning Serializer object. Parameters SerializerInterface $serializer

ArrayChoiceList::getValues()

string[] getValues() Returns the values for the choices. The values are strings that do not contain duplicates. Return Value string[] The choice values

ArrayConverter

class ArrayConverter ArrayConverter generates tree like structure from a message catalogue. e.g. this 'foo.bar1' => 'test1', 'foo.bar2' => 'test2' converts to follows: foo: bar1: test1 bar2: test2. Methods static array expandToTree(array $messages) Converts linear messages array to tree-like array. Details static array expandToTree(array $messages) Converts linear messages array to tree-like array. For example this rray('foo.bar' => 'va

ArrayDenormalizer::denormalize()

object denormalize(mixed $data, string $class, string $format = null, array $context = array()) Denormalizes data back into an object of the given class. Parameters mixed $data data to restore string $class the expected class to instantiate string $format format the given data was extracted from array $context options available to the denormalizer Return Value object

ArrayChoiceList::getStructuredValues()

string[] getStructuredValues() Returns the values in the structure originally passed to the list. Contrary to {@link getValues()}, the result is indexed by the original keys of the choices. If the original array contained nested arrays, these nested arrays are represented here as well: $form->add('field', 'choice', array( 'choices' => array( 'Decided' => array('Yes' => true, 'No' => false), 'Undecided' => array('Maybe' => null), ), ));

ArrayDenormalizer

class ArrayDenormalizer implements DenormalizerInterface, SerializerAwareInterface Denormalizes arrays of objects. Methods object denormalize(mixed $data, string $class, string $format = null, array $context = array()) Denormalizes data back into an object of the given class. bool supportsDenormalization(mixed $data, string $type, string $format = null) Checks whether the given class is supported for denormalization by this normalizer. setSerializer(SerializerInterface $seriali

ArrayChoiceList::getValuesForChoices()

string[] getValuesForChoices(array $choices) Returns the values corresponding to the given choices. The values are returned with the same keys and in the same order as the corresponding choices in the given array. Parameters array $choices An array of choices. Non-existing choices in this array are ignored Return Value string[] An array of choice values