Documentation

Collection extends IteratorIterator
in package

A collection of backup objects of a certain application-specific type.

Each application should extend this class for each type of backup data it supports.

Tags
author

Jan Schneider jan@horde.org

category

Horde

copyright

2017 Horde LLC

license

http://www.horde.org/licenses/bsd BSD

Table of Contents

$_type  : string
The collection's type.
$_user  : string
The collection's user.
__construct()  : mixed
Constructor.
getType()  : string
Returns the type of objects or resources that this collection holds.
getUser()  : string
Returns this collection's user.

Properties

$_type

The collection's type.

protected string $_type

$_user

The collection's user.

protected string $_user

Methods

__construct()

Constructor.

public __construct(Traversable $data, string $user, string $type) : mixed
Parameters
$data : Traversable

The backup data.

$user : string

A user name.

$type : string

A collection type like "calendar" or "contact".

Return values
mixed

getType()

Returns the type of objects or resources that this collection holds.

public getType() : string
Return values
string

The collection type.

getUser()

Returns this collection's user.

public getUser() : string
Return values
string

The collection user.

Search results