Public Member Functions | |
| __construct ($raw=null) | |
| getDoc () | |
| setDoc ($doc) | |
| getContext () | |
| setContext ($context) | |
| setProperty ($property, $value) | |
| getProperty ($property) | |
| toJsonLd () | |
A simple wrapper around an ActivityStreams dictionary object
Construct it with an array that represents an ActivityStreams object, or without to create a fresh, blank object.
| coarnotify\core\activitystreams2\ActivityStream::__construct | ( | $raw = null | ) |
Construct a new ActivityStream object
| $raw | the raw ActivityStreams object, as an array |
| coarnotify\core\activitystreams2\ActivityStream::getContext | ( | ) |
The json-ld context of the ActivityStream
| coarnotify\core\activitystreams2\ActivityStream::getDoc | ( | ) |
The internal dictionary representation of the ActivityStream, without the json-ld context
| coarnotify\core\activitystreams2\ActivityStream::getProperty | ( | $property | ) |
Get an arbitrary property on the object. The property name can be one of:
["example_name", "name", "http://example.com/ns"]["example_name", "name", ["as", "http://example.com/ns"]]| $property | the property name |
| coarnotify\core\activitystreams2\ActivityStream::setProperty | ( | $property, | |
| $value ) |
Set an arbitrary property on the object. The property name can be one of:
["example_name", "name", "http://example.com/ns"]["example_name", "name", ["as", "http://example.com/ns"]]| $property | the property name or tuple |
| $value | the value to set for the property |
| coarnotify\core\activitystreams2\ActivityStream::toJsonLd | ( | ) |
Get the activity stream as a JSON-LD object