PHP Class Hprose\Service

Mostrar archivo Open project: hprose/hprose-php 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 ( hprose\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, stdClas\stdClass $context ) *protected
afterInvoke ( $name, array $args, stdClas\stdClass $context, $result ) *private
beforeFilterHandler ( $request, stdClas\stdClass $context ) *protected
broadcast ( $topic, $result, $callback = null )
callService ( array $args, stdClas\stdClass $context ) *private
defaultHandle ( $request, stdClas\stdClass $context )
delTimer ( ArrayObjec\ArrayObject $topics, $id ) *private
delayError ( $error, $context ) *private
doOutput ( array $args, stdClas\stdClass $context, $result ) *private
endError ( $error, stdClas\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, stdClas\stdClass $context ) *private
invokeHandler ( $name, array &$args, stdClas\stdClass $context ) *protected
isDebugEnabled ( )
isPassContext ( )
isSimple ( )
multicast ( $topic, $ids, $result, $callback = null )
offline ( ArrayObjec\ArrayObject $topics, $topic, $id ) *private
outputFilter ( $data, stdClas\stdClass $context ) *private
publish ( $topic, array $options = [] )
push ( $topic ) push($topic, $id, $result)
remove ( $alias )
removeFilter ( hprose\Filter $filter )
resetTimer ( ArrayObjec\ArrayObject $topics, $topic, $id ) *private
sendError ( $error, stdClas\stdClass $context ) *private
setDebugEnabled ( $value = true )
setErrorDelay ( $value )
setErrorTypes ( $value )
setFilter ( hprose\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, stdClas\stdClass $context )
checkPushService ( ) for push service
doInvoke ( hprose\BytesIO $stream, stdClas\stdClass $context )
getDeclaredOnlyInstanceMethods ( $class )
getDeclaredOnlyMethods ( $class )
getDeclaredOnlyStaticMethods ( $class )
inputFilter ( $data, stdClas\stdClass $context )
setTimer ( ArrayObjec\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 ( hprose\Filter $filter )
$filter hprose\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, stdClas\stdClass $context )
$context stdClas\stdClass

afterInvoke() public method

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

beforeFilterHandler() public method

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

broadcast() public method

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

callService() public method

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

defaultHandle() public method

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

delTimer() public method

*private
public delTimer ( ArrayObjec\ArrayObject $topics, $id )
$topics ArrayObjec\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, stdClas\stdClass $context, $result )
$args array
$context stdClas\stdClass

endError() public method

public endError ( $error, stdClas\stdClass $context )
$context stdClas\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, stdClas\stdClass $context )
$args array
$context stdClas\stdClass

invokeHandler() public method

*protected
public invokeHandler ( $name, array &$args, stdClas\stdClass $context )
$args array
$context stdClas\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 ( ArrayObjec\ArrayObject $topics, $topic, $id )
$topics ArrayObjec\ArrayObject

outputFilter() public method

*private
public outputFilter ( $data, stdClas\stdClass $context )
$context stdClas\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 ( hprose\Filter $filter )
$filter hprose\Filter

resetTimer() public method

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

sendError() public method

*private
public sendError ( $error, stdClas\stdClass $context )
$context stdClas\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 ( hprose\Filter $filter )
$filter hprose\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