Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.8 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <?php
  2. namespace Friendica\Protocol\Activity;
  3. /**
  4. * This class contains the different object types in activities
  5. */
  6. final class ObjectType
  7. {
  8. /**
  9. * The "bookmark" object type represents a pointer to some URL -- typically a web page.
  10. *
  11. * @see http://activitystrea.ms/head/activity-schema.html#bookmark
  12. * @var string
  13. */
  14. const BOOKMARK = ActivityNamespace::ACTIVITY_SCHEMA . 'bookmark';
  15. /**
  16. * The "comment" object type represents a textual response to another object.
  17. *
  18. * @see http://activitystrea.ms/head/activity-schema.html#comment
  19. * @var string
  20. */
  21. const COMMENT = ActivityNamespace::ACTIVITY_SCHEMA . 'comment';
  22. /**
  23. * The "comment" object type represents a textual response to another object.
  24. * (Default type for items)
  25. *
  26. * @see http://activitystrea.ms/head/activity-schema.html#note
  27. * @var string
  28. */
  29. const NOTE = ActivityNamespace::ACTIVITY_SCHEMA . 'note';
  30. /**
  31. * The "person" object type represents a user account.
  32. *
  33. * @see http://activitystrea.ms/head/activity-schema.html#person
  34. * @var string
  35. */
  36. const PERSON = ActivityNamespace::ACTIVITY_SCHEMA . 'person';
  37. /**
  38. * The "image" object type represents a graphical image.
  39. *
  40. * @see http://activitystrea.ms/head/activity-schema.html#image
  41. * @var string
  42. */
  43. const IMAGE = ActivityNamespace::ACTIVITY_SCHEMA . 'image';
  44. /**
  45. * @var string
  46. */
  47. const PHOTO = ActivityNamespace::ACTIVITY_SCHEMA . 'photo';
  48. /**
  49. * The "video" object type represents video content,
  50. * which usually consists of a motion picture track and an audio track.
  51. *
  52. * @see http://activitystrea.ms/head/activity-schema.html#video
  53. * @var string
  54. */
  55. const VIDEO = ActivityNamespace::ACTIVITY_SCHEMA . 'video';
  56. /**
  57. * @var string
  58. */
  59. const PROFILE_PHOTO = ActivityNamespace::ACTIVITY_SCHEMA . 'profile-photo';
  60. /**
  61. * @var string
  62. */
  63. const ALBUM = ActivityNamespace::ACTIVITY_SCHEMA . 'photo-album';
  64. /**
  65. * The "event" object type represents an event that occurs in a certain place during a particular interval of time.
  66. *
  67. * @see http://activitystrea.ms/head/activity-schema.html#event
  68. * @var string
  69. */
  70. const EVENT = ActivityNamespace::ACTIVITY_SCHEMA . 'event';
  71. /**
  72. * The "group" object type represents a grouping of objects in which member objects can join or leave.
  73. *
  74. * @see http://activitystrea.ms/head/activity-schema.html#group
  75. * @var string
  76. */
  77. const GROUP = ActivityNamespace::ACTIVITY_SCHEMA . 'group';
  78. /**
  79. * @var string
  80. */
  81. const HEART = ActivityNamespace::DFRN . '/heart';
  82. /**
  83. * @var string
  84. */
  85. const TAGTERM = ActivityNamespace::DFRN . '/tagterm';
  86. /**
  87. * @var string
  88. */
  89. const PROFILE = ActivityNamespace::DFRN . '/profile';
  90. /**
  91. * The "question" object type represents a question or poll.
  92. *
  93. * @see http://activitystrea.ms/head/activity-schema.html#question
  94. * @var string
  95. */
  96. const QUESTION = 'http://activityschema.org/object/question';
  97. }