YetiForceCompany/YetiForceCRM

View on GitHub
modules/Documents/models/Relation.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
/**
 * Relation Model Class.
 *
 * @copyright YetiForce S.A.
 * @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>
 */

/**
 * Class Documents_Relation_Model.
 */
class Documents_Relation_Model extends Vtiger_Relation_Model
{
    /**
     * Set exceptional data.
     */
    public function setExceptionData()
    {
        $data = [
            'tabid' => $this->getParentModuleModel()->getId(),
            'related_tabid' => $this->getRelationModuleModel()->getId(),
            'name' => 'getRelatedRecord',
            'actions' => 'ADD, SELECT',
            'modulename' => $this->getParentModuleModel()->getName(),
        ];
        $this->setData($data);
    }
}