PermissionGrantingStrategy::isGranted()

bool isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false) Determines whether access to a domain object is to be granted Parameters AclInterface $acl array $masks array $sids bool $administrativeMode Return Value bool

PermissionGrantingStrategy::isFieldGranted()

bool isFieldGranted(AclInterface $acl, string $field, array $masks, array $sids, bool $administrativeMode = false) Determines whether access to a domain object's field is to be granted Parameters AclInterface $acl string $field array $masks array $sids bool $administrativeMode Return Value bool

PermissionGrantingStrategy

class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface The permission granting strategy to apply to the access control list. Constants EQUAL ALL ANY Methods setAuditLogger(AuditLoggerInterface $auditLogger) Sets the audit logger bool isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false) Determines whether access to a domain object is to be granted bool isFieldGranted(AclInterface $acl, string $field, arr

PercentType::getBlockPrefix()

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

PercentType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options

PercentType::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the form. Parameters FormBuilderInterface $builder The form builder array $options The options

PercentType

class PercentType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBlockPrefix() Returns the prefix of the template block

PercentToLocalizedStringTransformer::transform()

mixed transform(mixed $value) Transforms between a normalized format (integer or float) into a percentage value. Parameters mixed $value The value in the original representation Return Value mixed The value in the transformed representation Exceptions TransformationFailedException If the given value is not numeric or if the value could not be transformed.

PercentToLocalizedStringTransformer::reverseTransform()

mixed reverseTransform(mixed $value) Transforms between a percentage value into a normalized format (integer or float). Parameters mixed $value The value in the transformed representation Return Value mixed The value in the original representation Exceptions TransformationFailedException If the given value is not a string or if the value could not be transformed.

PercentToLocalizedStringTransformer

class PercentToLocalizedStringTransformer implements DataTransformerInterface Transforms between a normalized format (integer or float) and a percentage value. Constants FRACTIONAL INTEGER Methods __construct(int $scale = null, string $type = null) Constructor. mixed transform(mixed $value) Transforms between a normalized format (integer or float) into a percentage value. mixed reverseTransform(mixed $value) Transforms between a percentage value into a normalized form