From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- zend/library/Zend/Gdata/App/Extension/Author.php | 43 ++++ zend/library/Zend/Gdata/App/Extension/Category.php | 140 +++++++++++++ zend/library/Zend/Gdata/App/Extension/Content.php | 88 +++++++++ .../Zend/Gdata/App/Extension/Contributor.php | 43 ++++ zend/library/Zend/Gdata/App/Extension/Control.php | 98 +++++++++ zend/library/Zend/Gdata/App/Extension/Draft.php | 50 +++++ zend/library/Zend/Gdata/App/Extension/Edited.php | 49 +++++ zend/library/Zend/Gdata/App/Extension/Element.php | 58 ++++++ zend/library/Zend/Gdata/App/Extension/Email.php | 49 +++++ .../library/Zend/Gdata/App/Extension/Generator.php | 115 +++++++++++ zend/library/Zend/Gdata/App/Extension/Icon.php | 49 +++++ zend/library/Zend/Gdata/App/Extension/Id.php | 49 +++++ zend/library/Zend/Gdata/App/Extension/Link.php | 219 +++++++++++++++++++++ zend/library/Zend/Gdata/App/Extension/Logo.php | 49 +++++ zend/library/Zend/Gdata/App/Extension/Name.php | 48 +++++ zend/library/Zend/Gdata/App/Extension/Person.php | 163 +++++++++++++++ .../library/Zend/Gdata/App/Extension/Published.php | 49 +++++ zend/library/Zend/Gdata/App/Extension/Rights.php | 49 +++++ zend/library/Zend/Gdata/App/Extension/Source.php | 46 +++++ zend/library/Zend/Gdata/App/Extension/Subtitle.php | 43 ++++ zend/library/Zend/Gdata/App/Extension/Summary.php | 43 ++++ zend/library/Zend/Gdata/App/Extension/Text.php | 90 +++++++++ zend/library/Zend/Gdata/App/Extension/Title.php | 43 ++++ zend/library/Zend/Gdata/App/Extension/Updated.php | 49 +++++ zend/library/Zend/Gdata/App/Extension/Uri.php | 49 +++++ 25 files changed, 1771 insertions(+) create mode 100644 zend/library/Zend/Gdata/App/Extension/Author.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Category.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Content.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Contributor.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Control.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Draft.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Edited.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Element.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Email.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Generator.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Icon.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Id.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Link.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Logo.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Name.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Person.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Published.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Rights.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Source.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Subtitle.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Summary.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Text.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Title.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Updated.php create mode 100644 zend/library/Zend/Gdata/App/Extension/Uri.php (limited to 'zend/library/Zend/Gdata/App/Extension') diff --git a/zend/library/Zend/Gdata/App/Extension/Author.php b/zend/library/Zend/Gdata/App/Extension/Author.php new file mode 100644 index 0000000..1354d8b --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Author.php @@ -0,0 +1,43 @@ +_term = $term; + $this->_scheme = $scheme; + $this->_label = $label; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_term !== null) { + $element->setAttribute('term', $this->_term); + } + if ($this->_scheme !== null) { + $element->setAttribute('scheme', $this->_scheme); + } + if ($this->_label !== null) { + $element->setAttribute('label', $this->_label); + } + return $element; + } + + protected function takeAttributeFromDOM($attribute) + { + switch ($attribute->localName) { + case 'term': + $this->_term = $attribute->nodeValue; + break; + case 'scheme': + $this->_scheme = $attribute->nodeValue; + break; + case 'label': + $this->_label = $attribute->nodeValue; + break; + default: + parent::takeAttributeFromDOM($attribute); + } + } + + /** + * @return string|null + */ + public function getTerm() + { + return $this->_term; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Extension_Category Provides a fluent interface + */ + public function setTerm($value) + { + $this->_term = $value; + return $this; + } + + /** + * @return string|null + */ + public function getScheme() + { + return $this->_scheme; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Extension_Category Provides a fluent interface + */ + public function setScheme($value) + { + $this->_scheme = $value; + return $this; + } + + /** + * @return string|null + */ + public function getLabel() + { + return $this->_label; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Extension_Category Provides a fluent interface + */ + public function setLabel($value) + { + $this->_label = $value; + return $this; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Content.php b/zend/library/Zend/Gdata/App/Extension/Content.php new file mode 100644 index 0000000..36ff99a --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Content.php @@ -0,0 +1,88 @@ +_src = $src; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_src !== null) { + $element->setAttribute('src', $this->_src); + } + return $element; + } + + protected function takeAttributeFromDOM($attribute) + { + switch ($attribute->localName) { + case 'src': + $this->_src = $attribute->nodeValue; + break; + default: + parent::takeAttributeFromDOM($attribute); + } + } + + /** + * @return string + */ + public function getSrc() + { + return $this->_src; + } + + /** + * @param string $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setSrc($value) + { + $this->_src = $value; + return $this; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Contributor.php b/zend/library/Zend/Gdata/App/Extension/Contributor.php new file mode 100644 index 0000000..7f5f1c5 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Contributor.php @@ -0,0 +1,43 @@ +_draft = $draft; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_draft != null) { + $element->appendChild($this->_draft->getDOM($element->ownerDocument)); + } + return $element; + } + + protected function takeChildFromDOM($child) + { + $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; + switch ($absoluteNodeName) { + case $this->lookupNamespace('app') . ':' . 'draft': + $draft = new Zend_Gdata_App_Extension_Draft(); + $draft->transferFromDOM($child); + $this->_draft = $draft; + break; + default: + parent::takeChildFromDOM($child); + break; + } + } + + /** + * @return Zend_Gdata_App_Extension_Draft + */ + public function getDraft() + { + return $this->_draft; + } + + /** + * @param Zend_Gdata_App_Extension_Draft $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setDraft($value) + { + $this->_draft = $value; + return $this; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Draft.php b/zend/library/Zend/Gdata/App/Extension/Draft.php new file mode 100644 index 0000000..62a91ea --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Draft.php @@ -0,0 +1,50 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Edited.php b/zend/library/Zend/Gdata/App/Extension/Edited.php new file mode 100644 index 0000000..1a3a74a --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Edited.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Element.php b/zend/library/Zend/Gdata/App/Extension/Element.php new file mode 100644 index 0000000..f473d90 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Element.php @@ -0,0 +1,58 @@ +_rootElement = $rootElement; + $this->_rootNamespace = $rootNamespace; + $this->_rootNamespaceURI = $rootNamespaceURI; + $this->_text = $text; + } + + public function transferFromDOM($node) + { + parent::transferFromDOM($node); + $this->_rootNamespace = null; + $this->_rootNamespaceURI = $node->namespaceURI; + $this->_rootElement = $node->localName; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Email.php b/zend/library/Zend/Gdata/App/Extension/Email.php new file mode 100644 index 0000000..48fdb4d --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Email.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Generator.php b/zend/library/Zend/Gdata/App/Extension/Generator.php new file mode 100644 index 0000000..2f521d6 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Generator.php @@ -0,0 +1,115 @@ +_text = $text; + $this->_uri = $uri; + $this->_version = $version; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_uri !== null) { + $element->setAttribute('uri', $this->_uri); + } + if ($this->_version !== null) { + $element->setAttribute('version', $this->_version); + } + return $element; + } + + protected function takeAttributeFromDOM($attribute) + { + switch ($attribute->localName) { + case 'uri': + $this->_uri = $attribute->nodeValue; + break; + case 'version': + $this->_version= $attribute->nodeValue; + break; + default: + parent::takeAttributeFromDOM($attribute); + } + } + + /** + * @return Zend_Gdata_App_Extension_Uri + */ + public function getUri() + { + return $this->_uri; + } + + /** + * @param Zend_Gdata_App_Extension_Uri $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setUri($value) + { + $this->_uri = $value; + return $this; + } + + /** + * @return Zend_Gdata_App_Extension_Version + */ + public function getVersion() + { + return $this->_version; + } + + /** + * @param Zend_Gdata_App_Extension_Version $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setVersion($value) + { + $this->_version = $value; + return $this; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Icon.php b/zend/library/Zend/Gdata/App/Extension/Icon.php new file mode 100644 index 0000000..3e55cbb --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Icon.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Id.php b/zend/library/Zend/Gdata/App/Extension/Id.php new file mode 100644 index 0000000..bdac0cd --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Id.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Link.php b/zend/library/Zend/Gdata/App/Extension/Link.php new file mode 100644 index 0000000..ee76700 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Link.php @@ -0,0 +1,219 @@ +_href = $href; + $this->_rel = $rel; + $this->_type = $type; + $this->_hrefLang = $hrefLang; + $this->_title = $title; + $this->_length = $length; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_href !== null) { + $element->setAttribute('href', $this->_href); + } + if ($this->_rel !== null) { + $element->setAttribute('rel', $this->_rel); + } + if ($this->_type !== null) { + $element->setAttribute('type', $this->_type); + } + if ($this->_hrefLang !== null) { + $element->setAttribute('hreflang', $this->_hrefLang); + } + if ($this->_title !== null) { + $element->setAttribute('title', $this->_title); + } + if ($this->_length !== null) { + $element->setAttribute('length', $this->_length); + } + return $element; + } + + protected function takeAttributeFromDOM($attribute) + { + switch ($attribute->localName) { + case 'href': + $this->_href = $attribute->nodeValue; + break; + case 'rel': + $this->_rel = $attribute->nodeValue; + break; + case 'type': + $this->_type = $attribute->nodeValue; + break; + case 'hreflang': + $this->_hrefLang = $attribute->nodeValue; + break; + case 'title': + $this->_title = $attribute->nodeValue; + break; + case 'length': + $this->_length = $attribute->nodeValue; + break; + default: + parent::takeAttributeFromDOM($attribute); + } + } + + /** + * @return string|null + */ + public function getHref() + { + return $this->_href; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setHref($value) + { + $this->_href = $value; + return $this; + } + + /** + * @return string|null + */ + public function getRel() + { + return $this->_rel; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setRel($value) + { + $this->_rel = $value; + return $this; + } + + /** + * @return string|null + */ + public function getType() + { + return $this->_type; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setType($value) + { + $this->_type = $value; + return $this; + } + + /** + * @return string|null + */ + public function getHrefLang() + { + return $this->_hrefLang; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setHrefLang($value) + { + $this->_hrefLang = $value; + return $this; + } + + /** + * @return string|null + */ + public function getTitle() + { + return $this->_title; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setTitle($value) + { + $this->_title = $value; + return $this; + } + + /** + * @return string|null + */ + public function getLength() + { + return $this->_length; + } + + /** + * @param string|null $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setLength($value) + { + $this->_length = $value; + return $this; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Logo.php b/zend/library/Zend/Gdata/App/Extension/Logo.php new file mode 100644 index 0000000..956f2f4 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Logo.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Name.php b/zend/library/Zend/Gdata/App/Extension/Name.php new file mode 100644 index 0000000..c851028 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Name.php @@ -0,0 +1,48 @@ +_text = $text; + } +} diff --git a/zend/library/Zend/Gdata/App/Extension/Person.php b/zend/library/Zend/Gdata/App/Extension/Person.php new file mode 100644 index 0000000..7f5c2bf --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Person.php @@ -0,0 +1,163 @@ +_name = $name; + $this->_email = $email; + $this->_uri = $uri; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_name != null) { + $element->appendChild($this->_name->getDOM($element->ownerDocument)); + } + if ($this->_email != null) { + $element->appendChild($this->_email->getDOM($element->ownerDocument)); + } + if ($this->_uri != null) { + $element->appendChild($this->_uri->getDOM($element->ownerDocument)); + } + return $element; + } + + protected function takeChildFromDOM($child) + { + $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; + switch ($absoluteNodeName) { + case $this->lookupNamespace('atom') . ':' . 'name': + $name = new Zend_Gdata_App_Extension_Name(); + $name->transferFromDOM($child); + $this->_name = $name; + break; + case $this->lookupNamespace('atom') . ':' . 'email': + $email = new Zend_Gdata_App_Extension_Email(); + $email->transferFromDOM($child); + $this->_email = $email; + break; + case $this->lookupNamespace('atom') . ':' . 'uri': + $uri = new Zend_Gdata_App_Extension_Uri(); + $uri->transferFromDOM($child); + $this->_uri = $uri; + break; + default: + parent::takeChildFromDOM($child); + break; + } + } + + /** + * @return Zend_Gdata_App_Extension_Name + */ + public function getName() + { + return $this->_name; + } + + /** + * @param Zend_Gdata_App_Extension_Name $value + * @return Zend_Gdata_App_Entry Provides a fluent interface + */ + public function setName($value) + { + $this->_name = $value; + return $this; + } + + /** + * @return Zend_Gdata_App_Extension_Email + */ + public function getEmail() + { + return $this->_email; + } + + /** + * @param Zend_Gdata_App_Extension_Email $value + * @return Zend_Gdata_App_Extension_Person Provides a fluent interface + */ + public function setEmail($value) + { + $this->_email = $value; + return $this; + } + + /** + * @return Zend_Gdata_App_Extension_Uri + */ + public function getUri() + { + return $this->_uri; + } + + /** + * @param Zend_Gdata_App_Extension_Uri $value + * @return Zend_Gdata_App_Extension_Person Provides a fluent interface + */ + public function setUri($value) + { + $this->_uri = $value; + return $this; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Published.php b/zend/library/Zend/Gdata/App/Extension/Published.php new file mode 100644 index 0000000..2442284 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Published.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Rights.php b/zend/library/Zend/Gdata/App/Extension/Rights.php new file mode 100644 index 0000000..d8a5a39 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Rights.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Source.php b/zend/library/Zend/Gdata/App/Extension/Source.php new file mode 100644 index 0000000..1779c17 --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Source.php @@ -0,0 +1,46 @@ +_text = $text; + $this->_type = $type; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_type !== null) { + $element->setAttribute('type', $this->_type); + } + return $element; + } + + protected function takeAttributeFromDOM($attribute) + { + switch ($attribute->localName) { + case 'type': + $this->_type = $attribute->nodeValue; + break; + default: + parent::takeAttributeFromDOM($attribute); + } + } + + /* + * @return Zend_Gdata_App_Extension_Type + */ + public function getType() + { + return $this->_type; + } + + /* + * @param string $value + * @return Zend_Gdata_App_Extension_Text Provides a fluent interface + */ + public function setType($value) + { + $this->_type = $value; + return $this; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Title.php b/zend/library/Zend/Gdata/App/Extension/Title.php new file mode 100644 index 0000000..69899bb --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Title.php @@ -0,0 +1,43 @@ +_text = $text; + } + +} diff --git a/zend/library/Zend/Gdata/App/Extension/Uri.php b/zend/library/Zend/Gdata/App/Extension/Uri.php new file mode 100644 index 0000000..2168b1a --- /dev/null +++ b/zend/library/Zend/Gdata/App/Extension/Uri.php @@ -0,0 +1,49 @@ +_text = $text; + } + +} -- cgit v1.2.3