Added voicenumber select in Order
This commit is contained in:
@@ -37,12 +37,18 @@ class VoicenumberblockModel {
|
||||
return $model;
|
||||
}
|
||||
|
||||
public static function getAll() {
|
||||
public static function getAll($order = "countrycode,areacode,first,last") {
|
||||
$items = [];
|
||||
|
||||
$db = FronkDB::singleton();
|
||||
|
||||
$res = $db->select("Voicenumberblock", "*");
|
||||
$order_by = "";
|
||||
|
||||
if($order) {
|
||||
$order_by = $order;
|
||||
}
|
||||
|
||||
$res = $db->select("Voicenumberblock", "*", "1=1 ORDER BY $order_by");
|
||||
if($db->num_rows($res)) {
|
||||
while($data = $db->fetch_object($res)) {
|
||||
$items[] = new Voicenumberblock($data);
|
||||
|
||||
Reference in New Issue
Block a user