@@ -96,6 +96,7 @@ |
||
96 | 96 | * Current code is not really clean, but as there is no clean interface |
97 | 97 | * for ugroups & permission manangement... |
98 | 98 | * |
99 | + * @param Docman_Item $item |
|
99 | 100 | * @return Array |
100 | 101 | */ |
101 | 102 | public function getPeopleToNotifyWhenWatermarkingIsDisabled($item) { |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return $this->retrieve($sql); |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param integer $watermarked |
|
37 | + */ |
|
35 | 38 | function logEvent($itemId, $userId, $watermarked) { |
36 | 39 | $sql = 'INSERT INTO plugin_docmanwatermark_item_excluded_log'. |
37 | 40 | '(item_id, time, who, watermarked) VALUES '. |
@@ -44,6 +44,9 @@ |
||
44 | 44 | return $this->dao; |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param DocmanWatermark_Metadata $wmd |
|
49 | + */ |
|
47 | 50 | public function setField($wmd) { |
48 | 51 | // remove the old field related watermarking values if any |
49 | 52 | $dwmvf = new DocmanWatermark_MetadataValueFactory(); |
@@ -107,6 +107,7 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * Private Method to copy the watermarkmetadata setup from the src project to target project |
109 | 109 | * @param int md_id: the metadata id to insert in the table plugin_docman_watermark_md_extension |
110 | + * @param integer $md_id |
|
110 | 111 | * @return void |
111 | 112 | */ |
112 | 113 | private function copyWatermarkMetadata($md_id){ |
@@ -120,7 +121,6 @@ discard block |
||
120 | 121 | |
121 | 122 | /** |
122 | 123 | * Private Method to copy the metadata values setup from the src project to target project |
123 | - * @param ArrayIterator(int) $dwmvs : iterator of metadata values to insert in the table plugin_docman_watermark_love_md_extension |
|
124 | 124 | * @return void |
125 | 125 | */ |
126 | 126 |
@@ -239,6 +239,7 @@ |
||
239 | 239 | * |
240 | 240 | * @param float $percentage. watermarking percentage. |
241 | 241 | * @param int $pageCount Total number of pages in the pdf document. |
242 | + * @param double $percentage |
|
242 | 243 | * |
243 | 244 | * @return array $pagesToWatermark page numbers |
244 | 245 | */ |
@@ -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; |