| 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 |
|