Myfiles
extends Myfiles
in package
Uses
ExtensionsTrait
Class created by Core/Base/PluginDeploy
Tags
Table of Contents
- $extensions : array<string|int, mixed>
- Stores class extensions.
- $filePath : string
- __call() : mixed
- Executes the first matched extension.
- __construct() : mixed
- addExtension() : mixed
- getPageData() : array<string|int, mixed>
- isFileSafe() : bool
- pipe() : mixed
- pipeFalse() : bool
- run() : void
- getMime() : string
- isSvg() : bool
Properties
$extensions
Stores class extensions.
protected
static array<string|int, mixed>
$extensions
= []
$filePath
private
string
$filePath
= ''
Methods
__call()
Executes the first matched extension.
public
__call(string $name[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed> = []
Tags
Return values
mixed —__construct()
public
__construct(string $className[, string $url = '' ]) : mixed
Parameters
- $className : string
- $url : string = ''
Return values
mixed —addExtension()
public
static addExtension(mixed $extension) : mixed
Parameters
- $extension : mixed
Return values
mixed —getPageData()
public
getPageData() : array<string|int, mixed>
Return values
array<string|int, mixed> —isFileSafe()
public
static isFileSafe(string $filePath) : bool
Parameters
- $filePath : string
Return values
bool —pipe()
public
pipe(string $name, array<string|int, mixed> ...$arguments) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Return values
mixed —pipeFalse()
public
pipeFalse(string $name, array<string|int, mixed> ...$arguments) : bool
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Return values
bool —run()
public
run() : void
Return values
void —getMime()
private
getMime(string $filePath) : string
Parameters
- $filePath : string
Return values
string —isSvg()
private
isSvg(string $filePath) : bool
Parameters
- $filePath : string