Documentation

IteratorResourceInterface extends ResourceInterface, IteratorAggregate

A resource is something formulae can be loaded from.

Tags
author

Kris Wallsmith kris.wallsmith@gmail.com

Table of Contents

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

Methods

__toString()

Returns a unique string for the current resource.

public __toString() : string
Return values
string

A unique string to identity the current resource

getContent()

Returns the content of the resource.

public getContent() : string
Return values
string

The content

isFresh()

Checks if a timestamp represents the latest resource.

public isFresh(int $timestamp) : bool
Parameters
$timestamp : int

A UNIX timestamp

Return values
bool

True if the timestamp is up to date

Search results