@@ -58,8 +58,20 @@ discard block |
||
58 | 58 | |
59 | 59 | // this is basically a reactor |
60 | 60 | interface WordPoints_Entity_Change_ListenerI { |
61 | + |
|
62 | + /** |
|
63 | + * @return void |
|
64 | + */ |
|
61 | 65 | public function created( WordPoints_Entity $entity ); |
66 | + |
|
67 | + /** |
|
68 | + * @return void |
|
69 | + */ |
|
62 | 70 | public function updated( WordPoints_Entity $before, WordPoints_Entity $after ); |
71 | + |
|
72 | + /** |
|
73 | + * @return void |
|
74 | + */ |
|
63 | 75 | public function deleted( WordPoints_Entity $entity ); |
64 | 76 | } |
65 | 77 | |
@@ -129,6 +141,9 @@ discard block |
||
129 | 141 | return true; |
130 | 142 | } |
131 | 143 | |
144 | + /** |
|
145 | + * @param string $type |
|
146 | + */ |
|
132 | 147 | protected function fire_event( $type, WordPoints_Entity $entity ) { |
133 | 148 | |
134 | 149 | $args = new WordPoints_Hook_Event_Args( array() ); |
@@ -73,12 +73,28 @@ discard block |
||
73 | 73 | |
74 | 74 | |
75 | 75 | interface WordPoints_WPDB_Query_Data { |
76 | + |
|
77 | + /** |
|
78 | + * @return string |
|
79 | + */ |
|
76 | 80 | public function get_table_name(); |
81 | + |
|
82 | + /** |
|
83 | + * @return void |
|
84 | + */ |
|
77 | 85 | public function get_where_clause(); |
78 | 86 | } |
79 | 87 | |
80 | 88 | interface WordPoints_MySQL_Query_Parser_SimpleI { |
89 | + |
|
90 | + /** |
|
91 | + * @return void |
|
92 | + */ |
|
81 | 93 | public function get_table_name(); |
94 | + |
|
95 | + /** |
|
96 | + * @return string |
|
97 | + */ |
|
82 | 98 | public function get_where_clause(); |
83 | 99 | } |
84 | 100 | |
@@ -164,6 +180,10 @@ discard block |
||
164 | 180 | } |
165 | 181 | |
166 | 182 | interface WordPoints_WPDB_Query_WrapperI { |
183 | + |
|
184 | + /** |
|
185 | + * @return void |
|
186 | + */ |
|
167 | 187 | public function __construct( $slug, $args, $wpdb ); |
168 | 188 | public function execute(); |
169 | 189 |