25 $this->directories =
array();
34 $this->directories[] = $directory;
52 $parts[] = $file->getContent();
55 return implode(
"\n", $parts);
66 foreach ($this->directories as $directory) {
67 $parts[] = (
string) $directory;
70 return implode(
',', $parts);
88 return substr((
string) $file, strlen((
string) $directory));
100 foreach ($this->directories as $directory) {
101 foreach ($directory as
$file) {
104 if (!isset($paths[$relative])) {
105 $paths[$relative] =
$file;
110 return array_values($paths);
isFresh($timestamp)
Checks if a timestamp represents the latest resource.
__toString()
Returns a string to uniquely identify the current resource.
getRelativeName(ResourceInterface $file, ResourceInterface $directory)
Returns the relative version of a filename.
Add rich text string
The name of the decorator.
A resource is something formulae can be loaded from.
A resource is something formulae can be loaded from.
Create styles array
The data for the language used.
getContent()
Returns the content of the resource.
foreach($mandatory_scripts as $file) $timestamp
addDirectory(IteratorResourceInterface $directory)
getFileResources()
Performs the coalesce.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
Coalesces multiple directories together into one merged resource.
__construct($directories)