@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | |
22 | 22 | class SVN_TokenDao extends DataAccessObject { |
23 | 23 | |
24 | + /** |
|
25 | + * @param integer $user_id |
|
26 | + */ |
|
24 | 27 | public function getSVNTokensForUser($user_id) { |
25 | 28 | $user_id = $this->da->escapeInt($user_id); |
26 | 29 | |
@@ -31,6 +34,10 @@ discard block |
||
31 | 34 | return $this->retrieve($sql); |
32 | 35 | } |
33 | 36 | |
37 | + /** |
|
38 | + * @param integer $user_id |
|
39 | + * @param string $token |
|
40 | + */ |
|
34 | 41 | public function generateSVNTokenForUser($user_id, $token, $comment) { |
35 | 42 | $user_id = $this->da->escapeInt($user_id); |
36 | 43 | $token = $this->da->quoteSmart($token); |
@@ -43,6 +50,9 @@ discard block |
||
43 | 50 | return $this->update($sql); |
44 | 51 | } |
45 | 52 | |
53 | + /** |
|
54 | + * @param integer $user_id |
|
55 | + */ |
|
46 | 56 | public function deleteSVNTokensForUser($user_id, $tokens_to_be_deleted) { |
47 | 57 | $user_id = $this->da->escapeInt($user_id); |
48 | 58 | $tokens_to_be_deleted = $this->da->escapeIntImplode($tokens_to_be_deleted); |