2019-10-25 00:10:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Protocol\Activity;
|
|
|
|
|
2019-10-25 00:34:46 +02:00
|
|
|
use Friendica\Protocol\ActivityNamespace;
|
|
|
|
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* This class contains the different object types in activities
|
|
|
|
*/
|
|
|
|
final class ObjectType
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The "bookmark" object type represents a pointer to some URL -- typically a web page.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#bookmark
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const BOOKMARK = ActivityNamespace::ACTIVITY_SCHEMA . 'bookmark';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* The "comment" object type represents a textual response to another object.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#comment
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const COMMENT = ActivityNamespace::ACTIVITY_SCHEMA . 'comment';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* The "comment" object type represents a textual response to another object.
|
|
|
|
* (Default type for items)
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#note
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const NOTE = ActivityNamespace::ACTIVITY_SCHEMA . 'note';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* The "person" object type represents a user account.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#person
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const PERSON = ActivityNamespace::ACTIVITY_SCHEMA . 'person';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* The "image" object type represents a graphical image.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#image
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const IMAGE = ActivityNamespace::ACTIVITY_SCHEMA . 'image';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const PHOTO = ActivityNamespace::ACTIVITY_SCHEMA . 'photo';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* The "video" object type represents video content,
|
|
|
|
* which usually consists of a motion picture track and an audio track.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#video
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const VIDEO = ActivityNamespace::ACTIVITY_SCHEMA . 'video';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const PROFILE_PHOTO = ActivityNamespace::ACTIVITY_SCHEMA . 'profile-photo';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const ALBUM = ActivityNamespace::ACTIVITY_SCHEMA . 'photo-album';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* The "event" object type represents an event that occurs in a certain place during a particular interval of time.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#event
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const EVENT = ActivityNamespace::ACTIVITY_SCHEMA . 'event';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* The "group" object type represents a grouping of objects in which member objects can join or leave.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#group
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const GROUP = ActivityNamespace::ACTIVITY_SCHEMA . 'group';
|
2019-10-25 00:10:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const HEART = ActivityNamespace::DFRN . '/heart';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const TAGTERM = ActivityNamespace::DFRN . '/tagterm';
|
2019-10-25 00:10:20 +02:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2019-10-25 00:32:35 +02:00
|
|
|
const PROFILE = ActivityNamespace::DFRN . '/profile';
|
2019-10-25 00:10:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The "question" object type represents a question or poll.
|
|
|
|
*
|
|
|
|
* @see http://activitystrea.ms/head/activity-schema.html#question
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
const QUESTION = 'http://activityschema.org/object/question';
|
|
|
|
}
|