ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
JSMinPlusFilter.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the Assetic package, an OpenSky project.
5  *
6  * (c) 2010-2014 OpenSky Project Inc
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
12 namespace Assetic\Filter;
13 
15 
25 {
26  public function filterLoad(AssetInterface $asset)
27  {
28  }
29 
30  public function filterDump(AssetInterface $asset)
31  {
32  $asset->setContent(\JSMinPlus::minify($asset->getContent()));
33  }
34 }
Filters assets through JSMinPlus.
filterLoad(AssetInterface $asset)
Filters an asset after it has been loaded.
getContent()
Returns the loaded content of the current asset.
A filter manipulates an asset at load and dump.
An asset has a mutable URL and content and can be loaded and dumped.
filterDump(AssetInterface $asset)
Filters an asset just before it&#39;s dumped.
setContent($content)
Sets the content of the current asset.