class Parser Parsers a token stream. This parser implements a "Precedence climbing" algorithm. Constants OPERATOR_LEFT OPERATOR_RIGHT Methods __construct(array $functions) Node parse(TokenStream $stream, array $names = array()) Converts a token stream to a node tree. parseExpression($precedence) parsePrimaryExpression() parseArrayExpression() parseHashExpression() parsePostfixExpression($node) parseArguments() Parses arguments. Detai
Classes ClassParser CSS selector class parser shortcut. ElementParser CSS selector element parser shortcut. EmptyStringParser CSS selector class parser shortcut. HashParser CSS selector hash parser shortcut.
static castOuterIterator(OuterIterator $c, array $a, Stub $stub, $isNested) Parameters OuterIterator $c array $a Stub $stub $isNested
ValueGuess guessRequired(string $class, string $property) Returns a guess whether a property of a class is required Parameters string $class The fully qualified class name string $property The name of the property to guess for Return Value ValueGuess A guess for the field's required setting
ChoiceListInterface createListFromChoices(array|Traversable $choices, null|callable $value = null) Creates a choice list for the given choices. The choices should be passed in the values of the choices array. Optionally, a callable can be passed for generating the choice values. The callable receives the choice as first and the array key as the second argument. Parameters array|Traversable $choices The choices null|callable $value The callable generating the choice values Ret
static string createChoiceLabel(object $choice) Creates the label for a choice. For backwards compatibility, objects are cast to strings by default. Parameters object $choice The object Return Value string The string representation of the object
ChoiceListInterface createListFromLoader(ChoiceLoaderInterface $loader, null|callable $value = null) Creates a choice list that is loaded with the given loader. Optionally, a callable can be passed for generating the choice values. The callable receives the choice as first and the array key as the second argument. Parameters ChoiceLoaderInterface $loader The choice loader null|callable $value The callable generating the choice values Return Value ChoiceListInterface The choice
bool isAccountNonLocked() Checks whether the user is locked. Internally, if this method returns false, the authentication system will throw a LockedException and prevent login. Return Value bool true if the user is not locked, false otherwise
string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block name
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
Page 523 of 787