Added more header options and renamed the header method in the compiler.
This commit is contained in:
@ -634,21 +634,21 @@ class Infusion extends Interpretation
|
||||
// SITE_ADMIN_VIEW_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the controller
|
||||
$this->fileContentDynamic[$nameSingleCode][$this->hhh
|
||||
. 'SITE_ADMIN_VIEW_CONTROLLER_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.admin.view.controller',
|
||||
$nameSingleCode
|
||||
);
|
||||
// SITE_ADMIN_VIEW_MODEL_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$nameSingleCode][$this->hhh
|
||||
. 'SITE_ADMIN_VIEW_MODEL_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.admin.view.model',
|
||||
$nameSingleCode
|
||||
);
|
||||
// SITE_ADMIN_VIEW_HEADER <<<DYNAMIC>>> add the header details for the view
|
||||
$this->fileContentDynamic[$nameSingleCode][$this->hhh
|
||||
. 'SITE_ADMIN_VIEW_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.admin.view',
|
||||
$nameSingleCode
|
||||
);
|
||||
@ -664,20 +664,20 @@ class Infusion extends Interpretation
|
||||
// ADMIN_VIEW_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the controller
|
||||
$this->fileContentDynamic[$nameSingleCode][$this->hhh
|
||||
. 'ADMIN_VIEW_CONTROLLER_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'admin.view.controller',
|
||||
$nameSingleCode
|
||||
);
|
||||
// ADMIN_VIEW_MODEL_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$nameSingleCode][$this->hhh
|
||||
. 'ADMIN_VIEW_MODEL_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'admin.view.model', $nameSingleCode
|
||||
);
|
||||
// ADMIN_VIEW_HEADER <<<DYNAMIC>>> add the header details for the view
|
||||
$this->fileContentDynamic[$nameSingleCode][$this->hhh
|
||||
. 'ADMIN_VIEW_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'admin.view', $nameSingleCode
|
||||
);
|
||||
|
||||
@ -1036,20 +1036,20 @@ class Infusion extends Interpretation
|
||||
// ADMIN_VIEWS_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the controller
|
||||
$this->fileContentDynamic[$nameListCode][$this->hhh
|
||||
. 'ADMIN_VIEWS_CONTROLLER_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'admin.views.controller',
|
||||
$nameListCode
|
||||
);
|
||||
// ADMIN_VIEWS_MODEL_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$nameListCode][$this->hhh
|
||||
. 'ADMIN_VIEWS_MODEL_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'admin.views.model', $nameListCode
|
||||
);
|
||||
// ADMIN_VIEWS_HEADER <<<DYNAMIC>>> add the header details for the views
|
||||
$this->fileContentDynamic[$nameListCode][$this->hhh
|
||||
. 'ADMIN_VIEWS_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'admin.views', $nameListCode
|
||||
);
|
||||
|
||||
@ -1264,21 +1264,6 @@ class Infusion extends Interpretation
|
||||
// setup the layouts
|
||||
$this->setCustomViewLayouts();
|
||||
|
||||
// ADMIN_HELPER_CLASS_HEADER
|
||||
$this->fileContentStatic[$this->hhh . 'ADMIN_HELPER_CLASS_HEADER'
|
||||
. $this->hhh]
|
||||
= $this->setHelperClassHeader('admin');
|
||||
|
||||
// SITE_HELPER_CLASS_HEADER
|
||||
$this->fileContentStatic[$this->hhh . 'SITE_HELPER_CLASS_HEADER'
|
||||
. $this->hhh]
|
||||
= $this->setHelperClassHeader('site');
|
||||
|
||||
// HELPER_EXEL
|
||||
$this->fileContentStatic[$this->hhh . 'HELPER_EXEL'
|
||||
. $this->hhh]
|
||||
= $this->setHelperExelMethods();
|
||||
|
||||
// setup custom_admin_views and all needed stuff for the site
|
||||
if (isset($this->componentData->custom_admin_views)
|
||||
&& ComponentbuilderHelper::checkArray(
|
||||
@ -1512,20 +1497,20 @@ class Infusion extends Interpretation
|
||||
// CUSTOM_ADMIN_VIEW_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the controller
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'CUSTOM_ADMIN_VIEW_CONTROLLER_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'custom.admin.view.controller',
|
||||
$view['settings']->code
|
||||
);
|
||||
// CUSTOM_ADMIN_VIEW_MODEL_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'CUSTOM_ADMIN_VIEW_MODEL_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'custom.admin.view.model', $view['settings']->code
|
||||
);
|
||||
// CUSTOM_ADMIN_VIEW_HEADER <<<DYNAMIC>>> add the header details for the view
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'CUSTOM_ADMIN_VIEW_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'custom.admin.view', $view['settings']->code
|
||||
);
|
||||
}
|
||||
@ -1534,20 +1519,20 @@ class Infusion extends Interpretation
|
||||
// CUSTOM_ADMIN_VIEWS_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the controller
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'CUSTOM_ADMIN_VIEWS_CONTROLLER_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'custom.admin.views.controller',
|
||||
$view['settings']->code
|
||||
);
|
||||
// CUSTOM_ADMIN_VIEWS_MODEL_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'CUSTOM_ADMIN_VIEWS_MODEL_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'custom.admin.views.model', $view['settings']->code
|
||||
);
|
||||
// CUSTOM_ADMIN_VIEWS_HEADER <<<DYNAMIC>>> add the header details for the view
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'CUSTOM_ADMIN_VIEWS_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'custom.admin.views', $view['settings']->code
|
||||
);
|
||||
}
|
||||
@ -1567,6 +1552,39 @@ class Infusion extends Interpretation
|
||||
$this->setCustomViewLayouts();
|
||||
}
|
||||
|
||||
// ADMIN_HELPER_CLASS_HEADER
|
||||
$this->fileContentStatic[$this->hhh . 'ADMIN_HELPER_CLASS_HEADER'
|
||||
. $this->hhh]
|
||||
= $this->setFileHeader(
|
||||
'admin.helper', 'admin'
|
||||
);
|
||||
|
||||
// ADMIN_COMPONENT_HEADER
|
||||
$this->fileContentStatic[$this->hhh . 'ADMIN_COMPONENT_HEADER'
|
||||
. $this->hhh]
|
||||
= $this->setFileHeader(
|
||||
'admin.component', 'admin'
|
||||
);
|
||||
|
||||
// SITE_HELPER_CLASS_HEADER
|
||||
$this->fileContentStatic[$this->hhh . 'SITE_HELPER_CLASS_HEADER'
|
||||
. $this->hhh]
|
||||
= $this->setFileHeader(
|
||||
'site.helper', 'site'
|
||||
);
|
||||
|
||||
// SITE_COMPONENT_HEADER
|
||||
$this->fileContentStatic[$this->hhh . 'SITE_COMPONENT_HEADER'
|
||||
. $this->hhh]
|
||||
= $this->setFileHeader(
|
||||
'site.component', 'site'
|
||||
);
|
||||
|
||||
// HELPER_EXEL
|
||||
$this->fileContentStatic[$this->hhh . 'HELPER_EXEL'
|
||||
. $this->hhh]
|
||||
= $this->setHelperExelMethods();
|
||||
|
||||
// VIEWARRAY
|
||||
$this->fileContentStatic[$this->hhh . 'VIEWARRAY' . $this->hhh]
|
||||
= PHP_EOL . implode("," . PHP_EOL, $viewarray);
|
||||
@ -1995,20 +2013,20 @@ class Infusion extends Interpretation
|
||||
// SITE_VIEW_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'SITE_VIEW_CONTROLLER_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.view.controller', $view['settings']->code
|
||||
);
|
||||
}
|
||||
// SITE_VIEW_MODEL_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'SITE_VIEW_MODEL_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.view.model', $view['settings']->code
|
||||
);
|
||||
// SITE_VIEW_HEADER <<<DYNAMIC>>> add the header details for the view
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'SITE_VIEW_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.view', $view['settings']->code
|
||||
);
|
||||
}
|
||||
@ -2023,20 +2041,20 @@ class Infusion extends Interpretation
|
||||
// SITE_VIEW_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'SITE_VIEW_CONTROLLER_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.views.controller', $view['settings']->code
|
||||
);
|
||||
}
|
||||
// SITE_VIEWS_MODEL_HEADER <<<DYNAMIC>>> add the header details for the model
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'SITE_VIEWS_MODEL_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.views.model', $view['settings']->code
|
||||
);
|
||||
// SITE_VIEWS_HEADER <<<DYNAMIC>>> add the header details for the view
|
||||
$this->fileContentDynamic[$view['settings']->code][$this->hhh
|
||||
. 'SITE_VIEWS_HEADER' . $this->hhh]
|
||||
= $this->setClassHeaders(
|
||||
= $this->setFileHeader(
|
||||
'site.views', $view['settings']->code
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user