libAllure
 
Loading...
Searching...
No Matches
libAllure\ElementFile Class Reference
+ Inheritance diagram for libAllure\ElementFile:

Public Member Functions

 addSuggestedValue ($value, $caption=null)
 
 getCaption ()
 
 getFilename ()
 
 getName ()
 
 getSuggestedValues ()
 
 getType ()
 
 getValidationError ()
 
 getValue ()
 
 isRequired ()
 
 isSubmitter ()
 
 jsonSerialize ()
 
 render ()
 
 saveJpg ()
 
 savePng ()
 
 setCaption ($c)
 
 setDestination ($dir, $filename)
 
 setMaxImageBounds ($imageMaxW, $imageMaxH)
 
 setName ($newName)
 
 setOnChange ($onChange)
 
 setRequired ($v)
 
 setValidationError ($validationErrorMessage)
 
 setValue ($value)
 
 validate ()
 
 validateInternals ()
 
 wasAnythingUploaded ()
 

Static Public Member Functions

static resizeImage ($srcImage, $finW, $finH)
 

Public Attributes

 $acceptsFilter = ""
 
 $autoResize = true
 
 $description
 
 $destinationDir = '/tmp/'
 
 $destinationFilename = 'unnamed'
 
 $imageMaxH = 80
 
 $imageMaxW = 80
 
 $isImage = true
 
 $suffix
 
 $tempDir = '/tmp/libAllureImageUploads/'
 

Protected Member Functions

 afterConstruct ()
 

Protected Attributes

 $caption
 
 $enabled
 
 $isSubmitter = false
 
 $name
 
 $onChange = ''
 
 $required = false
 
 $suggestedValues = array()
 
 $value
 

Member Function Documentation

◆ render()

libAllure\ElementFile::render ( )

Reimplemented from libAllure\Element.

◆ validateInternals()

libAllure\ElementFile::validateInternals ( )

Reimplemented from libAllure\Element.

Member Data Documentation

◆ $onChange

libAllure\Element::$onChange = ''
protectedinherited

The Javascript function to call onChange (or similar).

You cannot set this value from the constructor so it has a default value.