modules/Settings/AdvancedPermission/models/ListView.php
Call to undeclared method \Settings_Vtiger_Module_Model::getCreateRecordUrl
Open
Open
'linkurl' => $moduleModel->getCreateRecordUrl(),
- Exclude checks
Avoid excessively long class names like Settings_AdvancedPermission_ListView_Model. Keep class name length under 40. Open
Open
class Settings_AdvancedPermission_ListView_Model extends Settings_Vtiger_ListView_Model
{
/**
* Function to get Basic links.
*
- Read upRead up
- Exclude checks
LongClassName
Since: 2.9
Detects when classes or interfaces are declared with excessively long names.
Example
class ATooLongClassNameThatHintsAtADesignProblem {
}
interface ATooLongInterfaceNameThatHintsAtADesignProblem {
}
Source https://phpmd.org/rules/naming.html#longclassname
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Settings_AdvancedPermission_ListView_Model extends Settings_Vtiger_ListView_Model
- Exclude checks
The class Settings_AdvancedPermission_ListView_Model is not named in CamelCase. Open
Open
class Settings_AdvancedPermission_ListView_Model extends Settings_Vtiger_ListView_Model
{
/**
* Function to get Basic links.
*
- 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
/**
- Exclude checks
Line exceeds 120 characters; contains 148 characters Open
Open
'linkurl' => 'javascript:app.showModalWindow(null, \'index.php?module=AdvancedPermission&parent=Settings&view=RecalculatePermission\')',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $basicLinks;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$moduleModel = $this->getModule();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'linklabel' => 'LBL_ADD_RECORD',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'linktype' => 'LISTVIEWBASIC',
- 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
$basicLinks = [];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'linkurl' => $moduleModel->getCreateRecordUrl(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'linkurl' => 'javascript:app.showModalWindow(null, \'index.php?module=AdvancedPermission&parent=Settings&view=RecalculatePermission\')',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'linkicon' => 'yfi-advenced-custom-view-conditionsmk',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$basicLinks[] = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'linklabel' => 'LBL_RECALCULATE_PERMISSION_BTN',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$basicLinks[] = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'linkicon' => 'btn-light',
- 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
'linktype' => 'LISTVIEWBASIC',
- 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
* Function to get Basic links.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return array of Basic links
- 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
if ($moduleModel->hasCreatePermissions()) {
- 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
public function getBasicLinks()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
];
- Exclude checks
Class name "Settings_AdvancedPermission_ListView_Model" is not in camel caps format Open
Open
class Settings_AdvancedPermission_ListView_Model extends Settings_Vtiger_ListView_Model
- Exclude checks