PHP Class PHPDaemon\Clients\XMPP\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
$authorized boolean
$fulljid string
$keepaliveTimer Timer ID
$lastId integer
$roster XMPPRoster
$use_encryption boolean
$xml PHPDaemon\XMLStream\XMLStream

Méthodes publiques

Méthode Description
createXMLStream ( )
getId ( ) : string Get next ID
getVCard ( string $jid, callable $cb )
iqGet ( string $xml, callable $cb ) : boolean
iqGetTo ( string $to, string $xml, callable $cb ) : boolean
iqSet ( string $xml, callable $cb ) : boolean
iqSetTo ( string $to, string $xml, callable $cb ) : boolean
message ( string $to, string $body, string $type = 'chat', string $subject = null, $payload = null ) Send XMPP Message
onFinish ( ) : void Called when session 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
ping ( string $to = null, callable $cb = null ) : boolean
presence ( string $status = null, string $show = 'available', string $to = null, string $type = 'available', integer $priority ) Set Presence
queryGet ( string $ns, callable $cb ) : boolean
querySet ( string $ns, string $xml, callable $cb ) : boolean
querySetTo ( string $to, string $ns, string $xml, callable $cb ) : boolean
sendXML ( string $s )
startXMLStream ( )

Method Details

createXMLStream() public méthode

public createXMLStream ( )

getId() public méthode

Get next ID
public getId ( ) : string
Résultat string

getVCard() public méthode

public getVCard ( string $jid, callable $cb )
$jid string
$cb callable

iqGet() public méthode

public iqGet ( string $xml, callable $cb ) : boolean
$xml string
$cb callable
Résultat boolean

iqGetTo() public méthode

public iqGetTo ( string $to, string $xml, callable $cb ) : boolean
$to string
$xml string
$cb callable
Résultat boolean

iqSet() public méthode

public iqSet ( string $xml, callable $cb ) : boolean
$xml string
$cb callable
Résultat boolean

iqSetTo() public méthode

public iqSetTo ( string $to, string $xml, callable $cb ) : boolean
$to string
$xml string
$cb callable
Résultat boolean

message() public méthode

Send XMPP Message
public message ( string $to, string $body, string $type = 'chat', string $subject = null, $payload = null )
$to string
$body string
$type string
$subject string

onFinish() public méthode

Called when session 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

ping() public méthode

public ping ( string $to = null, callable $cb = null ) : boolean
$to string
$cb callable
Résultat boolean

presence() public méthode

Set Presence
public presence ( string $status = null, string $show = 'available', string $to = null, string $type = 'available', integer $priority )
$status string
$show string
$to string
$type string
$priority integer

queryGet() public méthode

public queryGet ( string $ns, callable $cb ) : boolean
$ns string
$cb callable
Résultat boolean

querySet() public méthode

public querySet ( string $ns, string $xml, callable $cb ) : boolean
$ns string
$xml string
$cb callable
Résultat boolean

querySetTo() public méthode

public querySetTo ( string $to, string $ns, string $xml, callable $cb ) : boolean
$to string
$ns string
$xml string
$cb callable
Résultat boolean

sendXML() public méthode

public sendXML ( string $s )
$s string

startXMLStream() public méthode

public startXMLStream ( )

Property Details

$authorized public_oe property

public bool $authorized
Résultat boolean

$fulljid public_oe property

public string $fulljid
Résultat string

$keepaliveTimer public_oe property

Timer ID
public $keepaliveTimer

$lastId public_oe property

public int $lastId
Résultat integer

$roster public_oe property

public XMPPRoster,PHPDaemon\Clients\XMPP $roster
Résultat XMPPRoster

$use_encryption public_oe property

public bool $use_encryption
Résultat boolean

$xml public_oe property

public XMLStream,PHPDaemon\XMLStream $xml
Résultat PHPDaemon\XMLStream\XMLStream