<?php
require_once("classes/Wine.class.php");
require_once("header.php");
/**
* getAll returns all objects of a given type (1. parameter : classname), sorted by a given "order" (parameter 2)
*
* If the optional third boolean parameter is ignored, getAll is ignoring inheritence and agregation
* to speed up the results.
*
* Note : the second parameter, "order", uses database table fields, not class members (will be fixed in future versions)
*
*/
// lets phpersistence do the job...
$persistence = new Persistence();
$products = $persistence->getAll("Product", "price");
// done!
// Logger::debug prints a dump of the object
Logger::debug($products);
?>