| 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 array(); |
| 59 |
} |
| 60 |
|
| 61 |
public function get_featured_tags() { |
| 62 |
return array(); |
| 63 |
} |
| 64 |
|
| 65 |
public function get_featured() { |
| 66 |
return array(); |
| 67 |
} |
| 68 |
} |
| 69 |
|