modules/Settings/ConfigEditor/views/Detail.php
Call to undeclared method \Vtiger_Viewer::assign
Open
Open
$viewer->assign('ACTIVE_TAB', $activeTab);
- Exclude checks
Call to undeclared method \Vtiger_Viewer::assign
Open
Open
$viewer->assign('CONFIG_NAMES', $this->getConfigNames());
- Exclude checks
Call to undeclared method \Vtiger_Viewer::assign
Open
Open
$viewer->assign('MODEL', $moduleModel);
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Settings_ConfigEditor_Detail_View extends Settings_Vtiger_Index_View
- Exclude checks
The class Settings_ConfigEditor_Detail_View is not named in CamelCase. Open
Open
class Settings_ConfigEditor_Detail_View extends Settings_Vtiger_Index_View
{
/** {@inheritdoc} */
protected $pageTitle = 'LBL_CONFIG_EDITOR';
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$moduleModel = Settings_ConfigEditor_Module_Model::getInstance()->init('Main');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$viewer->view('Detail.tpl', $qualifiedName);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$qualifiedName = $request->getModule(false);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getConfigNames(): array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($request->has('tab')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$viewer->assign('ACTIVE_TAB', $activeTab);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$viewer = $this->getViewer($request);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$viewer->assign('CONFIG_NAMES', $this->getConfigNames());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function process(App\Request $request)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $pageTitle = 'LBL_CONFIG_EDITOR';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->configNames;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$activeTab = $request->getByType('tab', \App\Purifier::STANDARD);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$activeTab = 'Main';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** @var array config names */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected $configNames = ['Relation', 'Performance', 'Branding'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Get config names.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$viewer->assign('MODEL', $moduleModel);
- Exclude checks
Class name "Settings_ConfigEditor_Detail_View" is not in camel caps format Open
Open
class Settings_ConfigEditor_Detail_View extends Settings_Vtiger_Index_View
- Exclude checks