Свойство | Type | Description | |
---|---|---|---|
$errorMessage | string | The last error message raised | |
$fileName | string | This must include the path to the file (absolute paths recommended) | |
$format | string | What the file format is (mime-type) | |
$hasError | boolean | Whether or not the current instance has any errors | |
$imported | array | An array of imported plugin objects | |
$importedFunctions | array | An array of all methods added to this class by imported plugin objects | |
$isDataStream | boolean | By "raw file data" it's meant that we're actually passing the result of something like file_get_contents() or perhaps from a database blob | |
$remoteImage | boolean | Whether or not the image is hosted remotely |
Méthode | Description | |
---|---|---|
__call ( string $method, array $args ) | Calls plugin / imported functions | |
__construct ( $fileName, $isDataStream = false ) : ThumbBase | Class constructor | |
getErrorMessage ( ) | Returns $errorMessage. | |
getFileName ( ) | Returns $fileName. | |
getFormat ( ) | Returns $format. | |
getHasError ( ) | Returns $hasError. | |
getImported ( ) : array | Returns $imported. | |
getImportedFunctions ( ) : array | Returns $importedFunctions. | |
importPlugins ( array $registry ) | Imports plugins in $registry to the class | |
setErrorMessage ( object $errorMessage ) | Sets $errorMessage. | |
setFileName ( object $fileName ) | Sets $fileName. | |
setFormat ( object $format ) | Sets $format. | |
setHasError ( object $hasError ) | Sets $hasError. |
Méthode | Description | |
---|---|---|
fileExistsAndReadable ( ) | Checks to see if $this->fileName exists and is readable | |
imports ( string $object ) | Imports a plugin | |
triggerError ( string $errorMessage ) | Sets $this->errorMessage to $errorMessage and throws an exception |
public __construct ( $fileName, $isDataStream = false ) : ThumbBase | ||
Résultat | ThumbBase |
protected fileExistsAndReadable ( ) |
public getImportedFunctions ( ) : array | ||
Résultat | array |
public importPlugins ( array $registry ) | ||
$registry | array |
public setErrorMessage ( object $errorMessage ) | ||
$errorMessage | object |
public setFileName ( object $fileName ) | ||
$fileName | object |
public setHasError ( object $hasError ) | ||
$hasError | object |
protected triggerError ( string $errorMessage ) | ||
$errorMessage | string |
protected string $errorMessage | ||
Résultat | string |
protected string $fileName | ||
Résultat | string |
protected string $format | ||
Résultat | string |
protected bool $hasError | ||
Résultat | boolean |
protected array $imported | ||
Résultat | array |
protected array $importedFunctions | ||
Résultat | array |
protected bool $isDataStream | ||
Résultat | boolean |
protected bool $remoteImage | ||
Résultat | boolean |