pagination Nas List

This commit is contained in:
Ibnu Maksum
2023-10-24 12:30:15 +07:00
parent 37f72d881e
commit 36b47a3e8d
2 changed files with 14 additions and 15 deletions

View File

@ -43,19 +43,6 @@ class Radius
return ORM::for_table('radusergroup', 'radius');
}
public static function nasList($search = null)
{
if ($search == null) {
return ORM::for_table('nas', 'radius')->find_many();
} else {
return ORM::for_table('nas', 'radius')
->where_like('nasname', $search)
->where_like('shortname', $search)
->where_like('description', $search)
->find_many();
}
}
public static function nasAdd($name, $ip, $ports, $secret, $description = "", $type = 'other', $server = null, $community = null)
{
$n = Radius::getTableNas()->create();