ice framework documentation ice doc v1.10.1
Class Ice

Assets

Methods
  • setCollections(variable $collections) : void
  • getCollections() : void
  • setOptions(variable $options) : void
  • __construct() : void
    Assets constructor. Fetch Di and set it as a property.
  • getOption(variable $key, variable $defaultValue) : void
    Retrieve a single option.
  • add(variable $parameters, string $version, string $collection, variable $minify) : void
    Add resource to assets, autodetect type.
  • addCss(array $parameters, string $version, string $collection, variable $minify) : void
    Add CSS resource to assets.
  • addJs(array $parameters, string $version, string $collection, variable $minify) : void
    Add JS resource to assets.
  • addToCollection(variable $key, variable $value) : void
    Add an asset to the collection.
  • getCss() : void
    Get the CSS default collection.
  • getJs() : void
    Get the JS default collection.
  • get(string $key) : void
    Get some collection.
  • minify(string $content, variable $type) : void
    Minify content.
  • prepare(string $uri, string $type, variable $minify) : void
    Prepare resource.
Methods Details
  • public function setCollections(variable $collections)

  • public function getCollections()

  • public function setOptions(variable $options)

  • public function __construct()

    Assets constructor. Fetch Di and set it as a property.
  • public function getOption(variable $key, variable $defaultValue)

    Retrieve a single option.
  • public function add(variable $parameters, string $version, string $collection, variable $minify)

    Add resource to assets, autodetect type.
  • public function addCss(array $parameters, string $version, string $collection, variable $minify)

    Add CSS resource to assets.
  • public function addJs(array $parameters, string $version, string $collection, variable $minify)

    Add JS resource to assets.
  • public function addToCollection(variable $key, variable $value)

    Add an asset to the collection.
  • public function getCss()

    Get the CSS default collection.
  • public function getJs()

    Get the JS default collection.
  • public function get(string $key)

    Get some collection.
  • protected function minify(string $content, variable $type)

    Minify content.
  • protected function prepare(string $uri, string $type, variable $minify)

    Prepare resource.
  • internal function zephir_init_properties_Ice_Assets()