ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/tplsets/tplform.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method __construct from undeclared class \icms_form_Theme
Open

    $form = new icms_form_Theme(_MD_VIEWTEMPLATE, 'template_form', 'admin.php', 'post', TRUE);

Invalid offset "sourceeditor_default" of array type array{template_set:mixed}
Open

$tpl_src = icms_plugins_EditorHandler::getInstance('source')->get($icmsConfig['sourceeditor_default'], $config);

Call to method __construct from undeclared class \icms_form_Theme
Open

    $form = new icms_form_Theme(_MD_EDITTEMPLATE, 'template_form', 'admin.php', 'post', TRUE);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Label(_MD_FILEDESC, $tform['tpl_desc']));

Reference to undeclared constant \_PREVIEW
Open

    $button_tray->addElement(new icms_form_elements_Button('', 'previewtpl', _PREVIEW, 'submit'));

Call to method __construct from undeclared class \icms_form_elements_Label
Open

$form->addElement(new icms_form_elements_Label(_MD_FILEDESC, $tform['tpl_desc']));

Variable $tform is undeclared
Open

    'value' => $tform['tpl_source'],

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

    $button_tray->addElement(new icms_form_elements_Button('', 'previewtpl', _PREVIEW, 'submit'));

Variable $tform is undeclared
Open

if ($tform['tpl_tplset'] == 'default') $config["is_editable"] = FALSE;

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($tpl_src);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Label(_MD_LASTMOD, formatTimestamp($tform['tpl_lastmodified'], 'l')));

Reference to undeclared constant \_LANGCODE
Open

    'language' => _LANGCODE,

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$form->addElement(new icms_form_elements_Hidden('moddir', $tform['tpl_module']));

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

    $button_tray = new icms_form_elements_Tray('');

Reference to undeclared constant \_SUBMIT
Open

    $button_tray->addElement(new icms_form_elements_Button('', 'submittpl', _SUBMIT, 'submit'));

Variable $tform is undeclared
Open

$form->addElement(new icms_form_elements_Label(_MD_LASTMOD, formatTimestamp($tform['tpl_lastmodified'], 'l')));

Call to method __construct from undeclared class \icms_form_elements_Button
Open

    $form->addElement(new icms_form_elements_Button('', 'previewtpl', _MD_VIEW, 'submit'));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Hidden('op', 'edittpl_go'));

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$form->addElement(new icms_form_elements_Hidden('fct', 'tplsets'));

Call to method __construct from undeclared class \icms_form_elements_Button
Open

    $button_tray->addElement(new icms_form_elements_Button('', 'submittpl', _SUBMIT, 'submit'));

Call to method getInstance from undeclared class \icms_plugins_EditorHandler
Open

$tpl_src = icms_plugins_EditorHandler::getInstance('source')->get($icmsConfig['sourceeditor_default'], $config);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Hidden('id', $tform['tpl_id']));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Hidden('moddir', $tform['tpl_module']));

Call to method __construct from undeclared class \icms_form_elements_Button
Open

    $button_tray->addElement(new icms_form_elements_Button('', 'previewtpl', _PREVIEW, 'submit'));

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

    $button_tray->addElement(new icms_form_elements_Button('', 'submittpl', _SUBMIT, 'submit'));

Variable $tform is undeclared
Open

if ($tform['tpl_tplset'] != 'default') {

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Label(_MD_FILENAME, $tform['tpl_file']));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Hidden('fct', 'tplsets'));

Variable $tform is undeclared
Open

if ($tform['tpl_tplset'] != 'default') {

Call to method __construct from undeclared class \icms_form_elements_Label
Open

$form->addElement(new icms_form_elements_Label(_MD_FILENAME, $tform['tpl_file']));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement(new icms_form_elements_Hidden('redirect', 'edittpl'));

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($button_tray);

Call to method __construct from undeclared class \icms_form_elements_Label
Open

$form->addElement(new icms_form_elements_Label(_MD_LASTMOD, formatTimestamp($tform['tpl_lastmodified'], 'l')));

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$form->addElement(new icms_form_elements_Hidden('id', $tform['tpl_id']));

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$form->addElement(new icms_form_elements_Hidden('op', 'edittpl_go'));

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$form->addElement(new icms_form_elements_Hidden('redirect', 'edittpl'));

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement(new icms_form_elements_Button('', 'previewtpl', _MD_VIEW, 'submit'));

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

if ($tform['tpl_tplset'] == 'default') $config["is_editable"] = FALSE;

TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
Open

    $form = new icms_form_Theme(_MD_EDITTEMPLATE, 'template_form', 'admin.php', 'post', TRUE);

TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
Open

    $form = new icms_form_Theme(_MD_VIEWTEMPLATE, 'template_form', 'admin.php', 'post', TRUE);

Inline control structures are not allowed
Open

if ($tform['tpl_tplset'] == 'default') $config["is_editable"] = FALSE;

There are no issues that match your filters.

Category
Status