<?
/**
* Description of INDEX
*
* @author Rodrigo Agostinho
*/
require_once 'ClientsUI.php';
require_once 'ClientsDAO.php';
require_once 'ClientsDTO.php';
$clientUI = new ClientsUI();
/* INSERT NEW REGISTER
* $clientsDTO = new ClientsDTO();
* $clientsDAO = new ClientsDAO();
* $clientsDTO->setName("Rodrigo");
* $clientsDTO->setStreet("1st Street");
* $clientsDTO->setFone("1234567890");
* $clientsDAO->insert($clientsDTO);
*/
/* DELETE REGISTER
*
* $clienteDTO->ssetClient_id(1);
* $clientsDAO->insert($clientsDTO);
*
*/
/*
*
* $clienteDTO->ssetClient_id(1);
* $clientsDTO->setName("Rodrigo");
* $clientsDTO->setStreet("3rd Street");
* $clientsDTO->setFone("0987654321");
* $clientsDAO->update($clientsDTO);
*/
echo "<h3>Client list</h3>";
echo "<hr />";
//LIST ALL REGISTER
$clientUI->listAll();
?>
|