<?php
namespace App\Form\Input; class Autocomplete_Data_DocumentSeries extends \Engine\Form\Input\Autocomplete_Data_GeneralAbstract { protected function getPageResultsBulk() :array { $documentSeriesListObj = new \App\EntityList\DocumentSeries(); $documentSeriesListObj->applyUserRestriction(false); $documentSeriesListObj->setColumns(['series.code', 'series.nextNumber']); $documentSeriesListObj->setFilter('series.code', 'LIKE', "{$this->searchString}%"); $documentSeriesListObj->setOrderBy('series.code', 'ASC'); $documentSeriesListObj->setLimit($this->offset, $this->resultsCountPage); return $this->executeSqlEntityList($documentSeriesListObj); } protected function getPageResultsFormatted(Array $pageResults) { $list = []; foreach($pageResults as $row) { $extra = $row['nextNumber']; $list[] = $this->getCleanItem($row['id'], $row['code'], $extra, ''); } return $list; } } 