YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/AdvancedPermission/models/Module.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class Settings_AdvancedPermission_Module_Model extends Settings_Vtiger_Module_Model

The class Settings_AdvancedPermission_Module_Model is not named in CamelCase.
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'];

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

    public $baseTable = 'a_yf_adv_permission';

Line exceeds 120 characters; contains 155 characters
Open

    public $listFields = ['name' => 'LBL_NAME', 'tabid' => 'LBL_MODULE', 'status' => 'LBL_STATUS', 'action' => 'LBL_ACTION', 'priority' => 'LBL_PRIORITY'];

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getCreateRecordUrl()

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    public static $status = [0 => 'FL_ACTIVE', 1 => 'FL_INACTIVE'];

Spaces must be used to indent lines; tabs are not allowed
Open

     * Function to get the url for default view of the module.

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

     * Function to get the url for create view of the module.

Spaces must be used to indent lines; tabs are not allowed
Open

    public $baseIndex = 'id';

Spaces must be used to indent lines; tabs are not allowed
Open

    public static $action = [0 => 'FL_UNLOCK_RECORD', 1 => 'FL_LOCK_RECORD'];

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string URL

Spaces must be used to indent lines; tabs are not allowed
Open

    public function getDefaultUrl()

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string URL

Spaces must be used to indent lines; tabs are not allowed
Open

    public $name = 'AdvancedPermission';

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'index.php?module=AdvancedPermission&parent=Settings&view=Edit';

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    public $listFields = ['name' => 'LBL_NAME', 'tabid' => 'LBL_MODULE', 'status' => 'LBL_STATUS', 'action' => 'LBL_ACTION', 'priority' => 'LBL_PRIORITY'];

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

        return 'index.php?module=AdvancedPermission&parent=Settings&view=List';

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

    public static $priority = [0 => 'Low', 1 => 'Medium', 2 => 'High'];

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Class name "Settings_AdvancedPermission_Module_Model" is not in camel caps format
Open

class Settings_AdvancedPermission_Module_Model extends Settings_Vtiger_Module_Model

There are no issues that match your filters.

Category
Status