AssetExtension::getAssetVersion()

string getAssetVersion(string $path, string $packageName = null) Returns the version of an asset. Parameters string $path A public path string $packageName The name of the asset package to use Return Value string The asset version

AssetExtension::getAssetUrl()

string getAssetUrl(string $path, string $packageName = null) Returns the public url/path of an asset. If the package used to generate the path is an instance of UrlPackage, you will always get a URL and not a path. Parameters string $path A public path string $packageName The name of the asset package to use Return Value string The public path of the asset

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::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

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

ArrayParserCache::fetch()

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

ArrayNodeDefinition::setBuilder()

setBuilder(NodeBuilder $builder) Sets a custom children builder. Parameters NodeBuilder $builder

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 "

ArrayNodeDefinition::prototype()

NodeDefinition prototype(string $type) Sets a prototype for child nodes. Parameters string $type the type of node Return Value NodeDefinition