@@ -278,7 +278,7 @@ |
||
278 | 278 | $r++; |
279 | 279 | $this->export_code[$r] = $this->rights_class . '_' . $r; |
280 | 280 | $this->export_label[$r] = 'List of security events'; |
281 | - $this->export_permission[$r] = array(array("user")); // Only admin |
|
281 | + $this->export_permission[$r] = array(array("user")); // Only admin |
|
282 | 282 | $this->export_fields_array[$r] = array( |
283 | 283 | 'e.rowid' => "Id", 'e.type' => "Type", |
284 | 284 | 'e.dateevent' => "Date", |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | } |
175 | 175 | |
176 | 176 | |
177 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
177 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
178 | 178 | /** |
179 | 179 | * Function to build pdf onto disk |
180 | 180 | * |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | */ |
189 | 189 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
190 | 190 | { |
191 | - // phpcs:enable |
|
191 | + // phpcs:enable |
|
192 | 192 | global $user, $langs, $conf, $mysoc, $db, $hookmanager; |
193 | 193 | |
194 | 194 | if (!is_object($outputlangs)) { |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | $pdf->writeHTMLCell($this->posxtva - $this->posxcomment - 0.8, 4, $this->posxcomment - 1, $curY, $comment, 0, 1); |
636 | 636 | } |
637 | 637 | |
638 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
638 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
639 | 639 | /** |
640 | 640 | * Show top header of page. |
641 | 641 | * |
@@ -880,7 +880,7 @@ discard block |
||
880 | 880 | return 0; |
881 | 881 | } |
882 | 882 | |
883 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
883 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
884 | 884 | /** |
885 | 885 | * Show table for lines |
886 | 886 | * |
@@ -1114,7 +1114,7 @@ discard block |
||
1114 | 1114 | return -1; |
1115 | 1115 | } |
1116 | 1116 | |
1117 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1117 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1118 | 1118 | /** |
1119 | 1119 | * Show footer of page. Need this->emetteur object |
1120 | 1120 | * |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | abstract class ModeleExpenseReport extends CommonDocGenerator |
27 | 27 | { |
28 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
28 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
29 | 29 | /** |
30 | 30 | * Return list of active models generation |
31 | 31 | * |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public static function liste_modeles($db, $maxfilenamelength = 0) |
37 | 37 | { |
38 | - // phpcs:enable |
|
38 | + // phpcs:enable |
|
39 | 39 | $type = 'expensereport'; |
40 | 40 | $list = array(); |
41 | 41 |
@@ -112,17 +112,17 @@ |
||
112 | 112 | // Menus |
113 | 113 | //------- |
114 | 114 | $this->menu[$r] = array('fk_menu' => 0, |
115 | - 'type' => 'top', |
|
116 | - 'titre' => 'FTP', |
|
117 | - 'prefix' => img_picto('', $this->picto, 'class="pictofixedwidth em092"'), |
|
118 | - 'mainmenu' => 'ftp', |
|
119 | - 'url' => '/ftp/index.php', |
|
120 | - 'langs' => 'ftp', |
|
121 | - 'position' => 100, |
|
122 | - 'enabled' => '$conf->ftp->enabled', |
|
123 | - 'perms' => '$user->rights->ftp->read || $user->rights->ftp->write || $user->rights->ftp->setup', |
|
124 | - 'target' => '', |
|
125 | - 'user' => 2); // 0=Menu for internal users, 1=external users, 2=both |
|
115 | + 'type' => 'top', |
|
116 | + 'titre' => 'FTP', |
|
117 | + 'prefix' => img_picto('', $this->picto, 'class="pictofixedwidth em092"'), |
|
118 | + 'mainmenu' => 'ftp', |
|
119 | + 'url' => '/ftp/index.php', |
|
120 | + 'langs' => 'ftp', |
|
121 | + 'position' => 100, |
|
122 | + 'enabled' => '$conf->ftp->enabled', |
|
123 | + 'perms' => '$user->rights->ftp->read || $user->rights->ftp->write || $user->rights->ftp->setup', |
|
124 | + 'target' => '', |
|
125 | + 'user' => 2); // 0=Menu for internal users, 1=external users, 2=both |
|
126 | 126 | $r++; |
127 | 127 | } |
128 | 128 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $r = 1; |
249 | 249 | |
250 | 250 | $this->export_code[$r] = $this->rights_class . '_' . $r; |
251 | - $this->export_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
251 | + $this->export_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
252 | 252 | $this->export_icon[$r] = 'mrp'; |
253 | 253 | $this->export_fields_array[$r] = array( |
254 | 254 | 'm.rowid' => "Id", |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | /* END MODULEBUILDER IMPORT MO */ |
331 | 331 | $r++; |
332 | 332 | $this->import_code[$r] = $this->rights_class . '_' . $r; |
333 | - $this->import_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
333 | + $this->import_label[$r] = 'MOs'; // Translation key (used only if key ExportDataset_xxx_z not found) |
|
334 | 334 | $this->import_icon[$r] = 'mrp'; |
335 | 335 | $this->import_entities_array[$r] = array(); // We define here only fields that use a different icon from the one defined in import_icon |
336 | 336 | $this->import_tables_array[$r] = array('m' => MAIN_DB_PREFIX . 'mrp_mo', 'extra' => MAIN_DB_PREFIX . 'mrp_mo_extrafields'); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | return $texte; |
196 | 196 | } |
197 | 197 | |
198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
199 | 199 | /** |
200 | 200 | * Function to build a document on disk using the generic odt module. |
201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | */ |
210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
211 | 211 | { |
212 | - // phpcs:enable |
|
212 | + // phpcs:enable |
|
213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
214 | 214 | |
215 | 215 | if (empty($srctemplatepath)) { |
@@ -199,7 +199,7 @@ |
||
199 | 199 | $maxfilesizearray = getMaxFileSizeArray(); |
200 | 200 | $maxmin = $maxfilesizearray['maxmin']; |
201 | 201 | if ($maxmin > 0) { |
202 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
202 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
203 | 203 | } |
204 | 204 | $texte .= ' <input type="file" name="uploadfile">'; |
205 | 205 | $texte .= '<input type="hidden" value="USERGROUP_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | abstract class ModelePDFUserGroup extends CommonDocGenerator |
36 | 36 | { |
37 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
37 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
38 | 38 | /** |
39 | 39 | * Return list of active generation modules |
40 | 40 | * |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public static function liste_modeles($db, $maxfilenamelength = 0) |
46 | 46 | { |
47 | - // phpcs:enable |
|
47 | + // phpcs:enable |
|
48 | 48 | $type = 'group'; |
49 | 49 | $list = array(); |
50 | 50 |
@@ -129,10 +129,10 @@ |
||
129 | 129 | |
130 | 130 | // Boxes |
131 | 131 | $this->boxes = array( |
132 | - 0 => array('file' => 'box_project.php', 'enabledbydefaulton' => 'Home'), // open projects |
|
133 | - 1 => array('file' => 'box_project_opportunities.php', 'enabledbydefaulton' => 'Home'), // open opportunities |
|
132 | + 0 => array('file' => 'box_project.php', 'enabledbydefaulton' => 'Home'), // open projects |
|
133 | + 1 => array('file' => 'box_project_opportunities.php', 'enabledbydefaulton' => 'Home'), // open opportunities |
|
134 | 134 | 2 => array('file' => 'box_task.php', 'enabledbydefaulton' => 'Home'), |
135 | - 3 => array('file' => 'box_validated_projects.php', 'enabledbydefaulton' => 'Home'), // task without timespent |
|
135 | + 3 => array('file' => 'box_validated_projects.php', 'enabledbydefaulton' => 'Home'), // task without timespent |
|
136 | 136 | 4 => array('file' => 'box_funnel_of_prospection.php', 'enabledbydefaulton' => 'Home'), |
137 | 137 | ); |
138 | 138 | // Cronjobs |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | return $texte; |
189 | 189 | } |
190 | 190 | |
191 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
191 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
192 | 192 | /** |
193 | 193 | * Function to build a document on disk using the generic odt module. |
194 | 194 | * |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
204 | 204 | { |
205 | - // phpcs:enable |
|
205 | + // phpcs:enable |
|
206 | 206 | global $product, $langs, $conf, $mysoc, $hookmanager, $user; |
207 | 207 | |
208 | 208 | if (empty($srctemplatepath)) { |
@@ -171,7 +171,7 @@ |
||
171 | 171 | $maxfilesizearray = getMaxFileSizeArray(); |
172 | 172 | $maxmin = $maxfilesizearray['maxmin']; |
173 | 173 | if ($maxmin > 0) { |
174 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
174 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
175 | 175 | } |
176 | 176 | $texte .= ' <input type="file" name="uploadfile">'; |
177 | 177 | $texte .= '<input type="hidden" value="PRODUCT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |