1 | <?php |
||
14 | class WPInv_Admin_Users { |
||
15 | private static $instance; |
||
16 | |||
17 | public static function run() { |
||
24 | |||
25 | public function __construct() { |
||
29 | |||
30 | /** |
||
31 | * Adds a new backend user column. |
||
32 | * |
||
33 | * @param $column |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function wpinv_add_user_column( $column ) { |
||
41 | |||
42 | /** |
||
43 | * Add the backend user column content. |
||
44 | * |
||
45 | * @param $val |
||
46 | * @param $column_name |
||
47 | * @param $user_id |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | function wpinv_user_column_content( $val, $column_name, $user_id ) { |
||
60 | |||
61 | /** |
||
62 | * Get the backend user invoices. |
||
63 | * |
||
64 | * @param $user_id |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function get_user_invoices($user_id){ |
||
90 | |||
91 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.