modules/Settings/Roles/models/Module.php
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Settings_Roles_Module_Model extends Settings_Vtiger_Module_Model
- Exclude checks
The class Settings_Roles_Module_Model is not named in CamelCase. Open
Open
class Settings_Roles_Module_Model extends Settings_Vtiger_Module_Model
{
public $baseTable = 'vtiger_role';
public $baseIndex = 'roleid';
public $listFields = ['roleid' => 'Role Id', 'rolename' => 'Name'];
- 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
public $baseTable = 'vtiger_role';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $baseIndex = 'roleid';
- 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
public $listFields = ['roleid' => 'Role Id', 'rolename' => 'Name'];
- 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
public $name = 'Roles';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string - url
- 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
return 'index.php?module=Roles&parent=Settings&view=Index';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string - url
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function getCreateRecordUrl()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return 'index.php?module=Roles&parent=Settings&view=Index';
- 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 getDefaultUrl()
- 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
* Function to get the url for default view of the module.
- 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 the url for Create view of the module.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Class name "Settings_Roles_Module_Model" is not in camel caps format Open
Open
class Settings_Roles_Module_Model extends Settings_Vtiger_Module_Model
- Exclude checks