@@ -193,7 +193,7 @@ |
||
193 | 193 | /** |
194 | 194 | * Wrapper for DocmanWatermark_MetadataFactory object |
195 | 195 | * |
196 | - * @return DocmanWatermark_MetadataFactory |
|
196 | + * @return DocmanWatermark_ItemFactory |
|
197 | 197 | */ |
198 | 198 | function getDocmanWatermark_ItemFactory() { |
199 | 199 | include_once 'DocmanWatermark_ItemFactory.class.php'; |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | |
28 | 28 | class DocmanWatermarkPluginInfo extends PluginInfo { |
29 | 29 | |
30 | + /** |
|
31 | + * @param DocmanWatermarkPlugin $plugin |
|
32 | + */ |
|
30 | 33 | function __construct($plugin) { |
31 | 34 | $this->PluginInfo($plugin); |
32 | 35 | $this->setPluginDescriptor(new DocmanWatermarkPluginDescriptor()); |
@@ -84,6 +87,11 @@ discard block |
||
84 | 87 | } |
85 | 88 | } |
86 | 89 | |
90 | + /** |
|
91 | + * @param string $name |
|
92 | + * |
|
93 | + * @return string |
|
94 | + */ |
|
87 | 95 | function getPropertyValueForName($name) { |
88 | 96 | $desc = $this->getPropertyDescriptorForName($name); |
89 | 97 | return $desc ? $desc->getValue() : $desc; |
@@ -49,8 +49,10 @@ discard block |
||
49 | 49 | * @param list: mailing-list name |
50 | 50 | * @param date: date of attachment in YYYY_MM_DD format |
51 | 51 | * @param encod: encoding of attachment |
52 | + * @param string $filename |
|
53 | + * @param string $date |
|
52 | 54 | * |
53 | - * @return int size of attached file |
|
55 | + * @return string|false size of attached file |
|
54 | 56 | */ |
55 | 57 | function store($filename, $content, $list, $date, $encod="") { |
56 | 58 | $path = $this->_getPath($filename, $list, $date, "store"); |
@@ -91,6 +93,7 @@ discard block |
||
91 | 93 | * @param list: mailing-list name |
92 | 94 | * @param date: attachment date (YYYY_MM_DD) |
93 | 95 | * @param string type: upload/store |
96 | + * @param string $type |
|
94 | 97 | * |
95 | 98 | * @return string path |
96 | 99 | */ |
@@ -135,6 +138,9 @@ discard block |
||
135 | 138 | return $path.$name.$ext; |
136 | 139 | } |
137 | 140 | |
141 | + /** |
|
142 | + * @param string $path |
|
143 | + */ |
|
138 | 144 | function fileExists($path) { |
139 | 145 | return is_file($path); |
140 | 146 | } |
@@ -67,6 +67,8 @@ |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * HTML Purifier configuration factory |
70 | + * @param integer $level |
|
71 | + * @return integer |
|
70 | 72 | */ |
71 | 73 | function getHPConfig($level) { |
72 | 74 | $config = null; |
@@ -49,6 +49,12 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | // Insert values into forumml_attachment table |
52 | + |
|
53 | + /** |
|
54 | + * @param integer $id_message |
|
55 | + * @param string $filename |
|
56 | + * @param string|false $filepath |
|
57 | + */ |
|
52 | 58 | function insertAttachment($id_message, $filename,$filetype,$filepath,$content_id="") { |
53 | 59 | if (is_file($filepath)) { |
54 | 60 | $filesize = filesize($filepath); |
@@ -104,6 +110,9 @@ discard block |
||
104 | 110 | return false; |
105 | 111 | } |
106 | 112 | |
113 | + /** |
|
114 | + * @param integer $date |
|
115 | + */ |
|
107 | 116 | function updateParentDate($messageId, $date) { |
108 | 117 | if ($messageId != 0) { |
109 | 118 | $sql = 'SELECT id_parent, last_thread_update FROM plugin_forumml_message WHERE id_message = '.$messageId; |
@@ -24,6 +24,9 @@ discard block |
||
24 | 24 | |
25 | 25 | class ForumMLPluginInfo extends PluginInfo { |
26 | 26 | |
27 | + /** |
|
28 | + * @param ForumMLPlugin $plugin |
|
29 | + */ |
|
27 | 30 | function __construct($plugin) { |
28 | 31 | parent::__construct($plugin); |
29 | 32 | $this->setPluginDescriptor(new ForumMLPluginDescriptor()); |
@@ -82,6 +85,9 @@ discard block |
||
82 | 85 | } |
83 | 86 | } |
84 | 87 | |
88 | + /** |
|
89 | + * @param string $name |
|
90 | + */ |
|
85 | 91 | function getPropertyValueForName($name) { |
86 | 92 | $desc = $this->getPropertyDescriptorForName($name); |
87 | 93 | return $desc ? $desc->getValue() : $desc; |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | $this->_namePattern = "`[^a-z0-9_-]`i"; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $path |
|
43 | + */ |
|
41 | 44 | private function _deleteIfExists($path) { |
42 | 45 | if (is_dir($path)) { |
43 | 46 | rmdir($path); |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | } |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param string $path |
|
54 | + */ |
|
49 | 55 | private function _getFileStorage($path) { |
50 | 56 | $fs = new ForumML_FileStorageTestVersion($this); |
51 | 57 | $fs->root = $path; |
@@ -17,6 +17,9 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | |
20 | + /** |
|
21 | + * @param string $path |
|
22 | + */ |
|
20 | 23 | function getEmailStructure($path) { |
21 | 24 | $message = file_get_contents($this->_fixture.'/'.$path); |
22 | 25 | $args['include_bodies'] = TRUE; |
@@ -661,6 +661,9 @@ |
||
661 | 661 | echo '</div>'; |
662 | 662 | } |
663 | 663 | |
664 | +/** |
|
665 | + * @param string $link |
|
666 | + */ |
|
664 | 667 | function getAnonymousForumMLReplyURL($link) { |
665 | 668 | return '/account/login.php?return_to='.urlencode($link); |
666 | 669 | } |