Zippy API
Class

Alchemy\Zippy\Resource\ResourceCollection

class ResourceCollection extends ArrayCollection

Methods

__construct(String $context, array $elements = array())

Constructor

String getContext()

Returns the context related to the collection

ResourceCollection setContext(type $context)

Sets the context of the current collection

type isTemporary()

Tells wheter the collection is temporary or not.

ResourceCollection setTemporary(Boolean $temporary)

Sets the collection temporary

Boolean canBeProcessedInPlace()

Returns true if all resources can be processed in place, false otherwise

Details

at line 27
public __construct(String $context, array $elements = array())

Constructor

Parameters

String $context
array $elements An array of Resource

at line 38
public String getContext()

Returns the context related to the collection

Return Value

String

at line 50
public ResourceCollection setContext(type $context)

Sets the context of the current collection

Parameters

type $context

Return Value

ResourceCollection

at line 65
public type isTemporary()

Tells wheter the collection is temporary or not.

A ResourceCollection is temporary when it required a temporary folder to
fetch data

Return Value

type

at line 77
public ResourceCollection setTemporary(Boolean $temporary)

Sets the collection temporary

Parameters

Boolean $temporary

Return Value

ResourceCollection

at line 89
public Boolean canBeProcessedInPlace()

Returns true if all resources can be processed in place, false otherwise

Return Value

Boolean