PluginProbe
ActivityPub / 1.0.8
ActivityPub v1.0.8
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / includes / model / class-application-user.php

class-application-user.php in ActivityPub 1.0.8, at includes/model/class-application-user.php

73 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Activitypub\Model;
3
4 use WP_Query;
5 use Activitypub\Signature;
6 use Activitypub\Collection\Users;
7
8 use function Activitypub\get_rest_url_by_path;
9
10 class Application_User extends Blog_User {
11 /**
12 * The User-ID
13 *
14 * @var int
15 */
16 protected $_id = Users::APPLICATION_USER_ID; // phpcs:ignore PSR2.Classes.PropertyDeclaration.Underscore
17
18 /**
19 * The User-Type
20 *
21 * @var string
22 */
23 protected $type = 'Application';
24
25 /**
26 * If the User is discoverable.
27 *
28 * @var boolean
29 */
30 protected $discoverable = false;
31
32 /**
33 * Get the User-Url.
34 *
35 * @return string The User-Url.
36 */
37 public function get_url() {
38 return get_rest_url_by_path( 'application' );
39 }
40
41 public function get_name() {
42 return 'application';
43 }
44
45 public function get_preferred_username() {
46 return $this::get_name();
47 }
48
49 public function get_followers() {
50 return null;
51 }
52
53 public function get_following() {
54 return null;
55 }
56
57 public function get_attachment() {
58 return null;
59 }
60
61 public function get_featured() {
62 return null;
63 }
64
65 public function get_moderators() {
66 return null;
67 }
68
69 public function get_indexable() {
70 return false;
71 }
72 }
73