modules/Settings/AdvancedPermission/models/Module.php
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Settings_AdvancedPermission_Module_Model extends Settings_Vtiger_Module_Model
- Exclude checks
The class Settings_AdvancedPermission_Module_Model is not named in CamelCase. Open
Open
class Settings_AdvancedPermission_Module_Model extends Settings_Vtiger_Module_Model
{
public $baseTable = 'a_yf_adv_permission';
public $baseIndex = 'id';
public $listFields = ['name' => 'LBL_NAME', 'tabid' => 'LBL_MODULE', 'status' => 'LBL_STATUS', 'action' => 'LBL_ACTION', 'priority' => 'LBL_PRIORITY'];
- 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 = 'a_yf_adv_permission';
- Exclude checks
Line exceeds 120 characters; contains 155 characters Open
Open
public $listFields = ['name' => 'LBL_NAME', 'tabid' => 'LBL_MODULE', 'status' => 'LBL_STATUS', 'action' => 'LBL_ACTION', 'priority' => 'LBL_PRIORITY'];
- 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
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static $status = [0 => 'FL_ACTIVE', 1 => 'FL_INACTIVE'];
- 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
public $baseIndex = 'id';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static $action = [0 => 'FL_UNLOCK_RECORD', 1 => 'FL_LOCK_RECORD'];
- 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 getDefaultUrl()
- 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 $name = 'AdvancedPermission';
- 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=AdvancedPermission&parent=Settings&view=Edit';
- 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 = ['name' => 'LBL_NAME', 'tabid' => 'LBL_MODULE', 'status' => 'LBL_STATUS', 'action' => 'LBL_ACTION', 'priority' => 'LBL_PRIORITY'];
- 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
return 'index.php?module=AdvancedPermission&parent=Settings&view=List';
- 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 static $priority = [0 => 'Low', 1 => 'Medium', 2 => 'High'];
- 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
Class name "Settings_AdvancedPermission_Module_Model" is not in camel caps format Open
Open
class Settings_AdvancedPermission_Module_Model extends Settings_Vtiger_Module_Model
- Exclude checks