Server/Abstract.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Server  

\Zend_Server_Abstract

Package: Zend\Server
Zend_Server_Abstract
Implements
\Zend_Server_Interface
Children
\Zend_XmlRpc_Server
\Zend_Json_Server
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Version
$Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $  

Properties

>VPropertyprotectedbool $_overwriteExistingMethods = false

Flag; whether or not overwriting existing methods is allowed

Default valuefalseDetails
Type
bool
>VPropertyprotected\Zend_Server_Definition $_table
>VPropertyprotectedarray $magic_methods = array('__call', '__clone', '__construct', '__destruct', '__get', '__isset', '__set', '__set_state', '__sleep', '__tostring', '__unset', '__wakeup')
static

List of PHP magic methods (lowercased)

Default valuearray('__call', '__clone', '__construct', '__destruct', '__get', '__isset', '__set', '__set_state', '__sleep', '__tostring', '__unset', '__wakeup')Details
Type
array
Deprecated
 

Methods

methodpublic__construct() : void

Constructor

Setup server description

methodprotected_buildCallback(\Zend_Server_Reflection_Function_Abstract $reflection) : \Zend_Server_Method_Callback

Build callback for method signature

Parameters
NameTypeDescription
$reflection\Zend_Server_Reflection_Function_Abstract
Returns
TypeDescription
\Zend_Server_Method_Callback
methodprotected_buildSignature(\Zend_Server_Reflection_Function_Abstract $reflection, null | string | object $class = null) : \Zend_Server_Method_Definition

Build a method signature

Parameters
NameTypeDescription
$reflection\Zend_Server_Reflection_Function_Abstract
$classnull | string | object
Returns
TypeDescription
\Zend_Server_Method_Definition
Throws
ExceptionDescription
\Zend_Server_Exceptionon duplicate entry
methodprotected_dispatch(\Zend_Server_Method_Definition $invocable, array $params) : mixed

Dispatch method

Parameters
NameTypeDescription
$invocable\Zend_Server_Method_Definition
$paramsarray
Returns
TypeDescription
mixed
methodprotected_fixType(string $type) : string
abstract

Map PHP type to protocol type

Parameters
NameTypeDescription
$typestring
Returns
TypeDescription
string
methodpublicaddFunction(string $function, string $namespace = '') : void
inherited

Attach a function as a server method

Inherited from: \Zend_Server_Interface::addFunction()

Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.

Parameters
NameTypeDescription
$functionstring
$namespacestring
methodpublicfault(mixed $fault = null, int $code = 404) : mixed
inherited

Generate a server fault

Inherited from: \Zend_Server_Interface::fault()
Parameters
NameTypeDescription
$faultmixed
$codeint
Returns
TypeDescription
mixed
methodpublicgetFunctions() : \Zend_Server_Definition

Returns a list of registered methods

Returns an array of method definitions.

Returns
TypeDescription
\Zend_Server_Definition
methodpublichandle(mixed $request = false) : mixed
inherited

Handle a request

Inherited from: \Zend_Server_Interface::handle()

Requests may be passed in, or the server may automagically determine the request based on defaults. Dispatches server request to appropriate method and returns a response

Parameters
NameTypeDescription
$requestmixed
Returns
TypeDescription
mixed
methodpublicloadFunctions( $definition) : void
inherited

Load server definition

Inherited from: \Zend_Server_Interface::loadFunctions()

Used for persistence; loads a construct as returned by getFunctions().

Parameters
NameTypeDescription
$definition
methodpubliclowerCase( $value, string $key) : string
static

Lowercase a string

Lowercase's a string by reference

Parameters
NameTypeDescription
$value
$keystring
Returns
TypeDescription
stringLower cased string
Details
Deprecated
 
methodpublicsetClass(mixed $class, string $namespace = '', null | array $argv = null) : void
inherited

Attach a class to a server

Inherited from: \Zend_Server_Interface::setClass()

The individual implementations should probably allow passing a variable number of arguments in, so that developers may define custom runtime arguments to pass to server methods.

Namespacing is primarily for xmlrpc, but could be used for other implementations as well.

Parameters
NameTypeDescription
$classmixed

Class name or object instance to examine and attach to the server.

$namespacestring

Optional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks.

$argvnull | array

Optional array of arguments to pass to callbacks at dispatch.

methodpublicsetPersistence(int $mode) : void
inherited

Set server persistence

Inherited from: \Zend_Server_Interface::setPersistence()
Parameters
NameTypeDescription
$modeint
Documentation was generated by phpDocumentor 2.0.0a12.