@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * @param $moduleDirname |
| 84 | 84 | * @param $table |
| 85 | - * @param $language |
|
| 85 | + * @param string $language |
|
| 86 | 86 | * |
| 87 | 87 | * @return string |
| 88 | 88 | */ |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * @param $moduleDirname |
| 123 | 123 | * @param $table |
| 124 | - * @param $language |
|
| 124 | + * @param string $language |
|
| 125 | 125 | * |
| 126 | 126 | * @return string |
| 127 | 127 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * @param $moduleDirname |
| 184 | 184 | * @param $table |
| 185 | - * @param $language |
|
| 185 | + * @param string $language |
|
| 186 | 186 | * |
| 187 | 187 | * @return string |
| 188 | 188 | */ |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | /** |
| 254 | 254 | * @param null |
| 255 | 255 | * |
| 256 | - * @return bool|string |
|
| 256 | + * @return null|string |
|
| 257 | 257 | */ |
| 258 | 258 | public function render() |
| 259 | 259 | { |
@@ -58,6 +58,11 @@ discard block |
||
| 58 | 58 | * @param $module |
| 59 | 59 | * @param $table |
| 60 | 60 | */ |
| 61 | + |
|
| 62 | + /** |
|
| 63 | + * @param string $module |
|
| 64 | + * @param string $filename |
|
| 65 | + */ |
|
| 61 | 66 | public function write($module, $table, $filename) |
| 62 | 67 | { |
| 63 | 68 | $this->setModule($module); |
@@ -112,6 +117,10 @@ discard block |
||
| 112 | 117 | * @param $fieldMain |
| 113 | 118 | * @return string |
| 114 | 119 | */ |
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * @param string $language |
|
| 123 | + */ |
|
| 115 | 124 | private function getAdminPagesList($moduleDirname, $table, $language, $fields, $fieldId, $fieldInForm, $fieldMain, $t = '') |
| 116 | 125 | { |
| 117 | 126 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -164,6 +173,10 @@ discard block |
||
| 164 | 173 | * @param $language |
| 165 | 174 | * @return string |
| 166 | 175 | */ |
| 176 | + |
|
| 177 | + /** |
|
| 178 | + * @param string $language |
|
| 179 | + */ |
|
| 167 | 180 | private function getAdminPagesNew($moduleDirname, $tableName, $fieldInForm, $language, $t = '') |
| 168 | 181 | { |
| 169 | 182 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -197,6 +210,11 @@ discard block |
||
| 197 | 210 | * |
| 198 | 211 | * @return string |
| 199 | 212 | */ |
| 213 | + |
|
| 214 | + /** |
|
| 215 | + * @param string $ccFieldId |
|
| 216 | + * @param string $newFieldId |
|
| 217 | + */ |
|
| 200 | 218 | private function getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, $newFieldId, $perm = 'view') |
| 201 | 219 | { |
| 202 | 220 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -221,6 +239,10 @@ discard block |
||
| 221 | 239 | * @param $fieldMain |
| 222 | 240 | * @return string |
| 223 | 241 | */ |
| 242 | + |
|
| 243 | + /** |
|
| 244 | + * @param string $language |
|
| 245 | + */ |
|
| 224 | 246 | private function getAdminPagesSave($moduleDirname, $tableName, $tableCategory, $language, $fields, $fieldId, $fieldMain, $t = '') |
| 225 | 247 | { |
| 226 | 248 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -311,6 +333,10 @@ discard block |
||
| 311 | 333 | * @param $fieldInForm |
| 312 | 334 | * @return string |
| 313 | 335 | */ |
| 336 | + |
|
| 337 | + /** |
|
| 338 | + * @param string $language |
|
| 339 | + */ |
|
| 314 | 340 | private function getAdminPagesEdit($moduleDirname, $table, $language, $fieldId, $fieldInForm, $t = '') |
| 315 | 341 | { |
| 316 | 342 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -351,6 +377,10 @@ discard block |
||
| 351 | 377 | * @param $fieldMain |
| 352 | 378 | * @return string |
| 353 | 379 | */ |
| 380 | + |
|
| 381 | + /** |
|
| 382 | + * @param string $language |
|
| 383 | + */ |
|
| 354 | 384 | private function getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, $t = '') |
| 355 | 385 | { |
| 356 | 386 | $axc = AdminXoopsCode::getInstance(); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @private function getPermissionsHeader |
| 75 | 75 | * |
| 76 | 76 | * @param $module |
| 77 | - * @param $language |
|
| 77 | + * @param string $language |
|
| 78 | 78 | * |
| 79 | 79 | * @return string |
| 80 | 80 | */ |
@@ -114,6 +114,10 @@ discard block |
||
| 114 | 114 | * |
| 115 | 115 | * @return string |
| 116 | 116 | */ |
| 117 | + |
|
| 118 | + /** |
|
| 119 | + * @param string $language |
|
| 120 | + */ |
|
| 117 | 121 | private function getPermissionsSwitch($moduleDirname, $language) |
| 118 | 122 | { |
| 119 | 123 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -198,7 +202,7 @@ discard block |
||
| 198 | 202 | * |
| 199 | 203 | * @param null |
| 200 | 204 | * |
| 201 | - * @return bool|string |
|
| 205 | + * @return null|string |
|
| 202 | 206 | */ |
| 203 | 207 | public function render() |
| 204 | 208 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $ret .= $xc->getXcXoopsRequest('op', 'op', 'global'); |
| 101 | 101 | $ret .= $xc->getXcLoad('XoopsFormLoader'); |
| 102 | 102 | $optionsSelect = array('global' => "{$language}PERMISSIONS_GLOBAL", 'approve' => "{$language}PERMISSIONS_APPROVE", |
| 103 | - 'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW", ); |
|
| 103 | + 'submit' => "{$language}PERMISSIONS_SUBMIT", 'view' => "{$language}PERMISSIONS_VIEW",); |
|
| 104 | 104 | $formSelect = $xc->getXoopsFormSelectExtraOptions('formSelect', '\'\'', 'op', $optionsSelect, 'onchange="document.fselperm.submit()"'); |
| 105 | 105 | $ret .= $cc->getXoopsSimpleForm('permTableForm', 'formSelect', $formSelect, '\'\'', 'fselperm', 'permissions'); |
| 106 | 106 | |
@@ -120,16 +120,16 @@ discard block |
||
| 120 | 120 | $cases = array('global' => array("\$formTitle = {$language}PERMISSIONS_GLOBAL;", |
| 121 | 121 | "\$permName = '{$moduleDirname}_ac';", |
| 122 | 122 | "\$permDesc = {$language}PERMISSIONS_GLOBAL_DESC;", |
| 123 | - "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );", ), |
|
| 123 | + "\$globalPerms = array( '4' => {$language}PERMISSIONS_GLOBAL_4, '8' => {$language}PERMISSIONS_GLOBAL_8, '16' => {$language}PERMISSIONS_GLOBAL_16 );",), |
|
| 124 | 124 | 'approve' => array("\$formTitle = {$language}PERMISSIONS_APPROVE;", |
| 125 | 125 | "\$permName = '{$moduleDirname}_approve';", |
| 126 | - "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;", ), |
|
| 126 | + "\$permDesc = {$language}PERMISSIONS_APPROVE_DESC;",), |
|
| 127 | 127 | 'submit' => array("\$formTitle = {$language}PERMISSIONS_SUBMIT;", |
| 128 | 128 | "\$permName = '{$moduleDirname}_submit';", |
| 129 | - "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;", ), |
|
| 129 | + "\$permDesc = {$language}PERMISSIONS_SUBMIT_DESC;",), |
|
| 130 | 130 | 'view' => array("\$formTitle = {$language}PERMISSIONS_VIEW;", |
| 131 | 131 | "\$permName = '{$moduleDirname}_view';", |
| 132 | - "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;", ), ); |
|
| 132 | + "\$permDesc = {$language}PERMISSIONS_VIEW_DESC;",),); |
|
| 133 | 133 | |
| 134 | 134 | $contentSwitch = $pc->getPhpCodeCaseSwitch($cases, true, false, "\t"); |
| 135 | 135 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @param null |
| 33 | 33 | */ |
| 34 | 34 | /** |
| 35 | - * @return Axc |
|
| 35 | + * @return AdminXoopsCode |
|
| 36 | 36 | */ |
| 37 | 37 | public static function getInstance() |
| 38 | 38 | { |
@@ -65,6 +65,10 @@ discard block |
||
| 65 | 65 | * |
| 66 | 66 | * @return string |
| 67 | 67 | */ |
| 68 | + |
|
| 69 | + /** |
|
| 70 | + * @param string $stuTableSoleName |
|
| 71 | + */ |
|
| 68 | 72 | public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op = '?op=new', $type = 'add', $t = '') |
| 69 | 73 | { |
| 70 | 74 | $stuType = strtoupper($type); |
@@ -96,6 +100,10 @@ discard block |
||
| 96 | 100 | * |
| 97 | 101 | * @return string |
| 98 | 102 | */ |
| 103 | + |
|
| 104 | + /** |
|
| 105 | + * @param string $language |
|
| 106 | + */ |
|
| 99 | 107 | public function getAxcAddInfoBox($language, $t = '') |
| 100 | 108 | { |
| 101 | 109 | return "{$t}\$adminMenu->addInfoBox({$language});\n"; |
@@ -109,6 +117,10 @@ discard block |
||
| 109 | 117 | * |
| 110 | 118 | * @return string |
| 111 | 119 | */ |
| 120 | + |
|
| 121 | + /** |
|
| 122 | + * @param string $language |
|
| 123 | + */ |
|
| 112 | 124 | public function getAxcAddInfoBoxLine($language, $label = '', $var = '', $t = '') |
| 113 | 125 | { |
| 114 | 126 | $aMenu = $t.'$adminMenu->addInfoBoxLine('; |
@@ -129,6 +141,10 @@ discard block |
||
| 129 | 141 | * |
| 130 | 142 | * @return string |
| 131 | 143 | */ |
| 144 | + |
|
| 145 | + /** |
|
| 146 | + * @param string $language |
|
| 147 | + */ |
|
| 132 | 148 | public function getAxcAddConfigBoxLine($language, $label = '', $var = '', $t = '') |
| 133 | 149 | { |
| 134 | 150 | $aMenu = $t.'$adminMenu->addConfigBoxLine('; |
@@ -316,8 +332,8 @@ discard block |
||
| 316 | 332 | /** |
| 317 | 333 | * @public function getAxcFetchMedia |
| 318 | 334 | * |
| 319 | - * @param $anchor |
|
| 320 | - * @param $var |
|
| 335 | + * @param string $anchor |
|
| 336 | + * @param string $var |
|
| 321 | 337 | * |
| 322 | 338 | * @return string |
| 323 | 339 | */ |
@@ -329,7 +345,7 @@ discard block |
||
| 329 | 345 | /** |
| 330 | 346 | * @public function getAxcSetPrefix |
| 331 | 347 | * |
| 332 | - * @param $anchor |
|
| 348 | + * @param string $anchor |
|
| 333 | 349 | * @param $var |
| 334 | 350 | * |
| 335 | 351 | * @return string |
@@ -60,6 +60,7 @@ discard block |
||
| 60 | 60 | * @param string $module |
| 61 | 61 | * @param string $table |
| 62 | 62 | * @param mixed $tables |
| 63 | + * @param string $filename |
|
| 63 | 64 | */ |
| 64 | 65 | public function write($module, $table, $tables, $filename) |
| 65 | 66 | { |
@@ -502,7 +503,7 @@ discard block |
||
| 502 | 503 | * @public function getClassHandler |
| 503 | 504 | * |
| 504 | 505 | * @param string $moduleDirname |
| 505 | - * @param string $tableName |
|
| 506 | + * @param string $table |
|
| 506 | 507 | * @param string $fieldId |
| 507 | 508 | * @param string $fieldMain |
| 508 | 509 | * |
@@ -594,8 +595,8 @@ discard block |
||
| 594 | 595 | * @public function getClassCounter |
| 595 | 596 | * |
| 596 | 597 | * @param $tableName |
| 597 | - * @param $fieldId |
|
| 598 | - * @param $fieldMain |
|
| 598 | + * @param string $fieldId |
|
| 599 | + * @param string $fieldMain |
|
| 599 | 600 | * |
| 600 | 601 | * @return string |
| 601 | 602 | */ |
@@ -622,8 +623,8 @@ discard block |
||
| 622 | 623 | * @public function getClassAll |
| 623 | 624 | * |
| 624 | 625 | * @param $tableName |
| 625 | - * @param $fieldId |
|
| 626 | - * @param $fieldMain |
|
| 626 | + * @param string $fieldId |
|
| 627 | + * @param string $fieldMain |
|
| 627 | 628 | * |
| 628 | 629 | * @return string |
| 629 | 630 | */ |
@@ -650,9 +651,10 @@ discard block |
||
| 650 | 651 | * @public function getClassByCategory |
| 651 | 652 | * |
| 652 | 653 | * @param $tableName |
| 653 | - * @param $fieldId |
|
| 654 | - * @param $fieldMain |
|
| 654 | + * @param string $fieldId |
|
| 655 | + * @param string $fieldMain |
|
| 655 | 656 | * @param $fieldParent |
| 657 | + * @param string $moduleDirname |
|
| 656 | 658 | * |
| 657 | 659 | * @return string |
| 658 | 660 | */ |
@@ -727,8 +729,9 @@ discard block |
||
| 727 | 729 | /** |
| 728 | 730 | * @public function getClassGetTableSolenameById |
| 729 | 731 | * |
| 730 | - * @param $moduleDirname |
|
| 732 | + * @param string $moduleDirname |
|
| 731 | 733 | * @param $table |
| 734 | + * @param string $fieldMain |
|
| 732 | 735 | * |
| 733 | 736 | * @return string |
| 734 | 737 | */ |
@@ -49,6 +49,11 @@ discard block |
||
| 49 | 49 | * @param $module |
| 50 | 50 | * @param $table |
| 51 | 51 | */ |
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * @param string $module |
|
| 55 | + * @param string $table |
|
| 56 | + */ |
|
| 52 | 57 | public function initForm($module, $table) |
| 53 | 58 | { |
| 54 | 59 | $this->setModule($module); |
@@ -64,6 +69,10 @@ discard block |
||
| 64 | 69 | * |
| 65 | 70 | * @return string |
| 66 | 71 | */ |
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @param string $language |
|
| 75 | + */ |
|
| 67 | 76 | private function getXoopsFormText($language, $fieldName, $fieldDefault, $required = 'false') |
| 68 | 77 | { |
| 69 | 78 | $tf = TDMCreateFile::getInstance(); |
@@ -94,6 +103,10 @@ discard block |
||
| 94 | 103 | * |
| 95 | 104 | * @return string |
| 96 | 105 | */ |
| 106 | + |
|
| 107 | + /** |
|
| 108 | + * @param string $language |
|
| 109 | + */ |
|
| 97 | 110 | private function getXoopsFormTextArea($language, $fieldName, $required = 'false') |
| 98 | 111 | { |
| 99 | 112 | $tf = TDMCreateFile::getInstance(); |
@@ -117,6 +130,10 @@ discard block |
||
| 117 | 130 | * |
| 118 | 131 | * @return string |
| 119 | 132 | */ |
| 133 | + |
|
| 134 | + /** |
|
| 135 | + * @param string $language |
|
| 136 | + */ |
|
| 120 | 137 | private function getXoopsFormDhtmlTextArea($language, $moduleDirname, $fieldName, $required = 'false') |
| 121 | 138 | { |
| 122 | 139 | $tf = TDMCreateFile::getInstance(); |
@@ -149,6 +166,10 @@ discard block |
||
| 149 | 166 | * |
| 150 | 167 | * @return string |
| 151 | 168 | */ |
| 169 | + |
|
| 170 | + /** |
|
| 171 | + * @param string $language |
|
| 172 | + */ |
|
| 152 | 173 | private function getXoopsFormCheckBox($language, $tableSoleName, $fieldName, $fieldElementId, $required = 'false') |
| 153 | 174 | { |
| 154 | 175 | $tf = TDMCreateFile::getInstance(); |
@@ -213,6 +234,10 @@ discard block |
||
| 213 | 234 | * |
| 214 | 235 | * @return string |
| 215 | 236 | */ |
| 237 | + |
|
| 238 | + /** |
|
| 239 | + * @param string $language |
|
| 240 | + */ |
|
| 216 | 241 | private function getXoopsFormImageList($language, $moduleDirname, $tableName, $tableSoleName, $fieldName, $required = 'false') |
| 217 | 242 | { |
| 218 | 243 | $tf = TDMCreateFile::getInstance(); |
@@ -264,6 +289,10 @@ discard block |
||
| 264 | 289 | * |
| 265 | 290 | * @return string |
| 266 | 291 | */ |
| 292 | + |
|
| 293 | + /** |
|
| 294 | + * @param string $language |
|
| 295 | + */ |
|
| 267 | 296 | private function getXoopsFormSelectFile($language, $moduleDirname, $fieldName, $required = 'false') |
| 268 | 297 | { |
| 269 | 298 | $tf = TDMCreateFile::getInstance(); |
@@ -316,6 +345,10 @@ discard block |
||
| 316 | 345 | * |
| 317 | 346 | * @return string |
| 318 | 347 | */ |
| 348 | + |
|
| 349 | + /** |
|
| 350 | + * @param string $language |
|
| 351 | + */ |
|
| 319 | 352 | private function getXoopsFormUrlFile($language, $moduleDirname, $fieldName, $fieldDefault, $required = 'false') |
| 320 | 353 | { |
| 321 | 354 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -345,6 +378,10 @@ discard block |
||
| 345 | 378 | * |
| 346 | 379 | * @return string |
| 347 | 380 | */ |
| 381 | + |
|
| 382 | + /** |
|
| 383 | + * @param string $language |
|
| 384 | + */ |
|
| 348 | 385 | private function getXoopsFormUploadImage($language, $moduleDirname, $tableName, $tableSoleName, $fieldName, $required = 'false') |
| 349 | 386 | { |
| 350 | 387 | $tf = TDMCreateFile::getInstance(); |
@@ -396,6 +433,10 @@ discard block |
||
| 396 | 433 | * |
| 397 | 434 | * @return string |
| 398 | 435 | */ |
| 436 | + |
|
| 437 | + /** |
|
| 438 | + * @param string $language |
|
| 439 | + */ |
|
| 399 | 440 | private function getXoopsFormUploadFile($language, $moduleDirname, $tableName, $fieldName, $required = 'false') |
| 400 | 441 | { |
| 401 | 442 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -421,6 +462,10 @@ discard block |
||
| 421 | 462 | * |
| 422 | 463 | * @return string |
| 423 | 464 | */ |
| 465 | + |
|
| 466 | + /** |
|
| 467 | + * @param string $language |
|
| 468 | + */ |
|
| 424 | 469 | private function getXoopsFormColorPicker($language, $moduleDirname, $fieldName, $required = 'false') |
| 425 | 470 | { |
| 426 | 471 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -446,6 +491,10 @@ discard block |
||
| 446 | 491 | * |
| 447 | 492 | * @return string |
| 448 | 493 | */ |
| 494 | + |
|
| 495 | + /** |
|
| 496 | + * @param string $language |
|
| 497 | + */ |
|
| 449 | 498 | private function getXoopsFormSelectBox($language, $moduleDirname, $tableName, $fieldName, $required = 'false') |
| 450 | 499 | { |
| 451 | 500 | $tf = TDMCreateFile::getInstance(); |
@@ -475,6 +524,10 @@ discard block |
||
| 475 | 524 | * |
| 476 | 525 | * @return string |
| 477 | 526 | */ |
| 527 | + |
|
| 528 | + /** |
|
| 529 | + * @param string $language |
|
| 530 | + */ |
|
| 478 | 531 | private function getXoopsFormSelectUser($language, $moduleDirname, $fieldName, $required = 'false') |
| 479 | 532 | { |
| 480 | 533 | $pc = TDMCreatePhpCode::getInstance(); |
@@ -498,6 +551,10 @@ discard block |
||
| 498 | 551 | * |
| 499 | 552 | * @return string |
| 500 | 553 | */ |
| 554 | + |
|
| 555 | + /** |
|
| 556 | + * @param string $language |
|
| 557 | + */ |
|
| 501 | 558 | private function getXoopsFormRadioYN($language, $fieldName, $required = 'false') |
| 502 | 559 | { |
| 503 | 560 | $tf = TDMCreateFile::getInstance(); |
@@ -522,6 +579,10 @@ discard block |
||
| 522 | 579 | * |
| 523 | 580 | * @return string |
| 524 | 581 | */ |
| 582 | + |
|
| 583 | + /** |
|
| 584 | + * @param string $language |
|
| 585 | + */ |
|
| 525 | 586 | private function getXoopsFormTextDateSelect($language, $fieldName, $required = 'false') |
| 526 | 587 | { |
| 527 | 588 | $tf = TDMCreateFile::getInstance(); |
@@ -549,6 +610,10 @@ discard block |
||
| 549 | 610 | * |
| 550 | 611 | * @return string |
| 551 | 612 | */ |
| 613 | + |
|
| 614 | + /** |
|
| 615 | + * @param string $language |
|
| 616 | + */ |
|
| 552 | 617 | private function getXoopsFormTable($language, $moduleDirname, $tableName, $fieldName, $fieldElement, $required = 'false') |
| 553 | 618 | { |
| 554 | 619 | $tc = TDMCreateHelper::getInstance(); |
@@ -583,6 +648,11 @@ discard block |
||
| 583 | 648 | * |
| 584 | 649 | * @return string |
| 585 | 650 | */ |
| 651 | + |
|
| 652 | + /** |
|
| 653 | + * @param string $language |
|
| 654 | + * @param string $topicTableName |
|
| 655 | + */ |
|
| 586 | 656 | private function getXoopsFormTopic($language, $moduleDirname, $topicTableName, $fieldId, $fieldPid, $fieldMain, $required = 'false') |
| 587 | 657 | { |
| 588 | 658 | $tf = TDMCreateFile::getInstance(); |
@@ -130,9 +130,9 @@ |
||
| 130 | 130 | $ret .= $pc->getPhpCodeArray('editorConfigs', null, false, "\t\t"); |
| 131 | 131 | $getConfig = $xc->getXcGetConfig($moduleDirname, $moduleDirname.'_editor_'.$rpFieldName); |
| 132 | 132 | $configs = array('name' => "'{$fieldName}'", 'value' => "\$this->getVar('{$fieldName}', 'e')", 'rows' => 5, 'cols' => 40, |
| 133 | - 'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig, ); |
|
| 133 | + 'width' => "'100%'", 'height' => "'400px'", 'editor' => $getConfig,); |
|
| 134 | 134 | foreach ($configs as $c => $d) { |
| 135 | - $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t"); |
|
| 135 | + $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t"); |
|
| 136 | 136 | } |
| 137 | 137 | $formEditor = $cc->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true); |
| 138 | 138 | $ret .= $cc->getClassAddElement('form', $formEditor.$required); |
@@ -253,7 +253,7 @@ |
||
| 253 | 253 | * @param null |
| 254 | 254 | */ |
| 255 | 255 | /** |
| 256 | - * @return bool|string |
|
| 256 | + * @return null|string |
|
| 257 | 257 | */ |
| 258 | 258 | public function render() |
| 259 | 259 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param mixed $table |
| 63 | 63 | */ |
| 64 | 64 | /** |
| 65 | - * @param $module |
|
| 65 | + * @param string $module |
|
| 66 | 66 | * @param $table |
| 67 | 67 | */ |
| 68 | 68 | public function write($module, $table) |
@@ -77,8 +77,8 @@ discard block |
||
| 77 | 77 | * @param string $filename |
| 78 | 78 | */ |
| 79 | 79 | /** |
| 80 | - * @param $module |
|
| 81 | - * @param $filename |
|
| 80 | + * @param string $module |
|
| 81 | + * @param string $filename |
|
| 82 | 82 | * |
| 83 | 83 | * @return bool|string |
| 84 | 84 | */ |
@@ -101,10 +101,10 @@ discard block |
||
| 101 | 101 | * @param string $filename |
| 102 | 102 | */ |
| 103 | 103 | /** |
| 104 | - * @param $module |
|
| 105 | - * @param $filename |
|
| 104 | + * @param string $module |
|
| 105 | + * @param string $filename |
|
| 106 | 106 | * |
| 107 | - * @return bool|string |
|
| 107 | + * @return null|string |
|
| 108 | 108 | */ |
| 109 | 109 | public function renderCommentsNew($module, $filename) |
| 110 | 110 | { |
@@ -59,9 +59,9 @@ discard block |
||
| 59 | 59 | /** |
| 60 | 60 | * @public function write |
| 61 | 61 | * |
| 62 | - * @param $module |
|
| 62 | + * @param string $module |
|
| 63 | 63 | * @param $table |
| 64 | - * @param $filename |
|
| 64 | + * @param string $filename |
|
| 65 | 65 | * |
| 66 | 66 | * @return string |
| 67 | 67 | */ |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | /** |
| 76 | 76 | * @private function getLanguageMain |
| 77 | 77 | * |
| 78 | - * @param $language |
|
| 78 | + * @param string $language |
|
| 79 | 79 | * @param $module |
| 80 | 80 | * |
| 81 | 81 | * @return string |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * @private function getLanguageMenu |
| 95 | 95 | * |
| 96 | 96 | * @param $module |
| 97 | - * @param $language |
|
| 97 | + * @param string $language |
|
| 98 | 98 | * |
| 99 | 99 | * @return string |
| 100 | 100 | */ |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * @param $language |
| 128 | 128 | */ |
| 129 | 129 | /** |
| 130 | - * @param $language |
|
| 130 | + * @param string $language |
|
| 131 | 131 | * |
| 132 | 132 | * @return string |
| 133 | 133 | */ |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * @param array $tables |
| 148 | 148 | */ |
| 149 | 149 | /** |
| 150 | - * @param $language |
|
| 150 | + * @param string $language |
|
| 151 | 151 | * @param $tables |
| 152 | 152 | * |
| 153 | 153 | * @return string |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | * @param array $tables |
| 181 | 181 | */ |
| 182 | 182 | /** |
| 183 | - * @param $language |
|
| 183 | + * @param string $language |
|
| 184 | 184 | * @param $tables |
| 185 | 185 | * |
| 186 | 186 | * @return string |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | * @param $language |
| 227 | 227 | */ |
| 228 | 228 | /** |
| 229 | - * @param $language |
|
| 229 | + * @param string $language |
|
| 230 | 230 | * |
| 231 | 231 | * @return string |
| 232 | 232 | */ |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * @param $table |
| 247 | 247 | */ |
| 248 | 248 | /** |
| 249 | - * @param $language |
|
| 249 | + * @param string $language |
|
| 250 | 250 | * @param $table |
| 251 | 251 | * |
| 252 | 252 | * @return string |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | * @param mixed $table |
| 307 | 307 | */ |
| 308 | 308 | /** |
| 309 | - * @param $language |
|
| 309 | + * @param string $language |
|
| 310 | 310 | * |
| 311 | 311 | * @return string |
| 312 | 312 | */ |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | * @param $language |
| 331 | 331 | */ |
| 332 | 332 | /** |
| 333 | - * @param $language |
|
| 333 | + * @param string $language |
|
| 334 | 334 | * |
| 335 | 335 | * @return string |
| 336 | 336 | */ |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | * @param null |
| 367 | 367 | */ |
| 368 | 368 | /** |
| 369 | - * @return bool|string |
|
| 369 | + * @return null|string |
|
| 370 | 370 | */ |
| 371 | 371 | public function render() |
| 372 | 372 | { |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | } |
| 293 | 293 | } |
| 294 | 294 | $getDefinesConf = array('NUMB_COL' => 'Number Columns', 'NUMB_COL_DESC' => 'Number Columns to View.', 'DIVIDEBY' => 'Divide By', 'DIVIDEBY_DESC' => 'Divide by columns number.', |
| 295 | - 'TABLE_TYPE' => 'Table Type', 'TABLE_TYPE_DESC' => 'Table Type is the bootstrap html table.', 'PANEL_TYPE' => 'Panel Type', 'PANEL_TYPE_DESC' => 'Panel Type is the bootstrap html div.', 'IDPAYPAL' => 'Paypal ID', 'IDPAYPAL_DESC' => 'Insert here your PayPal ID for donactions.', 'ADVERTISE' => 'Advertisement Code', 'ADVERTISE_DESC' => 'Insert here the advertisement code', 'MAINTAINEDBY' => 'Maintained By', 'MAINTAINEDBY_DESC' => 'Allow url of support site or community', 'BOOKMARKS' => 'Social Bookmarks', 'BOOKMARKS_DESC' => 'Show Social Bookmarks in the single page', 'FACEBOOK_COMMENTS' => 'Facebook comments', 'FACEBOOK_COMMENTS_DESC' => 'Allow Facebook comments in the single page', 'DISQUS_COMMENTS' => 'Disqus comments', 'DISQUS_COMMENTS_DESC' => 'Allow Disqus comments in the single page', ); |
|
| 295 | + 'TABLE_TYPE' => 'Table Type', 'TABLE_TYPE_DESC' => 'Table Type is the bootstrap html table.', 'PANEL_TYPE' => 'Panel Type', 'PANEL_TYPE_DESC' => 'Panel Type is the bootstrap html div.', 'IDPAYPAL' => 'Paypal ID', 'IDPAYPAL_DESC' => 'Insert here your PayPal ID for donactions.', 'ADVERTISE' => 'Advertisement Code', 'ADVERTISE_DESC' => 'Insert here the advertisement code', 'MAINTAINEDBY' => 'Maintained By', 'MAINTAINEDBY_DESC' => 'Allow url of support site or community', 'BOOKMARKS' => 'Social Bookmarks', 'BOOKMARKS_DESC' => 'Show Social Bookmarks in the single page', 'FACEBOOK_COMMENTS' => 'Facebook comments', 'FACEBOOK_COMMENTS_DESC' => 'Allow Facebook comments in the single page', 'DISQUS_COMMENTS' => 'Disqus comments', 'DISQUS_COMMENTS_DESC' => 'Allow Disqus comments in the single page',); |
|
| 296 | 296 | foreach ($getDefinesConf as $defc => $descc) { |
| 297 | 297 | $ret .= $df->getDefine($language, $defc, $descc); |
| 298 | 298 | } |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | $stuTableSoleName = strtoupper($tableSoleName); |
| 318 | 318 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 319 | 319 | $getDefinesNotif = array('GLOBAL_NOTIFY' => 'Global notify', 'GLOBAL_NOTIFY_DESC' => 'Global notify desc', 'CATEGORY_NOTIFY' => 'Category notify', |
| 320 | - 'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY' => 'Global '.$stuTableSoleName.'modify notify', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_CAPTION' => 'Global '.$stuTableSoleName.' modify notify caption', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_DESC' => 'Global '.$stuTableSoleName.'modify notify desc', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_SUBJECT' => 'Global '.$stuTableSoleName.' modify notify subject', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY' => 'Global '.$stuTableSoleName.' broken notify', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_CAPTION' => 'Global '.$stuTableSoleName.'broken notify caption', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_DESC' => 'Global '.$stuTableSoleName.'broken notify desc', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_SUBJECT' => 'Global '.$stuTableSoleName.'broken notify subject', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Global '.$stuTableSoleName.' submit notify', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Global '.$stuTableSoleName.' submit notify caption', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Global '.$stuTableSoleName.'submit notify desc', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Global '.$stuTableSoleName.'submit notify subject', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY' => 'Global new'.$stuTableSoleName.' notify', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new'.$stuTableSoleName.' notify caption', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new'.$stuTableSoleName.' notify desc', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new'.$stuTableSoleName.' notify subject', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Category '.$stuTableSoleName.'submit notify', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Category '.$stuTableSoleName.' submit notify caption', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Category '.$stuTableSoleName.' submit notify desc', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Category '.$stuTableSoleName.' submit notify subject', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY' => 'Category new'.$stuTableSoleName.' notify', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new'.$stuTableSoleName.' notify caption', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new'.$stuTableSoleName.' notify desc', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new'.$stuTableSoleName.' notify subject', $stuTableSoleName.'_APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', $stuTableSoleName.'_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', $stuTableSoleName.'_APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', $stuTableSoleName.'_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject', ); |
|
| 320 | + 'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY' => 'Global '.$stuTableSoleName.'modify notify', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_CAPTION' => 'Global '.$stuTableSoleName.' modify notify caption', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_DESC' => 'Global '.$stuTableSoleName.'modify notify desc', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_SUBJECT' => 'Global '.$stuTableSoleName.' modify notify subject', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY' => 'Global '.$stuTableSoleName.' broken notify', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_CAPTION' => 'Global '.$stuTableSoleName.'broken notify caption', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_DESC' => 'Global '.$stuTableSoleName.'broken notify desc', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_SUBJECT' => 'Global '.$stuTableSoleName.'broken notify subject', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Global '.$stuTableSoleName.' submit notify', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Global '.$stuTableSoleName.' submit notify caption', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Global '.$stuTableSoleName.'submit notify desc', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Global '.$stuTableSoleName.'submit notify subject', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY' => 'Global new'.$stuTableSoleName.' notify', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new'.$stuTableSoleName.' notify caption', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new'.$stuTableSoleName.' notify desc', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new'.$stuTableSoleName.' notify subject', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Category '.$stuTableSoleName.'submit notify', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Category '.$stuTableSoleName.' submit notify caption', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Category '.$stuTableSoleName.' submit notify desc', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Category '.$stuTableSoleName.' submit notify subject', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY' => 'Category new'.$stuTableSoleName.' notify', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new'.$stuTableSoleName.' notify caption', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new'.$stuTableSoleName.' notify desc', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new'.$stuTableSoleName.' notify subject', $stuTableSoleName.'_APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', $stuTableSoleName.'_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', $stuTableSoleName.'_APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', $stuTableSoleName.'_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject',); |
|
| 321 | 321 | foreach ($getDefinesNotif as $defn => $descn) { |
| 322 | 322 | $ret .= $df->getDefine($language, $defn, $descn); |
| 323 | 323 | } |