12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class ActivityVerb
- {
- const POST = 'http://activitystrea.ms/schema/1.0/post';
- const SHARE = 'http://activitystrea.ms/schema/1.0/share';
- const SAVE = 'http://activitystrea.ms/schema/1.0/save';
- const FAVORITE = 'http://activitystrea.ms/schema/1.0/favorite';
- const LIKE = 'http://activitystrea.ms/schema/1.0/like';
- const PLAY = 'http://activitystrea.ms/schema/1.0/play';
- const FOLLOW = 'http://activitystrea.ms/schema/1.0/follow';
- const FRIEND = 'http://activitystrea.ms/schema/1.0/make-friend';
- const JOIN = 'http://activitystrea.ms/schema/1.0/join';
- const TAG = 'http://activitystrea.ms/schema/1.0/tag';
- const DELETE = 'http://activitystrea.ms/schema/1.0/delete';
- const UPDATE = 'http://activitystrea.ms/schema/1.0/update';
-
- const UNFAVORITE = 'http://activitystrea.ms/schema/1.0/unfavorite';
- const UNLIKE = 'http://activitystrea.ms/schema/1.0/unlike';
- const UNFOLLOW = 'http://ostatus.org/schema/1.0/unfollow';
- const LEAVE = 'http://ostatus.org/schema/1.0/leave';
- const UNTAG = 'http://ostatus.org/schema/1.0/untag';
-
- const UPDATE_PROFILE = 'http://ostatus.org/schema/1.0/update-profile';
- static function canonical($verb) {
- $ns = 'http://activitystrea.ms/schema/1.0/';
- if (substr($verb, 0, mb_strlen($ns)) == $ns) {
- return substr($verb, mb_strlen($ns));
- } else {
- return $verb;
- }
- }
- }
|