AssetExtension

class AssetExtension extends Twig_Extension Twig extension for the Symfony Asset component. Methods __construct(Packages $packages) getFunctions() {@inheritdoc} string getAssetUrl(string $path, string $packageName = null) Returns the public url/path of an asset. string getAssetVersion(string $path, string $packageName = null) Returns the version of an asset. string getName() Returns the name of the extension. Details __construct(Packa

AssetExtension::getFunctions()

getFunctions() {@inheritdoc}

ArrayParserCache::fetch()

ParsedExpression|null fetch(string $key) Fetches an expression from the cache. Parameters string $key The cache key Return Value ParsedExpression|null

ArrayParserCache::save()

save(string $key, ParsedExpression $expression) Saves an expression in the cache. Parameters string $key The cache key ParsedExpression $expression A ParsedExpression instance to store in the cache

ArrayToPartsTransformer

class ArrayToPartsTransformer implements DataTransformerInterface Methods __construct(array $partMapping) mixed transform($array) Transforms a value from the original representation to a transformed representation. mixed reverseTransform($array) Transforms a value from the transformed representation to its original representation. Details __construct(array $partMapping) Parameters array $partMapping mixed

ArrayToPartsTransformer::reverseTransform()

mixed reverseTransform($array) Transforms a value from the transformed representation to its original representation. This method is called when {@link Form::submit()} is called to transform the requests tainted data into an acceptable format for your data processing/model layer. This method must be able to deal with empty values. Usually this will be an empty string, but depending on your implementation other empty values are possible as well (such as empty strings). The reasoni

ArrayToPartsTransformer::transform()

mixed transform($array) Transforms a value from the original representation to a transformed representation. This method is called on two occasions inside a form field: When the form field is initialized with the data attached from the datasource (object or array). When data from a request is submitted using {@link Form::submit()} to transform the new input data back into the renderable format. For example if you have a date field and submit '2009-10-10' you might accept this val

ArrayNodeDefinition::requiresAtLeastOneElement()

ArrayNodeDefinition requiresAtLeastOneElement() Requires the node to have at least one element. This method is applicable to prototype nodes only. Return Value ArrayNodeDefinition

ArrayNodeDefinition::useAttributeAsKey()

ArrayNodeDefinition useAttributeAsKey(string $name, bool $removeKeyItem = true) Sets the attribute which value is to be used as key. This is useful when you have an indexed array that should be an associative array. You can select an item from within the array to be the key of the particular item. For example, if "id" is the "key", then: array( array('id' => 'my_name', 'foo' => 'bar'), ); becomes array( 'my_name' => array('foo' => 'bar'), ); If you'd like "

ArrayParserCache

class ArrayParserCache implements ParserCacheInterface Methods ParsedExpression|null fetch(string $key) Fetches an expression from the cache. save(string $key, ParsedExpression $expression) Saves an expression in the cache. Details ParsedExpression|null fetch(string $key) Fetches an expression from the cache. Parameters string $key The cache key Return Value ParsedExpression|null save(string $key, ParsedExp