@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | /** |
| 491 | 491 | * @public function getSmartyConst |
| 492 | 492 | * @param string $language |
| 493 | - * @param mixed $const |
|
| 493 | + * @param string $const |
|
| 494 | 494 | * |
| 495 | 495 | * @return string |
| 496 | 496 | */ |
@@ -578,7 +578,7 @@ discard block |
||
| 578 | 578 | * @param string $operator |
| 579 | 579 | * @param string $type |
| 580 | 580 | * @param string $contentIf |
| 581 | - * @param mixed $contentElse |
|
| 581 | + * @param boolean $contentElse |
|
| 582 | 582 | * @param bool $count |
| 583 | 583 | * |
| 584 | 584 | * @param bool $noSimbol |
@@ -28,17 +28,17 @@ discard block |
||
| 28 | 28 | class TDMCreateHtmlSmartyCodes |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @static function getInstance |
|
| 41 | - * @param null |
|
| 40 | + * @static function getInstance |
|
| 41 | + * @param null |
|
| 42 | 42 | * @return TDMCreateHtmlSmartyCodes |
| 43 | 43 | */ |
| 44 | 44 | public static function getInstance() |
@@ -77,11 +77,11 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | - * @private function setAttributes |
|
| 81 | - * @param array $attributes |
|
| 82 | - * |
|
| 83 | - * @return string |
|
| 84 | - */ |
|
| 80 | + * @private function setAttributes |
|
| 81 | + * @param array $attributes |
|
| 82 | + * |
|
| 83 | + * @return string |
|
| 84 | + */ |
|
| 85 | 85 | private function getAttributes($attributes) |
| 86 | 86 | { |
| 87 | 87 | $str = ''; |
@@ -95,8 +95,8 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @public function getHtmlEmpty |
|
| 99 | - * @param string $empty |
|
| 98 | + * @public function getHtmlEmpty |
|
| 99 | + * @param string $empty |
|
| 100 | 100 | * |
| 101 | 101 | * @return string |
| 102 | 102 | */ |
@@ -106,8 +106,8 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * @public function getHtmlComment |
|
| 110 | - * @param string $htmlComment |
|
| 109 | + * @public function getHtmlComment |
|
| 110 | + * @param string $htmlComment |
|
| 111 | 111 | * |
| 112 | 112 | * @return string |
| 113 | 113 | */ |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | } |
| 451 | 451 | |
| 452 | 452 | /** |
| 453 | - * @public function getHtmlTableData |
|
| 453 | + * @public function getHtmlTableData |
|
| 454 | 454 | * @param $content |
| 455 | 455 | * @param $tdClass |
| 456 | 456 | * @param $colspan |
@@ -466,8 +466,8 @@ discard block |
||
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | /** |
| 469 | - * @public function getSmartyComment |
|
| 470 | - * @param string $comment |
|
| 469 | + * @public function getSmartyComment |
|
| 470 | + * @param string $comment |
|
| 471 | 471 | * |
| 472 | 472 | * @return string |
| 473 | 473 | */ |
@@ -477,8 +477,8 @@ discard block |
||
| 477 | 477 | } |
| 478 | 478 | |
| 479 | 479 | /** |
| 480 | - * @public function getSmartyNoSimbol |
|
| 481 | - * @param string $noSimbol |
|
| 480 | + * @public function getSmartyNoSimbol |
|
| 481 | + * @param string $noSimbol |
|
| 482 | 482 | * |
| 483 | 483 | * @return string |
| 484 | 484 | */ |
@@ -488,9 +488,9 @@ discard block |
||
| 488 | 488 | } |
| 489 | 489 | |
| 490 | 490 | /** |
| 491 | - * @public function getSmartyConst |
|
| 492 | - * @param string $language |
|
| 493 | - * @param mixed $const |
|
| 491 | + * @public function getSmartyConst |
|
| 492 | + * @param string $language |
|
| 493 | + * @param mixed $const |
|
| 494 | 494 | * |
| 495 | 495 | * @return string |
| 496 | 496 | */ |
@@ -500,8 +500,8 @@ discard block |
||
| 500 | 500 | } |
| 501 | 501 | |
| 502 | 502 | /** |
| 503 | - * @public function getSmartySingleVar |
|
| 504 | - * @param string $var |
|
| 503 | + * @public function getSmartySingleVar |
|
| 504 | + * @param string $var |
|
| 505 | 505 | * |
| 506 | 506 | * @return string |
| 507 | 507 | */ |
@@ -511,9 +511,9 @@ discard block |
||
| 511 | 511 | } |
| 512 | 512 | |
| 513 | 513 | /** |
| 514 | - * @public function getSmartyDoubleVar |
|
| 515 | - * @param string $leftVar |
|
| 516 | - * @param string $rightVar |
|
| 514 | + * @public function getSmartyDoubleVar |
|
| 515 | + * @param string $leftVar |
|
| 516 | + * @param string $rightVar |
|
| 517 | 517 | * |
| 518 | 518 | * @return string |
| 519 | 519 | */ |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | } |
| 548 | 548 | |
| 549 | 549 | /** |
| 550 | - * @public function getSmartyIncludeFileListSection |
|
| 550 | + * @public function getSmartyIncludeFileListSection |
|
| 551 | 551 | * @param $moduleDirname |
| 552 | 552 | * @param $fileName |
| 553 | 553 | * @param $tableFieldName |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 | /** |
| 563 | - * @public function getSmartyIncludeFileListForeach |
|
| 563 | + * @public function getSmartyIncludeFileListForeach |
|
| 564 | 564 | * @param $moduleDirname |
| 565 | 565 | * @param $fileName |
| 566 | 566 | * @param $tableFieldName |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * @public function getPhpCodeGlobals |
| 109 | - * @param $var |
|
| 109 | + * @param string $var |
|
| 110 | 110 | * @param $value |
| 111 | 111 | * |
| 112 | 112 | * @return string |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | 126 | * @public function getPhpCodeGlobalsVariables |
| 127 | - * @param $var |
|
| 127 | + * @param string $var |
|
| 128 | 128 | * @param $type |
| 129 | 129 | * |
| 130 | 130 | * @return string |
@@ -161,10 +161,10 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | 163 | * @public function getPhpCodeRemoveCarriageReturn |
| 164 | - * @param $string |
|
| 164 | + * @param string $string |
|
| 165 | 165 | * |
| 166 | - * @param string $n |
|
| 167 | - * @param string $t |
|
| 166 | + * @param string string |
|
| 167 | + * @param string string |
|
| 168 | 168 | * @return string |
| 169 | 169 | */ |
| 170 | 170 | public function getPhpCodeRemoveCarriageReturn($string, $n = "\n", $t = "\r") |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | /** |
| 187 | 187 | * @public function getPhpCodeIncludeDir |
| 188 | 188 | * @param $directory |
| 189 | - * @param $filename |
|
| 189 | + * @param string $filename |
|
| 190 | 190 | * @param bool $once |
| 191 | 191 | * @param bool $isPath |
| 192 | 192 | * |
@@ -234,8 +234,8 @@ discard block |
||
| 234 | 234 | /** |
| 235 | 235 | * @public function getPhpCodeClass |
| 236 | 236 | * @param $name |
| 237 | - * @param $content |
|
| 238 | - * @param $extends |
|
| 237 | + * @param string $content |
|
| 238 | + * @param string $extends |
|
| 239 | 239 | * @param $type |
| 240 | 240 | * |
| 241 | 241 | * @return string |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | /** |
| 256 | 256 | * @public function getPhpCodeClass |
| 257 | 257 | * @param $type |
| 258 | - * @param $name |
|
| 258 | + * @param string $name |
|
| 259 | 259 | * @param $assign |
| 260 | 260 | * @param $t - Indentation |
| 261 | 261 | * |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * @param $name |
| 272 | 272 | * @param $params |
| 273 | 273 | * @param $content |
| 274 | - * @param $method |
|
| 274 | + * @param string $method |
|
| 275 | 275 | * @param bool $isRef |
| 276 | 276 | * @param string $t - Indentation |
| 277 | 277 | * @return string |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | * @param string $operator |
| 295 | 295 | * @param string $type |
| 296 | 296 | * @param string $contentIf |
| 297 | - * @param mixed $contentElse |
|
| 297 | + * @param string|false $contentElse |
|
| 298 | 298 | * @param $t - Indentation |
| 299 | 299 | * |
| 300 | 300 | * @return string |
@@ -388,8 +388,8 @@ discard block |
||
| 388 | 388 | /** |
| 389 | 389 | * @public function getPhpCodeSwitch |
| 390 | 390 | * |
| 391 | - * @param $op |
|
| 392 | - * @param $content |
|
| 391 | + * @param string $op |
|
| 392 | + * @param string $content |
|
| 393 | 393 | * @param $t |
| 394 | 394 | * |
| 395 | 395 | * @return string |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | |
| 445 | 445 | /** |
| 446 | 446 | * @public function getPhpCodeIsset |
| 447 | - * @param $var |
|
| 447 | + * @param string $var |
|
| 448 | 448 | * @return string |
| 449 | 449 | */ |
| 450 | 450 | public function getPhpCodeIsset($var) |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | |
| 466 | 466 | /** |
| 467 | 467 | * @public function getPhpCodeIsDir |
| 468 | - * @param $var |
|
| 468 | + * @param string $var |
|
| 469 | 469 | * @return string |
| 470 | 470 | */ |
| 471 | 471 | public function getPhpCodeIsDir($var) |
@@ -475,8 +475,8 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | /** |
| 477 | 477 | * @public function getPhpCodeImplode |
| 478 | - * @param $left |
|
| 479 | - * @param $right |
|
| 478 | + * @param string $left |
|
| 479 | + * @param string $right |
|
| 480 | 480 | * @return string |
| 481 | 481 | */ |
| 482 | 482 | public function getPhpCodeImplode($left, $right) |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | |
| 522 | 522 | /** |
| 523 | 523 | * @public function getPhpCodeCopy |
| 524 | - * @param $file |
|
| 524 | + * @param string $file |
|
| 525 | 525 | * @param string $newfile |
| 526 | 526 | * @param string $t |
| 527 | 527 | * @return string |
@@ -569,9 +569,9 @@ discard block |
||
| 569 | 569 | /** |
| 570 | 570 | * @public function getPhpCodeArrayType |
| 571 | 571 | * @param $var |
| 572 | - * @param $type |
|
| 572 | + * @param string $type |
|
| 573 | 573 | * @param $left |
| 574 | - * @param $right |
|
| 574 | + * @param string $right |
|
| 575 | 575 | * @param bool $isParam |
| 576 | 576 | * |
| 577 | 577 | * @param string $t |
@@ -632,10 +632,10 @@ discard block |
||
| 632 | 632 | |
| 633 | 633 | /** |
| 634 | 634 | * @public function getPhpCodePregFunzions |
| 635 | - * @param $var |
|
| 636 | - * @param $exp |
|
| 637 | - * @param $str |
|
| 638 | - * @param $val |
|
| 635 | + * @param string $var |
|
| 636 | + * @param string $exp |
|
| 637 | + * @param string $str |
|
| 638 | + * @param string $val |
|
| 639 | 639 | * @param string $type |
| 640 | 640 | * @param bool $isParam |
| 641 | 641 | * |
@@ -706,7 +706,7 @@ discard block |
||
| 706 | 706 | */ |
| 707 | 707 | public function getPhpCodeHtmlentities($entitiesVar, $entitiesQuote = false) |
| 708 | 708 | { |
| 709 | - $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar . ', ' . $entitiesQuote : $entitiesVar; |
|
| 709 | + $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar.', '.$entitiesQuote : $entitiesVar; |
|
| 710 | 710 | $entities = "htmlentities({$entitiesVar})"; |
| 711 | 711 | |
| 712 | 712 | return $entities; |
@@ -720,7 +720,7 @@ discard block |
||
| 720 | 720 | */ |
| 721 | 721 | public function getPhpCodeHtmlspecialchars($specialVar, $specialQuote = false) |
| 722 | 722 | { |
| 723 | - $specialVar = (false !== $specialQuote) ? $specialVar . ', ' . $specialQuote : $specialVar; |
|
| 723 | + $specialVar = (false !== $specialQuote) ? $specialVar.', '.$specialQuote : $specialVar; |
|
| 724 | 724 | $specialchars = "htmlspecialchars({$specialVar})"; |
| 725 | 725 | |
| 726 | 726 | return $specialchars; |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | class TDMCreatePhpCode |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @static function getInstance |
|
| 32 | - * @param null |
|
| 31 | + * @static function getInstance |
|
| 32 | + * @param null |
|
| 33 | 33 | * @return TDMCreatePhpCode |
| 34 | 34 | */ |
| 35 | 35 | public static function getInstance() |
@@ -81,36 +81,36 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | - * @public function getPhpCodeDefine |
|
| 85 | - * @param $left |
|
| 86 | - * @param $right |
|
| 87 | - * |
|
| 88 | - * @return string |
|
| 89 | - */ |
|
| 84 | + * @public function getPhpCodeDefine |
|
| 85 | + * @param $left |
|
| 86 | + * @param $right |
|
| 87 | + * |
|
| 88 | + * @return string |
|
| 89 | + */ |
|
| 90 | 90 | public function getPhpCodeDefine($left, $right) |
| 91 | 91 | { |
| 92 | 92 | return "define('{$left}', {$right});\n"; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @public function getPhpCodeDefine |
|
| 97 | - * @param $left |
|
| 98 | - * @param $right |
|
| 99 | - * |
|
| 100 | - * @return string |
|
| 101 | - */ |
|
| 96 | + * @public function getPhpCodeDefine |
|
| 97 | + * @param $left |
|
| 98 | + * @param $right |
|
| 99 | + * |
|
| 100 | + * @return string |
|
| 101 | + */ |
|
| 102 | 102 | public function getPhpCodeDefined($left = 'XOOPS_ROOT_PATH', $right = 'Restricted access') |
| 103 | 103 | { |
| 104 | 104 | return "defined('{$left}') || die('{$right}');\n"; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | - * @public function getPhpCodeGlobals |
|
| 109 | - * @param $var |
|
| 110 | - * @param $value |
|
| 111 | - * |
|
| 112 | - * @return string |
|
| 113 | - */ |
|
| 108 | + * @public function getPhpCodeGlobals |
|
| 109 | + * @param $var |
|
| 110 | + * @param $value |
|
| 111 | + * |
|
| 112 | + * @return string |
|
| 113 | + */ |
|
| 114 | 114 | public function getPhpCodeGlobals($var, $value = '') |
| 115 | 115 | { |
| 116 | 116 | if ('' != $value) { |
@@ -123,12 +123,12 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | - * @public function getPhpCodeGlobalsVariables |
|
| 127 | - * @param $var |
|
| 128 | - * @param $type |
|
| 129 | - * |
|
| 130 | - * @return string |
|
| 131 | - */ |
|
| 126 | + * @public function getPhpCodeGlobalsVariables |
|
| 127 | + * @param $var |
|
| 128 | + * @param $type |
|
| 129 | + * |
|
| 130 | + * @return string |
|
| 131 | + */ |
|
| 132 | 132 | public function getPhpCodeGlobalsVariables($var = null, $type = 'REQUEST') |
| 133 | 133 | { |
| 134 | 134 | $type = strtoupper($type); |
@@ -173,11 +173,11 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | /** |
| 176 | - * @public function getPhpCodeFileExists |
|
| 177 | - * @param $filename |
|
| 178 | - * |
|
| 179 | - * @return string |
|
| 180 | - */ |
|
| 176 | + * @public function getPhpCodeFileExists |
|
| 177 | + * @param $filename |
|
| 178 | + * |
|
| 179 | + * @return string |
|
| 180 | + */ |
|
| 181 | 181 | public function getPhpCodeFileExists($filename) |
| 182 | 182 | { |
| 183 | 183 | return "file_exists({$filename})"; |
@@ -217,29 +217,29 @@ discard block |
||
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | - * @public function getPhpCodeTernaryOperator |
|
| 221 | - * @param $return |
|
| 222 | - * @param $condition |
|
| 223 | - * @param $one |
|
| 224 | - * @param $two |
|
| 225 | - * @param $t - Indentation |
|
| 226 | - * |
|
| 227 | - * @return string |
|
| 228 | - */ |
|
| 220 | + * @public function getPhpCodeTernaryOperator |
|
| 221 | + * @param $return |
|
| 222 | + * @param $condition |
|
| 223 | + * @param $one |
|
| 224 | + * @param $two |
|
| 225 | + * @param $t - Indentation |
|
| 226 | + * |
|
| 227 | + * @return string |
|
| 228 | + */ |
|
| 229 | 229 | public function getPhpCodeTernaryOperator($return, $condition, $one, $two, $t = '') |
| 230 | 230 | { |
| 231 | 231 | return "{$t}\${$return} = {$condition} ? {$one} : {$two};\n"; |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | /** |
| 235 | - * @public function getPhpCodeClass |
|
| 236 | - * @param $name |
|
| 237 | - * @param $content |
|
| 238 | - * @param $extends |
|
| 239 | - * @param $type |
|
| 240 | - * |
|
| 241 | - * @return string |
|
| 242 | - */ |
|
| 235 | + * @public function getPhpCodeClass |
|
| 236 | + * @param $name |
|
| 237 | + * @param $content |
|
| 238 | + * @param $extends |
|
| 239 | + * @param $type |
|
| 240 | + * |
|
| 241 | + * @return string |
|
| 242 | + */ |
|
| 243 | 243 | public function getPhpCodeClass($name = null, $content = null, $extends = null, $type = null) |
| 244 | 244 | { |
| 245 | 245 | $typ = (null != $type) ? "{$type} " : ''; |
@@ -253,14 +253,14 @@ discard block |
||
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | /** |
| 256 | - * @public function getPhpCodeClass |
|
| 257 | - * @param $type |
|
| 258 | - * @param $name |
|
| 259 | - * @param $assign |
|
| 260 | - * @param $t - Indentation |
|
| 261 | - * |
|
| 262 | - * @return string |
|
| 263 | - */ |
|
| 256 | + * @public function getPhpCodeClass |
|
| 257 | + * @param $type |
|
| 258 | + * @param $name |
|
| 259 | + * @param $assign |
|
| 260 | + * @param $t - Indentation |
|
| 261 | + * |
|
| 262 | + * @return string |
|
| 263 | + */ |
|
| 264 | 264 | public function getPhpCodeVariableClass($type = 'private', $name = null, $assign = 'null', $t = '') |
| 265 | 265 | { |
| 266 | 266 | return "{$t}{$type} \${$name} = {$assign};\n"; |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | public function getPhpCodeSwitch($op = null, $content = null, $t = '') |
| 398 | 398 | { |
| 399 | 399 | //$ret = "{$t}switch(\${$op}) {\n"; test goffy |
| 400 | - $ret = "switch(\${$op}) {\n"; |
|
| 400 | + $ret = "switch(\${$op}) {\n"; |
|
| 401 | 401 | $ret .= "{$content}"; |
| 402 | 402 | $ret .= "}\n"; |
| 403 | 403 | |
@@ -444,10 +444,10 @@ discard block |
||
| 444 | 444 | } |
| 445 | 445 | |
| 446 | 446 | /** |
| 447 | - * @public function getPhpCodeIsset |
|
| 448 | - * @param $var |
|
| 449 | - * @return string |
|
| 450 | - */ |
|
| 447 | + * @public function getPhpCodeIsset |
|
| 448 | + * @param $var |
|
| 449 | + * @return string |
|
| 450 | + */ |
|
| 451 | 451 | public function getPhpCodeIsset($var) |
| 452 | 452 | { |
| 453 | 453 | return "isset(\${$var})"; |
@@ -465,32 +465,32 @@ discard block |
||
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | /** |
| 468 | - * @public function getPhpCodeIsDir |
|
| 469 | - * @param $var |
|
| 470 | - * @return string |
|
| 471 | - */ |
|
| 468 | + * @public function getPhpCodeIsDir |
|
| 469 | + * @param $var |
|
| 470 | + * @return string |
|
| 471 | + */ |
|
| 472 | 472 | public function getPhpCodeIsDir($var) |
| 473 | 473 | { |
| 474 | 474 | return "is_dir({$var})"; |
| 475 | 475 | } |
| 476 | 476 | |
| 477 | 477 | /** |
| 478 | - * @public function getPhpCodeImplode |
|
| 479 | - * @param $left |
|
| 480 | - * @param $right |
|
| 481 | - * @return string |
|
| 482 | - */ |
|
| 478 | + * @public function getPhpCodeImplode |
|
| 479 | + * @param $left |
|
| 480 | + * @param $right |
|
| 481 | + * @return string |
|
| 482 | + */ |
|
| 483 | 483 | public function getPhpCodeImplode($left, $right) |
| 484 | 484 | { |
| 485 | 485 | return "implode('{$left}', {$right})"; |
| 486 | 486 | } |
| 487 | 487 | |
| 488 | 488 | /** |
| 489 | - * @public function getPhpCodeExplode |
|
| 490 | - * @param $left |
|
| 491 | - * @param $right |
|
| 492 | - * @return string |
|
| 493 | - */ |
|
| 489 | + * @public function getPhpCodeExplode |
|
| 490 | + * @param $left |
|
| 491 | + * @param $right |
|
| 492 | + * @return string |
|
| 493 | + */ |
|
| 494 | 494 | public function getPhpCodeExplode($left, $right) |
| 495 | 495 | { |
| 496 | 496 | return "explode('{$left}', {$right})"; |
@@ -591,41 +591,41 @@ discard block |
||
| 591 | 591 | } |
| 592 | 592 | |
| 593 | 593 | /** |
| 594 | - * @public function getPhpCodeSprintf |
|
| 595 | - * @param $left |
|
| 596 | - * @param $right |
|
| 597 | - * @return string |
|
| 598 | - */ |
|
| 594 | + * @public function getPhpCodeSprintf |
|
| 595 | + * @param $left |
|
| 596 | + * @param $right |
|
| 597 | + * @return string |
|
| 598 | + */ |
|
| 599 | 599 | public function getPhpCodeSprintf($left, $right) |
| 600 | 600 | { |
| 601 | 601 | return "sprintf({$left}, {$right})"; |
| 602 | 602 | } |
| 603 | 603 | |
| 604 | 604 | /** |
| 605 | - * @public function getPhpCodeEmpty |
|
| 606 | - * @param $var |
|
| 607 | - * @return string |
|
| 608 | - */ |
|
| 605 | + * @public function getPhpCodeEmpty |
|
| 606 | + * @param $var |
|
| 607 | + * @return string |
|
| 608 | + */ |
|
| 609 | 609 | public function getPhpCodeEmpty($var) |
| 610 | 610 | { |
| 611 | 611 | return "empty({$var})"; |
| 612 | 612 | } |
| 613 | 613 | |
| 614 | 614 | /** |
| 615 | - * @public function getPhpCodeHeader |
|
| 616 | - * @param $var |
|
| 617 | - * @return string |
|
| 618 | - */ |
|
| 615 | + * @public function getPhpCodeHeader |
|
| 616 | + * @param $var |
|
| 617 | + * @return string |
|
| 618 | + */ |
|
| 619 | 619 | public function getPhpCodeHeader($var) |
| 620 | 620 | { |
| 621 | 621 | return "header({$var})"; |
| 622 | 622 | } |
| 623 | 623 | |
| 624 | 624 | /** |
| 625 | - * @public function getPhpCodeRawurlencode |
|
| 626 | - * @param $var |
|
| 627 | - * @return string |
|
| 628 | - */ |
|
| 625 | + * @public function getPhpCodeRawurlencode |
|
| 626 | + * @param $var |
|
| 627 | + * @return string |
|
| 628 | + */ |
|
| 629 | 629 | public function getPhpCodeRawurlencode($var) |
| 630 | 630 | { |
| 631 | 631 | return "rawurlencode({$var})"; |
@@ -700,11 +700,11 @@ discard block |
||
| 700 | 700 | } |
| 701 | 701 | |
| 702 | 702 | /** |
| 703 | - * @public function getPhpCodeHtmlentities |
|
| 704 | - * @param $entitiesVar |
|
| 705 | - * @param $entitiesQuote |
|
| 706 | - * @return string |
|
| 707 | - */ |
|
| 703 | + * @public function getPhpCodeHtmlentities |
|
| 704 | + * @param $entitiesVar |
|
| 705 | + * @param $entitiesQuote |
|
| 706 | + * @return string |
|
| 707 | + */ |
|
| 708 | 708 | public function getPhpCodeHtmlentities($entitiesVar, $entitiesQuote = false) |
| 709 | 709 | { |
| 710 | 710 | $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar . ', ' . $entitiesQuote : $entitiesVar; |
@@ -714,11 +714,11 @@ discard block |
||
| 714 | 714 | } |
| 715 | 715 | |
| 716 | 716 | /** |
| 717 | - * @public function getPhpCodeHtmlspecialchars |
|
| 718 | - * @param $specialVar |
|
| 719 | - * @param $specialQuote |
|
| 720 | - * @return string |
|
| 721 | - */ |
|
| 717 | + * @public function getPhpCodeHtmlspecialchars |
|
| 718 | + * @param $specialVar |
|
| 719 | + * @param $specialQuote |
|
| 720 | + * @return string |
|
| 721 | + */ |
|
| 722 | 722 | public function getPhpCodeHtmlspecialchars($specialVar, $specialQuote = false) |
| 723 | 723 | { |
| 724 | 724 | $specialVar = (false !== $specialQuote) ? $specialVar . ', ' . $specialQuote : $specialVar; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * @public function write |
| 57 | 57 | * @param string $module |
| 58 | 58 | * @param string $table |
| 59 | - * @param $filename |
|
| 59 | + * @param string $filename |
|
| 60 | 60 | */ |
| 61 | 61 | public function write($module, $table, $filename) |
| 62 | 62 | { |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | /** |
| 262 | 262 | * @public function render |
| 263 | 263 | * @param null |
| 264 | - * @return bool|string |
|
| 264 | + * @return null|string |
|
| 265 | 265 | */ |
| 266 | 266 | public function render() |
| 267 | 267 | { |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesAdminPages extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesAdminPages |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @private function getTemplatesAdminPagesHeader |
|
| 70 | - * @param string $moduleDirname |
|
| 71 | - * @return string |
|
| 72 | - */ |
|
| 69 | + * @private function getTemplatesAdminPagesHeader |
|
| 70 | + * @param string $moduleDirname |
|
| 71 | + * @return string |
|
| 72 | + */ |
|
| 73 | 73 | private function getTemplatesAdminPagesHeader($moduleDirname) |
| 74 | 74 | { |
| 75 | 75 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
@@ -244,10 +244,10 @@ discard block |
||
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | /** |
| 247 | - * @private function getTemplatesAdminPagesFooter |
|
| 248 | - * @param string $moduleDirname |
|
| 249 | - * @return string |
|
| 250 | - */ |
|
| 247 | + * @private function getTemplatesAdminPagesFooter |
|
| 248 | + * @param string $moduleDirname |
|
| 249 | + * @return string |
|
| 250 | + */ |
|
| 251 | 251 | private function getTemplatesAdminPagesFooter($moduleDirname) |
| 252 | 252 | { |
| 253 | 253 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
@@ -259,10 +259,10 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
| 262 | - * @public function render |
|
| 263 | - * @param null |
|
| 264 | - * @return bool|string |
|
| 265 | - */ |
|
| 262 | + * @public function render |
|
| 263 | + * @param null |
|
| 264 | + * @return bool|string |
|
| 265 | + */ |
|
| 266 | 266 | public function render() |
| 267 | 267 | { |
| 268 | 268 | $module = $this->getModule(); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $lang = $hc->getSmartyConst($language, 'FORM_ACTION'); |
| 110 | 110 | $th .= $hc->getHtmlTag('th', ['class' => 'center width5'], $lang, false, false, "\t\t\t"); |
| 111 | - $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th) . PHP_EOL; |
|
| 111 | + $tr = $hc->getHtmlTag('tr', ['class' => 'head'], $th).PHP_EOL; |
|
| 112 | 112 | $ret = $hc->getHtmlTag('thead', [], $tr); |
| 113 | 113 | |
| 114 | 114 | return $ret; |
@@ -156,12 +156,12 @@ discard block |
||
| 156 | 156 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32'); |
| 157 | 157 | $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 158 | 158 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 159 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t" . $img); |
|
| 159 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n\t".$img); |
|
| 160 | 160 | break; |
| 161 | 161 | case 13: |
| 162 | 162 | $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
| 163 | 163 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 164 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false); |
|
| 164 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName, 'style' => 'max-width:100px'], '', true, false); |
|
| 165 | 165 | $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img, false, false, "\t\t"); |
| 166 | 166 | break; |
| 167 | 167 | default: |
@@ -177,13 +177,13 @@ discard block |
||
| 177 | 177 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 178 | 178 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 edit.png'); |
| 179 | 179 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 180 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img); |
|
| 180 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img); |
|
| 181 | 181 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 182 | 182 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 183 | 183 | $src = $hc->getSmartyNoSimbol('xoModuleIcons16 delete.png'); |
| 184 | 184 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true, false); |
| 185 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], "\n\t" . $img); |
|
| 186 | - $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n" . $anchor); |
|
| 185 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], "\n\t".$img); |
|
| 186 | + $td .= $hc->getHtmlTag('td', ['class' => 'center width5'], "\n".$anchor); |
|
| 187 | 187 | $cycle = $hc->getSmartyNoSimbol('cycle values=\'odd, even\''); |
| 188 | 188 | $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td); |
| 189 | 189 | $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr); |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * @param string $moduleDirname |
| 94 | 94 | * @param $tableId |
| 95 | 95 | * @param $tableMid |
| 96 | - * @param $tableName |
|
| 96 | + * @param string $tableName |
|
| 97 | 97 | * @param $tableSoleName |
| 98 | 98 | * @param $tableAutoincrement |
| 99 | 99 | * @param string $language |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | * @public function render |
| 208 | 208 | * @param null |
| 209 | 209 | * |
| 210 | - * @return bool|string |
|
| 210 | + * @return null|string |
|
| 211 | 211 | */ |
| 212 | 212 | public function render() |
| 213 | 213 | { |
@@ -81,11 +81,11 @@ discard block |
||
| 81 | 81 | $fieldName = $fields[$f]->getVar('field_name'); |
| 82 | 82 | $stuFieldName = strtoupper($fieldName); |
| 83 | 83 | $lang = $hc->getSmartyConst($language, $stuFieldName); |
| 84 | - $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL; |
|
| 84 | + $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL; |
|
| 85 | 85 | } |
| 86 | - $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL; |
|
| 86 | + $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL; |
|
| 87 | 87 | |
| 88 | - return $hc->getHtmlTableThead($tr) . PHP_EOL; |
|
| 88 | + return $hc->getHtmlTableThead($tr).PHP_EOL; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $td = ''; |
| 106 | 106 | if (1 == $tableAutoincrement) { |
| 107 | 107 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 108 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL; |
|
| 108 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL; |
|
| 109 | 109 | } |
| 110 | 110 | $fields = $this->getTableFields($tableMid, $tableId); |
| 111 | 111 | foreach (array_keys($fields) as $f) { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">... |
| 124 | 124 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 125 | 125 | $span = $hc->getHtmlTag('span', [], $double); |
| 126 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span) . PHP_EOL; |
|
| 126 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span).PHP_EOL; |
|
| 127 | 127 | /*$ret .= <<<EOT |
| 128 | 128 | <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;"> </span></td>\n |
| 129 | 129 | EOT;*/ |
@@ -132,18 +132,18 @@ discard block |
||
| 132 | 132 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32'); |
| 133 | 133 | $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 134 | 134 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true); |
| 135 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL; |
|
| 135 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL; |
|
| 136 | 136 | break; |
| 137 | 137 | case 13: |
| 138 | - $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 138 | + $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 139 | 139 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 140 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true); |
|
| 141 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL; |
|
| 140 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true); |
|
| 141 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL; |
|
| 142 | 142 | break; |
| 143 | 143 | default: |
| 144 | 144 | if (0 != $f) { |
| 145 | 145 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 146 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL; |
|
| 146 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL; |
|
| 147 | 147 | } |
| 148 | 148 | break; |
| 149 | 149 | } |
@@ -153,19 +153,19 @@ discard block |
||
| 153 | 153 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 154 | 154 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png'); |
| 155 | 155 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true); |
| 156 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL; |
|
| 156 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL; |
|
| 157 | 157 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 158 | 158 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 159 | 159 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png'); |
| 160 | - $img = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true); |
|
| 161 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL; |
|
| 162 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor) . PHP_EOL; |
|
| 160 | + $img = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true); |
|
| 161 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL; |
|
| 162 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor).PHP_EOL; |
|
| 163 | 163 | $cycle = $hc->getSmartyNoSimbol('cycle values="odd, even"'); |
| 164 | - $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td) . PHP_EOL; |
|
| 165 | - $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL; |
|
| 166 | - $tbody = $hc->getHtmlTag('tbody', [], $foreach) . PHP_EOL; |
|
| 164 | + $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td).PHP_EOL; |
|
| 165 | + $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL; |
|
| 166 | + $tbody = $hc->getHtmlTag('tbody', [], $foreach).PHP_EOL; |
|
| 167 | 167 | |
| 168 | - return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL; |
|
| 168 | + return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
@@ -175,10 +175,10 @@ discard block |
||
| 175 | 175 | private function getTemplatesBlocksTableTfoot() |
| 176 | 176 | { |
| 177 | 177 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
| 178 | - $td = $hc->getHtmlTag('td', [], ' ') . PHP_EOL; |
|
| 179 | - $tr = $hc->getHtmlTag('tr', [], $td) . PHP_EOL; |
|
| 178 | + $td = $hc->getHtmlTag('td', [], ' ').PHP_EOL; |
|
| 179 | + $tr = $hc->getHtmlTag('tr', [], $td).PHP_EOL; |
|
| 180 | 180 | |
| 181 | - return $hc->getHtmlTag('tfoot', [], $tr) . PHP_EOL; |
|
| 181 | + return $hc->getHtmlTag('tfoot', [], $tr).PHP_EOL; |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | $tbody .= $this->getTemplatesBlocksTableTfoot(); |
| 201 | 201 | $single = $hc->getSmartySingleVar('table_type'); |
| 202 | 202 | |
| 203 | - return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL; |
|
| 203 | + return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL; |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * @param string $moduleDirname |
| 174 | 174 | * @param string $tableName |
| 175 | 175 | * @param $tableSoleName |
| 176 | - * @param $language |
|
| 176 | + * @param string $language |
|
| 177 | 177 | * @return string |
| 178 | 178 | */ |
| 179 | 179 | private function getTemplatesUserCategoriesPanel($moduleDirname, $tableName, $tableSoleName, $language) |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | /** |
| 222 | 222 | * @public function render |
| 223 | - * @return bool|string |
|
| 223 | + * @return null|string |
|
| 224 | 224 | * |
| 225 | 225 | */ |
| 226 | 226 | public function render() |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesUserCategories extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesUserCategories |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @public function write |
|
| 57 | - * @param string $module |
|
| 58 | - * @param string $table |
|
| 59 | - * @param string $filename |
|
| 56 | + * @public function write |
|
| 57 | + * @param string $module |
|
| 58 | + * @param string $table |
|
| 59 | + * @param string $filename |
|
| 60 | 60 | */ |
| 61 | 61 | public function write($module, $table, $filename) |
| 62 | 62 | { |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @private function getTemplatesUserCategoriesHeader |
|
| 70 | - * @param string $moduleDirname |
|
| 69 | + * @private function getTemplatesUserCategoriesHeader |
|
| 70 | + * @param string $moduleDirname |
|
| 71 | 71 | * @return string |
| 72 | 72 | * |
| 73 | 73 | */ |
@@ -79,8 +79,8 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * @private function getTemplatesUserCategoriesTable |
|
| 83 | - * @param string $language |
|
| 82 | + * @private function getTemplatesUserCategoriesTable |
|
| 83 | + * @param string $language |
|
| 84 | 84 | * @param $moduleDirname |
| 85 | 85 | * @param $tableName |
| 86 | 86 | * @param $tableSoleName |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | - * @private function getTemplatesUserCategoriesThead |
|
| 101 | - * @param string $language |
|
| 100 | + * @private function getTemplatesUserCategoriesThead |
|
| 101 | + * @param string $language |
|
| 102 | 102 | * @param $tableName |
| 103 | 103 | * @return string |
| 104 | 104 | */ |
@@ -115,9 +115,9 @@ discard block |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | - * @private function getTemplatesUserCategoriesTbody |
|
| 119 | - * @param string $moduleDirname |
|
| 120 | - * @param string $language |
|
| 118 | + * @private function getTemplatesUserCategoriesTbody |
|
| 119 | + * @param string $moduleDirname |
|
| 120 | + * @param string $language |
|
| 121 | 121 | * @param $tableName |
| 122 | 122 | * @param $tableSoleName |
| 123 | 123 | * @return string |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @private function getTemplatesUserCategoriesTfoot |
|
| 141 | + * @private function getTemplatesUserCategoriesTfoot |
|
| 142 | 142 | * @return string |
| 143 | 143 | * |
| 144 | 144 | */ |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * @private function getTemplatesUserCategories |
|
| 155 | + * @private function getTemplatesUserCategories |
|
| 156 | 156 | * @param $moduleDirname |
| 157 | 157 | * @param $tableName |
| 158 | 158 | * @param $tableSoleName |
@@ -169,9 +169,9 @@ discard block |
||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | - * @private function getTemplatesUserCategoriesPanel |
|
| 173 | - * @param string $moduleDirname |
|
| 174 | - * @param string $tableName |
|
| 172 | + * @private function getTemplatesUserCategoriesPanel |
|
| 173 | + * @param string $moduleDirname |
|
| 174 | + * @param string $tableName |
|
| 175 | 175 | * @param $tableSoleName |
| 176 | 176 | * @param $language |
| 177 | 177 | * @return string |
@@ -206,8 +206,8 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | - * @private function getTemplatesUserCategoriesFooter |
|
| 210 | - * @param string $moduleDirname |
|
| 209 | + * @private function getTemplatesUserCategoriesFooter |
|
| 210 | + * @param string $moduleDirname |
|
| 211 | 211 | * |
| 212 | 212 | * @return string |
| 213 | 213 | */ |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | } |
| 220 | 220 | |
| 221 | 221 | /** |
| 222 | - * @public function render |
|
| 222 | + * @public function render |
|
| 223 | 223 | * @return bool|string |
| 224 | 224 | * |
| 225 | 225 | */ |
@@ -54,10 +54,10 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @public function write |
| 57 | - * @param $module |
|
| 57 | + * @param string $module |
|
| 58 | 58 | * @param $table |
| 59 | 59 | * @param $tables |
| 60 | - * @param $filename |
|
| 60 | + * @param string $filename |
|
| 61 | 61 | */ |
| 62 | 62 | public function write($module, $table, $tables, $filename) |
| 63 | 63 | { |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * @public function getTemplatesUserIndexBodyDefault |
| 156 | 156 | * @param $module |
| 157 | 157 | * @param $table |
| 158 | - * @param $language |
|
| 158 | + * @param string $language |
|
| 159 | 159 | * @return bool|string |
| 160 | 160 | */ |
| 161 | 161 | public function getTemplatesUserIndexBodyDefault($module, $table, $language) |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * @param $moduleDirname |
| 210 | 210 | * @param $tableName |
| 211 | 211 | * @param $tableSoleName |
| 212 | - * @param $language |
|
| 212 | + * @param string $language |
|
| 213 | 213 | * @return bool|string |
| 214 | 214 | */ |
| 215 | 215 | public function getTemplateUserIndexCategories($moduleDirname, $tableName, $tableSoleName, $language) |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * @param $moduleDirname |
| 261 | 261 | * @param $tableName |
| 262 | 262 | * @param $tableSoleName |
| 263 | - * @param $language |
|
| 263 | + * @param string $language |
|
| 264 | 264 | * @return bool|string |
| 265 | 265 | */ |
| 266 | 266 | public function getTemplateUserIndexTable($moduleDirname, $tableName, $tableSoleName, $language) |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | /** |
| 306 | 306 | * @public function render |
| 307 | 307 | * @param null |
| 308 | - * @return bool|string |
|
| 308 | + * @return null|string |
|
| 309 | 309 | */ |
| 310 | 310 | public function render() |
| 311 | 311 | { |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesUserIndex extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return TemplatesUserIndex |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -68,8 +68,8 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * @public function getTemplateUserIndexHeader |
|
| 72 | - * @param $moduleDirname |
|
| 71 | + * @public function getTemplateUserIndexHeader |
|
| 72 | + * @param $moduleDirname |
|
| 73 | 73 | * @return bool|string |
| 74 | 74 | */ |
| 75 | 75 | public function getTemplateUserIndexHeader($moduleDirname) |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * @private function getTemplatesUserIndexTable |
|
| 83 | + * @private function getTemplatesUserIndexTable |
|
| 84 | 84 | * @param $moduleDirname |
| 85 | 85 | * @param $tableName |
| 86 | 86 | * @param $tableSoleName |
@@ -98,8 +98,8 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * @private function getTemplatesUserIndexThead |
|
| 102 | - * @param string $language |
|
| 101 | + * @private function getTemplatesUserIndexThead |
|
| 102 | + * @param string $language |
|
| 103 | 103 | * @param $tableName |
| 104 | 104 | * @return string |
| 105 | 105 | */ |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | - * @private function getTemplatesUserIndexTbody |
|
| 119 | + * @private function getTemplatesUserIndexTbody |
|
| 120 | 120 | * @param $moduleDirname |
| 121 | 121 | * @param $tableName |
| 122 | 122 | * @param $tableSoleName |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
| 142 | - * @private function getTemplatesUserIndexTfoot |
|
| 142 | + * @private function getTemplatesUserIndexTfoot |
|
| 143 | 143 | * @return string |
| 144 | 144 | */ |
| 145 | 145 | private function getTemplatesUserIndexTableTfoot() |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * @public function getTemplatesUserIndexBodyDefault |
|
| 155 | + * @public function getTemplatesUserIndexBodyDefault |
|
| 156 | 156 | * @param $module |
| 157 | 157 | * @param $table |
| 158 | 158 | * @param $language |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /** |
| 208 | - * @public function getTemplateUserIndexCategories |
|
| 208 | + * @public function getTemplateUserIndexCategories |
|
| 209 | 209 | * @param $moduleDirname |
| 210 | 210 | * @param $tableName |
| 211 | 211 | * @param $tableSoleName |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | - * @public function getTemplateUserIndexTable |
|
| 259 | + * @public function getTemplateUserIndexTable |
|
| 260 | 260 | * @param $moduleDirname |
| 261 | 261 | * @param $tableName |
| 262 | 262 | * @param $tableSoleName |
@@ -291,8 +291,8 @@ discard block |
||
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | /** |
| 294 | - * @public function getTemplateUserIndexFooter |
|
| 295 | - * @param $moduleDirname |
|
| 294 | + * @public function getTemplateUserIndexFooter |
|
| 295 | + * @param $moduleDirname |
|
| 296 | 296 | * @return bool|string |
| 297 | 297 | */ |
| 298 | 298 | public function getTemplateUserIndexFooter($moduleDirname) |
@@ -303,8 +303,8 @@ discard block |
||
| 303 | 303 | } |
| 304 | 304 | |
| 305 | 305 | /** |
| 306 | - * @public function render |
|
| 307 | - * @param null |
|
| 306 | + * @public function render |
|
| 307 | + * @param null |
|
| 308 | 308 | * @return bool|string |
| 309 | 309 | */ |
| 310 | 310 | public function render() |
@@ -54,9 +54,9 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @public function write |
| 57 | - * @param $module |
|
| 57 | + * @param string $module |
|
| 58 | 58 | * @param mixed $table |
| 59 | - * @param $filename |
|
| 59 | + * @param string $filename |
|
| 60 | 60 | */ |
| 61 | 61 | public function write($module, $table, $filename) |
| 62 | 62 | { |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * @param $tableName |
| 177 | 177 | * @param $tableSoleName |
| 178 | 178 | * @param $tableAutoincrement |
| 179 | - * @param $language |
|
| 179 | + * @param string $language |
|
| 180 | 180 | * @return bool|string |
| 181 | 181 | */ |
| 182 | 182 | private function getUserBrokenSwitch($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $language) |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | /** |
| 196 | 196 | * @public function render |
| 197 | 197 | * @param null |
| 198 | - * @return bool|string |
|
| 198 | + * @return null|string |
|
| 199 | 199 | */ |
| 200 | 200 | public function render() |
| 201 | 201 | { |
@@ -171,14 +171,14 @@ |
||
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | /** |
| 174 | - * @private function getUserSubmitSwitch |
|
| 175 | - * @param $moduleDirname |
|
| 174 | + * @private function getUserSubmitSwitch |
|
| 175 | + * @param $moduleDirname |
|
| 176 | 176 | * @param $tableName |
| 177 | 177 | * @param $tableSoleName |
| 178 | 178 | * @param $tableAutoincrement |
| 179 | 179 | * @param $language |
| 180 | 180 | * @return bool|string |
| 181 | - */ |
|
| 181 | + */ |
|
| 182 | 182 | private function getUserBrokenSwitch($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $language) |
| 183 | 183 | { |
| 184 | 184 | $xc = TDMCreateXoopsCode::getInstance(); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @param $moduleDirname |
| 84 | 84 | * @param $tableName |
| 85 | 85 | * @param $fields |
| 86 | - * @param $language |
|
| 86 | + * @param string $language |
|
| 87 | 87 | * @return string |
| 88 | 88 | */ |
| 89 | 89 | private function getUserPdfHeader($moduleDirname, $tableName, $fields, $language) |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | /** |
| 215 | 215 | * @public function render |
| 216 | 216 | * @param null |
| 217 | - * @return bool|string |
|
| 217 | + * @return null|string |
|
| 218 | 218 | */ |
| 219 | 219 | public function render() |
| 220 | 220 | { |
@@ -28,19 +28,19 @@ discard block |
||
| 28 | 28 | class UserPdf extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @var mixed |
|
| 32 | - */ |
|
| 31 | + * @var mixed |
|
| 32 | + */ |
|
| 33 | 33 | private $uc = null; |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @var string |
|
| 37 | - */ |
|
| 36 | + * @var string |
|
| 37 | + */ |
|
| 38 | 38 | private $xc = null; |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @public function constructor |
|
| 42 | - * @param null |
|
| 43 | - */ |
|
| 41 | + * @public function constructor |
|
| 42 | + * @param null |
|
| 43 | + */ |
|
| 44 | 44 | |
| 45 | 45 | public function __construct() |
| 46 | 46 | { |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | - * @static function getInstance |
|
| 55 | - * @param null |
|
| 54 | + * @static function getInstance |
|
| 55 | + * @param null |
|
| 56 | 56 | * @return UserPdf |
| 57 | 57 | */ |
| 58 | 58 | public static function getInstance() |
@@ -66,10 +66,10 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | - * @public function write |
|
| 70 | - * @param string $module |
|
| 71 | - * @param mixed $table |
|
| 72 | - * @param string $filename |
|
| 69 | + * @public function write |
|
| 70 | + * @param string $module |
|
| 71 | + * @param mixed $table |
|
| 72 | + * @param string $filename |
|
| 73 | 73 | */ |
| 74 | 74 | public function write($module, $table, $filename) |
| 75 | 75 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | - * @public function getAdminPagesList |
|
| 107 | + * @public function getAdminPagesList |
|
| 108 | 108 | * @param $moduleDirname |
| 109 | 109 | * @param $fields |
| 110 | 110 | * @return string |
@@ -212,8 +212,8 @@ discard block |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | - * @public function render |
|
| 216 | - * @param null |
|
| 215 | + * @public function render |
|
| 216 | + * @param null |
|
| 217 | 217 | * @return bool|string |
| 218 | 218 | */ |
| 219 | 219 | public function render() |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | $ret .= $this->phpcode->getPhpCodeCommentLine('Pdf Filename'); |
| 207 | 207 | $ret .= $this->phpcode->getPhpCodeCommentLine('Output'); |
| 208 | 208 | $ret .= $this->xc->getXcTplAssign('pdfoutput', "\$pdf->Output('{$tableName}.pdf', 'I')"); |
| 209 | - $ret .= $this->xc->getXcTplDisplay($moduleDirname . "_pdf.tpl", '', false); |
|
| 209 | + $ret .= $this->xc->getXcTplDisplay($moduleDirname."_pdf.tpl", '', false); |
|
| 210 | 210 | |
| 211 | 211 | return $ret; |
| 212 | 212 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param string $type |
| 64 | 64 | * @param $language |
| 65 | - * @param $tableName |
|
| 65 | + * @param string $tableName |
|
| 66 | 66 | * |
| 67 | 67 | * @param string $t |
| 68 | 68 | * @return string |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * |
| 129 | 129 | * @param $moduleDirname |
| 130 | 130 | * |
| 131 | - * @param $language |
|
| 131 | + * @param string $language |
|
| 132 | 132 | * @return string |
| 133 | 133 | */ |
| 134 | 134 | public function getUserBreadcrumbsHeaderFile($moduleDirname, $language) |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * |
| 165 | 165 | * @param int $eleArray |
| 166 | 166 | * @param $descriptions |
| 167 | - * @param null $name |
|
| 167 | + * @param string $name |
|
| 168 | 168 | * @param null $index |
| 169 | 169 | * @param bool $num |
| 170 | 170 | * @param string $t |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | $stuModuleDirname = strtoupper($moduleDirname); |
| 139 | 139 | $ret = $pCodeHeaderFile->getPhpCodeCommentLine('Breadcrumbs'); |
| 140 | 140 | $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs', null, false, ''); |
| 141 | - $titleLink = ["'title'" => $language . 'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"]; |
|
| 141 | + $titleLink = ["'title'" => $language.'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"]; |
|
| 142 | 142 | $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs[]', $titleLink, false, ''); |
| 143 | 143 | |
| 144 | 144 | return $ret; |