From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- .../api/core/files/Gdata.Gapps.Error.html | 251 +++++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 zend/documentation/api/core/files/Gdata.Gapps.Error.html (limited to 'zend/documentation/api/core/files/Gdata.Gapps.Error.html') diff --git a/zend/documentation/api/core/files/Gdata.Gapps.Error.html b/zend/documentation/api/core/files/Gdata.Gapps.Error.html new file mode 100644 index 0000000..436d81d --- /dev/null +++ b/zend/documentation/api/core/files/Gdata.Gapps.Error.html @@ -0,0 +1,251 @@ + +Zend Gdata API Documentation

Gdata/Gapps/Error.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_Gdata +   +
Subpackage
Gapps +   +
Version
$Id: Error.php 24593 2012-01-05 20:35:02Z matthew $ +   +

\Zend_Gdata_Gapps_Error

Package: Zend\Gdata\Gapps
Gdata Gapps Error class.

This class is used to represent errors returned +within an AppsForYourDomainErrors message received from the Google Apps +servers.

+ +

Several different errors may be represented by this class, determined by +the error code returned by the server. For a list of error codes +available at the time of this writing, see getErrorCode.

Parent(s)
\Zend_Gdata_App_Base
Category
Zend +   +
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) +   +
License
New BSD License +   +

Constants

>VConstant  + UNKNOWN_ERROR + = 1000
>VConstant  + USER_DELETED_RECENTLY + = 1100
>VConstant  + USER_SUSPENDED + = 1101
>VConstant  + DOMAIN_USER_LIMIT_EXCEEDED + = 1200
>VConstant  + DOMAIN_ALIAS_LIMIT_EXCEEDED + = 1201
>VConstant  + DOMAIN_SUSPENDED + = 1202
>VConstant  + DOMAIN_FEATURE_UNAVAILABLE + = 1203
>VConstant  + ENTITY_EXISTS + = 1300
>VConstant  + ENTITY_DOES_NOT_EXIST + = 1301
>VConstant  + ENTITY_NAME_IS_RESERVED + = 1302
>VConstant  + ENTITY_NAME_NOT_VALID + = 1303
>VConstant  + INVALID_GIVEN_NAME + = 1400
>VConstant  + INVALID_FAMILY_NAME + = 1401
>VConstant  + INVALID_PASSWORD + = 1402
>VConstant  + INVALID_USERNAME + = 1403
>VConstant  + INVALID_HASH_FUNCTION_NAME + = 1404
>VConstant  + INVALID_HASH_DIGEST_LENGTH + = 1405
>VConstant  + INVALID_EMAIL_ADDRESS + = 1406
>VConstant  + INVALID_QUERY_PARAMETER_VALUE + = 1407
>VConstant  + TOO_MANY_RECIPIENTS_ON_EMAIL_LIST + = 1500

Properties

>VPropertyprotected$_errorCode = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedarray $_extensionAttributes = array()
inherited

Leftover attributes which were not handled

Inherited from: + \Zend_Gdata_App_Base::$$_extensionAttributes
Default valuearray()Details
Type
array
Inherited_from
\Zend_Gdata_App_Base::$$_extensionAttributes +   +
>VPropertyprotectedarray $_extensionElements = array()
inherited

Leftover elements which were not handled

Inherited from: + \Zend_Gdata_App_Base::$$_extensionElements
Default valuearray()Details
Type
array
Inherited_from
\Zend_Gdata_App_Base::$$_extensionElements +   +
>VPropertyprotected$_invalidInput = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedarray $_namespaceLookupCache = array()
staticinherited

Memoized results from calls to lookupNamespace() to avoid expensive calls to getGreatestBoundedValue(). The key is in the form 'prefix-majorVersion-minorVersion', and the value is the output from getGreatestBoundedValue().

+
Inherited from: + \Zend_Gdata_App_Base::$$_namespaceLookupCache
Default valuearray()Details
Type
array
Inherited_from
\Zend_Gdata_App_Base::$$_namespaceLookupCache +   +
>VPropertyprotectedarray $_namespaces = array('atom' => array(1 => array(0 => 'http://www.w3.org/2005/Atom')), 'app' => array(1 => array(0 => 'http://purl.org/atom/app#'), 2 => array(0 => 'http://www.w3.org/2007/app')))
inherited
List of namespaces, as a three-dimensional array.
Inherited from: + \Zend_Gdata_App_Base::$$_namespaces

The first dimension +represents the namespace prefix, the second dimension represents the +minimum major protocol version, and the third dimension is the minimum +minor protocol version. Null keys are NOT allowed.

