PHP Class Sirius\Upload\Container\Local

Inheritance: implements Sirius\Upload\Container\ContainerInterface
Afficher le fichier Open project: siriusphp/upload

Protected Properties

Свойство Type Description
$baseDirectory

Méthodes publiques

Méthode Description
__construct ( $baseDirectory )
delete ( string $file ) : boolean Delete the file from the container
has ( string $file ) : boolean This will check if a file is in the container
isWritable ( ) Check if the container is writable
moveUploadedFile ( string $localFile, string $destination ) : boolean Moves a temporary uploaded file to a destination in the container
save ( string $file, string $content ) : boolean Saves the $content string as a file

Méthodes protégées

Méthode Description
ensureDirectory ( $directory )
normalizePath ( $path )

Method Details

__construct() public méthode

public __construct ( $baseDirectory )

delete() public méthode

Delete the file from the container
public delete ( string $file ) : boolean
$file string
Résultat boolean

ensureDirectory() protected méthode

protected ensureDirectory ( $directory )

has() public méthode

This will check if a file is in the container
public has ( string $file ) : boolean
$file string
Résultat boolean

isWritable() public méthode

Check if the container is writable
public isWritable ( )

moveUploadedFile() public méthode

Moves a temporary uploaded file to a destination in the container
public moveUploadedFile ( string $localFile, string $destination ) : boolean
$localFile string local path
$destination string
Résultat boolean

normalizePath() protected méthode

protected normalizePath ( $path )

save() public méthode

Saves the $content string as a file
public save ( string $file, string $content ) : boolean
$file string
$content string
Résultat boolean

Property Details

$baseDirectory protected_oe property

protected $baseDirectory