function getAllObjects()
 {
     $object = new subnet();
     $object->orderBy('ip');
     $object->find();
     $objectList = array();
     while ($object->fetch()) {
         $objectList[$object->id] = clone $object;
     }
     return $objectList;
 }
 function createDefaultIpRanges()
 {
     require_once ROOT_DIR . '/Drivers/marmot_inc/ipcalc.php';
     require_once ROOT_DIR . '/Drivers/marmot_inc/subnet.php';
     $subnet = new subnet();
     $subnet->find();
     while ($subnet->fetch()) {
         $subnet->update();
     }
 }