PHP Class Socket_Service, zys

Inheritance: extends HandlerManager
显示文件 Open project: qieangel2013/zys Class Usage Examples

Public Properties

Property Type Description
$debug
$errorDelay
$errorTypes
$heartbeat
$onAfterInvoke
$onBeforeInvoke
$onSendError
$onSubscribe
$onUnsubscribe
$passContext
$simple
$timeout

Protected Properties

Property Type Description
$timer for push service
$userFatalErrorHandler

Public Methods

Method Description
__construct ( )
add ( )
addAsync ( )
addAsyncClassMethods ( $class, $scope = '', $aliasPrefix = '', array $options = [] )
addAsyncFunction ( $func, $alias = '', array $options = [] )
addAsyncFunctions ( array $funcs, array $aliases = [], array $options = [] )
addAsyncInstanceMethods ( $object, $class = '', $aliasPrefix = '', array $options = [] )
addAsyncMethod ( $method, $scope, $alias = '', array $options = [] )
addAsyncMethods ( $methods, $scope, $aliases = [], array $options = [] )
addAsyncMissingFunction ( $func, array $options = [] )
addAsyncMissingMethod ( $method, $scope, array $options = [] )
addClassMethods ( $class, $scope = '', $aliasPrefix = '', array $options = [] )
addFilter ( Filter $filter )
addFunction ( $func, $alias = '', array $options = [] )
addFunctions ( array $funcs, array $aliases = [], array $options = [] )
addInstanceMethods ( $object, $class = '', $aliasPrefix = '', array $options = [] )
addMethod ( $method, $scope, $alias = '', array $options = [] )
addMethods ( $methods, $scope, $aliases = [], array $options = [] )
addMissingFunction ( $func, array $options = [] )
addMissingMethod ( $method, $scope, array $options = [] )
afterFilterHandler ( $request, stdClass $context ) *protected
afterInvoke ( $name, array $args, stdClass $context, $result ) *private
beforeFilterHandler ( $request, stdClass $context ) *protected
broadcast ( $topic, $result, $callback = null )
callService ( array $args, stdClass $context ) *private
defaultHandle ( $request, stdClass $context )
delTimer ( ArrayObject $topics, $id ) *private
delayError ( $error, $context ) *private
doOutput ( array $args, stdClass $context, $result ) *private
endError ( $error, stdClass $context )
exist ( $topic, $id )
fatalErrorHandler ( )
getErrorDelay ( )
getErrorTypes ( )
getFilter ( )
getHeartbeat ( )
getNextId ( )
getTimeout ( )
getTopics ( $topic ) *private
idlist ( $topic )
internalPush ( $topic, $id, $result ) *private
invoke ( $name, array &$args, stdClass $context ) *private
invokeHandler ( $name, array &$args, stdClass $context ) *protected
isDebugEnabled ( )
isPassContext ( )
isSimple ( )
multicast ( $topic, $ids, $result, $callback = null )
offline ( ArrayObject $topics, $topic, $id ) *private
outputFilter ( $data, stdClass $context ) *private
publish ( $topic, array $options = [] )
push ( $topic ) push($topic, $id, $result)
remove ( $alias )
removeFilter ( Filter $filter )
resetTimer ( ArrayObject $topics, $topic, $id ) *private
sendError ( $error, stdClass $context ) *private
setDebugEnabled ( $value = true )
setErrorDelay ( $value )
setErrorTypes ( $value )
setFilter ( Filter $filter )
setHeartbeat ( $value )
setPassContext ( $value = true )
setRequestTimer ( $topic, $id, $request, $timeout ) *private
setSimple ( $value = true )
setTimeout ( $value )
unicast ( $topic, $id, $result, $callback = null )

Protected Methods

Method Description
delay ( $interval, $data )
doFunctionList ( )
nextTick ( $callback )

Private Methods

Method Description
beforeInvoke ( $name, array &$args, stdClass $context )
checkPushService ( ) for push service
doInvoke ( BytesIO $stream, stdClass $context )
getDeclaredOnlyInstanceMethods ( $class )
getDeclaredOnlyMethods ( $class )
getDeclaredOnlyStaticMethods ( $class )
inputFilter ( $data, stdClass $context )
setTimer ( ArrayObject $topics, $topic, $id )

Method Details

__construct() public method

public __construct ( )

add() public method

public add ( )

addAsync() public method

public addAsync ( )

addAsyncClassMethods() public method

public addAsyncClassMethods ( $class, $scope = '', $aliasPrefix = '', array $options = [] )
$options array

addAsyncFunction() public method

public addAsyncFunction ( $func, $alias = '', array $options = [] )
$options array

addAsyncFunctions() public method

public addAsyncFunctions ( array $funcs, array $aliases = [], array $options = [] )
$funcs array
$aliases array
$options array

addAsyncInstanceMethods() public method

public addAsyncInstanceMethods ( $object, $class = '', $aliasPrefix = '', array $options = [] )
$options array

addAsyncMethod() public method

public addAsyncMethod ( $method, $scope, $alias = '', array $options = [] )
$options array

addAsyncMethods() public method

public addAsyncMethods ( $methods, $scope, $aliases = [], array $options = [] )
$options array

addAsyncMissingFunction() public method

public addAsyncMissingFunction ( $func, array $options = [] )
$options array

addAsyncMissingMethod() public method

