Shellbox
Library and server for containerized shell execution
|
The base class for output file glob patterns. More...
Public Member Functions | |
__construct ( $prefix, $extension) | |
getOutputFile ( $boxedName) | |
Get an OutputFile corresponding to a single file that matches the glob. | |
getPrefix () | |
getExtension () | |
getId () | |
getClientData () | |
Get JSON serializable data for client/server communication. | |
getFiles () | |
isMatch ( $boxedName) | |
Determine whether a given relative path matches the glob pattern. | |
Static Public Member Functions | |
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. | |
Protected Attributes | |
$prefix | |
$extension | |
$files = [] | |
The base class for output file glob patterns.
Shellbox\Command\OutputGlob::getClientData | ( | ) |
Get JSON serializable data for client/server communication.
Reimplemented in Shellbox\Command\OutputGlobToUrl.
Shellbox\Command\OutputGlob::getExtension | ( | ) |
Shellbox\Command\OutputGlob::getFiles | ( | ) |
|
abstract |
Get an OutputFile corresponding to a single file that matches the glob.
Reimplemented in Shellbox\Command\OutputGlobPlaceholder, Shellbox\Command\OutputGlobToFile, Shellbox\Command\OutputGlobToString, and Shellbox\Command\OutputGlobToUrl.
Shellbox\Command\OutputGlob::getPrefix | ( | ) |
Shellbox\Command\OutputGlob::isMatch | ( | $boxedName | ) |
Determine whether a given relative path matches the glob pattern.
string | $boxedName |
|
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.