Skip to content

ActivityStreams

  • Full name: \Zotlabs\Lib\ActivityStreams

Properties

raw

public $raw

data

public $data

meta

public $meta

valid

public $valid

deleted

public $deleted

portable_id

public $portable_id

id

public $id

parent_id

public $parent_id

type

public $type

actor

public $actor

obj

public $obj

tgt

public $tgt

origin

public $origin

owner

public $owner

signer

public $signer

sig

public $sig

sigok

public $sigok

recips

public $recips

raw_recips

public $raw_recips

saved_recips

public $saved_recips

Methods

__construct

public __construct(string $string, mixed $portable_id = null): mixed

Parameters:

Parameter Type Description
$string string
$portable_id mixed

is_valid

public is_valid(): bool

Return Value:

Return true if the JSON string could be decoded.


set_recips

public set_recips(mixed $arr): mixed

Parameters:

Parameter Type Description
$arr mixed

objprop

public objprop(string $property, mixed $default = false): mixed

Parameters:

Parameter Type Description
$property string
$default mixed return value if property or object not set
or object is a string id which could not be fetched.

collect_recips

public collect_recips(mixed $base = '', string $namespace = ''): array

Parameters:

Parameter Type Description
$base mixed
$namespace string (optional) default empty

expand

public expand(mixed $arr, mixed $base = '', mixed $namespace = ''): mixed

Parameters:

Parameter Type Description
$arr mixed
$base mixed
$namespace mixed

get_namespace

public get_namespace(array $base, string $namespace): string|null

Parameters:

Parameter Type Description
$base array
$namespace string if not set return empty string

get_property_obj

public get_property_obj(string $property, array $base = '', string $namespace = ''): null|mixed

Parameters:

Parameter Type Description
$property string
$base array (optional)
$namespace string (optional) default empty

fetch_property

public fetch_property(string $url, mixed $channel = null): null|mixed

Parameters:

Parameter Type Description
$url string
$channel mixed

is_an_actor

public static is_an_actor(mixed $s): mixed
  • This method is static.

Parameters:

Parameter Type Description
$s mixed

is_response_activity

public static is_response_activity(mixed $s): mixed
  • This method is static.

Parameters:

Parameter Type Description
$s mixed

get_actor

public get_actor(string $property, array $base = '', string $namespace = ''): null|mixed

Parameters:

Parameter Type Description
$property string
$base array
$namespace string (optional) default empty

get_compound_property

public get_compound_property(string $property, array $base = '', string $namespace = '', bool $first = false): null|mixed

Parameters:

Parameter Type Description
$property string
$base array
$namespace string (optional) default empty
$first bool (optional) default false, if true and result is a sequential array return only the first element

is_url

public is_url(string $url): bool

Parameters:

Parameter Type Description
$url string

get_primary_type

public get_primary_type(array $base = '', string $namespace = ''): null|mixed

Parameters:

Parameter Type Description
$base array
$namespace string (optional) default empty

debug

public debug(): mixed

is_as_request

public static is_as_request(mixed $channel = null): mixed
  • This method is static.

Parameters:

Parameter Type Description
$channel mixed

get_accept_header_string

public static get_accept_header_string(mixed $channel = null): mixed
  • This method is static.

Parameters:

Parameter Type Description
$channel mixed

checkEddsaSignature

public checkEddsaSignature(): mixed


Automatically generated on 2025-03-19