+ +

When looking up a namespace for a given prefix, the greatest version +number (both major and minor) which is less than the effective version +should be used.

Default valuearray('atom' => array(1 => array(0 => 'http://www.w3.org/2005/Atom')), 'app' => array(1 => array(0 => 'http://purl.org/atom/app#'), 2 => array(0 => 'http://www.w3.org/2007/app')))Details
Type
array
Inherited_from
\Zend_Gdata_App_Base::$$_namespaces +   +
See
\lookupNamespace() +   +
See
\registerNamespace() +   +
See
\registerAllNamespaces() +   +
>VPropertyprotected$_reason = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedstring $_rootElement = null
inherited

The XML element name, including prefix if desired

Inherited from: + \Zend_Gdata_App_Base::$$_rootElement
Default valuenullDetails
Type
string
Inherited_from
\Zend_Gdata_App_Base::$$_rootElement +   +
>VPropertyprotectedstring $_rootNamespace = 'atom'
inherited

The XML namespace prefix

Inherited from: + \Zend_Gdata_App_Base::$$_rootNamespace
Default value'atom'Details
Type
string
Inherited_from
\Zend_Gdata_App_Base::$$_rootNamespace +   +
>VPropertyprotectedstring $_rootNamespaceURI = null
inherited

The XML namespace URI - takes precedence over lookup up the corresponding URI for $_rootNamespace

+
Inherited from: + \Zend_Gdata_App_Base::$$_rootNamespaceURI
Default valuenullDetails
Type
string
Inherited_from
\Zend_Gdata_App_Base::$$_rootNamespaceURI +   +
>VPropertyprotectedstring $_text = null
inherited

XML child text node content

Inherited from: + \Zend_Gdata_App_Base::$$_text
Default valuenullDetails
Type
string
Inherited_from
\Zend_Gdata_App_Base::$$_text +   +

Methods

methodpublic__construct( $errorCode = null,  $reason = null,  $invalidInput = null) : void

Parameters
NameTypeDescription
$errorCode
$reason
$invalidInput
methodpublic__get(string $name) : void
inherited

Magic getter to allow access like $entry->foo to call $entry->getFoo() +Alternatively, if no getFoo() is defined, but a $_foo protected variable +is defined, this is returned.

Inherited from: + \Zend_Gdata_App_Base::__get()

TODO Remove ability to bypass getFoo() methods??

Parameters
NameTypeDescription
$namestring

The variable name sought

methodpublic__isset(string $name) : void
inherited

Magic __isset method

Inherited from: + \Zend_Gdata_App_Base::__isset()
Parameters
NameTypeDescription
$namestring
methodpublic__set(string $name,  $val) : void
inherited

Magic setter to allow acces like $entry->foo='bar' to call +$entry->setFoo('bar') automatically.

Inherited from: + \Zend_Gdata_App_Base::__set()

Alternatively, if no setFoo() is defined, but a $_foo protected variable +is defined, this is returned.

+ +

TODO Remove ability to bypass getFoo() methods??

Parameters
NameTypeDescription
$namestring
$val
methodpublic__toString() : string

Get a human readable version of this exception.

Returns
TypeDescription
string
methodpublic__unset(string $name) : void
inherited

Magic __unset method

Inherited from: + \Zend_Gdata_App_Base::__unset()
Parameters
NameTypeDescription
$namestring
methodpublicencode() : string
inherited

Alias for saveXML()

Inherited from: + \Zend_Gdata_App_Base::encode()

Can be overridden by children to provide more complex representations +of entries.

Returns
TypeDescription
stringEncoded string content
methodpublicflushNamespaceLookupCache() : void
staticinherited

Flush namespace lookup cache.

Inherited from: + \Zend_Gdata_App_Base::flushNamespaceLookupCache()

Empties the namespace lookup cache. Call this function if you have +added data to the namespace lookup table that contradicts values that +may have been cached during a previous call to lookupNamespace().

methodpublicgetDOM(\DOMDocument $doc = null,  $majorVersion = 1,  $minorVersion = null) : \DOMElement

Retrieves a DOMElement which corresponds to this element and all +child properties.

This is used to build an entry back into a DOM +and eventually XML text for application storage/persistence.

Parameters
NameTypeDescription
$doc\DOMDocument

The DOMDocument used to construct DOMElements

$majorVersion
$minorVersion
Returns
TypeDescription
\DOMElementThe DOMElement representing this element and all + child properties.
methodpublicgetErrorCode() : integer

Get the error code for this exception.

Currently valid values are +available as constants within this class. These values are:

+ +