public addAsyncMissingMethod ( $method, $scope, array $options = [] )
$options array

addClassMethods() public method

public addClassMethods ( $class, $scope = '', $aliasPrefix = '', array $options = [] )
$options array

addFilter() final public method

final public addFilter ( Filter $filter )
$filter Filter

addFunction() public method

public addFunction ( $func, $alias = '', array $options = [] )
$options array

addFunctions() public method

public addFunctions ( array $funcs, array $aliases = [], array $options = [] )
$funcs array
$aliases array
$options array

addInstanceMethods() public method

public addInstanceMethods ( $object, $class = '', $aliasPrefix = '', array $options = [] )
$options array

addMethod() public method

public addMethod ( $method, $scope, $alias = '', array $options = [] )
$options array

addMethods() public method

public addMethods ( $methods, $scope, $aliases = [], array $options = [] )
$options array

addMissingFunction() public method

public addMissingFunction ( $func, array $options = [] )
$options array

addMissingMethod() public method

public addMissingMethod ( $method, $scope, array $options = [] )
$options array

afterFilterHandler() public method

*protected
public afterFilterHandler ( $request, stdClass $context )
$context stdClass

afterInvoke() public method

*private
public afterInvoke ( $name, array $args, stdClass $context, $result )
$args array
$context stdClass

beforeFilterHandler() public method

*protected
public beforeFilterHandler ( $request, stdClass $context )
$context stdClass

broadcast() public method

public broadcast ( $topic, $result, $callback = null )

callService() public method

*private
public callService ( array $args, stdClass $context )
$args array
$context stdClass

defaultHandle() public method

public defaultHandle ( $request, stdClass $context )
$context stdClass

delTimer() public method

*private
public delTimer ( ArrayObject $topics, $id )
$topics ArrayObject

delay() protected method

protected delay ( $interval, $data )

delayError() public method

*private
public delayError ( $error, $context )

doFunctionList() protected method

protected doFunctionList ( )

doOutput() public method

*private
public doOutput ( array $args, stdClass $context, $result )
$args array
$context stdClass

endError() public method

public endError ( $error, stdClass $context )
$context stdClass

exist() public method

public exist ( $topic, $id )

fatalErrorHandler() public method

public fatalErrorHandler ( )

getErrorDelay() final public method

final public getErrorDelay ( )

getErrorTypes() final public method

final public getErrorTypes ( )

getFilter() final public method

final public getFilter ( )

getHeartbeat() final public method

final public getHeartbeat ( )

getNextId() public method

public getNextId ( )

getTimeout() final public method

final public getTimeout ( )

getTopics() public method

*private
public getTopics ( $topic )

idlist() public method

public idlist ( $topic )

internalPush() public method

*private
public internalPush ( $topic, $id, $result )

invoke() public method

*private
public invoke ( $name, array &$args, stdClass $context )
$args array
$context stdClass

invokeHandler() public method

*protected
public invokeHandler ( $name, array &$args, stdClass $context )
$args array
$context stdClass

isDebugEnabled() final public method

final public isDebugEnabled ( )

isPassContext() final public method

final public isPassContext ( )

isSimple() final public method

final public isSimple ( )

multicast() public method

public multicast ( $topic, $ids, $result, $callback = null )

nextTick() protected method

protected nextTick ( $callback )

offline() public method

*private
public offline ( ArrayObject $topics, $topic, $id )
$topics ArrayObject

outputFilter() public method

*private
public outputFilter ( $data, stdClass $context )
$context stdClass

publish() public method

public publish ( $topic, array $options = [] )
$options array

push() public method

push($topic, $id, $result)
public push ( $topic )

remove() public method

public remove ( $alias )

removeFilter() final public method

final public removeFilter ( Filter $filter )
$filter Filter

resetTimer() public method

*private
public resetTimer ( ArrayObject $topics, $topic, $id )
$topics ArrayObject

sendError() public method

*private
public sendError ( $error, stdClass $context )
$context stdClass

setDebugEnabled() final public method

final public setDebugEnabled ( $value = true )

setErrorDelay() final public method

final public setErrorDelay ( $value )

setErrorTypes() final public method

final public setErrorTypes ( $value )

setFilter() final public method

final public setFilter ( Filter $filter )
$filter Filter

setHeartbeat() final public method

final public setHeartbeat ( $value )

setPassContext() final public method

final public setPassContext ( $value = true )

setRequestTimer() public method

*private
public setRequestTimer ( $topic, $id, $request, $timeout )

setSimple() final public method

final public setSimple ( $value = true )

setTimeout() final public method

final public setTimeout ( $value )

unicast() public method

public unicast ( $topic, $id, $result, $callback = null )

Property Details

$debug public_oe property

public $debug

$errorDelay public_oe property

public $errorDelay

$errorTypes public_oe property

public $errorTypes

$heartbeat public_oe property

public $heartbeat

$onAfterInvoke public_oe property

public $onAfterInvoke

$onBeforeInvoke public_oe property

public $onBeforeInvoke

$onSendError public_oe property

public $onSendError

$onSubscribe public_oe property

public $onSubscribe

$onUnsubscribe public_oe property

public $onUnsubscribe

$passContext public_oe property

public $passContext

$simple public_oe property

public $simple

$timeout public_oe property

public $timeout

$timer protected_oe property

for push service
protected $timer

$userFatalErrorHandler protected_oe property

protected $userFatalErrorHandler