class DirectoryResource implements ResourceInterface, Serializable
DirectoryResource represents a resources stored in a subdirectory tree.
Methods
|
__construct(string $resource, string $pattern = null)
Constructor. |
||
| string |
__toString()
Returns a string representation of the Resource. |
|
| mixed |
getResource()
Returns the resource tied to this Resource. |
|
| getPattern() | ||
| Boolean |
isFresh(integer $timestamp)
Returns true if the resource has not been updated since the given timestamp. |
|
| serialize() | ||
| unserialize($serialized) |
Details
at line 30
public
__construct(string $resource, string $pattern = null)
Constructor.
at line 41
public string
__toString()
Returns a string representation of the Resource.
at line 51
public mixed
getResource()
Returns the resource tied to this Resource.
at line 56
public
getPattern()
at line 68
public Boolean
isFresh(integer $timestamp)
Returns true if the resource has not been updated since the given timestamp.