@@ -314,6 +314,9 @@ |
||
314 | 314 | |
315 | 315 | } |
316 | 316 | |
317 | + /** |
|
318 | + * @param string $param |
|
319 | + */ |
|
317 | 320 | public function query($param){ |
318 | 321 | return $this->getContainer()->query($param); |
319 | 322 | } |
@@ -43,6 +43,9 @@ discard block |
||
43 | 43 | return $result; |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $user |
|
48 | + */ |
|
46 | 49 | public function findByUser($user){ |
47 | 50 | $sql = <<<SQL |
48 | 51 | SELECT |
@@ -56,6 +59,9 @@ discard block |
||
56 | 59 | return $result; |
57 | 60 | } |
58 | 61 | |
62 | + /** |
|
63 | + * @param string $user |
|
64 | + */ |
|
59 | 65 | public function findConvsIdByUser($user){ |
60 | 66 | $sql = 'SELECT conversation_id FROM `' . $this->getTableName() . '` ' . |
61 | 67 | 'WHERE `user` = ? '; |
@@ -25,9 +25,10 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Checks if a controllermethod has the expected annotations |
28 | - * @param Controller/string $controller name or instance of the controller |
|
29 | - * @param array $expected an array containing the expected annotations |
|
28 | + * @param \OCA\Chat\Controller\OCH\ApiController $controller name or instance of the controller |
|
29 | + * @param string[] $expected an array containing the expected annotations |
|
30 | 30 | * @param array $valid if you define your own annotations, pass them here |
31 | + * @param string $method |
|
31 | 32 | */ |
32 | 33 | protected function assertAnnotations($controller, $method, array $expected, |
33 | 34 | array $valid=array()){ |