Méthode | Description | |
---|---|---|
__construct ( |
Constructor. | |
add ( Bolt\Filesystem\Handler\FileInterface | string $filename, Bolt\Filesystem\Handler\FileInterface &$removed = null ) : Bolt\Filesystem\Handler\FileInterface | Add a file to the stack. | |
contains ( Bolt\Filesystem\Handler\FileInterface | string $filename ) : boolean | Check if a given file is present on the stack. | |
count ( ) | ||
delete ( Bolt\Filesystem\Handler\FileInterface | string $filename ) | Delete a file from the stack. | |
getIterator ( ) | ||
getList ( array $types = [] ) : Bolt\Filesystem\Handler\FileInterface[] | Returns the list of files in the stack, filtered by type (if given). | |
isStackable ( Bolt\Filesystem\Handler\FileInterface | string $filename ) : boolean | Check if a given file can be added to the stack. |
Méthode | Description | |
---|---|---|
hydrateList ( string[] $paths ) : Bolt\Filesystem\Handler\FileInterface[] | Converts a list of paths to file objects. | |
initialize ( ) | Initialize file list for current user, either from session or database. | |
persist ( ) | Persist the contents of the current stack to the session, as well as the database. | |
persistableList ( ) : string[] | Returns the list of files as full paths. |
public __construct ( |
||
$matcher | ||
$users | ||
$session | Symfony\Component\HttpFoundation\Session\SessionInterface | |
$acceptedFileTypes | string[] |
public add ( Bolt\Filesystem\Handler\FileInterface | string $filename, Bolt\Filesystem\Handler\FileInterface &$removed = null ) : Bolt\Filesystem\Handler\FileInterface | ||
$filename | Bolt\Filesystem\Handler\FileInterface | string | The file to add. |
$removed | Bolt\Filesystem\Handler\FileInterface | Returns the removed file, if one was removed. |
Résultat | Bolt\Filesystem\Handler\FileInterface | If filename cannot be matched to filesystem. |
public isStackable ( Bolt\Filesystem\Handler\FileInterface | string $filename ) : boolean | ||
$filename | Bolt\Filesystem\Handler\FileInterface | string | |
Résultat | boolean |