Revize 554
Přidáno uživatelem Michal Kliment před téměř 15 roky(ů)
freenetis/trunk/kohana/application/models/subnet.php | ||
---|---|---|
*/
|
||
public function get_all_subnets($limit_from = 0, $limit_results = 50, $order_by = 'id', $order_by_direction = 'ASC', $filter_values = array())
|
||
{
|
||
if ($order_by == "network_address")
|
||
$order_by = 'inet_aton(network_address)';
|
||
$where = '';
|
||
foreach($filter_values as $key => $value)
|
||
{
|
||
if ($key == 'name')
|
||
$key = 's.name';
|
||
|
||
if($key!='submit')
|
||
{
|
||
if ($where == '')
|
freenetis/trunk/kohana/application/controllers/subnets.php | ||
---|---|---|
* @param $page
|
||
* @return unknown_type
|
||
*/
|
||
function show_all($limit_results = 200, $order_by = 'id', $order_by_direction = 'ASC', $page_word = null, $page = 1)
|
||
function show_all($limit_results = 200, $order_by = 'network_address', $order_by_direction = 'ASC', $page_word = null, $page = 1)
|
||
{
|
||
if (!$this->acl_check_view('Devices_Controller', 'subnet'))
|
||
Controller::error(ACCESS);
|
Také k dispozici: Unified diff
Opraveno razeni subnetu podle adresy site.