1 | <?php |
||
15 | class WordPoints_BP_Entity_Activity extends WordPoints_BP_Entity { |
||
|
|||
16 | |||
17 | /** |
||
18 | * The activity type this object represents. |
||
19 | * |
||
20 | * Leaving this unset means that it represents any type of activity. |
||
21 | * |
||
22 | * @since 1.2.1 |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $bp_activity_type; |
||
27 | |||
28 | /** |
||
29 | * The component that the activity this object represents is from. |
||
30 | * |
||
31 | * Leaving this unset means that it can be from any component. |
||
32 | * |
||
33 | * @since 1.2.0 |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $bp_activity_component; |
||
38 | |||
39 | /** |
||
40 | * @since 1.0.0 |
||
41 | */ |
||
42 | protected $bp_component = 'activity'; |
||
43 | |||
44 | /** |
||
45 | * @since 1.0.0 |
||
46 | */ |
||
47 | protected $id_field = 'id'; |
||
48 | |||
49 | /** |
||
50 | * @since 1.2.1 |
||
51 | */ |
||
52 | protected $id_is_int = true; |
||
53 | |||
54 | /** |
||
55 | * @since 1.0.0 |
||
56 | */ |
||
57 | protected function get_entity( $id ) { |
||
69 | |||
70 | /** |
||
71 | * @since 1.0.0 |
||
72 | */ |
||
73 | public function get_title() { |
||
76 | |||
77 | /** |
||
78 | * @since 1.0.0 |
||
79 | */ |
||
80 | protected function get_entity_human_id( $entity ) { |
||
106 | |||
107 | /** |
||
108 | * @since 1.2.1 |
||
109 | */ |
||
110 | public function get_storage_info() { |
||
130 | } |
||
131 | |||
133 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.