ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Assetic\Factory\Resource\ResourceInterface Interface Reference

A resource is something formulae can be loaded from. More...

+ Inheritance diagram for Assetic\Factory\Resource\ResourceInterface:
+ Collaboration diagram for Assetic\Factory\Resource\ResourceInterface:

Public Member Functions

 isFresh ($timestamp)
 Checks if a timestamp represents the latest resource. More...
 
 getContent ()
 Returns the content of the resource. More...
 
 __toString ()
 Returns a unique string for the current resource. More...
 

Detailed Description

A resource is something formulae can be loaded from.

Author
Kris Wallsmith kris..nosp@m.wall.nosp@m.smith.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 19 of file ResourceInterface.php.

Member Function Documentation

◆ __toString()

Assetic\Factory\Resource\ResourceInterface::__toString ( )

Returns a unique string for the current resource.

Returns
string A unique string to identity the current resource

Implemented in Assetic\Factory\Resource\DirectoryResource, Assetic\Factory\Resource\CoalescingDirectoryResource, Assetic\Extension\Twig\TwigResource, and Assetic\Factory\Resource\FileResource.

◆ getContent()

Assetic\Factory\Resource\ResourceInterface::getContent ( )

◆ isFresh()

Assetic\Factory\Resource\ResourceInterface::isFresh (   $timestamp)

Checks if a timestamp represents the latest resource.

Parameters
integer$timestampA UNIX timestamp
Returns
Boolean True if the timestamp is up to date

Implemented in Assetic\Extension\Twig\TwigResource, Assetic\Factory\Resource\DirectoryResource, Assetic\Factory\Resource\CoalescingDirectoryResource, and Assetic\Factory\Resource\FileResource.


The documentation for this interface was generated from the following file: