FirstAvailable
class FirstAvailable extends Minifier implements ArrayAccess
Traits
Allows an object to act as a proxy for a NormalizedCollection stored in $this->collection
Properties
string | $cacheDir | from Minifier | |
bool | $keepGoing | from Minifier | |
protected MinifierList | $collection |
Methods
Minify given JavaScript source
Return a value from this collection
Return a value that uniquely identifies this minifier's configuration
Get the minified source from cache, or minify and cache the result
Forward all unknown method calls to $this->collection
No description
No description
implementation to allow assignment with a null offset to append to the
No description
No description
No description
No description
No description
No description
No description
a value to this list
No description
Test whether a given value is present in this collection
Delete a value from this list and remove gaps in keys
Test whether an item of given key exists
Find the index of a given value
Ensure that the key is a valid offset
Normalize the value to an object
is called with a key that already exists
Set and overwrite a value in this collection
Constructor
Append a value to this list
Empty this collection
Insert a value at an arbitrary 0-based position
Prepend a value to this list
Remove all items matching given value
Details
at line 70
string
minify(string $src)
Minify given JavaScript source
at line 46
mixed
get(string $key)
Return a value from this collection
in
Minifier at line 60
array|string
getCacheDifferentiator()
Return a value that uniquely identifies this minifier's configuration
in
Minifier at line 71
protected string
getFromCache(string $src)
Get the minified source from cache, or minify and cache the result
in
CollectionProxy at line 36
mixed
__call(string $methodName, array $args)
Forward all unknown method calls to $this->collection
at line 46
bool
offsetExists(string|int $offset)
No description
at line 46
mixed
offsetGet(string|int $offset)
No description
at line 46
void
offsetSet(mixed $offset, mixed $value) Custom offsetSet()
implementation to allow assignment with a null offset to append to the
at line 46
void
offsetUnset(string|int $offset)
No description
at line 46
int
count()
No description
at line 46
mixed
current()
No description
at line 46
int|string
key()
No description
at line 46
mixed
next()
No description
at line 46
void
rewind()
No description
at line 46
bool
valid()
No description
at line 46
mixed
add(mixed $value, null $void) Add (append)
a value to this list
at line 46
array
asConfig()
No description
at line 46
bool
contains(mixed $value)
Test whether a given value is present in this collection
at line 46
void
delete(string $key)
Delete a value from this list and remove gaps in keys
at line 46
bool
exists(string $key)
Test whether an item of given key exists
at line 46
mixed
indexOf(mixed $value)
Find the index of a given value
at line 46
int
normalizeKey(mixed $key)
Ensure that the key is a valid offset
at line 46
Minifier
normalizeValue(Minifier|string $minifier)
Normalize the value to an object
at line 46
string
onDuplicate(string|null $action) Query and set the action to take when add()
is called with a key that already exists
at line 46
mixed
set(string $key, mixed $value)
Set and overwrite a value in this collection
at line 58
__construct()
Constructor
at line 46
mixed
append(mixed $value)
Append a value to this list
at line 46
void
clear()
Empty this collection
at line 46
mixed
insert(int $offset, mixed $value)
Insert a value at an arbitrary 0-based position
at line 46
mixed
prepend(mixed $value)
Prepend a value to this list
at line 46
int
remove(mixed $value)
Remove all items matching given value