<?php
 namespace Modules\TaskManagement\OperationTypes; 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\TaskOperationTypes(); $listObj->setColumns(['description', 'idAddUser', 'addTime']); if ($filters['text']) { $listObj->setFilter('description', 'LIKE', "%{$filters['text']}%"); } $listObj = $this->entityList_inheritListingParams($listingParams, $listObj); $this->recordsList = $listObj->exportRecords(); $this->totalRecordsCount = $listObj->getRecordsCount(); } } 