$dir_path
$dir_path : string
Variante Image d'AcidVar
__construct(string $label = 'AcidVarImage', string $folder = null, array $config = array(), string $name = '')
Constructeur AcidVarImage
string | $label | étiquette |
string | $folder | chemin vers le repertoire de stockage du fichier |
array | $config | configuration |
string | $name | nom du fichier (variables magiques : NAME, ID ) |
isAValidExt(string $ext, array $t_exts = null) : boolean
Retourne true si l'exention renseignée en entrée est interprétée comme valide, retourne false sinon.
string | $ext | |
array | $t_exts | tableau d'extensions, par défaut $this->config['ext'], si false alors on accepte tout |
uploadProcess(integer $id, string $key, string $filename = null, array $tfiles = null, array $tpost = null) : boolean
Traite la procédure de chargement d'un fichier.
integer | $id | identifiant |
string | $key | paramêtre |
string | $filename | variable de récupération du nom de fichier |
array | $tfiles | Equivalent $_FILES |
array | $tpost | $_POST |
getParentForm(object $form, string $key, boolean $print = true, array $params = array(), string $start = '', string $stop = '', array $body_attrs = array())
Rajoute la variable au formulaire en entrée.
object | $form | AcidForm |
string | $key | Nom du paramétre. |
boolean | si false, utilise la valeur par défaut |
|
array | $params | attributs |
string | $start | préfixe |
string | $stop | suffixe |
array | $body_attrs | attributs à appliquer au cadre |
getForm(object $form, string $key, boolean $print = true, array $params = array(), string $start = '', string $stop = '', array $body_attrs = array()) : string
Rajoute la variable au formulaire en entrée.
object | $form | AcidForm |
string | $key | Nom du paramétre. |
boolean | si false, utilise la valeur par défaut |
|
array | $params | attributs |
string | $start | préfixe |
string | $stop | suffixe |
array | $body_attrs | attributs à appliquer au cadre |