Lines Matching refs:asset
46 foreach ($assets as $asset) {
47 $this->add($asset);
68 public function add(AssetInterface $asset) argument
70 $this->assets[] = $asset;
75 foreach ($this->assets as $i => $asset) {
76 $clone = isset($this->clones[$asset]) ? $this->clones[$asset] : null;
77 if (in_array($needle, array($asset, $clone), true)) {
78 unset($this->clones[$asset], $this->assets[$i]);
83 if ($asset instanceof AssetCollectionInterface && $asset->removeLeaf($needle, true)) {
97 foreach ($this->assets as $i => $asset) {
98 $clone = isset($this->clones[$asset]) ? $this->clones[$asset] : null;
99 if (in_array($needle, array($asset, $clone), true)) {
100 unset($this->clones[$asset]);
106 …if ($asset instanceof AssetCollectionInterface && $asset->replaceLeaf($needle, $replacement, true)…
138 foreach ($this as $asset) {
139 $asset->load($additionalFilter);
140 $parts[] = $asset->getContent();
150 foreach ($this as $asset) {
151 $parts[] = $asset->dump($additionalFilter);
202 foreach ($this as $asset) {
203 $assetMtime = $asset->getLastModified();
229 foreach ($this as $asset) {
230 $asset->setValues(array_intersect_key($values, array_flip($asset->getVars())));