Classe technique destinée à la conception des interfaces.
More...
|
static | show ($values, $method='toString', $implode="<br/>") |
| Affiche un objet ou un tableau d'objets en appliquant au préalable la méthode $method à chacun d'entre eux. More...
|
|
static | get ($values, $method='toString', $implode="<br/>") |
| Retourne un objet ou un tableau d'objets en appliquant au préalable la méthode $method à chacun d'entre eux. More...
|
|
static | showOne ($value, $method='toString') |
| Affiche un objet $value en lui ayant au préalable appliqué la méthode $method. More...
|
|
static | getOne ($value, $method='toString') |
| Retourne un objet $value en lui ayant au préalable appliqué la méthode $method. More...
|
|
static | addDelete ($value) |
|
static | toSelect ($value) |
|
static | select ($values, $value, $first=null) |
| Retourne un objet ou un tableau d'objets sous forme de liste HTML (select) More...
|
|
static | pluriel ($singulier, $pluriel, $nb) |
| Retourne l'expression $singulier au pluriel en fonction du nombre $nb. More...
|
|
Classe technique destinée à la conception des interfaces.
- Author
- jc
Definition at line 10 of file Gui.php.
◆ addDelete()
static addDelete |
( |
|
$value | ) |
|
|
static |
- Parameters
-
- Returns
- string
Definition at line 77 of file Gui.php.
◆ get()
static get |
( |
|
$values, |
|
|
|
$method = 'toString' , |
|
|
|
$implode = "<br/>" |
|
) |
| |
|
static |
Retourne un objet ou un tableau d'objets en appliquant au préalable la méthode $method à chacun d'entre eux.
- Parameters
-
mixed | $values | Valeur(s) à afficher |
string | $method | Méthode de la classe GUI ou de la classe de $value |
string | $implode | séparateur |
Definition at line 34 of file Gui.php.
◆ getOne()
static getOne |
( |
|
$value, |
|
|
|
$method = 'toString' |
|
) |
| |
|
static |
Retourne un objet $value en lui ayant au préalable appliqué la méthode $method.
- Parameters
-
Object | $value | |
string | $method | Méthode de la classe GUI ou de la classe de $value |
Definition at line 59 of file Gui.php.
◆ pluriel()
static pluriel |
( |
|
$singulier, |
|
|
|
$pluriel, |
|
|
|
$nb |
|
) |
| |
|
static |
Retourne l'expression $singulier au pluriel en fonction du nombre $nb.
- Parameters
-
string | $singulier | |
string | $pluriel | |
int | $nb | |
Definition at line 120 of file Gui.php.
◆ select()
static select |
( |
|
$values, |
|
|
|
$value, |
|
|
|
$first = null |
|
) |
| |
|
static |
Retourne un objet ou un tableau d'objets sous forme de liste HTML (select)
- Parameters
-
mixed | $values | Valeur(s) à afficher |
string | $value | Valeur actuelle |
Definition at line 95 of file Gui.php.
◆ show()
static show |
( |
|
$values, |
|
|
|
$method = 'toString' , |
|
|
|
$implode = "<br/>" |
|
) |
| |
|
static |
Affiche un objet ou un tableau d'objets en appliquant au préalable la méthode $method à chacun d'entre eux.
- Parameters
-
mixed | $values | Valeur(s) à afficher |
string | $method | Méthode de la classe GUI ou de la classe de $value |
string | $implode | séparateur |
Definition at line 18 of file Gui.php.
◆ showOne()
static showOne |
( |
|
$value, |
|
|
|
$method = 'toString' |
|
) |
| |
|
static |
Affiche un objet $value en lui ayant au préalable appliqué la méthode $method.
- Parameters
-
Object | $value | |
string | $method | Méthode de la classe GUI ou de la classe de $value |
Definition at line 50 of file Gui.php.
◆ toSelect()
static toSelect |
( |
|
$value | ) |
|
|
static |
- Parameters
-
- Returns
- string
Definition at line 86 of file Gui.php.
The documentation for this class was generated from the following file: