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
12namespace Assetic\Asset;
13
15
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}
An exception for terminatinating execution or to throw for unit testing.
An asset has a mutable URL and content and can be loaded and dumped.
load(FilterInterface $additionalFilter=null)
Loads the asset into memory and applies load filters.
getFilters()
Returns an array of filters currently applied.
getContent()
Returns the loaded content of the current asset.
setValues(array $values)
Sets the values for the asset's variables.
getValues()
Returns the current values for this asset.
setTargetPath($targetPath)
Sets the URL for the current asset.
dump(FilterInterface $additionalFilter=null)
Applies dump filters and returns the asset as a string.
ensureFilter(FilterInterface $filter)
Ensures the current asset includes the supplied filter.
getSourceRoot()
Returns an absolute path or URL to the source asset's root directory.
getSourceDirectory()
Returns the asset's source directory.
clearFilters()
Clears all filters from the current asset.
setContent($content)
Sets the content of the current asset.
getVars()
Returns an array of variable names for this asset.
getSourcePath()
Returns the relative path for the source asset.
getTargetPath()
Returns the URL for the current asset.
getLastModified()
Returns the time the current asset was last modified.
A filter manipulates an asset at load and dump.