|
|
static | registerCommand (string $command) |
| |
|
static | registerCommands (array $commands) |
| |
|
static | getRegisteredCommands () |
| |
| static | getAllCommands () |
| |
|
static | getOutputLocales () |
| |
|
static | setOutputLocale (string $name) |
| |
|
static | instantiateIfMatches (string $in) |
| |
|
static | match (string $in) |
| |
|
static | translate (string $key) |
| |
|
static | stringify ($value) |
| |
|
|
const | DIR_LANG = __DIR__."/../lang/" |
| |
|
const | REGEX_WORD_BEGIN = "(^| )" |
| |
|
const | REGEX_WORD_END = "($| |\.|!|\?)" |
| |
|
const | REGEX_YOU = "(you|ya|u)" |
| |
|
const | REGEX_FLOAT = "(\d+(\.\d+)?)" |
| |
|
const | REGEX_SPACE_OPT = " *" |
| |
|
| static array | $config |
| |
|
static array | $out_langs = [] |
| |
◆ getAllCommands()
| static Clippy\Command::getAllCommands |
( |
| ) |
|
|
static |
◆ getDefaultResponse()
| Clippy\Command::getDefaultResponse |
( |
| ) |
|
◆ getResponse()
| Clippy\Command::getResponse |
( |
| ) |
|
|
abstract |
- Since
- 0.1.8
Reimplemented in Clippy\CommandThanks, Clippy\CommandOpinion, Clippy\CommandJokeProgramming, Clippy\CommandJokeKnockKnock, Clippy\CommandJokeGeneral, Clippy\CommandImplementable, Clippy\CommandGreeting, Clippy\CommandFarewell, Clippy\CommandDefault, Clippy\CommandConvert, and Clippy\CommandArithmetics.
◆ $config
| array Clippy\Command::$config |
|
static |
Initial value:= [
"out_lang" => "en-GB",
]
- Since
- 0.1.8
The documentation for this class was generated from the following file: