modules/Settings/Profiles/models/Module.php
Saw unextractable annotation for comment '* @return <array> list of modules'</array>
Open
Open
* @return <Array> list of modules
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Settings_Profiles_Module_Model extends Settings_Vtiger_Module_Model
- Exclude checks
The class Settings_Profiles_Module_Model is not named in CamelCase. Open
Open
class Settings_Profiles_Module_Model extends Settings_Vtiger_Module_Model
{
public $baseTable = 'vtiger_profile';
public $baseIndex = 'profileid';
public $listFields = ['profilename' => 'Name', 'description' => 'Description'];
- 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
return 'index.php?module=Profiles&parent=Settings&view=Edit';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $baseIndex = 'profileid';
- 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
const FIELD_ACTIVE = 0;
- 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
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
public $listFields = ['profilename' => 'Name', 'description' => 'Description'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
const GLOBAL_ACTION_VIEW = 1;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
const NOT_PERMITTED_VALUE = 1;
- 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
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 function getNonVisibleModulesList()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
const GLOBAL_ACTION_EDIT = 2;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
const FIELD_READWRITE = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
const FIELD_READONLY = 1;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return <Array> list of modules
- 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=Profiles&parent=Settings&view=List';
- 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
* Function to get non visible modules 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
* @return string - url
- 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 $baseTable = 'vtiger_profile';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
const FIELD_INACTIVE = 1;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $name = 'Profiles';
- 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
}
- 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
const GLOBAL_ACTION_DEFAULT_VALUE = 1;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
const IS_PERMITTED_VALUE = 0;
- 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 ['ModTracker', 'Import', 'Home', 'OSSMailScanner'];
- Exclude checks
Class name "Settings_Profiles_Module_Model" is not in camel caps format Open
Open
class Settings_Profiles_Module_Model extends Settings_Vtiger_Module_Model
- Exclude checks