File indexing completed on 2025-03-02 05:29:25
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Gdata 0017 * @subpackage Analytics 0018 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0019 * @license http://framework.zend.com/license/new-bsd New BSD License 0020 * @version $Id$ 0021 */ 0022 0023 /** 0024 * @see Zend_Gdata_Entry 0025 */ 0026 // require_once 'Zend/Gdata/Entry.php'; 0027 0028 /** 0029 * @see Zend_Gdata_Analytics_Extension_Dimension 0030 */ 0031 // require_once 'Zend/Gdata/Analytics/Extension/Dimension.php'; 0032 0033 /** 0034 * @see Zend_Gdata_Analytics_Extension_Metric 0035 */ 0036 // require_once 'Zend/Gdata/Analytics/Extension/Metric.php'; 0037 0038 /** 0039 * @see Zend_Gdata_Analytics_Extension_Property 0040 */ 0041 // require_once 'Zend/Gdata/Analytics/Extension/Property.php'; 0042 0043 /** 0044 * @see Zend_Gdata_Analytics_Extension_TableId 0045 */ 0046 // require_once 'Zend/Gdata/Analytics/Extension/TableId.php'; 0047 0048 /** 0049 * @category Zend 0050 * @package Zend_Gdata 0051 * @subpackage Analytics 0052 */ 0053 class Zend_Gdata_Analytics_AccountEntry extends Zend_Gdata_Entry 0054 { 0055 protected $_accountId; 0056 protected $_accountName; 0057 protected $_profileId; 0058 protected $_webPropertyId; 0059 protected $_currency; 0060 protected $_timezone; 0061 protected $_tableId; 0062 protected $_profileName; 0063 protected $_goal; 0064 0065 /** 0066 * @see Zend_Gdata_Entry::__construct() 0067 */ 0068 public function __construct($element = null) 0069 { 0070 $this->registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); 0071 parent::__construct($element); 0072 } 0073 0074 /** 0075 * @param DOMElement $child 0076 * @return void 0077 */ 0078 protected function takeChildFromDOM($child) 0079 { 0080 $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; 0081 switch ($absoluteNodeName){ 0082 case $this->lookupNamespace('analytics') . ':' . 'property'; 0083 $property = new Zend_Gdata_Analytics_Extension_Property(); 0084 $property->transferFromDOM($child); 0085 $this->{$property->getName()} = $property; 0086 break; 0087 case $this->lookupNamespace('analytics') . ':' . 'tableId'; 0088 $tableId = new Zend_Gdata_Analytics_Extension_TableId(); 0089 $tableId->transferFromDOM($child); 0090 $this->_tableId = $tableId; 0091 break; 0092 case $this->lookupNamespace('ga') . ':' . 'goal'; 0093 $goal = new Zend_Gdata_Analytics_Extension_Goal(); 0094 $goal->transferFromDOM($child); 0095 $this->_goal = $goal; 0096 break; 0097 default: 0098 parent::takeChildFromDOM($child); 0099 break; 0100 } 0101 } 0102 }