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

Gdata/Books/Extension/InfoLink.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 +   +
License
New BSD License +   +
Package
Zend_Gdata +   +
Subpackage
Books +   +
Version
$Id: InfoLink.php 24593 2012-01-05 20:35:02Z matthew $ +   +

\Zend_Gdata_Books_Extension_InfoLink

Package: Zend\Gdata\Books
Describes an info link
Parent(s)
\Zend_Gdata_Books_Extension_BooksLink + < + \Zend_Gdata_App_Extension_Link + < + \Zend_Gdata_App_Extension + < + \Zend_Gdata_App_Base
Category
Zend +   +
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) +   +
License
New BSD License +   +

Properties

>VPropertyprotected$_href = null
Default valuenullDetails
Type
n/a
Inherited_from
\Zend_Gdata_App_Extension_Link::$$_href +   +
Inherited_from
\Zend_Gdata_Books_Extension_BooksLink::$$_href +   +
>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\Zend_Gdata_App_Extension::$$_namespaceLookupCache\Zend_Gdata_App_Extension_Link::$$_namespaceLookupCache\Zend_Gdata_Books_Extension_BooksLink::$$_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')))

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 +   +
Inherited_from
\Zend_Gdata_App_Extension::$$_namespaces +   +
Inherited_from
\Zend_Gdata_App_Extension_Link::$$_namespaces +   +
Inherited_from
\Zend_Gdata_Books_Extension_BooksLink::$$_namespaces +   +
See
\lookupNamespace() +   +
See
\registerNamespace() +   +
See
\registerAllNamespaces() +   +
>VPropertyprotected$_rel = null
Default valuenullDetails
Type
n/a
Inherited_from
\Zend_Gdata_App_Extension_Link::$$_rel +   +
Inherited_from
\Zend_Gdata_Books_Extension_BooksLink::$$_rel +   +
>VPropertyprotectedstring $_rootElement = 'link'
inherited

The XML element name, including prefix if desired

Inherited from: + \Zend_Gdata_App_Extension_Link::$$_rootElement\Zend_Gdata_Books_Extension_BooksLink::$$_rootElement
Default value'link'Details
Type
string
Inherited_from
\Zend_Gdata_App_Extension_Link::$$_rootElement +   +
Inherited_from
\Zend_Gdata_Books_Extension_BooksLink::$$_rootElement +   +
>VPropertyprotectedstring $_rootNamespaceURI = null
>VPropertyprotected$_title = null
Default valuenullDetails
Type
n/a
Inherited_from
\Zend_Gdata_App_Extension_Link::$$_title +   +
Inherited_from
\Zend_Gdata_Books_Extension_BooksLink::$$_title +   +
>VPropertyprotected$_type = null
Default valuenullDetails
Type
n/a
Inherited_from
\Zend_Gdata_App_Extension_Link::$$_type +   +
Inherited_from
\Zend_Gdata_Books_Extension_BooksLink::$$_type +   +

Methods

methodpublic__construct(string | null $href = null, string | null $rel = null, string | null $type = null, string | null $hrefLang = null, string | null $title = null, string | null $length = null) : void

Constructor for Zend_Gdata_Books_Extension_InfoLink which +Describes an info link

Parameters
NameTypeDescription
$hrefstring | null

Linked resource URI

$relstring | null

Forward relationship

$typestring | null

Resource MIME type

$hrefLangstring | null

Resource language

$titlestring | null

Human-readable resource title

+
$lengthstring | null

Resource length in octets

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()\Zend_Gdata_App_Extension::__get()\Zend_Gdata_App_Extension_Link::__get()\Zend_Gdata_Books_Extension_BooksLink::__get()

TODO Remove ability to bypass getFoo() methods??

Parameters
NameTypeDescription
$namestring

The variable name sought

methodpublic__isset(string $name) : void
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()\Zend_Gdata_App_Extension::__set()\Zend_Gdata_App_Extension_Link::__set()\Zend_Gdata_Books_Extension_BooksLink::__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
inherited

Magic toString method allows using this directly via echo +Works best in PHP >= 4.2.0