UNKNOWN_ERROR (1000) + USER_DELETED_RECENTLY (1100) + USER_SUSPENDED (1101) + DOMAIN_USER_LIMIT_EXCEEDED (1200) + DOMAIN_ALIAS_LIMIT_EXCEEDED (1201) + DOMAIN_SUSPENDED (1202) + DOMAIN_FEATURE_UNAVAILABLE (1203) + ENTITY_EXISTS (1300) + ENTITY_DOES_NOT_EXIST (1301) + ENTITY_NAME_IS_RESERVED (1302) + ENTITY_NAME_NOT_VALID (1303) + INVALID_GIVEN_NAME (1400) + INVALID_FAMILY_NAME (1401) + INVALID_PASSWORD (1402) + INVALID_USERNAME (1403) + INVALID_HASH_FUNCTION_NAME (1404) + INVALID_HASH_DIGEST_LENGTH (1405) + INVALID_EMAIL_ADDRESS (1406) + INVALID_QUERY_PARAMETER_VALUE (1407) + TOO_MANY_RECIPIENTS_ON_EMAIL_LIST (1500)

+ +

Numbers in parenthesis indicate the actual integer value of the +constant. This list should not be treated as exhaustive, as additional +error codes may be added at any time.

+ +

For more information about these codes and their meaning, please +see Appendix D of the Google Apps Provisioning API Reference.

Returns
TypeDescription
integerThe error code returned by the Google Apps server.
Details
Link
Google Apps Provisioning API Reference: Appendix D - Gdata Error Codes +   +
See
\setErrorCode +   +
methodpublicgetExtensionAttributes() : array
inherited

Returns an array of all extension attributes not transformed into data +model properties during parsing of the XML.

Inherited from: + \Zend_Gdata_App_Base::getExtensionAttributes()

Each element of the array +is a hashed array of the format: + array('namespaceUri' => string, 'name' => string, 'value' => string);

Returns
TypeDescription
arrayAll extension attributes
methodpublicgetExtensionElements() : array
inherited

Returns an array of all elements not matched to data model classes +during the parsing of the XML

Inherited from: + \Zend_Gdata_App_Base::getExtensionElements()
Returns
TypeDescription
arrayAll elements not matched to data model classes during parsing
methodpublicgetInvalidInput() : string

Set the invalid input which caused this exception.

Returns
TypeDescription
stringThe reason this exception occurred.
Details
See
\setInvalidInput +   +
methodpublicgetReason() : string

Get human-readable text describing the reason this exception occurred.

Returns
TypeDescription
stringThe reason this exception occurred.
Details
See
\setReason +   +
methodpublicgetText( $trim = true) : string
inherited

Returns the child text node of this element +This represents any raw text contained within the XML element

Inherited from: + \Zend_Gdata_App_Base::getText()
Parameters
NameTypeDescription
$trim
Returns
TypeDescription
stringChild text node
methodpublicgetXML() : string
inherited

Alias for saveXML() returns XML content for this element and all +children

Inherited from: + \Zend_Gdata_App_Base::getXML()
Returns
TypeDescription
stringXML content
methodpubliclookupNamespace(string $prefix, integer $majorVersion = 1, integer $minorVersion = null) : string
inherited

Get the full version of a namespace prefix

Inherited from: + \Zend_Gdata_App_Base::lookupNamespace()

Looks up a prefix (atom:, etc.) in the list of registered +namespaces and returns the full namespace URI if +available. Returns the prefix, unmodified, if it's not +registered.

Parameters
NameTypeDescription
$prefixstring

The namespace prefix to lookup.

$majorVersioninteger

The major protocol version in effect. + Defaults to '1'.

+
$minorVersioninteger

The minor protocol version in effect. + Defaults to null (use latest).

+
Returns
TypeDescription
string
methodpublicregisterAllNamespaces(array $namespaceArray) : void
inherited

Add an array of namespaces to the registered list.

Inherited from: + \Zend_Gdata_App_Base::registerAllNamespaces()

Takes an array in the format of: +namespace prefix, namespace URI, major protocol version, +minor protocol version and adds them with calls to ->registerNamespace()

Parameters
NameTypeDescription
$namespaceArrayarray

An array of namespaces.

methodpublicregisterNamespace(string $prefix, string $namespaceUri, integer $majorVersion = 1, integer $minorVersion = 0) : void
inherited

Add a namespace and prefix to the registered list

Inherited from: + \Zend_Gdata_App_Base::registerNamespace()

Takes a prefix and a full namespace URI and adds them to the +list of registered namespaces for use by +$this->lookupNamespace().

