Upgrade to v26 (#172)

* A bunch of new updates from icehrm pro

* Push changes to frontend
This commit is contained in:
Thilina Hasantha
2019-02-03 14:00:34 +01:00
committed by GitHub
parent a75325fb52
commit 16014bb38e
734 changed files with 131230 additions and 17430 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Classes\Data;
use Classes\Data\Query\DataQuery;
class DataReader
{
public static function getData(DataQuery $query)
{
$table = $query->getTable();
$sLimit = " LIMIT " . intval($query->getStartPage()) . ", " . intval($query->getLength());
$sortData = $query->getSortingData();
$data = \Classes\BaseService::getInstance()->getData(
$table,
$query->getFieldMapping(),
json_encode($query->getFilters()),
$query->getOrderBy(),
$sLimit,
json_encode($query->getColumns()),
$query->getSearchTerm(),
$query->isIsSubOrdinates(),
$query->isSkipProfileRestriction(),
$sortData
);
return $data;
}
}