PHP 클래스 Fabiang\Xmpp\Options

파일 보기 프로젝트 열기: fabiang/xmpp 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$address string
$authenticated boolean
$authenticationClasses array Authentication methods.
$connection Fabiang\Xmpp\Connection\ConnectionInterface Connection object.
$implementation Fabiang\Xmpp\Protocol\ImplementationInterface
$jid string
$logger Psr\Log\LoggerInterface PSR-3 Logger interface.
$password string
$timeout integer Timeout for connection.
$to string
$username string
$users array

공개 메소드들

메소드 설명
__construct ( string $address = null ) Constructor.
getAddress ( ) : string Get server address.
getAuthenticationClasses ( ) : array Get authentication classes.
getConnection ( ) : Fabiang\Xmpp\Connection\ConnectionInterface Get connection object.
getImplementation ( ) : Fabiang\Xmpp\Protocol\ImplementationInterface Get protocol implementation.
getJid ( ) : string Get users jid.
getLogger ( ) : Psr\Log\LoggerInterface Get logger instance.
getPassword ( ) : string Get password.
getResource ( ) : string Get resource.
getTimeout ( ) : integer Get timeout for connection.
getTo ( ) : string Get server name.
getUsername ( ) : string Get username.
getUsers ( ) : Fabiang\Xmpp\Protocol\User\User[] Get users.
isAuthenticated ( ) : boolean Is user authenticated.
setAddress ( string $address ) Set server address.
setAuthenticated ( boolean $authenticated ) Set authenticated.
setAuthenticationClasses ( array $authenticationClasses )
setConnection ( Fabiang\Xmpp\Connection\ConnectionInterface $connection ) Set connection object.
setImplementation ( Fabiang\Xmpp\Protocol\ImplementationInterface $implementation ) Set protocol implementation.
setJid ( string $jid ) Set users jid.
setLogger ( Psr\Log\LoggerInterface $logger ) Set logger instance.
setPassword ( string $password ) Set password.
setTimeout ( integer $timeout ) : Options Set timeout for connection.
setTo ( string $to ) Set server name.
setUsername ( string $username ) Set username.
setUsers ( array $users ) Set users.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $address = null )
$address string Server address

getAddress() 공개 메소드

Get server address.
public getAddress ( ) : string
리턴 string

getAuthenticationClasses() 공개 메소드

Get authentication classes.
public getAuthenticationClasses ( ) : array
리턴 array

getConnection() 공개 메소드

Get connection object.
public getConnection ( ) : Fabiang\Xmpp\Connection\ConnectionInterface
리턴 Fabiang\Xmpp\Connection\ConnectionInterface

getImplementation() 공개 메소드

Get protocol implementation.
public getImplementation ( ) : Fabiang\Xmpp\Protocol\ImplementationInterface
리턴 Fabiang\Xmpp\Protocol\ImplementationInterface

getJid() 공개 메소드

Get users jid.
public getJid ( ) : string
리턴 string

getLogger() 공개 메소드

Get logger instance.
public getLogger ( ) : Psr\Log\LoggerInterface
리턴 Psr\Log\LoggerInterface

getPassword() 공개 메소드

Get password.
public getPassword ( ) : string
리턴 string

getResource() 공개 메소드

Get resource.
public getResource ( ) : string
리턴 string

getTimeout() 공개 메소드

Get timeout for connection.
public getTimeout ( ) : integer
리턴 integer

getTo() 공개 메소드

Get server name.
public getTo ( ) : string
리턴 string

getUsername() 공개 메소드

Get username.
public getUsername ( ) : string
리턴 string

getUsers() 공개 메소드

Get users.
public getUsers ( ) : Fabiang\Xmpp\Protocol\User\User[]
리턴 Fabiang\Xmpp\Protocol\User\User[]

isAuthenticated() 공개 메소드

Is user authenticated.
public isAuthenticated ( ) : boolean
리턴 boolean

setAddress() 공개 메소드

When a address is passed this setter also calls setTo with the hostname part of the address.
public setAddress ( string $address )
$address string Server address

setAuthenticated() 공개 메소드

Set authenticated.
public setAuthenticated ( boolean $authenticated )
$authenticated boolean Flag

setAuthenticationClasses() 공개 메소드

public setAuthenticationClasses ( array $authenticationClasses )
$authenticationClasses array Authentication classes

setConnection() 공개 메소드

Set connection object.
public setConnection ( Fabiang\Xmpp\Connection\ConnectionInterface $connection )
$connection Fabiang\Xmpp\Connection\ConnectionInterface

setImplementation() 공개 메소드

Set protocol implementation.
public setImplementation ( Fabiang\Xmpp\Protocol\ImplementationInterface $implementation )
$implementation Fabiang\Xmpp\Protocol\ImplementationInterface

setJid() 공개 메소드

Set users jid.
public setJid ( string $jid )
$jid string

setLogger() 공개 메소드

Set logger instance.
public setLogger ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface PSR-3 Logger

setPassword() 공개 메소드

Set password.
public setPassword ( string $password )
$password string

setTimeout() 공개 메소드

Set timeout for connection.
public setTimeout ( integer $timeout ) : Options
$timeout integer Seconds
리턴 Options

setTo() 공개 메소드

This value is send to the server in requests as to="" attribute.
public setTo ( string $to )
$to string

setUsername() 공개 메소드

Set username.
public setUsername ( string $username )
$username string

setUsers() 공개 메소드

Set users.
public setUsers ( array $users )
$users array User list

프로퍼티 상세

$address 보호되어 있는 프로퍼티

protected string $address
리턴 string

$authenticated 보호되어 있는 프로퍼티

protected bool $authenticated
리턴 boolean

$authenticationClasses 보호되어 있는 프로퍼티

Authentication methods.
protected array $authenticationClasses
리턴 array

$connection 보호되어 있는 프로퍼티

Connection object.
protected ConnectionInterface,Fabiang\Xmpp\Connection $connection
리턴 Fabiang\Xmpp\Connection\ConnectionInterface

$implementation 보호되어 있는 프로퍼티

protected ImplementationInterface,Fabiang\Xmpp\Protocol $implementation
리턴 Fabiang\Xmpp\Protocol\ImplementationInterface

$jid 보호되어 있는 프로퍼티

protected string $jid
리턴 string

$logger 보호되어 있는 프로퍼티

PSR-3 Logger interface.
protected LoggerInterface,Psr\Log $logger
리턴 Psr\Log\LoggerInterface

$password 보호되어 있는 프로퍼티

protected string $password
리턴 string

$timeout 보호되어 있는 프로퍼티

Timeout for connection.
protected int $timeout
리턴 integer

$to 보호되어 있는 프로퍼티

protected string $to
리턴 string

$username 보호되어 있는 프로퍼티

protected string $username
리턴 string

$users 보호되어 있는 프로퍼티

protected array $users
리턴 array