pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($alwaysDisplay, $message, $language) | |
getLanguage () | |
getMessage () | |
mustAlwaysDisplay () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Public Member Functions | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$alwaysDisplay | |
Whether to always display the message or not. | |
$language | |
Language the debug message is written into (from RFC 3066). | |
$message | |
Actual debug message. | |
fpoirotte\Pssht\Messages\DEBUG::__construct | ( | $alwaysDisplay, | |
$message, | |||
$language | |||
) |
Construct a new debug message.
bool | $alwaysDisplay | Indicates whether the debug message should always be shown to users (true) or if it may be hidden (false). |
string | $message | The actual debug message, in ISO-10646 UTF-8 encoding. |
string | $language | Language tag the debug message is written into, in RFC 3066 format. |
Definition at line 43 of file DEBUG.php.
References fpoirotte\Pssht\Messages\DEBUG\$alwaysDisplay, fpoirotte\Pssht\Messages\DEBUG\$language, and fpoirotte\Pssht\Messages\DEBUG\$message.
fpoirotte\Pssht\Messages\DEBUG::getLanguage | ( | ) |
Get the language for the debug message.
string | Language tag the debug message is written into, in RFC 3066 format. |
Definition at line 113 of file DEBUG.php.
References fpoirotte\Pssht\Messages\DEBUG\$language.
fpoirotte\Pssht\Messages\DEBUG::getMessage | ( | ) |
Get the actual debug message.
string | Debug message. |
Definition at line 101 of file DEBUG.php.
References fpoirotte\Pssht\Messages\DEBUG\$message.
|
static |
Retrieve the message's identifier.
int | Message identifier. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
fpoirotte\Pssht\Messages\DEBUG::mustAlwaysDisplay | ( | ) |
Retrieve the flag indicating whether this debug message should always be displayed to users or not.
bool | true if the message should always be displayed, false otherwise. |
Definition at line 90 of file DEBUG.php.
References fpoirotte\Pssht\Messages\DEBUG\$alwaysDisplay.
fpoirotte\Pssht\Messages\DEBUG::serialize | ( | \fpoirotte\Pssht\Wire\Encoder | $encoder | ) |
Serialize the message.
fpoirotte::Pssht::Wire::Encoder | $encoder | Encoder to use to perform serialization. |
MessageInterface | Returns this message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
|
static |
Unserialize some data into a message.
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder to use to perform unserialization. |
MessageInterface | Unserialized message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 73 of file DEBUG.php.
Referenced by fpoirotte\Pssht\Handlers\DEBUG\handle().