Inherited from: + \Zend_Gdata_App_Base::__toString()\Zend_Gdata_App_Extension::__toString()\Zend_Gdata_App_Extension_Link::__toString()\Zend_Gdata_Books_Extension_BooksLink::__toString()
Returns
TypeDescription
stringThe text representation of this object
methodpublic__unset(string $name) : void
Parameters
NameTypeDescription
$namestring
methodpublicencode() : string

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

Returns
TypeDescription
stringEncoded string content
methodpublicflushNamespaceLookupCache() : void

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
inherited

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

Inherited from: + \Zend_Gdata_App_Extension_Link::getDOM()\Zend_Gdata_Books_Extension_BooksLink::getDOM()

This is used to build an entry back into a DOM +and eventually XML text for sending to the server upon updates, or +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.
methodpublicgetExtensionAttributes() : array

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
Returns
TypeDescription
arrayAll elements not matched to data model classes during parsing
methodpublicgetHref() : string | null
Returns
TypeDescription
string | null
methodpublicgetHrefLang() : string | null
Returns
TypeDescription
string | null
methodpublicgetLength() : string | null
Returns
TypeDescription
string | null
methodpublicgetRel() : string | null
Returns
TypeDescription
string | null
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()\Zend_Gdata_App_Extension::getText()\Zend_Gdata_App_Extension_Link::getText()\Zend_Gdata_Books_Extension_BooksLink::getText()
Parameters
NameTypeDescription
$trim
Returns
TypeDescription
stringChild text node
methodpublicgetTitle() : string | null
Returns
TypeDescription
string | null
methodpublicgetType() : string | null
Returns
TypeDescription
string | null
methodpublicgetXML() : string
Returns
TypeDescription
stringXML content
methodpubliclookupNamespace(string $prefix, integer $majorVersion = 1, integer $minorVersion = null) : string

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

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

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
Returns
TypeDescription
stringXML content
methodpublicsetExtensionAttributes(array $value) : \Zend_Gdata_App_Base

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

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.
methodpublicsetHref(string | null $value) : \Zend_Gdata_App_Entry
Parameters
NameTypeDescription
$valuestring | null
Returns
TypeDescription
\Zend_Gdata_App_EntryProvides a fluent interface
methodpublicsetHrefLang(string | null $value) : \Zend_Gdata_App_Entry
Parameters
NameTypeDescription
$valuestring | null
Returns
TypeDescription
\Zend_Gdata_App_EntryProvides a fluent interface
methodpublicsetLength(string | null $value) : \Zend_Gdata_App_Entry
Parameters
NameTypeDescription
$valuestring | null
Returns
TypeDescription
\Zend_Gdata_App_EntryProvides a fluent interface
methodpublicsetRel(string | null $value) : \Zend_Gdata_App_Entry
Parameters
NameTypeDescription
$valuestring | null
Returns
TypeDescription
\Zend_Gdata_App_EntryProvides a fluent interface
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()\Zend_Gdata_App_Extension::setText()\Zend_Gdata_App_Extension_Link::setText()\Zend_Gdata_Books_Extension_BooksLink::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.
methodpublicsetTitle(string | null $value) : \Zend_Gdata_App_Entry
Parameters
NameTypeDescription
$valuestring | null
Returns
TypeDescription
\Zend_Gdata_App_EntryProvides a fluent interface
methodpublicsetType(string | null $value) : \Zend_Gdata_App_Entry
Parameters
NameTypeDescription
$valuestring | null
Returns
TypeDescription
\Zend_Gdata_App_EntryProvides a fluent interface
methodprotectedtakeAttributeFromDOM(\DOMNode $attribute) : void
inherited

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

Inherited from: + \Zend_Gdata_App_Extension_Link::takeAttributeFromDOM()\Zend_Gdata_Books_Extension_BooksLink::takeAttributeFromDOM()

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

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

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()\Zend_Gdata_App_Extension::transferFromXML()\Zend_Gdata_App_Extension_Link::transferFromXML()\Zend_Gdata_Books_Extension_BooksLink::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