|
@@ -21,17 +21,6 @@ class Asset {
|
|
|
* Containers provide a convenient method of grouping assets while maintaining
|
|
|
* expressive code and a clean API.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Get the default asset container
|
|
|
- * $container = Asset::container();
|
|
|
- *
|
|
|
- * // Get the "footer" asset contanier
|
|
|
- * $container = Asset::container('footer');
|
|
|
- *
|
|
|
- * // Add an asset to the "footer" container
|
|
|
- * Asset::container('footer')->add('jquery', 'js/jquery.js');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $container
|
|
|
* @return Asset_Container
|
|
|
*/
|
|
@@ -47,14 +36,6 @@ class Asset {
|
|
|
|
|
|
/**
|
|
|
* Magic Method for calling methods on the default Asset container.
|
|
|
- *
|
|
|
- * <code>
|
|
|
- * // Add jQuery to the default container
|
|
|
- * Asset::script('jquery', 'js/jquery.js');
|
|
|
- *
|
|
|
- * // Equivalent call using the container method
|
|
|
- * Asset::container()->script('jquery', 'js/jquery.js');
|
|
|
- * </code>
|
|
|
*/
|
|
|
public static function __callStatic($method, $parameters)
|
|
|
{
|
|
@@ -97,23 +78,10 @@ class Asset_Container {
|
|
|
* asset being registered (CSS or JavaScript). If you are using a non-standard
|
|
|
* extension, you may use the style or script methods to register assets.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Register a jQuery asset
|
|
|
- * Asset::add('jquery', 'js/jquery.js');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* You may also specify asset dependencies. This will instruct the class to
|
|
|
* only link to the registered asset after its dependencies have been linked.
|
|
|
* For example, you may wish to make jQuery UI dependent on jQuery.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Register jQuery UI as dependent on jQuery
|
|
|
- * Asset::add('jquery-ui', 'js/jquery-ui.js', 'jquery');
|
|
|
- *
|
|
|
- * // Register jQuery UI with multiple dependencies
|
|
|
- * Asset::add('jquery-ui', 'js/jquery-ui.js', array('jquery', 'fader'));
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $name
|
|
|
* @param string $source
|
|
|
* @param array $dependencies
|
|
@@ -226,10 +194,6 @@ class Asset_Container {
|
|
|
/**
|
|
|
* Get the link to a single registered CSS asset.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * echo $container->get_style('common');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $name
|
|
|
* @return string
|
|
|
*/
|
|
@@ -241,10 +205,6 @@ class Asset_Container {
|
|
|
/**
|
|
|
* Get the link to a single registered JavaScript asset.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * echo $container->get_script('jquery');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $name
|
|
|
* @return string
|
|
|
*/
|