<?php
 namespace Modules\Admin\ActivityDomainCategories; class Model extends \App\Mvc\Model_ListingAbstract { public function list_execute(\App\Mvc\View\Listing\Members\Params $listingParams) { $filters = $listingParams->getFilters(); $listObj = new \App\EntityList\ActivityDomainCategories(); $listObj->setColumns(['name', 'idAddUser', 'addTime']); if ($filters['text']) { $listObj->setFilter('name', 'LIKE', "%{$filters['text']}%"); } $listObj = $this->entityList_inheritListingParams($listingParams, $listObj); $this->recordsList = $listObj->exportRecords(); $this->totalRecordsCount = $listObj->getRecordsCount(); } } 