@@ -107,6 +107,7 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * @access public |
109 | 109 | * @param Iterator |
110 | + * @param integer $gid |
|
110 | 111 | */ |
111 | 112 | public function getAttachmentIterator($gid=null) { |
112 | 113 | $waArray = array(); |
@@ -518,6 +519,7 @@ discard block |
||
518 | 519 | |
519 | 520 | /** |
520 | 521 | * @access public |
522 | + * @param integer $uid |
|
521 | 523 | */ |
522 | 524 | public function isAutorized($uid) { |
523 | 525 | require_once('www/project/admin/permissions.php'); |
@@ -594,7 +596,7 @@ discard block |
||
594 | 596 | * @param Integer $offset |
595 | 597 | * @param Integer $limit |
596 | 598 | * |
597 | - * @return Boolean |
|
599 | + * @return DataAccessResult |
|
598 | 600 | */ |
599 | 601 | public function listPendingAttachments($groupId, $offset, $limit) { |
600 | 602 | $dao = $this->getDao(); |
@@ -28,6 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @param integer $gid Group id |
30 | 30 | * @param string $filename Attachement name |
31 | + * @param string $filesystemName |
|
31 | 32 | * @return boolean |
32 | 33 | */ |
33 | 34 | function create($gid, $filename, $filesystemName) { |
@@ -176,8 +177,8 @@ discard block |
||
176 | 177 | /** |
177 | 178 | * Save the purge date of a deleted attachment |
178 | 179 | * |
179 | - * @param Integer $attachmentId |
|
180 | 180 | * @param Integer $time |
181 | + * @param integer $id |
|
181 | 182 | * |
182 | 183 | * @return Boolean |
183 | 184 | */ |
@@ -59,6 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | /** |
61 | 61 | * |
62 | + * @param integer $gid |
|
62 | 63 | */ |
63 | 64 | function PHPWikiAttachmentRevision($gid=null) { |
64 | 65 | if(is_numeric($gid)) { |
@@ -173,6 +174,9 @@ discard block |
||
173 | 174 | } |
174 | 175 | |
175 | 176 | |
177 | + /** |
|
178 | + * @param integer $userId |
|
179 | + */ |
|
176 | 180 | function log($userId) { |
177 | 181 | $dao =& $this->getDao(); |
178 | 182 | $dao->log($this->attachmentId, |
@@ -201,6 +205,9 @@ discard block |
||
201 | 205 | return true; |
202 | 206 | } |
203 | 207 | |
208 | + /** |
|
209 | + * @param integer $gid |
|
210 | + */ |
|
204 | 211 | function setGid($gid) { |
205 | 212 | if(is_numeric($gid)) { |
206 | 213 | $this->gid = (int) $gid; |
@@ -234,6 +241,9 @@ discard block |
||
234 | 241 | return true; |
235 | 242 | } |
236 | 243 | |
244 | + /** |
|
245 | + * @param integer $uid |
|
246 | + */ |
|
237 | 247 | function setOwnerId($uid) { |
238 | 248 | $this->owner_id = (int) $uid; |
239 | 249 | return true; |
@@ -244,11 +254,17 @@ discard block |
||
244 | 254 | return true; |
245 | 255 | } |
246 | 256 | |
257 | + /** |
|
258 | + * @param integer $date |
|
259 | + */ |
|
247 | 260 | function setDate($date) { |
248 | 261 | $this->date = (int) $date; |
249 | 262 | return true; |
250 | 263 | } |
251 | 264 | |
265 | + /** |
|
266 | + * @param integer $rev |
|
267 | + */ |
|
252 | 268 | function setRevision($rev) { |
253 | 269 | $this->revision = (int) $rev; |
254 | 270 | return true; |
@@ -315,6 +331,8 @@ discard block |
||
315 | 331 | /** |
316 | 332 | * @access public static |
317 | 333 | * @param Iterator |
334 | + * @param integer $gid |
|
335 | + * @param integer $id |
|
318 | 336 | */ |
319 | 337 | function &getRevisionIterator($gid=null, $id=null) { |
320 | 338 | $warArray = array(); |
@@ -26,6 +26,11 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Create a new attachment revision |
28 | 28 | * |
29 | + * @param integer $attachmentId |
|
30 | + * @param integer $ownerId |
|
31 | + * @param integer $date |
|
32 | + * @param integer $revision |
|
33 | + * @param integer $size |
|
29 | 34 | * @return boolean success or failure |
30 | 35 | */ |
31 | 36 | function create($attachmentId, $ownerId, $date, $revision, $type, $size) { |
@@ -47,6 +52,11 @@ discard block |
||
47 | 52 | return $inserted; |
48 | 53 | } |
49 | 54 | |
55 | + /** |
|
56 | + * @param integer $attachmentId |
|
57 | + * @param integer $groupId |
|
58 | + * @param integer $date |
|
59 | + */ |
|
50 | 60 | function log($attachmentId, $revision, $groupId, $userId, $date) { |
51 | 61 | $sql = sprintf('INSERT INTO plugin_phpwiki_attachment_log SET' |
52 | 62 | .' user_id = %d' |
@@ -66,6 +76,8 @@ discard block |
||
66 | 76 | |
67 | 77 | /** |
68 | 78 | * Get one revision |
79 | + * @param integer $attachmentId |
|
80 | + * @param integer $revision |
|
69 | 81 | */ |
70 | 82 | function getRevision($attachmentId, $revision) { |
71 | 83 | $sql = sprintf('SELECT * FROM plugin_phpwiki_attachment_revision' |
@@ -79,6 +91,7 @@ discard block |
||
79 | 91 | |
80 | 92 | /** |
81 | 93 | * Fetch all revisions of a given attachment |
94 | + * @param integer $id |
|
82 | 95 | */ |
83 | 96 | function getAllRevisions($id) { |
84 | 97 | $sql = sprintf('SELECT * FROM plugin_phpwiki_attachment_revision' |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * |
76 | 76 | * Check if template project has wiki service enabled |
77 | - * @return boolean |
|
77 | + * @return boolean|null |
|
78 | 78 | * |
79 | 79 | */ |
80 | 80 | function templateWikiExists(){ |
@@ -311,6 +311,7 @@ discard block |
||
311 | 311 | * @param int : template attachment id |
312 | 312 | * |
313 | 313 | * @param int : cloned attachment id. |
314 | + * @param integer $permission |
|
314 | 315 | * |
315 | 316 | */ |
316 | 317 | function insertNewAttachmentPermission($new_attachment_id, $permission){ |
@@ -323,6 +324,7 @@ discard block |
||
323 | 324 | * Create attachment directory in new project attachment space.. |
324 | 325 | * |
325 | 326 | * @param string : name of the attachment |
327 | + * @param integer $mode |
|
326 | 328 | * |
327 | 329 | */ |
328 | 330 | function createAttachmentDir($name, $mode){ |
@@ -384,6 +386,7 @@ discard block |
||
384 | 386 | * Gets a file mode. |
385 | 387 | * |
386 | 388 | * @param string : path to the file or directory. |
389 | + * @param string $file |
|
387 | 390 | * |
388 | 391 | * @returns string : octal mode of the file. |
389 | 392 | * |
@@ -66,6 +66,9 @@ discard block |
||
66 | 66 | $this->id = (int) $id; |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param integer $gid |
|
71 | + */ |
|
69 | 72 | function setGid($gid) { |
70 | 73 | $this->gid = (int) $gid; |
71 | 74 | } |
@@ -146,6 +149,7 @@ discard block |
||
146 | 149 | |
147 | 150 | /** |
148 | 151 | * Return an iterator on WikiEntries |
152 | + * @param integer $gid |
|
149 | 153 | */ |
150 | 154 | function getEntryIterator($gid=null) { |
151 | 155 | if($gid !== null) { |
@@ -251,6 +251,9 @@ discard block |
||
251 | 251 | return $referenced; |
252 | 252 | } |
253 | 253 | |
254 | + /** |
|
255 | + * @param integer $uid |
|
256 | + */ |
|
254 | 257 | public function isAutorized($uid) { |
255 | 258 | if($this->referenced == true) { |
256 | 259 | $userCanAccess = false; |
@@ -302,6 +305,9 @@ discard block |
||
302 | 305 | return($this->id != 0); |
303 | 306 | } |
304 | 307 | |
308 | + /** |
|
309 | + * @param integer $user_id |
|
310 | + */ |
|
305 | 311 | public function log($user_id) { |
306 | 312 | $sql = "INSERT INTO plugin_phpwiki_log(user_id,group_id,pagename,time) " |
307 | 313 | ."VALUES ('".db_ei($user_id)."','".db_ei($this->gid)."','".db_es($this->pagename)."','".db_ei(time())."')"; |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | /** @var PHPWikiPageWrapper */ |
32 | 32 | private $wrapper; |
33 | 33 | |
34 | + /** |
|
35 | + * @param integer $project_id |
|
36 | + */ |
|
34 | 37 | public function __construct($project_id) { |
35 | 38 | $this->wrapper = new PHPWikiPageWrapper($project_id); |
36 | 39 | } |
@@ -51,6 +54,9 @@ discard block |
||
51 | 54 | return ob_get_clean(); |
52 | 55 | } |
53 | 56 | |
57 | + /** |
|
58 | + * @return boolean |
|
59 | + */ |
|
54 | 60 | private function getTransformedContent( |
55 | 61 | PHPWikiPage $wiki_page, |
56 | 62 | PHPWikiPageVersion $version, |
@@ -23,11 +23,15 @@ discard block |
||
23 | 23 | /** @var PHPWikiVersionDao */ |
24 | 24 | private $wiki_version_dao; |
25 | 25 | |
26 | + /** |
|
27 | + * @param PHPWikiVersionDao $wiki_version_dao |
|
28 | + */ |
|
26 | 29 | public function __construct($wiki_version_dao) { |
27 | 30 | $this->wiki_version_dao = $wiki_version_dao; |
28 | 31 | } |
29 | 32 | |
30 | - /** @return PHPWikiPageVersion */ |
|
33 | + /** @param integer $page_id |
|
34 | +/** @return PHPWikiPageVersion */ |
|
31 | 35 | public function getPageVersion($page_id, $page_version_id) { |
32 | 36 | $page_version = null; |
33 | 37 | |
@@ -39,7 +43,8 @@ discard block |
||
39 | 43 | return $page_version; |
40 | 44 | } |
41 | 45 | |
42 | - /** @return array */ |
|
46 | + /** @param integer $page_id |
|
47 | +/** @return array */ |
|
43 | 48 | public function getPageAllVersions($page_id) { |
44 | 49 | $page_versions = array(); |
45 | 50 |