1 | <?php |
||
21 | class ElggRiverItem { |
||
22 | public $id; |
||
23 | public $subject_guid; |
||
24 | public $object_guid; |
||
25 | public $target_guid; |
||
26 | public $annotation_id; |
||
27 | public $type; |
||
28 | public $subtype; |
||
29 | public $action_type; |
||
30 | public $access_id; |
||
31 | public $view; |
||
32 | public $posted; |
||
33 | public $enabled; |
||
34 | |||
35 | /** |
||
36 | * Construct a river item object given a database row. |
||
37 | * |
||
38 | * @param \stdClass $object Object obtained from database |
||
39 | */ |
||
40 | public function __construct($object) { |
||
55 | |||
56 | /** |
||
57 | * Get the subject of this river item |
||
58 | * |
||
59 | * @return \ElggEntity |
||
60 | */ |
||
61 | public function getSubjectEntity() { |
||
64 | |||
65 | /** |
||
66 | * Get the object of this river item |
||
67 | * |
||
68 | * @return \ElggEntity |
||
69 | */ |
||
70 | public function getObjectEntity() { |
||
73 | |||
74 | /** |
||
75 | * Get the target of this river item |
||
76 | * |
||
77 | * @return \ElggEntity |
||
78 | */ |
||
79 | public function getTargetEntity() { |
||
82 | |||
83 | /** |
||
84 | * Get the Annotation for this river item |
||
85 | * |
||
86 | * @return \ElggAnnotation |
||
87 | */ |
||
88 | public function getAnnotation() { |
||
91 | |||
92 | /** |
||
93 | * Get the view used to display this river item |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getView() { |
||
100 | |||
101 | /** |
||
102 | * Get the time this activity was posted |
||
103 | * |
||
104 | * @return int |
||
105 | * @deprecated 1.9 Use getTimePosted() |
||
106 | */ |
||
107 | public function getPostedTime() { |
||
111 | |||
112 | /** |
||
113 | * Get the time this activity was posted |
||
114 | * |
||
115 | * @return int |
||
116 | */ |
||
117 | public function getTimePosted() { |
||
120 | |||
121 | /** |
||
122 | * Get the type of the object |
||
123 | * |
||
124 | * This is required for elgg_view_list_item(). All the other data types |
||
125 | * (entities, extenders, relationships) have a type/subtype. |
||
126 | * |
||
127 | * @return string 'river' |
||
128 | */ |
||
129 | public function getType() { |
||
132 | |||
133 | /** |
||
134 | * Get the subtype of the object |
||
135 | * |
||
136 | * This is required for elgg_view_list_item(). |
||
137 | * |
||
138 | * @return string 'item' |
||
139 | */ |
||
140 | public function getSubtype() { |
||
143 | |||
144 | /** |
||
145 | * Get a plain old object copy for public consumption |
||
146 | * |
||
147 | * @return \stdClass |
||
148 | */ |
||
149 | public function toObject() { |
||
162 | |||
163 | } |
||
164 |