ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
AssetInterface.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\Asset;
13 
15 
21 interface AssetInterface
22 {
28  public function ensureFilter(FilterInterface $filter);
29 
35  public function getFilters();
36 
40  public function clearFilters();
41 
49  public function load(FilterInterface $additionalFilter = null);
50 
65  public function dump(FilterInterface $additionalFilter = null);
66 
72  public function getContent();
73 
81  public function setContent($content);
82 
97  public function getSourceRoot();
98 
113  public function getSourcePath();
114 
123  public function getSourceDirectory();
124 
130  public function getTargetPath();
131 
137  public function setTargetPath($targetPath);
138 
144  public function getLastModified();
145 
151  public function getVars();
152 
158  public function setValues(array $values);
159 
165  public function getValues();
166 }
clearFilters()
Clears all filters from the current asset.
getSourceRoot()
Returns an absolute path or URL to the source asset&#39;s root directory.
getSourcePath()
Returns the relative path for the source asset.
setTargetPath($targetPath)
Sets the URL for the current asset.
load(FilterInterface $additionalFilter=null)
Loads the asset into memory and applies load filters.
getContent()
Returns the loaded content of the current asset.
getVars()
Returns an array of variable names for this asset.
A filter manipulates an asset at load and dump.
ensureFilter(FilterInterface $filter)
Ensures the current asset includes the supplied filter.
setValues(array $values)
Sets the values for the asset&#39;s variables.
getLastModified()
Returns the time the current asset was last modified.
getSourceDirectory()
Returns the asset&#39;s source directory.
An asset has a mutable URL and content and can be loaded and dumped.
Create styles array
The data for the language used.
getFilters()
Returns an array of filters currently applied.
getTargetPath()
Returns the URL for the current asset.
dump(FilterInterface $additionalFilter=null)
Applies dump filters and returns the asset as a string.
setContent($content)
Sets the content of the current asset.
getValues()
Returns the current values for this asset.