@@ -44,6 +44,10 @@ |
||
44 | 44 | function setModule(&$module) { |
45 | 45 | $this->module =& $module; |
46 | 46 | } |
47 | + |
|
48 | + /** |
|
49 | + * @param string $commandName |
|
50 | + */ |
|
47 | 51 | function setSoapCommand($commandName) { |
48 | 52 | $this->soapCommand = $commandName; |
49 | 53 | } |
@@ -10,6 +10,11 @@ |
||
10 | 10 | var $name; |
11 | 11 | var $description; |
12 | 12 | var $params; |
13 | + |
|
14 | + /** |
|
15 | + * @param string $name |
|
16 | + * @param string $description |
|
17 | + */ |
|
13 | 18 | function CLI_Module($name, $description) { |
14 | 19 | $this->name = $name; |
15 | 20 | $this->description = $description; |
@@ -8,6 +8,10 @@ discard block |
||
8 | 8 | class CLI_ModuleFactory { |
9 | 9 | |
10 | 10 | var $root; |
11 | + |
|
12 | + /** |
|
13 | + * @param string $root |
|
14 | + */ |
|
11 | 15 | function CLI_ModuleFactory($root) { |
12 | 16 | $this->root = $root; |
13 | 17 | } |
@@ -21,6 +25,9 @@ discard block |
||
21 | 25 | return $ok; |
22 | 26 | } |
23 | 27 | |
28 | + /** |
|
29 | + * @param string $module |
|
30 | + */ |
|
24 | 31 | function &getModule($module) { |
25 | 32 | $m = null; |
26 | 33 | if ($this->exist($module)) { |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | * |
272 | 272 | * This method is called in response to feof(). |
273 | 273 | * |
274 | - * @return Should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise. |
|
274 | + * @return boolean return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise. |
|
275 | 275 | */ |
276 | 276 | public function stream_eof() { |
277 | 277 | //echo "$this->offset > $this->filesize\n"; |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | * * SEEK_CUR - Set position to current location plus offset . |
302 | 302 | * * SEEK_END - Set position to end-of-file plus offset . |
303 | 303 | * |
304 | - * @return boolean Return TRUE if the position was updated, FALSE otherwise |
|
304 | + * @return boolean|null Return TRUE if the position was updated, FALSE otherwise |
|
305 | 305 | */ |
306 | 306 | public function stream_seek($offset, $whence = SEEK_SET) { |
307 | 307 | switch ($whence) { |
@@ -9,6 +9,10 @@ |
||
9 | 9 | |
10 | 10 | class CLI_Action_Docman_CreateDocument extends CLI_Action_Docman_CreateItem { |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $name |
|
14 | + * @param string $description |
|
15 | + */ |
|
12 | 16 | function CLI_Action_Docman_CreateDocument($name, $description) { |
13 | 17 | $this->CLI_Action_Docman_CreateItem($name, $description); |
14 | 18 |
@@ -8,6 +8,11 @@ |
||
8 | 8 | require_once(CODENDI_CLI_DIR.'/CLI_Action.class.php'); |
9 | 9 | |
10 | 10 | class CLI_Action_Tracker_MajFields extends CLI_Action { |
11 | + |
|
12 | + /** |
|
13 | + * @param string $name |
|
14 | + * @param string $description |
|
15 | + */ |
|
11 | 16 | function CLI_Action_Tracker_MajFields($name, $description) { |
12 | 17 | $this->CLI_Action($name, $description); |
13 | 18 |
@@ -101,7 +101,6 @@ discard block |
||
101 | 101 | * 'tracker', 'group_id', 'project' is a field name. |
102 | 102 | * A param which doesn't correspond with a field would be simply ignored. |
103 | 103 | * |
104 | - * @param array $PARAMS the command line parameters to parse and analyse |
|
105 | 104 | * @return array the array of params from the command line. |
106 | 105 | */ |
107 | 106 | function getArtifactParams($params) { |
@@ -150,7 +149,6 @@ discard block |
||
150 | 149 | * 'tracker', 'group_id', 'project' is a field name. |
151 | 150 | * A param which doesn't correspond with a field would be simply ignored. |
152 | 151 | * |
153 | - * @param array $PARAMS the command line parameters to parse and analyse |
|
154 | 152 | * @return array the array of params from the command line. |
155 | 153 | */ |
156 | 154 | function getArtifactCriteria($params) { |
@@ -70,6 +70,9 @@ |
||
70 | 70 | return 'plugin_admindelegation'; |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param integer $limit |
|
75 | + */ |
|
73 | 76 | function getAllProject($offset, $limit, $condition, $pattern) { |
74 | 77 | $projects = array(); |
75 | 78 | if (count($condition)> 0){ |
@@ -75,6 +75,9 @@ |
||
75 | 75 | return $usDao->isUserGranted($user->getId()); |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param PFUser $user |
|
80 | + */ |
|
78 | 81 | public function isUserGrantedForService($user, $service) { |
79 | 82 | $usDao = $this->_getUserServiceDao(); |
80 | 83 | return $usDao->isUserGrantedForService($user->getId(), $service); |