示例#1
0
 public function getAllDepots()
 {
     try {
         return \Akzo\Geography\Depot::orderBy('zone_id', 'ASC')->orderBy('name', 'ASC')->get()->all();
     } catch (\PDOException $e) {
         $GLOBALS['logger']->info("Error: " . $e->getMessage());
         throw new \InvalidArgumentException(\Akzo\Product\ErrorMessages::PROCESS_ERROR, \Native5\Core\Http\StatusCodes::BAD_REQUEST);
     }
 }