private static function renderList($pa) { $sts = ADB::getStatuses(); $blk = ADB::getBlocked(); $out = ''; foreach ($pa as $p) { $row = ''; if (count($p['contacts']) > 0) { $cts = array(); foreach ($p['contacts'] as $c) { $cts[] = $c['number']; } $p['contacts'] = implode(', ', $cts); } else { $p['contacts'] = ''; } $p['status'] = !empty($p['status']) ? $sts[$p['status']] : ''; $p['blocked'] = isset($p['blocked']) ? $blk[$p['blocked']] : ''; $out .= Utils::at($p, 'prow'); } return $out; }