1 | <?php |
||
15 | abstract class WordPoints_BP_Entity |
||
|
|||
16 | extends WordPoints_Entity |
||
17 | implements WordPoints_Entityish_StoredI { |
||
18 | |||
19 | /** |
||
20 | * The slug of the BuddyPress component this entity belongs to. |
||
21 | * |
||
22 | * @since 1.0.0 |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $bp_component; |
||
27 | |||
28 | /** |
||
29 | * The name of the table the entity objects are stored in. |
||
30 | * |
||
31 | * This is just the name of the property on the component object that holds the |
||
32 | * table name, sans the `table_name_` prefix. Some components have only a single |
||
33 | * table whose name is stored in the `table_name` property, in which case you |
||
34 | * don't need to define this property here. |
||
35 | * |
||
36 | * @since 1.0.0 |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $bp_component_table_name; |
||
41 | |||
42 | /** |
||
43 | * @since 1.0.0 |
||
44 | */ |
||
45 | public function get_context() { |
||
58 | |||
59 | /** |
||
60 | * Check if the BP Multi Network plugin is installed. |
||
61 | * |
||
62 | * This plugin allows BuddyPress to have a different social network for each |
||
63 | * network in a multi-network install, instead of a single one global to the |
||
64 | * multi-network. |
||
65 | * |
||
66 | * @since 1.0.0 |
||
67 | * |
||
68 | * @return bool Whether BP Multi Network is installed. |
||
69 | */ |
||
70 | protected function is_bp_multi_network() { |
||
78 | |||
79 | /** |
||
80 | * @since 1.0.0 |
||
81 | */ |
||
82 | public function get_storage_info() { |
||
98 | } |
||
99 | |||
101 |
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.