@@ -480,10 +480,10 @@ discard block |
||
| 480 | 480 | break; |
| 481 | 481 | } |
| 482 | 482 | } |
| 483 | - if (1 == $table->getVar('table_permissions')) { $table_permissions = 1;} |
|
| 484 | - if (1 == $table->getVar('table_admin')) { $table_admin = 1;} |
|
| 485 | - if (1 == $table->getVar('table_user')) { $table_user = 1;} |
|
| 486 | - if (1 == $table->getVar('table_tag')) { $table_tag = 1;} |
|
| 483 | + if (1 == $table->getVar('table_permissions')) { $table_permissions = 1; } |
|
| 484 | + if (1 == $table->getVar('table_admin')) { $table_admin = 1; } |
|
| 485 | + if (1 == $table->getVar('table_user')) { $table_user = 1; } |
|
| 486 | + if (1 == $table->getVar('table_tag')) { $table_tag = 1; } |
|
| 487 | 487 | } |
| 488 | 488 | |
| 489 | 489 | if (1 === $table_permissions) { |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | $ret .= $this->getSimpleString('++$c;'); |
| 523 | 523 | unset($this->keywords); |
| 524 | 524 | |
| 525 | - if ( 1 === $field_images) { |
|
| 525 | + if (1 === $field_images) { |
|
| 526 | 526 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image'); |
| 527 | 527 | $maxsize = [ |
| 528 | 528 | 'name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'", |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 229 | 229 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 230 | 230 | $t = "\t\t"; |
| 231 | - $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, $t); |
|
| 231 | + $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, $t); |
|
| 232 | 232 | $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
| 233 | 233 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
| 234 | 234 | $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/Frameworks/moduleclasses/icons/32'", null, false, $t); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 277 | 277 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 278 | 278 | $t = "\t\t\t"; |
| 279 | - $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, "\t\t"); |
|
| 279 | + $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, "\t\t"); |
|
| 280 | 280 | $contentIf = $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
| 281 | 281 | $contentIf .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
| 282 | 282 | $contentIf .= $xc->getXcEqualsOperator('$uploadDirectory', "'/uploads/{$moduleDirname}/images/shots'", null, false, $t); |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | $cc = ClassXoopsCode::getInstance(); |
| 328 | 328 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 329 | 329 | $t = "\t\t"; |
| 330 | - $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File ' . $ucfFieldName, $t); |
|
| 330 | + $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File '.$ucfFieldName, $t); |
|
| 331 | 331 | $ret .= $cc->getClassXoopsFormElementTray('formUrlFile', '_OPTIONS', '<br><br>', $t); |
| 332 | 332 | $ret .= $pc->getPhpCodeTernaryOperator('formUrl', '$this->isNew()', "'{$fieldDefault}'", "\$this->getVar('{$fieldName}')", $t); |
| 333 | 333 | $ret .= $cc->getClassXoopsFormText('formText', $language, $fieldName, 75, 255, 'formUrl', false, $t); |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 363 | 363 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 364 | 364 | $t = "\t\t"; |
| 365 | - $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image ' . $ucfFieldName, $t); |
|
| 365 | + $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image '.$ucfFieldName, $t); |
|
| 366 | 366 | $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
| 367 | 367 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
| 368 | 368 | $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/uploads/{$moduleDirname}/images/{$tableName}'", null, false, $t); |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | $paramLabel = "\"<br><img src='\".XOOPS_URL.\"/\".\$imageDirectory.\"/\".\${$ccFieldName}.\"' name='image1' id='image1' alt='' style='max-width:100px' />\""; |
| 379 | 379 | $xoopsFormLabel = $cc->getClassXoopsFormLabel('', "''", $paramLabel, true, ''); |
| 380 | 380 | $ret .= $cc->getClassAddElement('imageTray', $xoopsFormLabel, $t); |
| 381 | - $ret .= $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t); |
|
| 381 | + $ret .= $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t); |
|
| 382 | 382 | $ret .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t); |
| 383 | 383 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 384 | 384 | $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'FORM_UPLOAD_IMAGE_'.$stuTableName, 'attachedfile', $getConfig, true, ''); |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 412 | 412 | $stuTableName = strtoupper($tableName); |
| 413 | 413 | $t = "\t\t"; |
| 414 | - $ret = $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t); |
|
| 414 | + $ret = $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t); |
|
| 415 | 415 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 416 | 416 | $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'_'.$stuTableName, $fieldName, $getConfig, true, ''); |
| 417 | 417 | $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | $cc = ClassXoopsCode::getInstance(); |
| 438 | 438 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 439 | 439 | $t = "\t\t"; |
| 440 | - $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker ' . $ucfFieldName, $t); |
|
| 440 | + $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker '.$ucfFieldName, $t); |
|
| 441 | 441 | $getVar = $xc->getXcGetVar('', 'this', $fieldName, true); |
| 442 | 442 | $xoopsFormFile = $cc->getClassXoopsFormColorPicker('', $language, $fieldName, $getVar, true, ''); |
| 443 | 443 | $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | $t = "\t\t"; |
| 468 | 468 | $ret = $pc->getPhpCodeCommentLine($ucfTableName, 'handler', $t); |
| 469 | 469 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $tableName, $t); |
| 470 | - $ret .= $pc->getPhpCodeCommentLine('Form', 'Select ' . $ucfTableName, $t); |
|
| 470 | + $ret .= $pc->getPhpCodeCommentLine('Form', 'Select '.$ucfTableName, $t); |
|
| 471 | 471 | $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
| 472 | 472 | $ret .= $cc->getClassAddOption($ccFieldName.'Select', "'Empty'", $t); |
| 473 | 473 | $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$tableName}Handler->getList()", $t); |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | $cc = ClassXoopsCode::getInstance(); |
| 494 | 494 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 495 | 495 | $t = "\t\t"; |
| 496 | - $ret = $pc->getPhpCodeCommentLine('Form Select', 'User ' . $ucfFieldName, $t); |
|
| 496 | + $ret = $pc->getPhpCodeCommentLine('Form Select', 'User '.$ucfFieldName, $t); |
|
| 497 | 497 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 498 | 498 | $xoopsSelectUser = $cc->getClassXoopsFormSelectUser('', $language, $fieldName, 'false', $fieldName, true, $t); |
| 499 | 499 | $ret .= $cc->getClassAddElement('form', $xoopsSelectUser.$required, $t); |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 519 | 519 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 520 | 520 | $t = "\t\t"; |
| 521 | - $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No ' . $ucfFieldName, $t); |
|
| 521 | + $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No '.$ucfFieldName, $t); |
|
| 522 | 522 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 523 | 523 | $xoopsRadioYN = $cc->getClassXoopsFormRadioYN('', $language, $fieldName, $ccFieldName, true, $t); |
| 524 | 524 | $ret .= $cc->getClassAddElement('form', $xoopsRadioYN.$required, $t); |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | $t = "\t\t"; |
| 544 | 544 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 545 | 545 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 546 | - $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select ' . $ucfFieldName, $t); |
|
| 546 | + $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select '.$ucfFieldName, $t); |
|
| 547 | 547 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 548 | 548 | $xoopsTextDateSelect = $cc->getClassXoopsFormTextDateSelect('', $language, $fieldName, $fieldName, $ccFieldName, true, $t); |
| 549 | 549 | $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect.$required, $t); |