2019-10-25 00:10:20 +02:00
|
|
|
<?php
|
2020-02-09 15:45:36 +01:00
|
|
|
/**
|
2021-03-29 08:40:20 +02:00
|
|
|
* @copyright Copyright (C) 2010-2021, the Friendica project
|
2020-02-09 15:45:36 +01:00
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-10-25 00:10:20 +02:00
|
|
|
|
|
|
|
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';
|
|
|
|
}
|