PHP Class PHPDaemon\Clients\IRC\Connection

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\ClientConnection
Afficher le fichier Open project: kakserpom/phpdaemon Class Usage Examples

Méthodes publiques

Свойство Type Description
$EOL string
$buffers array
$channels array
$lastPingTS integer
$latency integer
$mode string
$nick string
$realname string
$servername string
$timeout integer

Protected Properties

Свойство Type Description
$bevConnectEnabled To get local port number
$password Password
$user Username

Méthodes publiques

Méthode Description
addMode ( string $channel, string $target, string $mode )
channel ( string $chan ) : Channel
channelIfExists ( string $chan ) : boolean
command ( string $cmd )
commandArr ( integer | string $cmd, array $args = [] ) : boolean
join ( array $channels )
message ( string $to, string $msg )
onCommand ( string $from, string $cmd, array $args )
onFinish ( ) : void Called when connection finishes
onRead ( ) : void Called when new data received
onReady ( ) : void Called when the connection is handshaked (at low-level), and peer is ready to recv. data
part ( array $channels, mixed $msg = null )
ping ( )
removeMode ( string $channel, string $target, string $mode )

Method Details

addMode() public méthode

public addMode ( string $channel, string $target, string $mode )
$channel string
$target string
$mode string

channel() public méthode

public channel ( string $chan ) : Channel
$chan string
Résultat Channel

channelIfExists() public méthode

public channelIfExists ( string $chan ) : boolean
$chan string
Résultat boolean

command() public méthode

public command ( string $cmd )
$cmd string

commandArr() public méthode

public commandArr ( integer | string $cmd, array $args = [] ) : boolean
$cmd integer | string
$args array
Résultat boolean

join() public méthode

public join ( array $channels )
$channels array

message() public méthode

public message ( string $to, string $msg )
$to string
$msg string

onCommand() public méthode

public onCommand ( string $from, string $cmd, array $args )
$from string
$cmd string
$args array

onFinish() public méthode

Called when connection finishes
public onFinish ( ) : void
Résultat void

onRead() public méthode

Called when new data received
public onRead ( ) : void
Résultat void

onReady() public méthode

Called when the connection is handshaked (at low-level), and peer is ready to recv. data
public onReady ( ) : void
Résultat void

part() public méthode

public part ( array $channels, mixed $msg = null )
$channels array
$msg mixed

ping() public méthode

public ping ( )

removeMode() public méthode

public removeMode ( string $channel, string $target, string $mode )
$channel string
$target string
$mode string

Property Details

$EOL public_oe property

public string $EOL
Résultat string

$bevConnectEnabled protected_oe property

To get local port number
protected $bevConnectEnabled

$buffers public_oe property

public array $buffers
Résultat array

$channels public_oe property

public array $channels
Résultat array

$lastPingTS public_oe property

public int $lastPingTS
Résultat integer

$latency public_oe property

public int $latency
Résultat integer

$mode public_oe property

public string $mode
Résultat string

$nick public_oe property

public string $nick
Résultat string

$password protected_oe property

Password
protected $password

$realname public_oe property

public string $realname
Résultat string

$servername public_oe property

public string $servername
Résultat string

$timeout public_oe property

public int $timeout
Résultat integer

$user protected_oe property

Username
protected $user