modules/OSSTimeControl/views/InRelation.php
Call to undeclared method \Vtiger_Viewer::getTemplateVars
(Did you mean expr->getTemplatePath()) Open
Open
$relatedModuleModel = $this->viewer->getTemplateVars('RELATED_MODULE');
- Exclude checks
Call to undeclared method \Vtiger_Viewer::assign
Open
Open
$this->viewer->assign('RELATED_MODULE_NAME', $relatedModuleModel->getName());
- Exclude checks
Call to undeclared method \Vtiger_Viewer::assign
Open
Open
$this->viewer->assign('RELATED_SUMMARY', $relatedModuleModel->getRelatedSummary($relationListView->getRelationQuery()));
- Exclude checks
Call to undeclared method \Vtiger_Viewer::getTemplateVars
(Did you mean expr->getTemplatePath()) Open
Open
$relationListView = $this->viewer->getTemplateVars('VIEW_MODEL');
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class OSSTimeControl_InRelation_View extends Vtiger_RelatedList_View
- Exclude checks
The class OSSTimeControl_InRelation_View is not named in CamelCase. Open
Open
class OSSTimeControl_InRelation_View extends Vtiger_RelatedList_View
{
/** {@inheritdoc} */
public function loadView()
{
- 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 parent::loadView();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$relatedModuleModel = $this->viewer->getTemplateVars('RELATED_MODULE');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->viewer->assign('RELATED_MODULE_NAME', $relatedModuleModel->getName());
- 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
$this->viewer->assign('RELATED_SUMMARY', $relatedModuleModel->getRelatedSummary($relationListView->getRelationQuery()));
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function loadView()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$relationListView = $this->viewer->getTemplateVars('VIEW_MODEL');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->viewer->view('RelatedSummary.tpl', $relatedModuleModel->getName());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
$this->viewer->assign('RELATED_SUMMARY', $relatedModuleModel->getRelatedSummary($relationListView->getRelationQuery()));
- Exclude checks
Class name "OSSTimeControl_InRelation_View" is not in camel caps format Open
Open
class OSSTimeControl_InRelation_View extends Vtiger_RelatedList_View
- Exclude checks