CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
123
airtime_mvc/library/Zend/Gdata/Extension/AttendeeStatus.php
Normal file
123
airtime_mvc/library/Zend/Gdata/Extension/AttendeeStatus.php
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: AttendeeStatus.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Data model class to represent an attendee's status (gd:attendeeStatus)
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_AttendeeStatus extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'attendeeStatus';
|
||||
protected $_value = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Extension_AttendeeStatus object.
|
||||
* @param string $value (optional) Visibility value as URI.
|
||||
*/
|
||||
public function __construct($value = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_value !== null) {
|
||||
$element->setAttribute('value', $this->_value);
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
*/
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'value':
|
||||
$this->_value = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Value attribute.
|
||||
*
|
||||
* @return string The requested attribute.
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Value attribute.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Visibility The element being modified.
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic toString method allows using this directly via echo
|
||||
* Works best in PHP >= 4.2.0
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getValue();
|
||||
}
|
||||
|
||||
}
|
||||
|
123
airtime_mvc/library/Zend/Gdata/Extension/AttendeeType.php
Normal file
123
airtime_mvc/library/Zend/Gdata/Extension/AttendeeType.php
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: AttendeeType.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Data model class to represent an attendee's type (gd:attendeeType)
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_AttendeeType extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'attendeeType';
|
||||
protected $_value = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Extension_AttendeeType object.
|
||||
* @param string $value (optional) This entry's 'value' attribute.
|
||||
*/
|
||||
public function __construct($value = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_value !== null) {
|
||||
$element->setAttribute('value', $this->_value);
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
*/
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'value':
|
||||
$this->_value = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Value attribute.
|
||||
*
|
||||
* @return string The requested attribute.
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Value attribute.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Visibility The element being modified.
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic toString method allows using this directly via echo
|
||||
* Works best in PHP >= 4.2.0
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getValue();
|
||||
}
|
||||
|
||||
}
|
||||
|
117
airtime_mvc/library/Zend/Gdata/Extension/Comments.php
Normal file
117
airtime_mvc/library/Zend/Gdata/Extension/Comments.php
Normal file
|
@ -0,0 +1,117 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Comments.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_FeedLink
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/FeedLink.php';
|
||||
|
||||
/**
|
||||
* Represents the gd:comments element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Comments extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'comments';
|
||||
protected $_rel = null;
|
||||
protected $_feedLink = null;
|
||||
|
||||
public function __construct($rel = null, $feedLink = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_rel = $rel;
|
||||
$this->_feedLink = $feedLink;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_rel !== null) {
|
||||
$element->setAttribute('rel', $this->_rel);
|
||||
}
|
||||
if ($this->_feedLink !== null) {
|
||||
$element->appendChild($this->_feedLink->getDOM($element->ownerDocument));
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('gd') . ':' . 'feedLink';
|
||||
$feedLink = new Zend_Gdata_Extension_FeedLink();
|
||||
$feedLink->transferFromDOM($child);
|
||||
$this->_feedLink = $feedLink;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'rel':
|
||||
$this->_rel = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
public function getRel()
|
||||
{
|
||||
return $this->_rel;
|
||||
}
|
||||
|
||||
public function setRel($value)
|
||||
{
|
||||
$this->_rel = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getFeedLink()
|
||||
{
|
||||
return $this->_feedLink;
|
||||
}
|
||||
|
||||
public function setFeedLink($value)
|
||||
{
|
||||
$this->_feedLink = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
167
airtime_mvc/library/Zend/Gdata/Extension/EntryLink.php
Normal file
167
airtime_mvc/library/Zend/Gdata/Extension/EntryLink.php
Normal file
|
@ -0,0 +1,167 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: EntryLink.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Entry
|
||||
*/
|
||||
require_once 'Zend/Gdata/Entry.php';
|
||||
|
||||
/**
|
||||
* Represents the gd:entryLink element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_EntryLink extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'entryLink';
|
||||
protected $_href = null;
|
||||
protected $_readOnly = null;
|
||||
protected $_rel = null;
|
||||
protected $_entry = null;
|
||||
|
||||
public function __construct($href = null, $rel = null,
|
||||
$readOnly = null, $entry = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_href = $href;
|
||||
$this->_readOnly = $readOnly;
|
||||
$this->_rel = $rel;
|
||||
$this->_entry = $entry;
|
||||
}
|
||||
|
||||
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->_readOnly !== null) {
|
||||
$element->setAttribute('readOnly', ($this->_readOnly ? "true" : "false"));
|
||||
}
|
||||
if ($this->_rel !== null) {
|
||||
$element->setAttribute('rel', $this->_rel);
|
||||
}
|
||||
if ($this->_entry !== null) {
|
||||
$element->appendChild($this->_entry->getDOM($element->ownerDocument));
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('atom') . ':' . 'entry';
|
||||
$entry = new Zend_Gdata_Entry();
|
||||
$entry->transferFromDOM($child);
|
||||
$this->_entry = $entry;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'href':
|
||||
$this->_href = $attribute->nodeValue;
|
||||
break;
|
||||
case 'readOnly':
|
||||
if ($attribute->nodeValue == "true") {
|
||||
$this->_readOnly = true;
|
||||
}
|
||||
else if ($attribute->nodeValue == "false") {
|
||||
$this->_readOnly = false;
|
||||
}
|
||||
else {
|
||||
throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
|
||||
}
|
||||
break;
|
||||
case 'rel':
|
||||
$this->_rel = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHref()
|
||||
{
|
||||
return $this->_href;
|
||||
}
|
||||
|
||||
public function setHref($value)
|
||||
{
|
||||
$this->_href = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getReadOnly()
|
||||
{
|
||||
return $this->_readOnly;
|
||||
}
|
||||
|
||||
public function setReadOnly($value)
|
||||
{
|
||||
$this->_readOnly = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRel()
|
||||
{
|
||||
return $this->_rel;
|
||||
}
|
||||
|
||||
public function setRel($value)
|
||||
{
|
||||
$this->_rel = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEntry()
|
||||
{
|
||||
return $this->_entry;
|
||||
}
|
||||
|
||||
public function setEntry($value)
|
||||
{
|
||||
$this->_entry = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
101
airtime_mvc/library/Zend/Gdata/Extension/EventStatus.php
Normal file
101
airtime_mvc/library/Zend/Gdata/Extension/EventStatus.php
Normal file
|
@ -0,0 +1,101 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: EventStatus.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Represents the gd:eventStatus element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_EventStatus extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'eventStatus';
|
||||
protected $_value = null;
|
||||
|
||||
public function __construct($value = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_value !== null) {
|
||||
$element->setAttribute('value', $this->_value);
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'value':
|
||||
$this->_value = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Value attribute.
|
||||
*
|
||||
* @return string The requested attribute.
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Value attribute.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Visibility The element being modified.
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic toString method allows using this directly via echo
|
||||
* Works best in PHP >= 4.2.0
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getValue();
|
||||
}
|
||||
|
||||
}
|
106
airtime_mvc/library/Zend/Gdata/Extension/ExtendedProperty.php
Normal file
106
airtime_mvc/library/Zend/Gdata/Extension/ExtendedProperty.php
Normal file
|
@ -0,0 +1,106 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ExtendedProperty.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Data model for gd:extendedProperty element, used by some Gdata
|
||||
* services to implement arbitrary name/value pair storage
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_ExtendedProperty extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'extendedProperty';
|
||||
protected $_name = null;
|
||||
protected $_value = null;
|
||||
|
||||
public function __construct($name = null, $value = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_name = $name;
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_name !== null) {
|
||||
$element->setAttribute('name', $this->_name);
|
||||
}
|
||||
if ($this->_value !== null) {
|
||||
$element->setAttribute('value', $this->_value);
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'name':
|
||||
$this->_name = $attribute->nodeValue;
|
||||
break;
|
||||
case 'value':
|
||||
$this->_value = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getName() . '=' . $this->getValue();
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->_name;
|
||||
}
|
||||
|
||||
public function setName($value)
|
||||
{
|
||||
$this->_name = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
175
airtime_mvc/library/Zend/Gdata/Extension/FeedLink.php
Normal file
175
airtime_mvc/library/Zend/Gdata/Extension/FeedLink.php
Normal file
|
@ -0,0 +1,175 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: FeedLink.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Feed
|
||||
*/
|
||||
require_once 'Zend/Gdata/Feed.php';
|
||||
|
||||
/**
|
||||
* Represents the gd:feedLink element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_FeedLink extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'feedLink';
|
||||
protected $_countHint = null;
|
||||
protected $_href = null;
|
||||
protected $_readOnly = null;
|
||||
protected $_rel = null;
|
||||
protected $_feed = null;
|
||||
|
||||
public function __construct($href = null, $rel = null,
|
||||
$countHint = null, $readOnly = null, $feed = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_countHint = $countHint;
|
||||
$this->_href = $href;
|
||||
$this->_readOnly = $readOnly;
|
||||
$this->_rel = $rel;
|
||||
$this->_feed = $feed;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_countHint !== null) {
|
||||
$element->setAttribute('countHint', $this->_countHint);
|
||||
}
|
||||
if ($this->_href !== null) {
|
||||
$element->setAttribute('href', $this->_href);
|
||||
}
|
||||
if ($this->_readOnly !== null) {
|
||||
$element->setAttribute('readOnly', ($this->_readOnly ? "true" : "false"));
|
||||
}
|
||||
if ($this->_rel !== null) {
|
||||
$element->setAttribute('rel', $this->_rel);
|
||||
}
|
||||
if ($this->_feed !== null) {
|
||||
$element->appendChild($this->_feed->getDOM($element->ownerDocument));
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('atom') . ':' . 'feed';
|
||||
$feed = new Zend_Gdata_Feed();
|
||||
$feed->transferFromDOM($child);
|
||||
$this->_feed = $feed;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'countHint':
|
||||
$this->_countHint = $attribute->nodeValue;
|
||||
break;
|
||||
case 'href':
|
||||
$this->_href = $attribute->nodeValue;
|
||||
break;
|
||||
case 'readOnly':
|
||||
if ($attribute->nodeValue == "true") {
|
||||
$this->_readOnly = true;
|
||||
}
|
||||
else if ($attribute->nodeValue == "false") {
|
||||
$this->_readOnly = false;
|
||||
}
|
||||
else {
|
||||
throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
|
||||
}
|
||||
break;
|
||||
case 'rel':
|
||||
$this->_rel = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHref()
|
||||
{
|
||||
return $this->_href;
|
||||
}
|
||||
|
||||
public function setHref($value)
|
||||
{
|
||||
$this->_href = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getReadOnly()
|
||||
{
|
||||
return $this->_readOnly;
|
||||
}
|
||||
|
||||
public function setReadOnly($value)
|
||||
{
|
||||
$this->_readOnly = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRel()
|
||||
{
|
||||
return $this->_rel;
|
||||
}
|
||||
|
||||
public function setRel($value)
|
||||
{
|
||||
$this->_rel = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getFeed()
|
||||
{
|
||||
return $this->_feed;
|
||||
}
|
||||
|
||||
public function setFeed($value)
|
||||
{
|
||||
$this->_feed = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: OpenSearchItemsPerPage.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Represents the openSearch:itemsPerPage element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_OpenSearchItemsPerPage extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'itemsPerPage';
|
||||
protected $_rootNamespace = 'openSearch';
|
||||
|
||||
public function __construct($text = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_text = $text;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: OpenSearchStartIndex.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Represents the openSeach:startIndex element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_OpenSearchStartIndex extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'startIndex';
|
||||
protected $_rootNamespace = 'openSearch';
|
||||
|
||||
public function __construct($text = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_text = $text;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: OpenSearchTotalResults.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Represents the openSearch:totalResults element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_OpenSearchTotalResults extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'totalResults';
|
||||
protected $_rootNamespace = 'openSearch';
|
||||
|
||||
public function __construct($text = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_text = $text;
|
||||
}
|
||||
|
||||
}
|
142
airtime_mvc/library/Zend/Gdata/Extension/OriginalEvent.php
Normal file
142
airtime_mvc/library/Zend/Gdata/Extension/OriginalEvent.php
Normal file
|
@ -0,0 +1,142 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: OriginalEvent.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Feed
|
||||
*/
|
||||
require_once 'Zend/Gdata/Feed.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_When
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/When.php';
|
||||
|
||||
/**
|
||||
* Represents the gd:originalEvent element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_OriginalEvent extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'originalEvent';
|
||||
protected $_id = null;
|
||||
protected $_href = null;
|
||||
protected $_when = null;
|
||||
|
||||
public function __construct($id = null, $href = null, $when = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_id = $id;
|
||||
$this->_href = $href;
|
||||
$this->_when = $when;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_id !== null) {
|
||||
$element->setAttribute('id', $this->_id);
|
||||
}
|
||||
if ($this->_href !== null) {
|
||||
$element->setAttribute('href', $this->_href);
|
||||
}
|
||||
if ($this->_when !== null) {
|
||||
$element->appendChild($this->_when->getDOM($element->ownerDocument));
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'id':
|
||||
$this->_id = $attribute->nodeValue;
|
||||
break;
|
||||
case 'href':
|
||||
$this->_href = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('gd') . ':' . 'when';
|
||||
$when = new Zend_Gdata_Extension_When();
|
||||
$when->transferFromDOM($child);
|
||||
$this->_when = $when;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function getId()
|
||||
{
|
||||
return $this->_id;
|
||||
}
|
||||
|
||||
public function setId($value)
|
||||
{
|
||||
$this->_id = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getHref()
|
||||
{
|
||||
return $this->_href;
|
||||
}
|
||||
|
||||
public function setHref($value)
|
||||
{
|
||||
$this->_href = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getWhen()
|
||||
{
|
||||
return $this->_when;
|
||||
}
|
||||
|
||||
public function setWhen($value)
|
||||
{
|
||||
$this->_when = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
}
|
240
airtime_mvc/library/Zend/Gdata/Extension/Rating.php
Normal file
240
airtime_mvc/library/Zend/Gdata/Extension/Rating.php
Normal file
|
@ -0,0 +1,240 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Rating.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Implements the gd:rating element
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Rating extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'rating';
|
||||
protected $_min = null;
|
||||
protected $_max = null;
|
||||
protected $_numRaters = null;
|
||||
protected $_average = null;
|
||||
protected $_value = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Extension_Rating object.
|
||||
*
|
||||
* @param integer $average (optional) Average rating.
|
||||
* @param integer $min (optional) Minimum rating.
|
||||
* @param integer $max (optional) Maximum rating.
|
||||
* @param integer $numRaters (optional) Number of raters.
|
||||
* @param integer $value (optional) The value of the rating.
|
||||
*/
|
||||
public function __construct($average = null, $min = null,
|
||||
$max = null, $numRaters = null, $value = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_average = $average;
|
||||
$this->_min = $min;
|
||||
$this->_max = $max;
|
||||
$this->_numRaters = $numRaters;
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_min !== null) {
|
||||
$element->setAttribute('min', $this->_min);
|
||||
}
|
||||
if ($this->_max !== null) {
|
||||
$element->setAttribute('max', $this->_max);
|
||||
}
|
||||
if ($this->_numRaters !== null) {
|
||||
$element->setAttribute('numRaters', $this->_numRaters);
|
||||
}
|
||||
if ($this->_average !== null) {
|
||||
$element->setAttribute('average', $this->_average);
|
||||
}
|
||||
if ($this->_value !== null) {
|
||||
$element->setAttribute('value', $this->_value);
|
||||
}
|
||||
|
||||
return $element;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
*/
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'min':
|
||||
$this->_min = $attribute->nodeValue;
|
||||
break;
|
||||
case 'max':
|
||||
$this->_max = $attribute->nodeValue;
|
||||
break;
|
||||
case 'numRaters':
|
||||
$this->_numRaters = $attribute->nodeValue;
|
||||
break;
|
||||
case 'average':
|
||||
$this->_average = $attribute->nodeValue;
|
||||
break;
|
||||
case 'value':
|
||||
$this->_value = $attribute->nodeValue;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's min attribute.
|
||||
*
|
||||
* @return integer The requested attribute.
|
||||
*/
|
||||
public function getMin()
|
||||
{
|
||||
return $this->_min;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's min attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Rating The element being modified.
|
||||
*/
|
||||
public function setMin($value)
|
||||
{
|
||||
$this->_min = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's numRaters attribute.
|
||||
*
|
||||
* @return integer The requested attribute.
|
||||
*/
|
||||
public function getNumRaters()
|
||||
{
|
||||
return $this->_numRaters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's numRaters attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Rating The element being modified.
|
||||
*/
|
||||
public function setNumRaters($value)
|
||||
{
|
||||
$this->_numRaters = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's average attribute.
|
||||
*
|
||||
* @return integer The requested attribute.
|
||||
*/
|
||||
public function getAverage()
|
||||
{
|
||||
return $this->_average;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's average attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Rating The element being modified.
|
||||
*/
|
||||
public function setAverage($value)
|
||||
{
|
||||
$this->_average = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's max attribute.
|
||||
*
|
||||
* @return integer The requested attribute.
|
||||
*/
|
||||
public function getMax()
|
||||
{
|
||||
return $this->_max;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's max attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Rating The element being modified.
|
||||
*/
|
||||
public function setMax($value)
|
||||
{
|
||||
$this->_max = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's value attribute.
|
||||
*
|
||||
* @return integer The requested attribute.
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's value attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Rating The element being modified.
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
49
airtime_mvc/library/Zend/Gdata/Extension/Recurrence.php
Normal file
49
airtime_mvc/library/Zend/Gdata/Extension/Recurrence.php
Normal file
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Recurrence.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Represents the gd:recurrence element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Recurrence extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'recurrence';
|
||||
|
||||
public function __construct($text = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_text = $text;
|
||||
}
|
||||
|
||||
}
|
215
airtime_mvc/library/Zend/Gdata/Extension/RecurrenceException.php
Normal file
215
airtime_mvc/library/Zend/Gdata/Extension/RecurrenceException.php
Normal file
|
@ -0,0 +1,215 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: RecurrenceException.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_EntryLink
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/EntryLink.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_OriginalEvent
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/OriginalEvent.php';
|
||||
|
||||
/**
|
||||
* Data model class to represent an entry's recurrenceException
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_RecurrenceException extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'recurrenceException';
|
||||
protected $_specialized = null;
|
||||
protected $_entryLink = null;
|
||||
protected $_originalEvent = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Extension_RecurrenceException object.
|
||||
* @param bool $specialized (optional) Whether this is a specialized exception or not.
|
||||
* @param Zend_Gdata_EntryLink (optional) An Event entry with details about the exception.
|
||||
* @param Zend_Gdata_OriginalEvent (optional) The origianl recurrent event this is an exeption to.
|
||||
*/
|
||||
public function __construct($specialized = null, $entryLink = null,
|
||||
$originalEvent = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_specialized = $specialized;
|
||||
$this->_entryLink = $entryLink;
|
||||
$this->_originalEvent = $originalEvent;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_specialized !== null) {
|
||||
$element->setAttribute('specialized', ($this->_specialized ? "true" : "false"));
|
||||
}
|
||||
if ($this->_entryLink !== null) {
|
||||
$element->appendChild($this->_entryLink->getDOM($element->ownerDocument));
|
||||
}
|
||||
if ($this->_originalEvent !== null) {
|
||||
$element->appendChild($this->_originalEvent->getDOM($element->ownerDocument));
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
*/
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'specialized':
|
||||
if ($attribute->nodeValue == "true") {
|
||||
$this->_specialized = true;
|
||||
}
|
||||
else if ($attribute->nodeValue == "false") {
|
||||
$this->_specialized = false;
|
||||
}
|
||||
else {
|
||||
throw new Zend_Gdata_App_InvalidArgumentException("Expected 'true' or 'false' for gCal:selected#value.");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates individual Entry objects of the appropriate type and
|
||||
* stores them as members of this entry based upon DOM data.
|
||||
*
|
||||
* @param DOMNode $child The DOMNode to process
|
||||
*/
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('gd') . ':' . 'entryLink':
|
||||
$entryLink = new Zend_Gdata_Extension_EntryLink();
|
||||
$entryLink->transferFromDOM($child);
|
||||
$this->_entryLink = $entryLink;
|
||||
break;
|
||||
case $this->lookupNamespace('gd') . ':' . 'originalEvent':
|
||||
$originalEvent = new Zend_Gdata_Extension_OriginalEvent();
|
||||
$originalEvent->transferFromDOM($child);
|
||||
$this->_originalEvent = $originalEvent;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Specialized attribute.
|
||||
*
|
||||
* @return bool The requested attribute.
|
||||
*/
|
||||
public function getSpecialized()
|
||||
{
|
||||
return $this->_specialized;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Specialized attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_RecurrenceException The element being modified.
|
||||
*/
|
||||
public function setSpecialized($value)
|
||||
{
|
||||
$this->_specialized = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's EntryLink attribute.
|
||||
*
|
||||
* @return Zend_Gdata_Extension_EntryLink The requested attribute.
|
||||
*/
|
||||
public function getEntryLink()
|
||||
{
|
||||
return $this->_entryLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's EntryLink attribute.
|
||||
*
|
||||
* @param Zend_Gdata_Extension_EntryLink $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_RecurrenceException The element being modified.
|
||||
*/
|
||||
public function setEntryLink($value)
|
||||
{
|
||||
$this->_entryLink = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Specialized attribute.
|
||||
*
|
||||
* @return Zend_Gdata_Extension_OriginalEvent The requested attribute.
|
||||
*/
|
||||
public function getOriginalEvent()
|
||||
{
|
||||
return $this->_originalEvent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Specialized attribute.
|
||||
*
|
||||
* @param Zend_Gdata_Extension_OriginalEvent $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_RecurrenceException The element being modified.
|
||||
*/
|
||||
public function setOriginalEvent($value)
|
||||
{
|
||||
$this->_originalEvent = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
171
airtime_mvc/library/Zend/Gdata/Extension/Reminder.php
Normal file
171
airtime_mvc/library/Zend/Gdata/Extension/Reminder.php
Normal file
|
@ -0,0 +1,171 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Reminder.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Implements the gd:reminder element used to set/retrieve notifications
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Reminder extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'reminder';
|
||||
protected $_absoluteTime = null;
|
||||
protected $_method = null;
|
||||
protected $_days = null;
|
||||
protected $_hours = null;
|
||||
protected $_minutes = null;
|
||||
|
||||
public function __construct($absoluteTime = null, $method = null, $days = null,
|
||||
$hours = null, $minutes = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_absoluteTime = $absoluteTime;
|
||||
$this->_method = $method;
|
||||
$this->_days = $days;
|
||||
$this->_hours = $hours;
|
||||
$this->_minutes = $minutes;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_absoluteTime !== null) {
|
||||
$element->setAttribute('absoluteTime', $this->_absoluteTime);
|
||||
}
|
||||
if ($this->_method !== null) {
|
||||
$element->setAttribute('method', $this->_method);
|
||||
}
|
||||
if ($this->_days !== null) {
|
||||
$element->setAttribute('days', $this->_days);
|
||||
}
|
||||
if ($this->_hours !== null) {
|
||||
$element->setAttribute('hours', $this->_hours);
|
||||
}
|
||||
if ($this->_minutes !== null) {
|
||||
$element->setAttribute('minutes', $this->_minutes);
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'absoluteTime':
|
||||
$this->_absoluteTime = $attribute->nodeValue;
|
||||
break;
|
||||
case 'method':
|
||||
$this->_method = $attribute->nodeValue;
|
||||
break;
|
||||
case 'days':
|
||||
$this->_days = $attribute->nodeValue;
|
||||
break;
|
||||
case 'hours':
|
||||
$this->_hours = $attribute->nodeValue;
|
||||
break;
|
||||
case 'minutes':
|
||||
$this->_minutes = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
$s = '';
|
||||
if ($this->_absoluteTime)
|
||||
$s = " at " . $this->_absoluteTime;
|
||||
else if ($this->_days)
|
||||
$s = " in " . $this->_days . " days";
|
||||
else if ($this->_hours)
|
||||
$s = " in " . $this->_hours . " hours";
|
||||
else if ($this->_minutes)
|
||||
$s = " in " . $this->_minutes . " minutes";
|
||||
return $this->_method . $s;
|
||||
}
|
||||
|
||||
public function getAbsoluteTime()
|
||||
{
|
||||
return $this->_absoluteTime;
|
||||
}
|
||||
|
||||
public function setAbsoluteTime($value)
|
||||
{
|
||||
$this->_absoluteTime = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDays()
|
||||
{
|
||||
return $this->_days;
|
||||
}
|
||||
|
||||
public function setDays($value)
|
||||
{
|
||||
$this->_days = $value;
|
||||
return $this;
|
||||
}
|
||||
public function getHours()
|
||||
{
|
||||
return $this->_hours;
|
||||
}
|
||||
|
||||
public function setHours($value)
|
||||
{
|
||||
$this->_hours = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getMinutes()
|
||||
{
|
||||
return $this->_minutes;
|
||||
}
|
||||
|
||||
public function setMinutes($value)
|
||||
{
|
||||
$this->_minutes = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getMethod()
|
||||
{
|
||||
return $this->_method;
|
||||
}
|
||||
|
||||
public function setMethod($value)
|
||||
{
|
||||
$this->_method = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
123
airtime_mvc/library/Zend/Gdata/Extension/Transparency.php
Normal file
123
airtime_mvc/library/Zend/Gdata/Extension/Transparency.php
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Transparency.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Data model class to represent an entry's transparency
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Transparency extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'transparency';
|
||||
protected $_value = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Extension_Transparency object.
|
||||
* @param bool $value (optional) Transparency value as URI
|
||||
*/
|
||||
public function __construct($value = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_value !== null) {
|
||||
$element->setAttribute('value', $this->_value);
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
*/
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'value':
|
||||
$this->_value = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Value attribute.
|
||||
*
|
||||
* @return bool The requested attribute.
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Value attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Transparency The element being modified.
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic toString method allows using this directly via echo
|
||||
* Works best in PHP >= 4.2.0
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getValue();
|
||||
}
|
||||
|
||||
}
|
||||
|
123
airtime_mvc/library/Zend/Gdata/Extension/Visibility.php
Normal file
123
airtime_mvc/library/Zend/Gdata/Extension/Visibility.php
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Visibility.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* Data model class to represent an entry's visibility
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Visibility extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'visibility';
|
||||
protected $_value = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Extension_Visibility object.
|
||||
* @param bool $value (optional) Visibility value as URI.
|
||||
*/
|
||||
public function __construct($value = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_value = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_value !== null) {
|
||||
$element->setAttribute('value', $this->_value);
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
*/
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'value':
|
||||
$this->_value = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Value attribute.
|
||||
*
|
||||
* @return bool The requested attribute.
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->_value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Value attribute.
|
||||
*
|
||||
* @param bool $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Visibility The element being modified.
|
||||
*/
|
||||
public function setValue($value)
|
||||
{
|
||||
$this->_value = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic toString method allows using this directly via echo
|
||||
* Works best in PHP >= 4.2.0
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getValue();
|
||||
}
|
||||
|
||||
}
|
||||
|
169
airtime_mvc/library/Zend/Gdata/Extension/When.php
Normal file
169
airtime_mvc/library/Zend/Gdata/Extension/When.php
Normal file
|
@ -0,0 +1,169 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: When.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_Reminder
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/Reminder.php';
|
||||
|
||||
/**
|
||||
* Represents the gd:when element
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_When extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'when';
|
||||
protected $_reminders = array();
|
||||
protected $_startTime = null;
|
||||
protected $_valueString = null;
|
||||
protected $_endTime = null;
|
||||
|
||||
public function __construct($startTime = null, $endTime = null,
|
||||
$valueString = null, $reminders = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_startTime = $startTime;
|
||||
$this->_endTime = $endTime;
|
||||
$this->_valueString = $valueString;
|
||||
$this->_reminders = $reminders;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_startTime !== null) {
|
||||
$element->setAttribute('startTime', $this->_startTime);
|
||||
}
|
||||
if ($this->_endTime !== null) {
|
||||
$element->setAttribute('endTime', $this->_endTime);
|
||||
}
|
||||
if ($this->_valueString !== null) {
|
||||
$element->setAttribute('valueString', $this->_valueString);
|
||||
}
|
||||
if ($this->_reminders !== null) {
|
||||
foreach ($this->_reminders as $reminder) {
|
||||
$element->appendChild(
|
||||
$reminder->getDOM($element->ownerDocument));
|
||||
}
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('gd') . ':' . 'reminder';
|
||||
$reminder = new Zend_Gdata_Extension_Reminder();
|
||||
$reminder->transferFromDOM($child);
|
||||
$this->_reminders[] = $reminder;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'startTime':
|
||||
$this->_startTime = $attribute->nodeValue;
|
||||
break;
|
||||
case 'endTime':
|
||||
$this->_endTime = $attribute->nodeValue;
|
||||
break;
|
||||
case 'valueString':
|
||||
$this->_valueString = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
if ($this->_valueString)
|
||||
return $this->_valueString;
|
||||
else {
|
||||
return 'Starts: ' . $this->getStartTime() . ' ' .
|
||||
'Ends: ' . $this->getEndTime();
|
||||
}
|
||||
}
|
||||
|
||||
public function getStartTime()
|
||||
{
|
||||
return $this->_startTime;
|
||||
}
|
||||
|
||||
public function setStartTime($value)
|
||||
{
|
||||
$this->_startTime = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->_endTime;
|
||||
}
|
||||
|
||||
public function setEndTime($value)
|
||||
{
|
||||
$this->_endTime = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getValueString()
|
||||
{
|
||||
return $this->_valueString;
|
||||
}
|
||||
|
||||
public function setValueString($value)
|
||||
{
|
||||
$this->_valueString = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getReminders()
|
||||
{
|
||||
return $this->_reminders;
|
||||
}
|
||||
|
||||
public function setReminders($value)
|
||||
{
|
||||
$this->_reminders = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
171
airtime_mvc/library/Zend/Gdata/Extension/Where.php
Normal file
171
airtime_mvc/library/Zend/Gdata/Extension/Where.php
Normal file
|
@ -0,0 +1,171 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Where.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_EntryLink
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/EntryLink.php';
|
||||
|
||||
/**
|
||||
* Data model class to represent a location (gd:where element)
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Where extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'where';
|
||||
protected $_label = null;
|
||||
protected $_rel = null;
|
||||
protected $_valueString = null;
|
||||
protected $_entryLink = null;
|
||||
|
||||
public function __construct($valueString = null, $label = null, $rel = null, $entryLink = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_valueString = $valueString;
|
||||
$this->_label = $label;
|
||||
$this->_rel = $rel;
|
||||
$this->_entryLink = $entryLink;
|
||||
}
|
||||
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_label !== null) {
|
||||
$element->setAttribute('label', $this->_label);
|
||||
}
|
||||
if ($this->_rel !== null) {
|
||||
$element->setAttribute('rel', $this->_rel);
|
||||
}
|
||||
if ($this->_valueString !== null) {
|
||||
$element->setAttribute('valueString', $this->_valueString);
|
||||
}
|
||||
if ($this->entryLink !== null) {
|
||||
$element->appendChild($this->_entryLink->getDOM($element->ownerDocument));
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'label':
|
||||
$this->_label = $attribute->nodeValue;
|
||||
break;
|
||||
case 'rel':
|
||||
$this->_rel = $attribute->nodeValue;
|
||||
break;
|
||||
case 'valueString':
|
||||
$this->_valueString = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates individual Entry objects of the appropriate type and
|
||||
* stores them in the $_entry array based upon DOM data.
|
||||
*
|
||||
* @param DOMNode $child The DOMNode to process
|
||||
*/
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('gd') . ':' . 'entryLink':
|
||||
$entryLink = new Zend_Gdata_Extension_EntryLink();
|
||||
$entryLink->transferFromDOM($child);
|
||||
$this->_entryLink = $entryLink;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
if ($this->_valueString != null) {
|
||||
return $this->_valueString;
|
||||
}
|
||||
else {
|
||||
return parent::__toString();
|
||||
}
|
||||
}
|
||||
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->_label;
|
||||
}
|
||||
|
||||
public function setLabel($value)
|
||||
{
|
||||
$this->_label = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRel()
|
||||
{
|
||||
return $this->_rel;
|
||||
}
|
||||
|
||||
public function setRel($value)
|
||||
{
|
||||
$this->_rel = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getValueString()
|
||||
{
|
||||
return $this->_valueString;
|
||||
}
|
||||
|
||||
public function setValueString($value)
|
||||
{
|
||||
$this->_valueString = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEntryLink()
|
||||
{
|
||||
return $this->_entryLink;
|
||||
}
|
||||
|
||||
public function setEntryLink($value)
|
||||
{
|
||||
$this->_entryLink = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
299
airtime_mvc/library/Zend/Gdata/Extension/Who.php
Normal file
299
airtime_mvc/library/Zend/Gdata/Extension/Who.php
Normal file
|
@ -0,0 +1,299 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Who.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_AttendeeStatus
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/AttendeeStatus.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_AttendeeType
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/AttendeeType.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Gdata_Extension_EntryLink
|
||||
*/
|
||||
require_once 'Zend/Gdata/Extension/EntryLink.php';
|
||||
|
||||
/**
|
||||
* Data model class to represent a participant
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gdata
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Gdata_Extension_Who extends Zend_Gdata_Extension
|
||||
{
|
||||
|
||||
protected $_rootElement = 'who';
|
||||
protected $_email = null;
|
||||
protected $_rel = null;
|
||||
protected $_valueString = null;
|
||||
protected $_attendeeStatus = null;
|
||||
protected $_attendeeType = null;
|
||||
protected $_entryLink = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Extension_Who object.
|
||||
* @param string $email (optional) Email address.
|
||||
* @param string $rel (optional) Relationship description.
|
||||
* @param string $valueString (optional) Simple string describing this person.
|
||||
* @param Zend_Gdata_Extension_AttendeeStatus $attendeeStatus (optional) The status of the attendee.
|
||||
* @param Zend_Gdata_Extension_AttendeeType $attendeeType (optional) The type of the attendee.
|
||||
* @param string $entryLink URL pointing to an associated entry (Contact kind) describing this person.
|
||||
*/
|
||||
public function __construct($email = null, $rel = null, $valueString = null,
|
||||
$attendeeStatus = null, $attendeeType = null, $entryLink = null)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_email = $email;
|
||||
$this->_rel = $rel;
|
||||
$this->_valueString = $valueString;
|
||||
$this->_attendeeStatus = $attendeeStatus;
|
||||
$this->_attendeeType = $attendeeType;
|
||||
$this->_entryLink = $entryLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 sending to the server upon updates, or
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
{
|
||||
$element = parent::getDOM($doc, $majorVersion, $minorVersion);
|
||||
if ($this->_email !== null) {
|
||||
$element->setAttribute('email', $this->_email);
|
||||
}
|
||||
if ($this->_rel !== null) {
|
||||
$element->setAttribute('rel', $this->_rel);
|
||||
}
|
||||
if ($this->_valueString !== null) {
|
||||
$element->setAttribute('valueString', $this->_valueString);
|
||||
}
|
||||
if ($this->_attendeeStatus !== null) {
|
||||
$element->appendChild($this->_attendeeStatus->getDOM($element->ownerDocument));
|
||||
}
|
||||
if ($this->_attendeeType !== null) {
|
||||
$element->appendChild($this->_attendeeType->getDOM($element->ownerDocument));
|
||||
}
|
||||
if ($this->_entryLink !== null) {
|
||||
$element->appendChild($this->_entryLink->getDOM($element->ownerDocument));
|
||||
}
|
||||
return $element;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
*/
|
||||
protected function takeAttributeFromDOM($attribute)
|
||||
{
|
||||
switch ($attribute->localName) {
|
||||
case 'email':
|
||||
$this->_email = $attribute->nodeValue;
|
||||
break;
|
||||
case 'rel':
|
||||
$this->_rel = $attribute->nodeValue;
|
||||
break;
|
||||
case 'valueString':
|
||||
$this->_valueString = $attribute->nodeValue;
|
||||
break;
|
||||
default:
|
||||
parent::takeAttributeFromDOM($attribute);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates individual Entry objects of the appropriate type and
|
||||
* stores them as members of this entry based upon DOM data.
|
||||
*
|
||||
* @param DOMNode $child The DOMNode to process
|
||||
*/
|
||||
protected function takeChildFromDOM($child)
|
||||
{
|
||||
$absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
|
||||
switch ($absoluteNodeName) {
|
||||
case $this->lookupNamespace('gd') . ':' . 'attendeeStatus':
|
||||
$attendeeStatus = new Zend_Gdata_Extension_AttendeeStatus();
|
||||
$attendeeStatus->transferFromDOM($child);
|
||||
$this->_attendeeStatus = $attendeeStatus;
|
||||
break;
|
||||
case $this->lookupNamespace('gd') . ':' . 'attendeeType':
|
||||
$attendeeType = new Zend_Gdata_Extension_AttendeeType();
|
||||
$attendeeType->transferFromDOM($child);
|
||||
$this->_attendeeType = $attendeeType;
|
||||
break;
|
||||
case $this->lookupNamespace('gd') . ':' . 'entryLink':
|
||||
$entryLink = new Zend_Gdata_Extension_EntryLink();
|
||||
$entryLink->transferFromDOM($child);
|
||||
$this->_entryLink = $entryLink;
|
||||
break;
|
||||
default:
|
||||
parent::takeChildFromDOM($child);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a human readable string describing this attribute's value.
|
||||
*
|
||||
* @return string The attribute value.
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if ($this->_valueString != null) {
|
||||
return $this->_valueString;
|
||||
}
|
||||
else {
|
||||
return parent::__toString();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's ValueString attribute.
|
||||
*
|
||||
* @return string The requested attribute.
|
||||
*/
|
||||
public function getValueString()
|
||||
{
|
||||
return $this->_valueString;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's ValueString attribute.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Who The element being modified.
|
||||
*/
|
||||
public function setValueString($value)
|
||||
{
|
||||
$this->_valueString = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Email attribute.
|
||||
*
|
||||
* @return string The requested attribute.
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->_email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Email attribute.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Who The element being modified.
|
||||
*/
|
||||
public function setEmail($value)
|
||||
{
|
||||
$this->_email = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value for this element's Rel attribute.
|
||||
*
|
||||
* @return string The requested attribute.
|
||||
*/
|
||||
public function getRel()
|
||||
{
|
||||
return $this->_rel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's Rel attribute.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Who The element being modified.
|
||||
*/
|
||||
public function setRel($value)
|
||||
{
|
||||
$this->_rel = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get this entry's AttendeeStatus element.
|
||||
*
|
||||
* @return Zend_Gdata_Extension_AttendeeStatus The requested entry.
|
||||
*/
|
||||
public function getAttendeeStatus()
|
||||
{
|
||||
return $this->_attendeeStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the child's AttendeeStatus element.
|
||||
*
|
||||
* @param Zend_Gdata_Extension_AttendeeStatus $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Who The element being modified.
|
||||
*/
|
||||
public function setAttendeeStatus($value)
|
||||
{
|
||||
$this->_attendeeStatus = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get this entry's AttendeeType element.
|
||||
*
|
||||
* @return Zend_Gdata_Extension_AttendeeType The requested entry.
|
||||
*/
|
||||
public function getAttendeeType()
|
||||
{
|
||||
return $this->_attendeeType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the child's AttendeeType element.
|
||||
*
|
||||
* @param Zend_Gdata_Extension_AttendeeType $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Extension_Who The element being modified.
|
||||
*/
|
||||
public function setAttendeeType($value)
|
||||
{
|
||||
$this->_attendeeType = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue