@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * @param string $required |
| 92 | 92 | */ |
| 93 | 93 | /** |
| 94 | - * @param $language |
|
| 94 | + * @param string $language |
|
| 95 | 95 | * @param $fieldName |
| 96 | 96 | * @param $required |
| 97 | 97 | * |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @param string $required |
| 125 | 125 | */ |
| 126 | 126 | /** |
| 127 | - * @param $language |
|
| 127 | + * @param string $language |
|
| 128 | 128 | * @param $fieldName |
| 129 | 129 | * @param string $required |
| 130 | 130 | * |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * @param string $required |
| 149 | 149 | */ |
| 150 | 150 | /** |
| 151 | - * @param $language |
|
| 151 | + * @param string $language |
|
| 152 | 152 | * @param $moduleDirname |
| 153 | 153 | * @param $fieldName |
| 154 | 154 | * @param string $required |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * @param string $required |
| 182 | 182 | */ |
| 183 | 183 | /** |
| 184 | - * @param $language |
|
| 184 | + * @param string $language |
|
| 185 | 185 | * @param $fieldName |
| 186 | 186 | * @param string $required |
| 187 | 187 | * |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | * @param string $required |
| 296 | 296 | */ |
| 297 | 297 | /** |
| 298 | - * @param $language |
|
| 298 | + * @param string $language |
|
| 299 | 299 | * @param $moduleDirname |
| 300 | 300 | * @param $fieldName |
| 301 | 301 | * @param string $required |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | * @param string $required |
| 345 | 345 | */ |
| 346 | 346 | /** |
| 347 | - * @param $language |
|
| 347 | + * @param string $language |
|
| 348 | 348 | * @param $moduleDirname |
| 349 | 349 | * @param $fieldName |
| 350 | 350 | * @param $fieldDefault |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | * @param string $required |
| 425 | 425 | */ |
| 426 | 426 | /** |
| 427 | - * @param $language |
|
| 427 | + * @param string $language |
|
| 428 | 428 | * @param $moduleDirname |
| 429 | 429 | * @param $tableName |
| 430 | 430 | * @param $fieldName |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | * @param string $required |
| 451 | 451 | */ |
| 452 | 452 | /** |
| 453 | - * @param $language |
|
| 453 | + * @param string $language |
|
| 454 | 454 | * @param $moduleDirname |
| 455 | 455 | * @param $fieldName |
| 456 | 456 | * @param string $required |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | * @param string $required |
| 476 | 476 | */ |
| 477 | 477 | /** |
| 478 | - * @param $language |
|
| 478 | + * @param string $language |
|
| 479 | 479 | * @param $moduleDirname |
| 480 | 480 | * @param $tableName |
| 481 | 481 | * @param $fieldName |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | * @param string $required |
| 508 | 508 | */ |
| 509 | 509 | /** |
| 510 | - * @param $language |
|
| 510 | + * @param string $language |
|
| 511 | 511 | * @param $fieldName |
| 512 | 512 | * @param string $required |
| 513 | 513 | * |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | * @param string $required |
| 531 | 531 | */ |
| 532 | 532 | /** |
| 533 | - * @param $language |
|
| 533 | + * @param string $language |
|
| 534 | 534 | * @param $fieldName |
| 535 | 535 | * @param string $required |
| 536 | 536 | * |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | * @param string $required |
| 556 | 556 | */ |
| 557 | 557 | /** |
| 558 | - * @param $language |
|
| 558 | + * @param string $language |
|
| 559 | 559 | * @param $fieldName |
| 560 | 560 | * @param string $required |
| 561 | 561 | * |
@@ -580,7 +580,7 @@ discard block |
||
| 580 | 580 | * @param string $required |
| 581 | 581 | */ |
| 582 | 582 | /** |
| 583 | - * @param $language |
|
| 583 | + * @param string $language |
|
| 584 | 584 | * @param $moduleDirname |
| 585 | 585 | * @param $tableName |
| 586 | 586 | * @param $fieldName |
@@ -617,11 +617,12 @@ discard block |
||
| 617 | 617 | * @param string $required |
| 618 | 618 | */ |
| 619 | 619 | /** |
| 620 | - * @param $language |
|
| 620 | + * @param string $language |
|
| 621 | 621 | * @param $moduleDirname |
| 622 | 622 | * @param $table |
| 623 | 623 | * @param $fields |
| 624 | 624 | * @param string $required |
| 625 | + * @param string $topicTableName |
|
| 625 | 626 | * |
| 626 | 627 | * @return string |
| 627 | 628 | */ |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | private $tdmcfile = null; |
| 40 | 40 | |
| 41 | - /* |
|
| 41 | + /* |
|
| 42 | 42 | * @public function constructor |
| 43 | 43 | * @param null |
| 44 | 44 | */ |
@@ -595,15 +595,15 @@ discard block |
||
| 595 | 595 | if ($fieldElement > 15) { |
| 596 | 596 | $fElement = $this->tdmcreate->getHandler('fieldelements')->get($fieldElement); |
| 597 | 597 | $rpFieldelementName = strtolower(str_replace('Table : ', '', $fElement->getVar('fieldelement_name'))); |
| 598 | - $ccFieldName = $this->tdmcfile->getCamelCase($fieldName, false, true); |
|
| 599 | - $ret = <<<EOT |
|
| 598 | + $ccFieldName = $this->tdmcfile->getCamelCase($fieldName, false, true); |
|
| 599 | + $ret = <<<EOT |
|
| 600 | 600 | // Form Table {$ucfTableName} |
| 601 | 601 | \${$rpFieldelementName}Handler =& \$this->{$moduleDirname}->getHandler('{$rpFieldelementName}'); |
| 602 | 602 | \${$ccFieldName}Select = new XoopsFormSelect({$language}, '{$fieldName}', \$this->getVar('{$fieldName}')); |
| 603 | 603 | \${$ccFieldName}Select->addOptionArray(\${$rpFieldelementName}Handler->getList()); |
| 604 | 604 | \$form->addElement( \${$ccFieldName}Select{$required} );\n |
| 605 | 605 | EOT; |
| 606 | - } |
|
| 606 | + } |
|
| 607 | 607 | |
| 608 | 608 | return $ret; |
| 609 | 609 | } |
@@ -694,10 +694,10 @@ discard block |
||
| 694 | 694 | //$language_table = $languageFunct . strtoupper($tableName); |
| 695 | 695 | $ret = ''; |
| 696 | 696 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id'), 'field_order ASC, field_id'); |
| 697 | - $fieldId = ''; |
|
| 698 | - $fieldIdTopic = ''; |
|
| 699 | - $fieldPidTopic = ''; |
|
| 700 | - $fieldMainTopic = ''; |
|
| 697 | + $fieldId = ''; |
|
| 698 | + $fieldIdTopic = ''; |
|
| 699 | + $fieldPidTopic = ''; |
|
| 700 | + $fieldMainTopic = ''; |
|
| 701 | 701 | $fieldElementId = array(); |
| 702 | 702 | foreach (array_keys($fields) as $f) { |
| 703 | 703 | $fieldName = $fields[$f]->getVar('field_name'); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | private $tdmcreate = null; |
| 35 | 35 | |
| 36 | - /* |
|
| 36 | + /* |
|
| 37 | 37 | * @var string |
| 38 | 38 | */ |
| 39 | 39 | private $formelements = null; |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | public function __construct() |
| 49 | 49 | { |
| 50 | 50 | parent::__construct(); |
| 51 | - $this->tdmcreate = TDMCreateHelper::getInstance(); |
|
| 51 | + $this->tdmcreate = TDMCreateHelper::getInstance(); |
|
| 52 | 52 | $this->formelements = ClassFormElements::getInstance(); |
| 53 | 53 | } |
| 54 | 54 | |