Home
last modified time | relevance | path

Searched refs:asset (Results 1 – 25 of 76) sorted by relevance

1234

/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Asset/
H A DAssetCache.php25 private $asset; variable in Assetic\\Asset\\AssetCache
30 $this->asset = $asset;
36 $this->asset->ensureFilter($filter);
41 return $this->asset->getFilters();
46 $this->asset->clearFilters();
77 return $this->asset->getContent();
82 $this->asset->setContent($content);
117 return $this->asset->getVars();
122 $this->asset->setValues($values);
127 return $this->asset->getValues();
[all …]
H A DAssetCollection.php46 foreach ($assets as $asset) {
47 $this->add($asset);
70 $this->assets[] = $asset;
76 $clone = isset($this->clones[$asset]) ? $this->clones[$asset] : null;
83 if ($asset instanceof AssetCollectionInterface && $asset->removeLeaf($needle, true)) {
98 $clone = isset($this->clones[$asset]) ? $this->clones[$asset] : null;
138 foreach ($this as $asset) {
150 foreach ($this as $asset) {
202 foreach ($this as $asset) {
229 foreach ($this as $asset) {
[all …]
H A DAssetReference.php28 private $asset; variable in Assetic\\Asset\\AssetReference
40 if ($this->asset) {
41 $this->asset = clone $this->asset;
136 $asset = $this->resolve();
143 $asset = $this->resolve();
146 $asset->ensureFilter($filter);
152 if ($this->asset) {
153 return $this->asset;
156 $asset = $this->am->get($this->name);
159 $asset = $this->asset = clone $asset;
[all …]
H A DBaseAsset.php91 $asset = clone $this;
92 $asset->setContent($content);
94 $filter->filterLoad($asset);
95 $this->content = $asset->getContent();
111 $asset = clone $this;
112 $filter->filterDump($asset);
114 return $asset->getContent();
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Factory/
H A DAssetFactory.php189 $asset = $this->createAssetCollection(array(), $options);
198 $asset->add($this->parseInput($input, $options));
206 $asset->ensureFilter($this->getFilter($filter));
237 return $this->applyWorkers($asset);
251 public function getLastModified(AssetInterface $asset) argument
254 foreach ($asset instanceof AssetCollectionInterface ? $asset : array($asset) as $leaf) {
382 foreach ($asset as $leaf) {
387 $asset->replaceLeaf($leaf, $retval);
393 $retval = $worker->process($asset, $this);
396 $asset = $retval;
[all …]
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Factory/Worker/
H A DCacheBustingWorker.php32 public function process(AssetInterface $asset, AssetFactory $factory) argument
34 if (!$path = $asset->getTargetPath()) {
44 $replace = $this->separator.$this->getHash($asset, $factory).'.'.$search;
50 $asset->setTargetPath(
55 protected function getHash(AssetInterface $asset, AssetFactory $factory) argument
59 hash_update($hash, $factory->getLastModified($asset));
61 if ($asset instanceof AssetCollectionInterface) {
62 foreach ($asset as $i => $leaf) {
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/
H A DAsseticNode.php27 * @param AssetInterface $asset The asset
36 …public function __construct(AssetInterface $asset, \Twig_Node $body, array $inputs, array $filters… argument
43 array('asset' => $asset, 'inputs' => $inputs, 'filters' => $filters, 'name' => $name)
102 protected function compileAsset(\Twig_Compiler $compiler, AssetInterface $asset, $name) argument
104 if ($vars = $asset->getVars()) {
127 $this->compileAssetUrl($compiler, $asset, $name);
135 protected function compileAssetUrl(\Twig_Compiler $compiler, AssetInterface $asset, $name) argument
137 if (!$vars = $asset->getVars()) {
138 $compiler->repr($asset->getTargetPath());
145 ->string($asset->getTargetPath())
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Filter/
H A DSprocketsFilter.php62 public function filterLoad(AssetInterface $asset) argument
94 file_put_contents($tmpAsset, $asset->getContent());
101 $this->getHack($asset),
117 throw FilterException::fromProcess($proc)->setInput($asset->getContent());
120 $asset->setContent($proc->getOutput());
123 public function filterDump(AssetInterface $asset) argument
133 private function getHack(AssetInterface $asset) argument
148 if ($dir = $asset->getSourceDirectory()) {
H A DStylusFilter.php66 public function filterLoad(AssetInterface $asset) argument
85 if ($dir = $asset->getSourceDirectory()) {
87 $parserOptions['filename'] = basename($asset->getSourcePath());
98 json_encode($asset->getContent()),
108 throw FilterException::fromProcess($proc)->setInput($asset->getContent());
111 $asset->setContent($proc->getOutput());
117 public function filterDump(AssetInterface $asset) argument
H A DAutoprefixerFilter.php57 public function filterLoad(AssetInterface $asset) argument
59 $input = $asset->getContent();
72 throw FilterException::fromProcess($proc)->setInput($asset->getContent());
75 $asset->setContent(file_get_contents($output));
82 * @param AssetInterface $asset An asset
84 public function filterDump(AssetInterface $asset) argument
H A DPhpCssEmbedFilter.php33 public function filterLoad(AssetInterface $asset) argument
36 if ($dir = $asset->getSourceDirectory()) {
40 $asset->setContent($pce->embedString($asset->getContent()));
43 public function filterDump(AssetInterface $asset) argument
H A DTypeScriptFilter.php35 public function filterLoad(AssetInterface $asset) argument
41 if ($sourcePath = $asset->getSourcePath()) {
51 file_put_contents($inputPath, $asset->getContent());
64 throw FilterException::fromProcess($proc)->setInput($asset->getContent());
74 $asset->setContent($compiledJs);
77 public function filterDump(AssetInterface $asset) argument
H A DEmberPrecompileFilter.php37 public function filterLoad(AssetInterface $asset) argument
43 if ($sourcePath = $asset->getSourcePath()) {
53 file_put_contents($inputPath, $asset->getContent());
71 throw FilterException::fromProcess($process)->setInput($asset->getContent());
81 $asset->setContent($compiledJs);
84 public function filterDump(AssetInterface $asset) argument
H A DCssRewriteFilter.php23 public function filterLoad(AssetInterface $asset) argument
27 public function filterDump(AssetInterface $asset) argument
29 $sourceBase = $asset->getSourceRoot();
30 $sourcePath = $asset->getSourcePath();
31 $targetPath = $asset->getTargetPath();
70 … $content = $this->filterReferences($asset->getContent(), function ($matches) use ($host, $path) {
100 $asset->setContent($content);
H A DCssMinFilter.php53 public function filterLoad(AssetInterface $asset) argument
57 public function filterDump(AssetInterface $asset) argument
63 if ($dir = $asset->getSourceDirectory()) {
70 $asset->setContent(\CssMin::minify($asset->getContent(), $filters, $plugins));
H A DFilterInterface.php26 * @param AssetInterface $asset An asset
28 public function filterLoad(AssetInterface $asset); argument
33 * @param AssetInterface $asset An asset
35 public function filterDump(AssetInterface $asset); argument
H A DHandlebarsFilter.php48 public function filterLoad(AssetInterface $asset) argument
54 if ($sourcePath = $asset->getSourcePath()) {
64 file_put_contents($inputPath, $asset->getContent());
90 throw FilterException::fromProcess($process)->setInput($asset->getContent());
100 $asset->setContent($compiledJs);
103 public function filterDump(AssetInterface $asset) argument
H A DJSMinFilter.php26 public function filterLoad(AssetInterface $asset) argument
30 public function filterDump(AssetInterface $asset) argument
32 $asset->setContent(\JSMin::minify($asset->getContent()));
H A DJSMinPlusFilter.php26 public function filterLoad(AssetInterface $asset) argument
30 public function filterDump(AssetInterface $asset) argument
32 $asset->setContent(\JSMinPlus::minify($asset->getContent()));
H A DMinifyCssCompressorFilter.php27 public function filterLoad(AssetInterface $asset) argument
31 public function filterDump(AssetInterface $asset) argument
33 $asset->setContent(\Minify_CSS_Compressor::process($asset->getContent()));
H A DLessFilter.php104 public function filterLoad(AssetInterface $asset) argument
131 if ($dir = $asset->getSourceDirectory()) {
133 $parserOptions['filename'] = basename($asset->getSourcePath());
144 json_encode($asset->getContent()),
153 throw FilterException::fromProcess($proc)->setInput($asset->getContent());
156 $asset->setContent($proc->getOutput());
159 public function filterDump(AssetInterface $asset) argument
H A DSeparatorFilter.php39 public function filterLoad(AssetInterface $asset) argument
43 public function filterDump(AssetInterface $asset) argument
45 $asset->setContent($asset->getContent() . $this->separator);
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/
H A DAssetWriter.php57 public function writeAsset(AssetInterface $asset) argument
59 foreach (VarUtils::getCombinations($asset->getVars(), $this->values) as $combination) {
60 $asset->setValues($combination);
64 $asset->getTargetPath(),
65 $asset->getVars(),
66 $asset->getValues()
68 $asset->dump()
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Asset/Iterator/
H A DAssetCollectionIterator.php56 $asset = current($this->assets);
59 return $asset;
63 if (!isset($this->clones[$asset])) {
64 $clone = $this->clones[$asset] = clone $asset;
67 …$name = sprintf('%s_%d', pathinfo($asset->getSourcePath(), PATHINFO_FILENAME) ?: 'part', $this->ke…
73 $clone = $this->clones[$asset];
H A DAssetCollectionFilterIterator.php52 $asset = $this->getInnerIterator()->current(true);
56 if (in_array($asset, $this->visited, true)) {
59 $this->visited[] = $asset;
63 $sourceRoot = $asset->getSourceRoot();
64 $sourcePath = $asset->getSourcePath();

1234