Public Member Functions | ||||
getOriginalName () | ||||
getMimeType () | ||||
clean () | ||||
| ||||
setAllowedMimeTypes ($mimes) | ||||
| ||||
addAllowedMimeType ($mime) | ||||
| ||||
getAllowedMimeTypes () | ||||
isAllowedMimeType () | ||||
copyTo ($path, $name) | ||||
copyToPath ($path) | ||||
import ($scope) | ||||
Private Attributes | ||||
$originalName = null | ||||
$mimeType = null | ||||
$allowedMimeTypes = array() |
Definition at line 18 of file PrimitiveFile.class.php.
PrimitiveFile::getOriginalName | ( | ) |
Definition at line 25 of file PrimitiveFile.class.php.
PrimitiveFile::getMimeType | ( | ) |
Definition at line 30 of file PrimitiveFile.class.php.
PrimitiveFile::clean | ( | ) |
Reimplemented from BasePrimitive.
Reimplemented in PrimitiveImage.
Definition at line 38 of file PrimitiveFile.class.php.
PrimitiveFile::setAllowedMimeTypes | ( | $ | mimes | ) |
WrongArgumentException |
Definition at line 50 of file PrimitiveFile.class.php.
PrimitiveFile::addAllowedMimeType | ( | $ | mime | ) |
WrongArgumentException |
Definition at line 63 of file PrimitiveFile.class.php.
PrimitiveFile::getAllowedMimeTypes | ( | ) |
Definition at line 72 of file PrimitiveFile.class.php.
PrimitiveFile::isAllowedMimeType | ( | ) |
PrimitiveFile::copyTo | ( | $ | path, | |
$ | name | |||
) |
Definition at line 85 of file PrimitiveFile.class.php.
References BasePrimitive::$name, and copyToPath().
PrimitiveFile::copyToPath | ( | $ | path | ) |
PrimitiveFile::import | ( | $ | scope | ) |
Reimplemented from BasePrimitive.
Reimplemented in PrimitiveImage.
Definition at line 100 of file PrimitiveFile.class.php.
References BasePrimitive::import(), and isAllowedMimeType().
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.