diff --git a/pages/neues.php b/pages/neues.php index 345bc9d..5827553 100644 --- a/pages/neues.php +++ b/pages/neues.php @@ -6,7 +6,7 @@ * für docs gilt: es sind Vorarbeiten notwendig, damit das Menü korrekt angezeigt * wird. Daher abweichender Ablauf. */ -if('neues/docs' === rex_be_controller::getCurrentPage()) { +if ('neues/docs' === rex_be_controller::getCurrentPage()) { $this->includeFile(__DIR__ . '/neues.docs.php'); return; } diff --git a/pages/yform.php b/pages/yform.php index 97fe337..a33365f 100644 --- a/pages/yform.php +++ b/pages/yform.php @@ -23,17 +23,17 @@ * als Model-Class/Dataset-Class: * tabelle: wird über rex::getTable($table_name) zu rex_tabelle * Namespace\Tabelle: wird über $table_name::table()->getTableName() zu rex_tabelle - * + * * @see https://friendsofredaxo.github.io/tricks/addons/yform/im-addon - * @var \rex_addon $this + * @var rex_addon $this */ $yform = $this->getProperty('yform', []); -$yform = $yform[\rex_be_controller::getCurrentPage()] ?? []; +$yform = $yform[rex_be_controller::getCurrentPage()] ?? []; -if( isset($yform['table_name']) ) { +if (isset($yform['table_name'])) { $table_name = $yform['table_name']; - if( is_subclass_of($table_name,rex_yform_manager_dataset::class)) { + if (is_subclass_of($table_name, rex_yform_manager_dataset::class)) { // table_name ist eine Dataset-Klasse $table_name = $table_name::table()->getTableName(); } else { @@ -58,14 +58,14 @@ } if (!$show_title) { - \rex_extension::register( + rex_extension::register( 'YFORM_MANAGER_DATA_PAGE_HEADER', static function (rex_extension_point $ep) { if ($ep->getParam('yform')->table->getTableName() === $ep->getParam('table_name')) { return ''; } }, - \rex_extension::EARLY, ['table_name' => $table_name] + rex_extension::EARLY, ['table_name' => $table_name], ); } @@ -73,7 +73,7 @@ static function (rex_extension_point $ep) { echo '
'; } -include \rex_path::plugin('yform', 'manager', 'pages/data_edit.php'); +include rex_path::plugin('yform', 'manager', 'pages/data_edit.php'); if ('' !== $wrapper_class) { echo '
';