Skip to content
Snippets Groups Projects
Commit 7a26c1e0 authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

wip

parent 837ad6c8
No related branches found
No related tags found
No related merge requests found
......@@ -13,4 +13,10 @@ class Client extends Personne
{
$this->numTel = $numTel;
}
public static function getAll()
{
// TODO return list of objects Client
return Array();
}
}
\ No newline at end of file
<?php
/*
Controller personne, handle CRUD for personnel and client.
*/
// Implemented actions
$actions = array("listePersonnel", "listeClient", "addPersonnel", "addClient", "editPersonnel", "editClient");
// Check action is correct
if(!in_array($action, $actions)) {
$action = "listePersonnel";
}
switch($action) {
case "listePersonnel":
break;
case "listeClient":
$listArray = Client::getAll();
$listParams = array();
include 'view/list.php';
break;
case "addPersonnel":
break;
case "addClient":
break;
default:
include 'view/404.php';
break;
}
Afficher une liste ! (TODO)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment