* @return array
* @throws \Exception
*/
- public static function select(array $fields = [], array $condition = [], array $params = [])
+ public static function selectToArray(array $fields = [], array $condition = [], array $params = [])
{
- $statement = DBA::select('contact', $fields, $condition, $params);
-
- return DBA::toArray($statement);
+ return DBA::selectToArray('contact', $fields, $condition, $params);
}
/**
$pager = new Pager($a->query_string, 30);
- $contacts = Model\Contact::select([], $condition, ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]]);
+ $contacts = Model\Contact::selectToArray([], $condition, ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]]);
$t = Renderer::getMarkupTemplate('admin/blocklist/contact.tpl');
$o = Renderer::replaceMacros($t, [