示例#1
0
 public function newListItem($param)
 {
     // Init line
     $line = "";
     // Col 1
     $line .= Xlist::colUnique(['data' => $this->nation->getFlag()]);
     // Ligne 1
     $line .= Xlist::openLigne();
     // OpenLink - Nom
     $line .= Xlist::openLink(['actions' => $param['actions'], 'backUrl' => $param['backUrl'], 'route' => $param['openRoute'], 'data' => $this->fullName(), 'id' => $this->id]);
     // Hcp
     $line .= Xlist::ligneAdd(['data' => $this->hcp]);
     // Delete
     $line .= Xlist::butDelete(['actions' => $param['actions'], 'backUrl' => $param['backUrl'], 'route' => $param['deleteRoute'], 'id' => $this->id]);
     // Edit
     $line .= Xlist::butEdit(['actions' => $param['actions'], 'backUrl' => $param['backUrl'], 'route' => $param['editRoute'], 'id' => $this->id]);
     // Select
     $line .= Xlist::butSelect(['actions' => $param['actions'], 'backUrl' => $param['backUrl'], 'route' => $param['selectRoute'], 'id' => $this->id]);
     // Place
     $line .= Xlist::butPlace(['actions' => $param['actions'], 'backUrl' => $param['backUrl'], 'route' => $param['selectRoute'], 'id' => $this->id, 'moreParams' => $param['moreParams']]);
     // A la ligne
     $line .= Xlist::ligneBreak();
     // Ligne 2
     $line .= Xlist::ligneAdd(['data' => $this->sexe->icone()]);
     $line .= Xlist::ligneAdd(['data' => $this->age()]);
     $line .= Xlist::closeLigne();
     return $line;
 }