Overview

Packages

  • Auth
  • Config
  • Controller
  • Date
  • Db
  • Feed
    • Abstract
    • Writers
  • File
    • Decorator
  • Form
    • Element
  • Image
  • Log
    • Writer
  • Net
    • Exception
  • None
  • PHP
  • PHPMailer
  • Session
  • Util
  • Validate
    • Validator
  • Zend
    • Registry

Classes

  • Form_Element_AutoCompleter
  • Form_Element_Checkbox
  • Form_Element_Colorpicker
  • Form_Element_Date
  • Form_Element_DatePicker
  • Form_Element_Email
  • Form_Element_File
  • Form_Element_Hidden
  • Form_Element_Html
  • Form_Element_Ip
  • Form_Element_Mac
  • Form_Element_Multi
  • Form_Element_NumericStepper
  • Form_Element_Password
  • Form_Element_Radio
  • Form_Element_Select
  • Form_Element_Slider
  • Form_Element_Submit
  • Form_Element_Text
  • Form_Element_Textarea
  • Overview
  • Package
  • Class
  • Tree

Class Form_Element_File

Element File. Selection de fichier

Form_Field
Extended by Form_Input
Extended by Form_Element_File
Package: Form\Element
Category: Pry
Author: Olivier ROGER <oroger.fr>
Version: 1.1.2
Located at Form/Element/File.class.php
Methods summary
public
# __construct( string $nom, Form_Form $form )

Constructeur. Par defaut extension jpg,png,gif et taille de 2Mo

Constructeur. Par defaut extension jpg,png,gif et taille de 2Mo

Parameters

$nom
string
$form
Form_Form
public Form_Element_File
# maxFileSize( integer $size )

Défini la taille maximal de fichier autorisé

Défini la taille maximal de fichier autorisé

Parameters

$size
integer

Returns

Form_Element_File
public Form_Element_File
# flushAllowedFileType( )

Supprime toutes les extensions préenregistrées

Supprime toutes les extensions préenregistrées

Returns

Form_Element_File
public Form_Element_File
# multiple( integer $nb = 1 )

Défini le type file comme multiple

Défini le type file comme multiple

Parameters

$nb
integer
Nombre d'input

Returns

Form_Element_File

Since

1.1.0
public Form_Element_File
# allowFileType( mixed $newExt )

Ajoute une ou des extensions à accepter

Ajoute une ou des extensions à accepter

Parameters

$newExt
mixed

Returns

Form_Element_File
public boolean
# isValid( string $value )

Validation

Validation

Parameters

$value
string

Returns

boolean
public string
# __toString( )

Ecriture de l'objet

Ecriture de l'objet

Returns

string
Methods inherited from Form_Input
setAttributes()
Methods inherited from Form_Field
addClass(), addValidator(), attrsToString(), cssClass(), disabled(), getName(), getValue(), id(), info(), label(), maxlength(), newLine(), readonly(), required(), sanitizedValue(), setErrorClass(), setImgInfo(), value()
Properties inherited from Form_Field
$attrs, $class, $cssLabel, $errorClass, $errorMsg, $fieldNewLine, $form, $imgInfo, $info, $label, $labelNewLine, $required, $validator, $value
Pry Framework API documentation generated by ApiGen 2.6.1