PropertyAccessExtractorInterface

interface PropertyAccessExtractorInterface Guesses if the property can be accessed or mutated. Methods bool|null isReadable(string $class, string $property, array $context = array()) Is the property readable? bool|null isWritable(string $class, string $property, array $context = array()) Is the property writable? Details bool|null isReadable(string $class, string $property, array $context = array()) Is the property readable? Parameters s

PropertyAccessExtractorInterface::isWritable()

bool|null isWritable(string $class, string $property, array $context = array()) Is the property writable? Parameters string $class string $property array $context Return Value bool|null

PropertyAccessDecorator::createListFromLoader()

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

PropertyAccessDecorator

class PropertyAccessDecorator implements ChoiceListFactoryInterface Adds property path support to a choice list factory. Pass the decorated factory to the constructor: php $decorator = new PropertyAccessDecorator($factory); You can now pass property paths for generating choice values, labels, view indices, HTML attributes and for determining the preferred choices and the choice groups: php // extract values from the $value property $list = $createListFromChoices($objects, 'value'); Methods

PropertyAccessDecorator::createListFromChoices()

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

PropertyAccessDecorator::createView()

ChoiceListView createView(ChoiceListInterface $list, null|array|callable $preferredChoices = null, null|callable $label = null, null|callable $index = null, null|callable $groupBy = null, null|array|callable $attr = null) Creates a view for the given choice list. Callables may be passed for all optional arguments. The callables receive the choice as first and the array key as the second argument. The callable for the label and the name should return the generated label/choice na

PropertyAccess

class PropertyAccess Entry point of the PropertyAccess component. Methods static PropertyAccessor createPropertyAccessor() Creates a property accessor with the default configuration. static PropertyAccessorBuilder createPropertyAccessorBuilder() Creates a property accessor builder. Details static PropertyAccessor createPropertyAccessor() Creates a property accessor with the default configuration. Return Value PropertyAccessor The new prop

PropertyAccess::createPropertyAccessorBuilder()

static PropertyAccessorBuilder createPropertyAccessorBuilder() Creates a property accessor builder. Return Value PropertyAccessorBuilder The new property accessor builder

PropertyAccess::createPropertyAccessor()

static PropertyAccessor createPropertyAccessor() Creates a property accessor with the default configuration. Return Value PropertyAccessor The new property accessor

PropelUserProvider

class PropelUserProvider implements UserProviderInterface Provides easy to use provisioning for Propel model users. Methods __construct(string $class, string|null $property = null) Default constructor UserInterface loadUserByUsername(string $username) Loads the user for the given username. UserInterface refreshUser(UserInterface $user) Refreshes the user for the account interface. bool supportsClass(string $class) Whether this provider supports the given user class Det