PluginProbe
Friends / 2.8.1
Friends v2.8.1
4.3.2 4.3.1 4.3.0 4.2.2 4.2.1 4.2.0 4.1.0 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.0 2.9.1 All 88 releases
friends / feed-parsers / activitypub / class-virtual-user-feed.php

class-virtual-user-feed.php in Friends 2.8.1, at feed-parsers/activitypub/class-virtual-user-feed.php

91 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Virtual User Feed Class
4 *
5 * @package Friends
6 */
7
8 namespace Friends;
9
10 /**
11 * Virtual User Feed Class
12 *
13 * @author Alex Kirk
14 */
15 class Virtual_User_Feed extends User_Feed {
16 private $friend_user;
17 private $title;
18
19 public function __construct( User $friend_user, $title ) {
20 $this->friend_user = $friend_user;
21 $this->title = $title;
22 }
23 public function __toString() {
24 }
25 public function get_id() {
26 return 'virtual-user-feed-' . $this->friend_user->get_id();
27 }
28 public function get_url() {
29 return null;
30 }
31 public function get_private_url( $validity = 3600 ) {
32 return null;
33 }
34 public function get_friend_user() {
35 return $this->friend_user;
36 }
37 public function get_active() {
38 return false;
39 }
40 public function get_post_format() {
41 return 'status';
42 }
43 public function get_parser() {
44 return 'virtual';
45 }
46 public function get_mime_type() {
47 return '';
48 }
49 public function get_title() {
50 return $this->title;
51 }
52 public function get_last_log() {
53 return '';
54 }
55 public function is_active() {
56 return true;
57 }
58 public function get_interval() {
59 return 0;
60 }
61 public function get_modifier() {
62 return 0;
63 }
64 public function get_next_poll() {
65 return 0;
66 }
67 public function was_polled() {
68 return false;
69 }
70 public function activate() {
71 return true;
72 }
73 public function deactivate() {
74 return false;
75 }
76 public function delete() {
77 return false;
78 }
79 public function get_metadata( $key ) {
80 return null;
81 }
82 public function update_metadata( $key, $value ) {
83 return $value;
84 }
85 public function delete_metadata( $key ) {
86 return null;
87 }
88 public function update_last_log( $value ) {
89 }
90 }
91