modules/Documents/models/Relation.php
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Documents_Relation_Model extends Vtiger_Relation_Model
- Exclude checks
The class Documents_Relation_Model is not named in CamelCase. Open
Open
class Documents_Relation_Model extends Vtiger_Relation_Model
{
/**
* Set exceptional data.
*/
- 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
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->setData($data);
- 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
'modulename' => $this->getParentModuleModel()->getName(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Set exceptional data.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'actions' => 'ADD, SELECT',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'tabid' => $this->getParentModuleModel()->getId(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'related_tabid' => $this->getRelationModuleModel()->getId(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'name' => 'getRelatedRecord',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function setExceptionData()
- 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
$data = [
- Exclude checks
Class name "Documents_Relation_Model" is not in camel caps format Open
Open
class Documents_Relation_Model extends Vtiger_Relation_Model
- Exclude checks