PrimitiveFile Class Reference
[Base data types used in Form]

File uploads helper. More...

Inheritance diagram for PrimitiveFile:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 getOriginalName ()
 getMimeType ()
 clean ()
 
Returns:
PrimitiveFile

 setAllowedMimeTypes ($mimes)
 
Exceptions:
WrongArgumentException 

 addAllowedMimeType ($mime)
 
Exceptions:
WrongArgumentException 

 getAllowedMimeTypes ()
 isAllowedMimeType ()
 copyTo ($path, $name)
 copyToPath ($path)
 import ($scope)

Private Attributes

 $originalName = null
 $mimeType = null
 $allowedMimeTypes = array()


Detailed Description

File uploads helper.

Definition at line 18 of file PrimitiveFile.class.php.


Member Function Documentation

PrimitiveFile::getOriginalName (  ) 

Definition at line 25 of file PrimitiveFile.class.php.

PrimitiveFile::getMimeType (  ) 

Definition at line 30 of file PrimitiveFile.class.php.

PrimitiveFile::clean (  ) 

Returns:
PrimitiveFile

Reimplemented from BasePrimitive.

Reimplemented in PrimitiveImage.

Definition at line 38 of file PrimitiveFile.class.php.

PrimitiveFile::setAllowedMimeTypes ( mimes  ) 

Exceptions:
WrongArgumentException 

Returns:
PrimitiveFile

Definition at line 50 of file PrimitiveFile.class.php.

PrimitiveFile::addAllowedMimeType ( mime  ) 

Exceptions:
WrongArgumentException 

Returns:
PrimitiveFile

Definition at line 63 of file PrimitiveFile.class.php.

PrimitiveFile::getAllowedMimeTypes (  ) 

Definition at line 72 of file PrimitiveFile.class.php.

PrimitiveFile::isAllowedMimeType (  ) 

Definition at line 77 of file PrimitiveFile.class.php.

Referenced by import().

PrimitiveFile::copyTo ( path,
name 
)

Definition at line 85 of file PrimitiveFile.class.php.

References BasePrimitive::$name, and copyToPath().

Here is the call graph for this function:

PrimitiveFile::copyToPath ( path  ) 

Definition at line 90 of file PrimitiveFile.class.php.

Referenced by copyTo().

PrimitiveFile::import ( scope  ) 

Reimplemented from BasePrimitive.

Reimplemented in PrimitiveImage.

Definition at line 100 of file PrimitiveFile.class.php.

References BasePrimitive::import(), and isAllowedMimeType().

Here is the call graph for this function:


Member Data Documentation

PrimitiveFile::$originalName = null [private]

Definition at line 20 of file PrimitiveFile.class.php.

PrimitiveFile::$mimeType = null [private]

Definition at line 21 of file PrimitiveFile.class.php.

PrimitiveFile::$allowedMimeTypes = array() [private]

Definition at line 23 of file PrimitiveFile.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:12 2007 for onPHP by  doxygen 1.5.4