nyroFwk  0.2
Public Member Functions | Protected Member Functions | Protected Attributes
helper_file Class Reference
Inheritance diagram for helper_file:
object helper_image

Public Member Functions

 valid (array $file, array $prm=array())
 
 getAttr ($name)
 
 setAttr ($name, $value)
 
 getCfg ()
 

Protected Member Functions

 beforeInit ()
 
 afterInit ()
 

Protected Attributes

 $cfg
 

Detailed Description

File upload helper

Definition at line 10 of file helper/file.class.php.

Member Function Documentation

◆ afterInit()

afterInit ( )
protectedinherited

Call just after the configuration initialisation

Definition at line 40 of file object.class.php.

◆ beforeInit()

beforeInit ( )
protectedinherited

Call just before the configuration initialisation

Definition at line 35 of file object.class.php.

◆ getAttr()

getAttr (   $name)
inherited

Get an attribute

Parameters
string$nameAttribute name
Returns
mixed|null The attribute or null if not set

Definition at line 48 of file object.class.php.

◆ getCfg()

getCfg ( )
inherited

Get the configuration object

Returns
config

Definition at line 67 of file object.class.php.

◆ setAttr()

setAttr (   $name,
  $value 
)
inherited

Set an attribute

Parameters
string$nameAttribute name
mixed$valueAttribute value

Definition at line 58 of file object.class.php.

◆ valid()

valid ( array  $file,
array  $prm = array() 
)

Check if the image is valid (to be used by form_fileUploaded)

Parameters
string$fileFile pathname
array$prm
Returns
bool|string True if valid or string representing the error

Definition at line 19 of file helper/file.class.php.

Field Documentation

◆ $cfg

$cfg
protectedinherited

Definition at line 17 of file object.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:21 for nyroFwk by doxygen 1.8.13