Différences
Ci-dessous, les différences entre deux révisions de la page.
php-rt:tp3 [2019/05/23 10:52] – [3.2. Chargement et affichage d'une organisation] jcheron | php-rt:tp3 [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Module M2105 - RT web dyna - TD/P 3 ====== | ====== Module M2105 - RT web dyna - TD/P 3 ====== | ||
+ | |||
+ | Fichier bat à modifier/ | ||
+ | <sxh bash> | ||
+ | set PATH=%PATH%; | ||
+ | </ | ||
< | < | ||
Ligne 288: | Ligne 293: | ||
namespace controllers; | namespace controllers; | ||
use Ubiquity\orm\DAO; | use Ubiquity\orm\DAO; | ||
+ | use models\Organization; | ||
/** | /** | ||
Ligne 295: | Ligne 301: | ||
public function index(){ | public function index(){ | ||
- | $organizations=DAO:: | + | $organizations=DAO:: |
$this-> | $this-> | ||
} | } | ||
Ligne 330: | Ligne 336: | ||
namespace controllers; | namespace controllers; | ||
use Ubiquity\orm\DAO; | use Ubiquity\orm\DAO; | ||
+ | use models\Organization; | ||
/** | /** | ||
Ligne 339: | Ligne 346: | ||
public function display($idOrga){ | public function display($idOrga){ | ||
- | $orga=DAO:: | + | $orga=DAO:: |
$this-> | $this-> | ||
} | } | ||
Ligne 377: | Ligne 384: | ||
public function display($idOrga){ | public function display($idOrga){ | ||
- | $orga=DAO:: | + | $orga=DAO:: |
$this-> | $this-> | ||
} | } | ||
Ligne 455: | Ligne 462: | ||
public function display($idOrga, | public function display($idOrga, | ||
- | $orga=DAO:: | + | $orga=DAO:: |
$users=$this-> | $users=$this-> | ||
$this-> | $this-> | ||
Ligne 488: | Ligne 495: | ||
protected function users($idOrga, | protected function users($idOrga, | ||
if(isset($idGroupe)){ | if(isset($idGroupe)){ | ||
- | $group=DAO:: | + | $group=DAO:: |
$title=$group-> | $title=$group-> | ||
$users=DAO:: | $users=DAO:: | ||
Ligne 504: | Ligne 511: | ||
... | ... | ||
public function display($idOrga, | public function display($idOrga, | ||
- | $orga=DAO:: | + | $orga=DAO:: |
$users=$this-> | $users=$this-> | ||
$this-> | $this-> |