Skip to content

ASCollection

Class for dealing with fetching ActivityStreams collections (ordered or unordered, normal or paged).

Construct with either an existing object or url and an optional channel to sign requests. $direction is 0 (default) to fetch from the beginning, and 1 to fetch from the end and reverse order the resultant array. An optional limit to the number of records returned may also be specified. Use $class->get() to return an array of collection members.

  • Full name: \Zotlabs\Lib\ASCollection

Properties

channel

private $channel

nextpage

private $nextpage

limit

private $limit

direction

private $direction

data

private $data

history

private $history

Methods

__construct

public __construct(mixed $obj, mixed $channel = null, mixed $direction, mixed $limit): mixed

Parameters:

Parameter Type Description
$obj mixed
$channel mixed
$direction mixed
$limit mixed

get

public get(): mixed

next

public next(): mixed

setnext

public setnext(mixed $data): mixed

Parameters:

Parameter Type Description
$data mixed


Automatically generated on 2025-03-19