PHP 클래스 PHPDaemon\Clients\XMPP\XMPPRoster

상속: use trait PHPDaemon\Traits\EventHandlers, use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon

공개 프로퍼티들

프로퍼티 타입 설명
$auto_subscribe boolean
$ns string
$roster_array array
$track_presence boolean
$xmpp Connection

공개 메소드들

메소드 설명
__construct ( Connection $xmpp ) Constructor
_addContact ( string $jid, string $subscription, string $name = '', array $groups = [] ) Add given contact to roster
fetch ( callable $cb = null )
getContact ( string $jid ) : array | null Retrieve contact via jid
getPresence ( string $jid ) : array | false Return best presence for jid
isContact ( string $jid ) : boolean Discover if a contact exists in the roster via jid
rosterSet ( string $xml, callable $cb = null )
setPresence ( string $presence, integer $priority, string $show, string $status ) Set presence
setSubscription ( string $jid, string $type, callable $cb = null )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Connection $xmpp )
$xmpp Connection

_addContact() 공개 메소드

Add given contact to roster
public _addContact ( string $jid, string $subscription, string $name = '', array $groups = [] )
$jid string
$subscription string
$name string
$groups array

fetch() 공개 메소드

public fetch ( callable $cb = null )
$cb callable

getContact() 공개 메소드

Retrieve contact via jid
public getContact ( string $jid ) : array | null
$jid string
리턴 array | null

getPresence() 공개 메소드

Return best presence for jid
public getPresence ( string $jid ) : array | false
$jid string
리턴 array | false

isContact() 공개 메소드

Discover if a contact exists in the roster via jid
public isContact ( string $jid ) : boolean
$jid string
리턴 boolean

rosterSet() 공개 메소드

public rosterSet ( string $xml, callable $cb = null )
$xml string
$cb callable

setPresence() 공개 메소드

Set presence
public setPresence ( string $presence, integer $priority, string $show, string $status )
$presence string
$priority integer
$show string
$status string

setSubscription() 공개 메소드

public setSubscription ( string $jid, string $type, callable $cb = null )
$jid string
$type string
$cb callable

프로퍼티 상세

$auto_subscribe 공개적으로 프로퍼티

public bool $auto_subscribe
리턴 boolean

$ns 공개적으로 프로퍼티

public string $ns
리턴 string

$roster_array 공개적으로 프로퍼티

public array $roster_array
리턴 array

$track_presence 공개적으로 프로퍼티

public bool $track_presence
리턴 boolean

$xmpp 공개적으로 프로퍼티

public Connection,PHPDaemon\Clients\XMPP $xmpp
리턴 Connection