File
Trait for components handling files
Table of Contents
Properties
| $allowed_paths |
Methods
| addAllowedPath() | Adds a new path to the whitelist of allowed paths |
| getAllowedPaths() | Returns an array of all allowed paths |
| removeAllowedPath() | Removes an existing path from the whitelist of allowed paths |
| setAllowedPaths() | Sets an array of paths, as the whitelist of allowed paths |
Methods
addAllowedPath()
Adds a new path to the whitelist of allowed paths
public
addAllowedPath(mixed $path) : mixed
Parameters
- $path : mixed
getAllowedPaths()
Returns an array of all allowed paths
public
getAllowedPaths() : array<string|int, mixed>
Return values
array<string|int, mixed>removeAllowedPath()
Removes an existing path from the whitelist of allowed paths
public
removeAllowedPath(mixed $path) : mixed
Parameters
- $path : mixed
setAllowedPaths()
Sets an array of paths, as the whitelist of allowed paths
public
setAllowedPaths(array<string|int, mixed> $paths) : mixed
Parameters
- $paths : array<string|int, mixed>