Property | Type | Description | |
---|---|---|---|
$arguments | array | Arguments included with the message | |
$hostmask | Phergie_Hostmask | Hostmask representing the originating user, if applicable | |
$map | array | Mapping of event types to their named parameters | |
$rawData | string | Raw data sent by the server |
Method | Description | |
---|---|---|
__call ( string $name, array $arguments ) : mixed | Provides access to named parameters via virtual "getter" methods. | |
getArgument ( mixed $argument ) : string | null | Returns a single specified argument for the request. | |
getArgumentMapping ( ) : array | Returns a mapping of commands to their respective arguments. | |
getArguments ( ) : array | Returns the arguments for the request. | |
getHostmask ( ) : Phergie_Event_Request | null | Returns the hostmask representing the originating user. | |
getNick ( ) : string | Returns the nick of the user who originated the event. | |
getRawData ( ) : string | Returns the raw buffer sent from the server for the event. | |
getSource ( ) : string | Returns the channel name if the event occurred in a channel or the user nick if the event was a private message directed at the bot by a user. | |
isFromServer ( ) : TRUE | Returns whether or not the event originated from the server. | |
isFromUser ( ) : TRUE | Returns whether or not the event originated from a user. | |
isInChannel ( ) : TRUE | Returns whether or not the event occurred within a channel. | |
offsetExists ( string | integer $offset ) : boolean | Checks to see if an event argument is assigned a value. | |
offsetGet ( string | integer $offset ) : string | null | Returns the value of an event argument. | |
offsetSet ( string | integer $offset, string $value ) : void | Sets the value of an event argument. | |
offsetUnset ( string | integer $offset ) : void | Removes the value set for an event argument. | |
removeArgument ( mixed $argument ) : Phergie_Event_Request | Removes an argument value from the request. | |
setArgument ( mixed $argument, string $value ) : Phergie_Event_Request | Sets the value of a single argument for the request. | |
setArguments ( array $arguments ) : Phergie_Event_Request | Sets the arguments for the request. | |
setHostmask ( Phergie_Hostmask $hostmask ) : Phergie_Event_Request | Sets the hostmask representing the originating user. | |
setRawData ( string $buffer ) : Phergie_Event_Request | Sets the raw buffer for the event. |
Method | Description | |
---|---|---|
isChannelName ( string $string ) : boolean | Determines whether a given string is a valid IRC channel name. | |
resolveArgument ( mixed $argument ) : integer | Resolves an argument specification to an integer position. |
public static getArgumentMapping ( ) : array | ||
return | array | Associative array keyed by command referencing an associative array keyed by argument name referencing its position starting from 0 |
public getArguments ( ) : array | ||
return | array |
public getHostmask ( ) : Phergie_Event_Request | null | ||
return | Phergie_Event_Request | null | Hostmask or NULL if none was set |
public getRawData ( ) : string | ||
return | string |
protected isChannelName ( string $string ) : boolean | ||
$string | string | String to analyze |
return | boolean | TRUE if $string contains a valid channel name, FALSE otherwise |
public isFromServer ( ) : TRUE | ||
return | TRUE | if the event is from the server, FALSE otherwise |
public isFromUser ( ) : TRUE | ||
return | TRUE | if the event is from a user, FALSE otherwise |
public isInChannel ( ) : TRUE | ||
return | TRUE | if the event is in a channel, FALSE otherwise |
public removeArgument ( mixed $argument ) : Phergie_Event_Request | ||
$argument | mixed | Integer position (starting from 0) or the equivalent string name of the argument from self::$map |
return | Phergie_Event_Request | Provides a fluent interface |
protected resolveArgument ( mixed $argument ) : integer | ||
$argument | mixed | Integer position (starting from 0) or the equivalent string name of the argument from self::$map |
return | integer | Integer position of the argument |
public setArgument ( mixed $argument, string $value ) : Phergie_Event_Request | ||
$argument | mixed | Integer position (starting from 0) or the equivalent string name of the argument from self::$map |
$value | string | Value to assign to the argument |
return | Phergie_Event_Request | Provides a fluent interface |
public setArguments ( array $arguments ) : Phergie_Event_Request | ||
$arguments | array | Request arguments |
return | Phergie_Event_Request | Provides a fluent interface |
public setHostmask ( Phergie_Hostmask $hostmask ) : Phergie_Event_Request | ||
$hostmask | Phergie_Hostmask | User hostmask |
return | Phergie_Event_Request | Provides a fluent interface |
public setRawData ( string $buffer ) : Phergie_Event_Request | ||
$buffer | string | Raw event buffer |
return | Phergie_Event_Request | Provides a fluent interface |
protected array $arguments | ||
return | array |
protected Phergie_Hostmask $hostmask | ||
return | Phergie_Hostmask |
protected static array $map | ||
return | array |