Skip to content

Commit 76146a5

Browse files
committed
fix to generate "Handler" instead of "handler"
1 parent 1c7c026 commit 76146a5

File tree

4 files changed

+6
-235
lines changed

4 files changed

+6
-235
lines changed

class/Files/Classes/ClassFormElements.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ private function getXoopsFormSelectBox($language, $tableName, $fieldName, $requi
501501
$ucfTableName = ucfirst($tableName);
502502
$ccFieldName = $tf->getCamelCase($fieldName, false, true);
503503
$t = "\t\t";
504-
$ret = $pc->getPhpCodeCommentLine($ucfTableName, 'handler', $t);
504+
$ret = $pc->getPhpCodeCommentLine($ucfTableName, 'Handler', $t);
505505
$ret .= $xc->getXcHandlerLine($tableName, $t);
506506
$ret .= $pc->getPhpCodeCommentLine('Form', 'Select ' . $ccFieldName, $t);
507507
$ret .= $cxc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t);
@@ -764,7 +764,7 @@ private function getXoopsFormSelectCombo($language, $moduleDirname, $tableName,
764764
$ccFieldName = $tf->getCamelCase($fieldName, false, true);
765765
$languageShort = substr($language, 0, 4) . mb_strtoupper($moduleDirname) . '_';
766766
$t = "\t\t";
767-
$ret = $pc->getPhpCodeCommentLine($ucfTableName, 'handler', $t);
767+
$ret = $pc->getPhpCodeCommentLine($ucfTableName, 'Handler', $t);
768768
$ret .= $xc->getXcHandlerLine($tableName, $t);
769769
$ret .= $pc->getPhpCodeCommentLine('Form', 'Select ' . $ccFieldName, $t);
770770
$ret .= $cxc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", '5', '', false, $t);

class/Files/CreateArchitecture.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function setFilesToBuilding($module)
291291
if (1 === (int)$tables[$t]->getVar('table_admin') || 1 === (int)$tables[$t]->getVar('table_user')) {
292292
// Class Files
293293
$classFiles = Modulebuilder\Files\Classes\ClassHandlerFiles::getInstance();
294-
$classFiles->write($module, $table, $tables, ucfirst($tableName) . 'handler.php');
294+
$classFiles->write($module, $table, $tables, ucfirst($tableName) . 'Handler.php');
295295
$ret[] = $classFiles->render();
296296
}
297297
// Creation of user files
@@ -345,8 +345,8 @@ public function setFilesToBuilding($module)
345345

346346
// Creation of classhandlers
347347
$classSpecialFiles = Modulebuilder\Files\Classes\ClassSpecialFiles::getInstance();
348-
$classSpecialFiles->write($module, '', $permTables, ucfirst('permissionshandler') . '.php');
349-
$classSpecialFiles->className = 'Permissionshandler';
348+
$classSpecialFiles->write($module, '', $permTables, ucfirst('PermissionsHandler') . '.php');
349+
$classSpecialFiles->className = 'PermissionsHandler';
350350
$ret[] = $classSpecialFiles->renderPermissionsHandler();
351351

352352
}

class/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getHandler($name)
7878
$db = \XoopsDatabaseFactory::getDatabaseConnection();
7979
$helper = self::getInstance();
8080
$ret = new $class($db, $helper);
81-
$this->addLog("Getting handler '{$name}'");
81+
$this->addLog("Getting Handler '{$name}'");
8282

8383
return $ret;
8484
}

class/helper0.php

Lines changed: 0 additions & 229 deletions
This file was deleted.

0 commit comments

Comments
 (0)