Exemple #1
0
 public function getData($request)
 {
     if ($this->checkDetails($request)) {
         $restObject = new Products();
         $array = $restObject->getAllProducts($request["restaurantID"]);
         return $array;
     }
 }
Exemple #2
0
        return self::$_db;
    }
    private function __construct()
    {
    }
    private function __clone()
    {
    }
    private function __wakeup()
    {
    }
}
?>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

<?php 
$products = new Products();
echo "<pre>";
var_dump($products->getAllProducts());
echo "</pre>";
?>

</body>
</html>