The base class for output file glob patterns.
More...
|
static | newFromClientData (array $data) |
| This is used on the server side to create a placeholder object for globs based on a specification received from the client.
|
|
|
| $prefix |
|
| $extension |
|
| $files = [] |
|
The base class for output file glob patterns.
◆ __construct()
Shellbox\Command\OutputGlob::__construct |
( |
| $prefix, |
|
|
| $extension ) |
- Parameters
-
string | $prefix | |
string | $extension | |
◆ getClientData()
Shellbox\Command\OutputGlob::getClientData |
( |
| ) |
|
Get JSON serializable data for client/server communication.
- Returns
- array
◆ getExtension()
Shellbox\Command\OutputGlob::getExtension |
( |
| ) |
|
◆ getFiles()
Shellbox\Command\OutputGlob::getFiles |
( |
| ) |
|
◆ getPrefix()
Shellbox\Command\OutputGlob::getPrefix |
( |
| ) |
|
◆ isMatch()
Shellbox\Command\OutputGlob::isMatch |
( |
| $boxedName | ) |
|
Determine whether a given relative path matches the glob pattern.
- Parameters
-
- Returns
- bool
◆ newFromClientData()
static Shellbox\Command\OutputGlob::newFromClientData |
( |
array | $data | ) |
|
|
static |
This is used on the server side to create a placeholder object for globs based on a specification received from the client.
Because the content is never actually populated, it's not necessary to distinguish between the different glob types.
- Parameters
-
- Returns
- OutputGlobPlaceholder
The documentation for this class was generated from the following file:
- src/Command/OutputGlob.php