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

ArrayInput

class ArrayInput extends Input ArrayInput represents an input provided as an array. Usage: $input = new ArrayInput(array('name' => 'foo', '--bar' => 'foobar')); Methods __construct(array $parameters, InputDefinition $definition = null) Constructor. bind(InputDefinition $definition) Binds the current Input instance with the given arguments and options. from Input validate() Validates the input. from Input bool isInteractive() Is this input means interactive? from Inpu

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

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

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

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

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

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

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), ), ));