YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/TreesManager/models/ListView.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

/**
 * Settings TreesManager ListView model class.
 *
 * @copyright YetiForce S.A.
 * @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 */
class Settings_TreesManager_ListView_Model extends Settings_Vtiger_ListView_Model
{
    /** {@inheritdoc} */
    public function loadListViewCondition(): App\Db\Query
    {
        $listQuery = $this->getBasicListQuery();
        $sourceModule = $this->get('sourceModule');
        if (!empty($sourceModule)) {
            $listQuery->where(['tabid' => \App\Module::getModuleId($sourceModule)]);
        }
        return $listQuery;
    }
}