Fix spacing on Asset class documentation.
This commit is contained in:
parent
0e39941632
commit
26dcc276fe
|
@ -21,14 +21,14 @@ class Asset {
|
||||||
* expressive code and a clean API.
|
* expressive code and a clean API.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* // Get the default asset container
|
* // Get the default asset container
|
||||||
* $container = Asset::container();
|
* $container = Asset::container();
|
||||||
*
|
*
|
||||||
* // Get the "footer" asset contanier
|
* // Get the "footer" asset contanier
|
||||||
* $container = Asset::container('footer');
|
* $container = Asset::container('footer');
|
||||||
*
|
*
|
||||||
* // Add an asset to the "footer" container
|
* // Add an asset to the "footer" container
|
||||||
* Asset::container('footer')->add('jquery', 'js/jquery.js');
|
* Asset::container('footer')->add('jquery', 'js/jquery.js');
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $container
|
* @param string $container
|
||||||
|
@ -49,8 +49,8 @@ public static function container($container = 'default')
|
||||||
* This allows a convenient API for working with the default container.
|
* This allows a convenient API for working with the default container.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* // Add jQuery to the default container
|
* // Add jQuery to the default container
|
||||||
* Asset::script('jquery', 'js/jquery.js');
|
* Asset::script('jquery', 'js/jquery.js');
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -96,8 +96,8 @@ public function __construct($name)
|
||||||
* extension, you may use the style or script methods to register assets.
|
* extension, you may use the style or script methods to register assets.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* // Register a jQuery asset
|
* // Register a jQuery asset
|
||||||
* Asset::add('jquery', 'js/jquery.js');
|
* Asset::add('jquery', 'js/jquery.js');
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* You may also specify asset dependencies. This will instruct the class to
|
* You may also specify asset dependencies. This will instruct the class to
|
||||||
|
@ -105,11 +105,11 @@ public function __construct($name)
|
||||||
* For example, you may wish to make jQuery UI dependent on jQuery.
|
* For example, you may wish to make jQuery UI dependent on jQuery.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* // Register jQuery UI as dependent on jQuery
|
* // Register jQuery UI as dependent on jQuery
|
||||||
* Asset::add('jquery-ui', 'js/jquery-ui.js', 'jquery');
|
* Asset::add('jquery-ui', 'js/jquery-ui.js', 'jquery');
|
||||||
*
|
*
|
||||||
* // Register jQuery UI with multiple dependencies
|
* // Register jQuery UI with multiple dependencies
|
||||||
* Asset::add('jquery-ui', 'js/jquery-ui.js', array('jquery', 'fader'));
|
* Asset::add('jquery-ui', 'js/jquery-ui.js', array('jquery', 'fader'));
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
|
@ -236,7 +236,7 @@ public function get_style($name)
|
||||||
* Get the link to a single registered JavaScript asset.
|
* Get the link to a single registered JavaScript asset.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* echo $container->get_script('jquery');
|
* echo $container->get_script('jquery');
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
|
|
Loading…
Reference in New Issue