*/
class ActivityStreamJSONDocument
{
+ const CONTENT_TYPE = 'application/stream+json; charset=utf-8';
/* Top level array representing the document */
protected $doc = array();
function addLink($url = null, $rel = null, $mediaType = null)
{
$link = new ActivityStreamsLink($url, $rel, $mediaType);
- $this->doc['link'][] = $link->asArray();
+ $this->doc['links'][] = $link->asArray();
}
/*