1 | <?php |
||
10 | class User_Meta_Datastore extends Meta_Datastore { |
||
11 | /** |
||
12 | * ID of the user. |
||
13 | * |
||
14 | * @var int |
||
15 | */ |
||
16 | protected $user_id; |
||
17 | |||
18 | /** |
||
19 | * Load complex field value(s) from the database. |
||
20 | * |
||
21 | * @param mixed $field The field to load values for. |
||
22 | */ |
||
23 | public function load_values( $field ) { |
||
44 | |||
45 | /** |
||
46 | * Retrieve the type of meta data. |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function get_meta_type() { |
||
53 | |||
54 | /** |
||
55 | * Retrieve the meta table name to query. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public function get_table_name() { |
||
63 | |||
64 | /** |
||
65 | * Retrieve the meta table field name to query by. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | public function get_table_field_name() { |
||
72 | |||
73 | /** |
||
74 | * Set the user ID of the datastore. |
||
75 | * |
||
76 | * @param int $user_id ID of the user. |
||
77 | */ |
||
78 | public function set_id( $user_id ) { |
||
81 | |||
82 | /** |
||
83 | * Retrieve the user ID of the datastore. |
||
84 | * |
||
85 | * @return int ID of the user. |
||
86 | */ |
||
87 | public function get_id() { |
||
90 | } |
||
91 |