+ +

WARNING: Currently, registering a namespace will NOT invalidate any + memoized data stored in $_namespaceLookupCache. Under normal + use, this behavior is acceptable. If you are adding + contradictory data to the namespace lookup table, you must + call flushNamespaceLookupCache().

Parameters
NameTypeDescription
$prefixstring

The namespace prefix

$namespaceUristring

The full namespace URI

$majorVersioninteger

The major protocol version in effect. + Defaults to '1'.

+
$minorVersioninteger

The minor protocol version in effect. + Defaults to null (use latest).

+
methodpublicsaveXML() : string
inherited

Converts this element and all children into XML text using getDOM()

Inherited from: + \Zend_Gdata_App_Base::saveXML()
Returns
TypeDescription
stringXML content
methodpublicsetErrorCode(integer $value) : void

Set the error code for this exception.

For more information about +error codes, see getErrorCode.

Parameters
NameTypeDescription
$valueinteger

The new value for the error code.

Details
See
\getErrorCode +   +
methodpublicsetExtensionAttributes(array $value) : \Zend_Gdata_App_Base
inherited

Sets an array of all extension attributes not transformed into data +model properties during parsing of the XML.

Inherited from: + \Zend_Gdata_App_Base::setExtensionAttributes()

Each element of the array +is a hashed array of the format: + array('namespaceUri' => string, 'name' => string, 'value' => string); +This can be used to add arbitrary attributes to any data model element

Parameters
NameTypeDescription
$valuearray

All extension attributes

Returns
TypeDescription
\Zend_Gdata_App_BaseReturns an object of the same type as 'this' to provide a fluent interface.
methodpublicsetExtensionElements(array $value) : \Zend_Gdata_App_Base
inherited

Sets an array of all elements not matched to data model classes +during the parsing of the XML.

Inherited from: + \Zend_Gdata_App_Base::setExtensionElements()

This method can be used to add arbitrary +child XML elements to any data model class.

Parameters
NameTypeDescription
$valuearray

All extension elements

Returns
TypeDescription
\Zend_Gdata_App_BaseReturns an object of the same type as 'this' to provide a fluent interface.
methodpublicsetInvalidInput(string $value) : void

Set the invalid input which caused this exception.

Parameters
NameTypeDescription
$valuestring

The invalid input that triggered this exception.

Details
See
\getInvalidInput +   +
methodpublicsetReason(string $value) : void

Set human-readable text describing the reason this exception occurred.

Parameters
NameTypeDescription
$valuestring

The reason this exception occurred.

Details
See
\getReason +   +
methodpublicsetText(string $value) : \Zend_Gdata_App_Base
inherited

Sets the child text node of this element +This represents any raw text contained within the XML element

Inherited from: + \Zend_Gdata_App_Base::setText()
Parameters
NameTypeDescription
$valuestring

Child text node

Returns
TypeDescription
\Zend_Gdata_App_BaseReturns an object of the same type as 'this' to provide a fluent interface.
methodprotectedtakeAttributeFromDOM(\DOMNode $attribute) : void

Given a DOMNode representing an attribute, tries to map the data into +instance members.

If no mapping is defined, the name and value are +stored in an array.

Parameters
NameTypeDescription
$attribute\DOMNode

The DOMNode attribute needed to be handled

methodprotectedtakeChildFromDOM(\DOMNode $child) : void
inherited

Given a child DOMNode, tries to determine how to map the data into +object instance members.

Inherited from: + \Zend_Gdata_App_Base::takeChildFromDOM()

If no mapping is defined, Extension_Element +objects are created and stored in an array.

Parameters
NameTypeDescription
$child\DOMNode

The DOMNode needed to be handled

methodpublictransferFromDOM(\DOMNode $node) : void
inherited

Transfers each child and attribute into member variables.

Inherited from: + \Zend_Gdata_App_Base::transferFromDOM()

This is called when XML is received over the wire and the data +model needs to be built to represent this XML.

Parameters
NameTypeDescription
$node\DOMNode

The DOMNode that represents this object's data

+
methodpublictransferFromXML(string $xml) : void
inherited

Parses the provided XML text and generates data model classes for +each know element by turning the XML text into a DOM tree and calling +transferFromDOM($element).

Inherited from: + \Zend_Gdata_App_Base::transferFromXML()

The first data model element with the same +name as $this->_rootElement is used and the child elements are +recursively parsed.

Parameters
NameTypeDescription
$xmlstring

The XML text to parse

+ Documentation was generated by + phpDocumentor + 2.0.0a12. + -- cgit v1.2.3