| 1 |
<?php |
| 2 |
/* |
| 3 |
* Copyright (c) 2010 Google Inc. |
| 4 |
* |
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 |
* use this file except in compliance with the License. You may obtain a copy of |
| 7 |
* the License at |
| 8 |
* |
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
* |
| 11 |
* Unless required by applicable law or agreed to in writing, software |
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 |
* License for the specific language governing permissions and limitations under |
| 15 |
* the License. |
| 16 |
*/ |
| 17 |
|
| 18 |
require_once 'service/apiModel.php'; |
| 19 |
require_once 'service/apiService.php'; |
| 20 |
require_once 'service/apiServiceRequest.php'; |
| 21 |
|
| 22 |
|
| 23 |
/** |
| 24 |
* The "management" collection of methods. |
| 25 |
* Typical usage is: |
| 26 |
* <code> |
| 27 |
* $analyticsService = new apiAnalyticsService(...); |
| 28 |
* $management = $analyticsService->management; |
| 29 |
* </code> |
| 30 |
*/ |
| 31 |
class ManagementServiceResource extends apiServiceResource { |
| 32 |
|
| 33 |
|
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
/** |
| 38 |
* The "webproperties" collection of methods. |
| 39 |
* Typical usage is: |
| 40 |
* <code> |
| 41 |
* $analyticsService = new apiAnalyticsService(...); |
| 42 |
* $webproperties = $analyticsService->webproperties; |
| 43 |
* </code> |
| 44 |
*/ |
| 45 |
class ManagementWebpropertiesServiceResource extends apiServiceResource { |
| 46 |
|
| 47 |
|
| 48 |
/** |
| 49 |
* Lists web properties to which the user has access. (webproperties.list) |
| 50 |
* |
| 51 |
* @param string $accountId Account ID for the web properties to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which user has access. |
| 52 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 53 |
* |
| 54 |
* @opt_param int max-results The maximum number of entries to include in this response. |
| 55 |
* @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
| 56 |
* @return Webproperties |
| 57 |
*/ |
| 58 |
public function listManagementWebproperties($accountId, $optParams = array()) { |
| 59 |
$params = array('accountId' => $accountId); |
| 60 |
$params = array_merge($params, $optParams); |
| 61 |
$data = $this->__call('list', array($params)); |
| 62 |
if ($this->useObjects()) { |
| 63 |
return new Webproperties($data); |
| 64 |
} else { |
| 65 |
return $data; |
| 66 |
} |
| 67 |
} |
| 68 |
} |
| 69 |
/** |
| 70 |
* The "segments" collection of methods. |
| 71 |
* Typical usage is: |
| 72 |
* <code> |
| 73 |
* $analyticsService = new apiAnalyticsService(...); |
| 74 |
* $segments = $analyticsService->segments; |
| 75 |
* </code> |
| 76 |
*/ |
| 77 |
class ManagementSegmentsServiceResource extends apiServiceResource { |
| 78 |
|
| 79 |
|
| 80 |
/** |
| 81 |
* Lists advanced segments to which the user has access. (segments.list) |
| 82 |
* |
| 83 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 84 |
* |
| 85 |
* @opt_param int max-results The maximum number of entries to include in this response. |
| 86 |
* @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
| 87 |
* @return Segments |
| 88 |
*/ |
| 89 |
public function listManagementSegments($optParams = array()) { |
| 90 |
$params = array(); |
| 91 |
$params = array_merge($params, $optParams); |
| 92 |
$data = $this->__call('list', array($params)); |
| 93 |
if ($this->useObjects()) { |
| 94 |
return new Segments($data); |
| 95 |
} else { |
| 96 |
return $data; |
| 97 |
} |
| 98 |
} |
| 99 |
} |
| 100 |
/** |
| 101 |
* The "accounts" collection of methods. |
| 102 |
* Typical usage is: |
| 103 |
* <code> |
| 104 |
* $analyticsService = new apiAnalyticsService(...); |
| 105 |
* $accounts = $analyticsService->accounts; |
| 106 |
* </code> |
| 107 |
*/ |
| 108 |
class ManagementAccountsServiceResource extends apiServiceResource { |
| 109 |
|
| 110 |
|
| 111 |
/** |
| 112 |
* Lists all accounts to which the user has access. (accounts.list) |
| 113 |
* |
| 114 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 115 |
* |
| 116 |
* @opt_param int max-results The maximum number of entries to include in this response. |
| 117 |
* @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
| 118 |
* @return Accounts |
| 119 |
*/ |
| 120 |
public function listManagementAccounts($optParams = array()) { |
| 121 |
$params = array(); |
| 122 |
$params = array_merge($params, $optParams); |
| 123 |
$data = $this->__call('list', array($params)); |
| 124 |
if ($this->useObjects()) { |
| 125 |
return new Accounts($data); |
| 126 |
} else { |
| 127 |
return $data; |
| 128 |
} |
| 129 |
} |
| 130 |
} |
| 131 |
/** |
| 132 |
* The "goals" collection of methods. |
| 133 |
* Typical usage is: |
| 134 |
* <code> |
| 135 |
* $analyticsService = new apiAnalyticsService(...); |
| 136 |
* $goals = $analyticsService->goals; |
| 137 |
* </code> |
| 138 |
*/ |
| 139 |
class ManagementGoalsServiceResource extends apiServiceResource { |
| 140 |
|
| 141 |
|
| 142 |
/** |
| 143 |
* Lists goals to which the user has access. (goals.list) |
| 144 |
* |
| 145 |
* @param string $accountId Account ID for the web properties to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access. |
| 146 |
* @param string $webPropertyId Web property ID for the web properties to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access. |
| 147 |
* @param string $profileId Profile ID for the web properties to retrieve. Can either be a specific profile ID or '~all', which refers to all the profiles to which the user has access. |
| 148 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 149 |
* |
| 150 |
* @opt_param int max-results The maximum number of entries to include in this response. |
| 151 |
* @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
| 152 |
* @return Goals |
| 153 |
*/ |
| 154 |
public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) { |
| 155 |
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); |
| 156 |
$params = array_merge($params, $optParams); |
| 157 |
$data = $this->__call('list', array($params)); |
| 158 |
if ($this->useObjects()) { |
| 159 |
return new Goals($data); |
| 160 |
} else { |
| 161 |
return $data; |
| 162 |
} |
| 163 |
} |
| 164 |
} |
| 165 |
/** |
| 166 |
* The "profiles" collection of methods. |
| 167 |
* Typical usage is: |
| 168 |
* <code> |
| 169 |
* $analyticsService = new apiAnalyticsService(...); |
| 170 |
* $profiles = $analyticsService->profiles; |
| 171 |
* </code> |
| 172 |
*/ |
| 173 |
class ManagementProfilesServiceResource extends apiServiceResource { |
| 174 |
|
| 175 |
|
| 176 |
/** |
| 177 |
* Lists profiles to which the user has access. (profiles.list) |
| 178 |
* |
| 179 |
* @param string $accountId Account ID for the web properties to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access. |
| 180 |
* @param string $webPropertyId Web property ID for the web properties to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access. |
| 181 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 182 |
* |
| 183 |
* @opt_param int max-results The maximum number of entries to include in this response. |
| 184 |
* @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
| 185 |
* @return Profiles |
| 186 |
*/ |
| 187 |
public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) { |
| 188 |
$params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); |
| 189 |
$params = array_merge($params, $optParams); |
| 190 |
$data = $this->__call('list', array($params)); |
| 191 |
if ($this->useObjects()) { |
| 192 |
return new Profiles($data); |
| 193 |
} else { |
| 194 |
return $data; |
| 195 |
} |
| 196 |
} |
| 197 |
} |
| 198 |
|
| 199 |
/** |
| 200 |
* The "data" collection of methods. |
| 201 |
* Typical usage is: |
| 202 |
* <code> |
| 203 |
* $analyticsService = new apiAnalyticsService(...); |
| 204 |
* $data = $analyticsService->data; |
| 205 |
* </code> |
| 206 |
*/ |
| 207 |
class DataServiceResource extends apiServiceResource { |
| 208 |
|
| 209 |
|
| 210 |
} |
| 211 |
|
| 212 |
|
| 213 |
/** |
| 214 |
* The "ga" collection of methods. |
| 215 |
* Typical usage is: |
| 216 |
* <code> |
| 217 |
* $analyticsService = new apiAnalyticsService(...); |
| 218 |
* $ga = $analyticsService->ga; |
| 219 |
* </code> |
| 220 |
*/ |
| 221 |
class DataGaServiceResource extends apiServiceResource { |
| 222 |
|
| 223 |
|
| 224 |
/** |
| 225 |
* Returns Analytics data for a profile. (ga.get) |
| 226 |
* |
| 227 |
* @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID. |
| 228 |
* @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD. |
| 229 |
* @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD. |
| 230 |
* @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified. |
| 231 |
* @param array $optParams Optional parameters. Valid optional parameters are listed below. |
| 232 |
* |
| 233 |
* @opt_param int max-results The maximum number of entries to include in this feed. |
| 234 |
* @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data. |
| 235 |
* @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'. |
| 236 |
* @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. |
| 237 |
* @opt_param string segment An Analytics advanced segment to be applied to data. |
| 238 |
* @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data. |
| 239 |
* @return GaData |
| 240 |
*/ |
| 241 |
public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) { |
| 242 |
$params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics); |
| 243 |
$params = array_merge($params, $optParams); |
| 244 |
$data = $this->__call('get', array($params)); |
| 245 |
if ($this->useObjects()) { |
| 246 |
return new GaData($data); |
| 247 |
} else { |
| 248 |
return $data; |
| 249 |
} |
| 250 |
} |
| 251 |
} |
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
/** |
| 256 |
* Service definition for Analytics (v3). |
| 257 |
* |
| 258 |
* <p> |
| 259 |
* View and manage your Google Analytics data |
| 260 |
* </p> |
| 261 |
* |
| 262 |
* <p> |
| 263 |
* For more information about this service, see the |
| 264 |
* <a href="http://code.google.com/apis/analytics" target="_blank">API Documentation</a> |
| 265 |
* </p> |
| 266 |
* |
| 267 |
* @author Google, Inc. |
| 268 |
*/ |
| 269 |
class apiAnalyticsService extends apiService { |
| 270 |
public $management_webproperties; |
| 271 |
public $management_segments; |
| 272 |
public $management_accounts; |
| 273 |
public $management_goals; |
| 274 |
public $management_profiles; |
| 275 |
public $data_ga; |
| 276 |
/** |
| 277 |
* Constructs the internal representation of the Analytics service. |
| 278 |
* |
| 279 |
* @param apiClient apiClient |
| 280 |
*/ |
| 281 |
public function __construct(apiClient $apiClient) { |
| 282 |
$this->rpcPath = '/rpc'; |
| 283 |
$this->restBasePath = '/analytics/v3/'; |
| 284 |
$this->version = 'v3'; |
| 285 |
$this->serviceName = 'analytics'; |
| 286 |
|
| 287 |
$apiClient->addService($this->serviceName, $this->version); |
| 288 |
$this->management_webproperties = new ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "accountId": {"pattern": "~all|[0-9]+", "required": true, "type": "string", "location": "path"}}, "id": "analytics.management.webproperties.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties", "response": {"$ref": "Webproperties"}}}}', true)); |
| 289 |
$this->management_segments = new ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}}, "response": {"$ref": "Segments"}, "httpMethod": "GET", "path": "management/segments", "id": "analytics.management.segments.list"}}}', true)); |
| 290 |
$this->management_accounts = new ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "management/accounts", "id": "analytics.management.accounts.list"}}}', true)); |
| 291 |
$this->management_goals = new ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "profileId": {"pattern": "~all|[0-9]+", "required": true, "type": "string", "location": "path"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "accountId": {"pattern": "~all|[0-9]+", "required": true, "type": "string", "location": "path"}, "webPropertyId": {"pattern": "~all|UA-[0-9]+-[0-9]+", "required": true, "type": "string", "location": "path"}}, "id": "analytics.management.goals.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "response": {"$ref": "Goals"}}}}', true)); |
| 292 |
$this->management_profiles = new ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "accountId": {"pattern": "~all|[0-9]+", "required": true, "type": "string", "location": "path"}, "webPropertyId": {"pattern": "~all|UA-[0-9]+-[0-9]+", "required": true, "type": "string", "location": "path"}}, "id": "analytics.management.profiles.list", "httpMethod": "GET", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "response": {"$ref": "Profiles"}}}}', true)); |
| 293 |
$this->data_ga = new DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/analytics.readonly"], "parameters": {"max-results": {"format": "int32", "type": "integer", "location": "query"}, "sort": {"pattern": "(-)?ga:.+", "type": "string", "location": "query"}, "dimensions": {"pattern": "(ga:.+)?", "type": "string", "location": "query"}, "start-date": {"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}", "required": true, "type": "string", "location": "query"}, "start-index": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "end-date": {"pattern": "[0-9]{4}-[0-9]{2}-[0-9]{2}", "required": true, "type": "string", "location": "query"}, "ids": {"pattern": "ga:[0-9]+", "required": true, "type": "string", "location": "query"}, "metrics": {"pattern": "ga:.+", "required": true, "type": "string", "location": "query"}, "filters": {"pattern": "ga:.+", "type": "string", "location": "query"}, "segment": {"type": "string", "location": "query"}}, "id": "analytics.data.ga.get", "httpMethod": "GET", "path": "data/ga", "response": {"$ref": "GaData"}}}}', true)); |
| 294 |
} |
| 295 |
} |
| 296 |
|
| 297 |
class Account extends apiModel { |
| 298 |
public $kind; |
| 299 |
public $name; |
| 300 |
public $created; |
| 301 |
public $updated; |
| 302 |
protected $__childLinkType = 'AccountChildLink'; |
| 303 |
protected $__childLinkDataType = ''; |
| 304 |
public $childLink; |
| 305 |
public $id; |
| 306 |
public $selfLink; |
| 307 |
public function setKind($kind) { |
| 308 |
$this->kind = $kind; |
| 309 |
} |
| 310 |
public function getKind() { |
| 311 |
return $this->kind; |
| 312 |
} |
| 313 |
public function setName($name) { |
| 314 |
$this->name = $name; |
| 315 |
} |
| 316 |
public function getName() { |
| 317 |
return $this->name; |
| 318 |
} |
| 319 |
public function setCreated($created) { |
| 320 |
$this->created = $created; |
| 321 |
} |
| 322 |
public function getCreated() { |
| 323 |
return $this->created; |
| 324 |
} |
| 325 |
public function setUpdated($updated) { |
| 326 |
$this->updated = $updated; |
| 327 |
} |
| 328 |
public function getUpdated() { |
| 329 |
return $this->updated; |
| 330 |
} |
| 331 |
public function setChildLink(AccountChildLink $childLink) { |
| 332 |
$this->childLink = $childLink; |
| 333 |
} |
| 334 |
public function getChildLink() { |
| 335 |
return $this->childLink; |
| 336 |
} |
| 337 |
public function setId($id) { |
| 338 |
$this->id = $id; |
| 339 |
} |
| 340 |
public function getId() { |
| 341 |
return $this->id; |
| 342 |
} |
| 343 |
public function setSelfLink($selfLink) { |
| 344 |
$this->selfLink = $selfLink; |
| 345 |
} |
| 346 |
public function getSelfLink() { |
| 347 |
return $this->selfLink; |
| 348 |
} |
| 349 |
} |
| 350 |
|
| 351 |
class AccountChildLink extends apiModel { |
| 352 |
public $href; |
| 353 |
public $type; |
| 354 |
public function setHref($href) { |
| 355 |
$this->href = $href; |
| 356 |
} |
| 357 |
public function getHref() { |
| 358 |
return $this->href; |
| 359 |
} |
| 360 |
public function setType($type) { |
| 361 |
$this->type = $type; |
| 362 |
} |
| 363 |
public function getType() { |
| 364 |
return $this->type; |
| 365 |
} |
| 366 |
} |
| 367 |
|
| 368 |
class Accounts extends apiModel { |
| 369 |
public $username; |
| 370 |
public $kind; |
| 371 |
protected $__itemsType = 'Account'; |
| 372 |
protected $__itemsDataType = 'array'; |
| 373 |
public $items; |
| 374 |
public $itemsPerPage; |
| 375 |
public $previousLink; |
| 376 |
public $startIndex; |
| 377 |
public $nextLink; |
| 378 |
public $totalResults; |
| 379 |
public function setUsername($username) { |
| 380 |
$this->username = $username; |
| 381 |
} |
| 382 |
public function getUsername() { |
| 383 |
return $this->username; |
| 384 |
} |
| 385 |
public function setKind($kind) { |
| 386 |
$this->kind = $kind; |
| 387 |
} |
| 388 |
public function getKind() { |
| 389 |
return $this->kind; |
| 390 |
} |
| 391 |
public function setItems(/* array(Account) */ $items) { |
| 392 |
$this->assertIsArray($items, 'Account', __METHOD__); |
| 393 |
$this->items = $items; |
| 394 |
} |
| 395 |
public function getItems() { |
| 396 |
return $this->items; |
| 397 |
} |
| 398 |
public function setItemsPerPage($itemsPerPage) { |
| 399 |
$this->itemsPerPage = $itemsPerPage; |
| 400 |
} |
| 401 |
public function getItemsPerPage() { |
| 402 |
return $this->itemsPerPage; |
| 403 |
} |
| 404 |
public function setPreviousLink($previousLink) { |
| 405 |
$this->previousLink = $previousLink; |
| 406 |
} |
| 407 |
public function getPreviousLink() { |
| 408 |
return $this->previousLink; |
| 409 |
} |
| 410 |
public function setStartIndex($startIndex) { |
| 411 |
$this->startIndex = $startIndex; |
| 412 |
} |
| 413 |
public function getStartIndex() { |
| 414 |
return $this->startIndex; |
| 415 |
} |
| 416 |
public function setNextLink($nextLink) { |
| 417 |
$this->nextLink = $nextLink; |
| 418 |
} |
| 419 |
public function getNextLink() { |
| 420 |
return $this->nextLink; |
| 421 |
} |
| 422 |
public function setTotalResults($totalResults) { |
| 423 |
$this->totalResults = $totalResults; |
| 424 |
} |
| 425 |
public function getTotalResults() { |
| 426 |
return $this->totalResults; |
| 427 |
} |
| 428 |
} |
| 429 |
|
| 430 |
class GaData extends apiModel { |
| 431 |
public $kind; |
| 432 |
public $rows; |
| 433 |
public $containsSampledData; |
| 434 |
public $totalResults; |
| 435 |
public $itemsPerPage; |
| 436 |
public $totalsForAllResults; |
| 437 |
public $nextLink; |
| 438 |
public $id; |
| 439 |
protected $__queryType = 'GaDataQuery'; |
| 440 |
protected $__queryDataType = ''; |
| 441 |
public $query; |
| 442 |
public $previousLink; |
| 443 |
protected $__profileInfoType = 'GaDataProfileInfo'; |
| 444 |
protected $__profileInfoDataType = ''; |
| 445 |
public $profileInfo; |
| 446 |
protected $__columnHeadersType = 'GaDataColumnHeaders'; |
| 447 |
protected $__columnHeadersDataType = 'array'; |
| 448 |
public $columnHeaders; |
| 449 |
public $selfLink; |
| 450 |
public function setKind($kind) { |
| 451 |
$this->kind = $kind; |
| 452 |
} |
| 453 |
public function getKind() { |
| 454 |
return $this->kind; |
| 455 |
} |
| 456 |
public function setRows(/* array(string) */ $rows) { |
| 457 |
$this->assertIsArray($rows, 'string', __METHOD__); |
| 458 |
$this->rows = $rows; |
| 459 |
} |
| 460 |
public function getRows() { |
| 461 |
return $this->rows; |
| 462 |
} |
| 463 |
public function setContainsSampledData($containsSampledData) { |
| 464 |
$this->containsSampledData = $containsSampledData; |
| 465 |
} |
| 466 |
public function getContainsSampledData() { |
| 467 |
return $this->containsSampledData; |
| 468 |
} |
| 469 |
public function setTotalResults($totalResults) { |
| 470 |
$this->totalResults = $totalResults; |
| 471 |
} |
| 472 |
public function getTotalResults() { |
| 473 |
return $this->totalResults; |
| 474 |
} |
| 475 |
public function setItemsPerPage($itemsPerPage) { |
| 476 |
$this->itemsPerPage = $itemsPerPage; |
| 477 |
} |
| 478 |
public function getItemsPerPage() { |
| 479 |
return $this->itemsPerPage; |
| 480 |
} |
| 481 |
public function setTotalsForAllResults($totalsForAllResults) { |
| 482 |
$this->totalsForAllResults = $totalsForAllResults; |
| 483 |
} |
| 484 |
public function getTotalsForAllResults() { |
| 485 |
return $this->totalsForAllResults; |
| 486 |
} |
| 487 |
public function setNextLink($nextLink) { |
| 488 |
$this->nextLink = $nextLink; |
| 489 |
} |
| 490 |
public function getNextLink() { |
| 491 |
return $this->nextLink; |
| 492 |
} |
| 493 |
public function setId($id) { |
| 494 |
$this->id = $id; |
| 495 |
} |
| 496 |
public function getId() { |
| 497 |
return $this->id; |
| 498 |
} |
| 499 |
public function setQuery(GaDataQuery $query) { |
| 500 |
$this->query = $query; |
| 501 |
} |
| 502 |
public function getQuery() { |
| 503 |
return $this->query; |
| 504 |
} |
| 505 |
public function setPreviousLink($previousLink) { |
| 506 |
$this->previousLink = $previousLink; |
| 507 |
} |
| 508 |
public function getPreviousLink() { |
| 509 |
return $this->previousLink; |
| 510 |
} |
| 511 |
public function setProfileInfo(GaDataProfileInfo $profileInfo) { |
| 512 |
$this->profileInfo = $profileInfo; |
| 513 |
} |
| 514 |
public function getProfileInfo() { |
| 515 |
return $this->profileInfo; |
| 516 |
} |
| 517 |
public function setColumnHeaders(/* array(GaDataColumnHeaders) */ $columnHeaders) { |
| 518 |
$this->assertIsArray($columnHeaders, 'GaDataColumnHeaders', __METHOD__); |
| 519 |
$this->columnHeaders = $columnHeaders; |
| 520 |
} |
| 521 |
public function getColumnHeaders() { |
| 522 |
return $this->columnHeaders; |
| 523 |
} |
| 524 |
public function setSelfLink($selfLink) { |
| 525 |
$this->selfLink = $selfLink; |
| 526 |
} |
| 527 |
public function getSelfLink() { |
| 528 |
return $this->selfLink; |
| 529 |
} |
| 530 |
} |
| 531 |
|
| 532 |
class GaDataColumnHeaders extends apiModel { |
| 533 |
public $dataType; |
| 534 |
public $columnType; |
| 535 |
public $name; |
| 536 |
public function setDataType($dataType) { |
| 537 |
$this->dataType = $dataType; |
| 538 |
} |
| 539 |
public function getDataType() { |
| 540 |
return $this->dataType; |
| 541 |
} |
| 542 |
public function setColumnType($columnType) { |
| 543 |
$this->columnType = $columnType; |
| 544 |
} |
| 545 |
public function getColumnType() { |
| 546 |
return $this->columnType; |
| 547 |
} |
| 548 |
public function setName($name) { |
| 549 |
$this->name = $name; |
| 550 |
} |
| 551 |
public function getName() { |
| 552 |
return $this->name; |
| 553 |
} |
| 554 |
} |
| 555 |
|
| 556 |
class GaDataProfileInfo extends apiModel { |
| 557 |
public $webPropertyId; |
| 558 |
public $internalWebPropertyId; |
| 559 |
public $tableId; |
| 560 |
public $profileId; |
| 561 |
public $profileName; |
| 562 |
public $accountId; |
| 563 |
public function setWebPropertyId($webPropertyId) { |
| 564 |
$this->webPropertyId = $webPropertyId; |
| 565 |
} |
| 566 |
public function getWebPropertyId() { |
| 567 |
return $this->webPropertyId; |
| 568 |
} |
| 569 |
public function setInternalWebPropertyId($internalWebPropertyId) { |
| 570 |
$this->internalWebPropertyId = $internalWebPropertyId; |
| 571 |
} |
| 572 |
public function getInternalWebPropertyId() { |
| 573 |
return $this->internalWebPropertyId; |
| 574 |
} |
| 575 |
public function setTableId($tableId) { |
| 576 |
$this->tableId = $tableId; |
| 577 |
} |
| 578 |
public function getTableId() { |
| 579 |
return $this->tableId; |
| 580 |
} |
| 581 |
public function setProfileId($profileId) { |
| 582 |
$this->profileId = $profileId; |
| 583 |
} |
| 584 |
public function getProfileId() { |
| 585 |
return $this->profileId; |
| 586 |
} |
| 587 |
public function setProfileName($profileName) { |
| 588 |
$this->profileName = $profileName; |
| 589 |
} |
| 590 |
public function getProfileName() { |
| 591 |
return $this->profileName; |
| 592 |
} |
| 593 |
public function setAccountId($accountId) { |
| 594 |
$this->accountId = $accountId; |
| 595 |
} |
| 596 |
public function getAccountId() { |
| 597 |
return $this->accountId; |
| 598 |
} |
| 599 |
} |
| 600 |
|
| 601 |
class GaDataQuery extends apiModel { |
| 602 |
public $max_results; |
| 603 |
public $sort; |
| 604 |
public $dimensions; |
| 605 |
public $start_date; |
| 606 |
public $start_index; |
| 607 |
public $segment; |
| 608 |
public $ids; |
| 609 |
public $metrics; |
| 610 |
public $filters; |
| 611 |
public $end_date; |
| 612 |
public function setMax_results($max_results) { |
| 613 |
$this->max_results = $max_results; |
| 614 |
} |
| 615 |
public function getMax_results() { |
| 616 |
return $this->max_results; |
| 617 |
} |
| 618 |
public function setSort(/* array(string) */ $sort) { |
| 619 |
$this->assertIsArray($sort, 'string', __METHOD__); |
| 620 |
$this->sort = $sort; |
| 621 |
} |
| 622 |
public function getSort() { |
| 623 |
return $this->sort; |
| 624 |
} |
| 625 |
public function setDimensions($dimensions) { |
| 626 |
$this->dimensions = $dimensions; |
| 627 |
} |
| 628 |
public function getDimensions() { |
| 629 |
return $this->dimensions; |
| 630 |
} |
| 631 |
public function setStart_date($start_date) { |
| 632 |
$this->start_date = $start_date; |
| 633 |
} |
| 634 |
public function getStart_date() { |
| 635 |
return $this->start_date; |
| 636 |
} |
| 637 |
public function setStart_index($start_index) { |
| 638 |
$this->start_index = $start_index; |
| 639 |
} |
| 640 |
public function getStart_index() { |
| 641 |
return $this->start_index; |
| 642 |
} |
| 643 |
public function setSegment($segment) { |
| 644 |
$this->segment = $segment; |
| 645 |
} |
| 646 |
public function getSegment() { |
| 647 |
return $this->segment; |
| 648 |
} |
| 649 |
public function setIds($ids) { |
| 650 |
$this->ids = $ids; |
| 651 |
} |
| 652 |
public function getIds() { |
| 653 |
return $this->ids; |
| 654 |
} |
| 655 |
public function setMetrics(/* array(string) */ $metrics) { |
| 656 |
$this->assertIsArray($metrics, 'string', __METHOD__); |
| 657 |
$this->metrics = $metrics; |
| 658 |
} |
| 659 |
public function getMetrics() { |
| 660 |
return $this->metrics; |
| 661 |
} |
| 662 |
public function setFilters($filters) { |
| 663 |
$this->filters = $filters; |
| 664 |
} |
| 665 |
public function getFilters() { |
| 666 |
return $this->filters; |
| 667 |
} |
| 668 |
public function setEnd_date($end_date) { |
| 669 |
$this->end_date = $end_date; |
| 670 |
} |
| 671 |
public function getEnd_date() { |
| 672 |
return $this->end_date; |
| 673 |
} |
| 674 |
} |
| 675 |
|
| 676 |
class Goal extends apiModel { |
| 677 |
public $kind; |
| 678 |
protected $__visitTimeOnSiteDetailsType = 'GoalVisitTimeOnSiteDetails'; |
| 679 |
protected $__visitTimeOnSiteDetailsDataType = ''; |
| 680 |
public $visitTimeOnSiteDetails; |
| 681 |
public $name; |
| 682 |
public $created; |
| 683 |
protected $__urlDestinationDetailsType = 'GoalUrlDestinationDetails'; |
| 684 |
protected $__urlDestinationDetailsDataType = ''; |
| 685 |
public $urlDestinationDetails; |
| 686 |
public $updated; |
| 687 |
public $value; |
| 688 |
protected $__visitNumPagesDetailsType = 'GoalVisitNumPagesDetails'; |
| 689 |
protected $__visitNumPagesDetailsDataType = ''; |
| 690 |
public $visitNumPagesDetails; |
| 691 |
public $internalWebPropertyId; |
| 692 |
protected $__eventDetailsType = 'GoalEventDetails'; |
| 693 |
protected $__eventDetailsDataType = ''; |
| 694 |
public $eventDetails; |
| 695 |
public $webPropertyId; |
| 696 |
public $active; |
| 697 |
public $profileId; |
| 698 |
protected $__parentLinkType = 'GoalParentLink'; |
| 699 |
protected $__parentLinkDataType = ''; |
| 700 |
public $parentLink; |
| 701 |
public $type; |
| 702 |
public $id; |
| 703 |
public $selfLink; |
| 704 |
public $accountId; |
| 705 |
public function setKind($kind) { |
| 706 |
$this->kind = $kind; |
| 707 |
} |
| 708 |
public function getKind() { |
| 709 |
return $this->kind; |
| 710 |
} |
| 711 |
public function setVisitTimeOnSiteDetails(GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) { |
| 712 |
$this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails; |
| 713 |
} |
| 714 |
public function getVisitTimeOnSiteDetails() { |
| 715 |
return $this->visitTimeOnSiteDetails; |
| 716 |
} |
| 717 |
public function setName($name) { |
| 718 |
$this->name = $name; |
| 719 |
} |
| 720 |
public function getName() { |
| 721 |
return $this->name; |
| 722 |
} |
| 723 |
public function setCreated($created) { |
| 724 |
$this->created = $created; |
| 725 |
} |
| 726 |
public function getCreated() { |
| 727 |
return $this->created; |
| 728 |
} |
| 729 |
public function setUrlDestinationDetails(GoalUrlDestinationDetails $urlDestinationDetails) { |
| 730 |
$this->urlDestinationDetails = $urlDestinationDetails; |
| 731 |
} |
| 732 |
public function getUrlDestinationDetails() { |
| 733 |
return $this->urlDestinationDetails; |
| 734 |
} |
| 735 |
public function setUpdated($updated) { |
| 736 |
$this->updated = $updated; |
| 737 |
} |
| 738 |
public function getUpdated() { |
| 739 |
return $this->updated; |
| 740 |
} |
| 741 |
public function setValue($value) { |
| 742 |
$this->value = $value; |
| 743 |
} |
| 744 |
public function getValue() { |
| 745 |
return $this->value; |
| 746 |
} |
| 747 |
public function setVisitNumPagesDetails(GoalVisitNumPagesDetails $visitNumPagesDetails) { |
| 748 |
$this->visitNumPagesDetails = $visitNumPagesDetails; |
| 749 |
} |
| 750 |
public function getVisitNumPagesDetails() { |
| 751 |
return $this->visitNumPagesDetails; |
| 752 |
} |
| 753 |
public function setInternalWebPropertyId($internalWebPropertyId) { |
| 754 |
$this->internalWebPropertyId = $internalWebPropertyId; |
| 755 |
} |
| 756 |
public function getInternalWebPropertyId() { |
| 757 |
return $this->internalWebPropertyId; |
| 758 |
} |
| 759 |
public function setEventDetails(GoalEventDetails $eventDetails) { |
| 760 |
$this->eventDetails = $eventDetails; |
| 761 |
} |
| 762 |
public function getEventDetails() { |
| 763 |
return $this->eventDetails; |
| 764 |
} |
| 765 |
public function setWebPropertyId($webPropertyId) { |
| 766 |
$this->webPropertyId = $webPropertyId; |
| 767 |
} |
| 768 |
public function getWebPropertyId() { |
| 769 |
return $this->webPropertyId; |
| 770 |
} |
| 771 |
public function setActive($active) { |
| 772 |
$this->active = $active; |
| 773 |
} |
| 774 |
public function getActive() { |
| 775 |
return $this->active; |
| 776 |
} |
| 777 |
public function setProfileId($profileId) { |
| 778 |
$this->profileId = $profileId; |
| 779 |
} |
| 780 |
public function getProfileId() { |
| 781 |
return $this->profileId; |
| 782 |
} |
| 783 |
public function setParentLink(GoalParentLink $parentLink) { |
| 784 |
$this->parentLink = $parentLink; |
| 785 |
} |
| 786 |
public function getParentLink() { |
| 787 |
return $this->parentLink; |
| 788 |
} |
| 789 |
public function setType($type) { |
| 790 |
$this->type = $type; |
| 791 |
} |
| 792 |
public function getType() { |
| 793 |
return $this->type; |
| 794 |
} |
| 795 |
public function setId($id) { |
| 796 |
$this->id = $id; |
| 797 |
} |
| 798 |
public function getId() { |
| 799 |
return $this->id; |
| 800 |
} |
| 801 |
public function setSelfLink($selfLink) { |
| 802 |
$this->selfLink = $selfLink; |
| 803 |
} |
| 804 |
public function getSelfLink() { |
| 805 |
return $this->selfLink; |
| 806 |
} |
| 807 |
public function setAccountId($accountId) { |
| 808 |
$this->accountId = $accountId; |
| 809 |
} |
| 810 |
public function getAccountId() { |
| 811 |
return $this->accountId; |
| 812 |
} |
| 813 |
} |
| 814 |
|
| 815 |
class GoalEventDetails extends apiModel { |
| 816 |
protected $__eventConditionsType = 'GoalEventDetailsEventConditions'; |
| 817 |
protected $__eventConditionsDataType = 'array'; |
| 818 |
public $eventConditions; |
| 819 |
public $useEventValue; |
| 820 |
public function setEventConditions(/* array(GoalEventDetailsEventConditions) */ $eventConditions) { |
| 821 |
$this->assertIsArray($eventConditions, 'GoalEventDetailsEventConditions', __METHOD__); |
| 822 |
$this->eventConditions = $eventConditions; |
| 823 |
} |
| 824 |
public function getEventConditions() { |
| 825 |
return $this->eventConditions; |
| 826 |
} |
| 827 |
public function setUseEventValue($useEventValue) { |
| 828 |
$this->useEventValue = $useEventValue; |
| 829 |
} |
| 830 |
public function getUseEventValue() { |
| 831 |
return $this->useEventValue; |
| 832 |
} |
| 833 |
} |
| 834 |
|
| 835 |
class GoalEventDetailsEventConditions extends apiModel { |
| 836 |
public $type; |
| 837 |
public $matchType; |
| 838 |
public $expression; |
| 839 |
public $comparisonType; |
| 840 |
public $comparisonValue; |
| 841 |
public function setType($type) { |
| 842 |
$this->type = $type; |
| 843 |
} |
| 844 |
public function getType() { |
| 845 |
return $this->type; |
| 846 |
} |
| 847 |
public function setMatchType($matchType) { |
| 848 |
$this->matchType = $matchType; |
| 849 |
} |
| 850 |
public function getMatchType() { |
| 851 |
return $this->matchType; |
| 852 |
} |
| 853 |
public function setExpression($expression) { |
| 854 |
$this->expression = $expression; |
| 855 |
} |
| 856 |
public function getExpression() { |
| 857 |
return $this->expression; |
| 858 |
} |
| 859 |
public function setComparisonType($comparisonType) { |
| 860 |
$this->comparisonType = $comparisonType; |
| 861 |
} |
| 862 |
public function getComparisonType() { |
| 863 |
return $this->comparisonType; |
| 864 |
} |
| 865 |
public function setComparisonValue($comparisonValue) { |
| 866 |
$this->comparisonValue = $comparisonValue; |
| 867 |
} |
| 868 |
public function getComparisonValue() { |
| 869 |
return $this->comparisonValue; |
| 870 |
} |
| 871 |
} |
| 872 |
|
| 873 |
class GoalParentLink extends apiModel { |
| 874 |
public $href; |
| 875 |
public $type; |
| 876 |
public function setHref($href) { |
| 877 |
$this->href = $href; |
| 878 |
} |
| 879 |
public function getHref() { |
| 880 |
return $this->href; |
| 881 |
} |
| 882 |
public function setType($type) { |
| 883 |
$this->type = $type; |
| 884 |
} |
| 885 |
public function getType() { |
| 886 |
return $this->type; |
| 887 |
} |
| 888 |
} |
| 889 |
|
| 890 |
class GoalUrlDestinationDetails extends apiModel { |
| 891 |
public $url; |
| 892 |
public $caseSensitive; |
| 893 |
public $matchType; |
| 894 |
protected $__stepsType = 'GoalUrlDestinationDetailsSteps'; |
| 895 |
protected $__stepsDataType = 'array'; |
| 896 |
public $steps; |
| 897 |
public $firstStepRequired; |
| 898 |
public function setUrl($url) { |
| 899 |
$this->url = $url; |
| 900 |
} |
| 901 |
public function getUrl() { |
| 902 |
return $this->url; |
| 903 |
} |
| 904 |
public function setCaseSensitive($caseSensitive) { |
| 905 |
$this->caseSensitive = $caseSensitive; |
| 906 |
} |
| 907 |
public function getCaseSensitive() { |
| 908 |
return $this->caseSensitive; |
| 909 |
} |
| 910 |
public function setMatchType($matchType) { |
| 911 |
$this->matchType = $matchType; |
| 912 |
} |
| 913 |
public function getMatchType() { |
| 914 |
return $this->matchType; |
| 915 |
} |
| 916 |
public function setSteps(/* array(GoalUrlDestinationDetailsSteps) */ $steps) { |
| 917 |
$this->assertIsArray($steps, 'GoalUrlDestinationDetailsSteps', __METHOD__); |
| 918 |
$this->steps = $steps; |
| 919 |
} |
| 920 |
public function getSteps() { |
| 921 |
return $this->steps; |
| 922 |
} |
| 923 |
public function setFirstStepRequired($firstStepRequired) { |
| 924 |
$this->firstStepRequired = $firstStepRequired; |
| 925 |
} |
| 926 |
public function getFirstStepRequired() { |
| 927 |
return $this->firstStepRequired; |
| 928 |
} |
| 929 |
} |
| 930 |
|
| 931 |
class GoalUrlDestinationDetailsSteps extends apiModel { |
| 932 |
public $url; |
| 933 |
public $name; |
| 934 |
public $number; |
| 935 |
public function setUrl($url) { |
| 936 |
$this->url = $url; |
| 937 |
} |
| 938 |
public function getUrl() { |
| 939 |
return $this->url; |
| 940 |
} |
| 941 |
public function setName($name) { |
| 942 |
$this->name = $name; |
| 943 |
} |
| 944 |
public function getName() { |
| 945 |
return $this->name; |
| 946 |
} |
| 947 |
public function setNumber($number) { |
| 948 |
$this->number = $number; |
| 949 |
} |
| 950 |
public function getNumber() { |
| 951 |
return $this->number; |
| 952 |
} |
| 953 |
} |
| 954 |
|
| 955 |
class GoalVisitNumPagesDetails extends apiModel { |
| 956 |
public $comparisonType; |
| 957 |
public $comparisonValue; |
| 958 |
public function setComparisonType($comparisonType) { |
| 959 |
$this->comparisonType = $comparisonType; |
| 960 |
} |
| 961 |
public function getComparisonType() { |
| 962 |
return $this->comparisonType; |
| 963 |
} |
| 964 |
public function setComparisonValue($comparisonValue) { |
| 965 |
$this->comparisonValue = $comparisonValue; |
| 966 |
} |
| 967 |
public function getComparisonValue() { |
| 968 |
return $this->comparisonValue; |
| 969 |
} |
| 970 |
} |
| 971 |
|
| 972 |
class GoalVisitTimeOnSiteDetails extends apiModel { |
| 973 |
public $comparisonType; |
| 974 |
public $comparisonValue; |
| 975 |
public function setComparisonType($comparisonType) { |
| 976 |
$this->comparisonType = $comparisonType; |
| 977 |
} |
| 978 |
public function getComparisonType() { |
| 979 |
return $this->comparisonType; |
| 980 |
} |
| 981 |
public function setComparisonValue($comparisonValue) { |
| 982 |
$this->comparisonValue = $comparisonValue; |
| 983 |
} |
| 984 |
public function getComparisonValue() { |
| 985 |
return $this->comparisonValue; |
| 986 |
} |
| 987 |
} |
| 988 |
|
| 989 |
class Goals extends apiModel { |
| 990 |
public $username; |
| 991 |
public $kind; |
| 992 |
protected $__itemsType = 'Goal'; |
| 993 |
protected $__itemsDataType = 'array'; |
| 994 |
public $items; |
| 995 |
public $itemsPerPage; |
| 996 |
public $previousLink; |
| 997 |
public $startIndex; |
| 998 |
public $nextLink; |
| 999 |
public $totalResults; |
| 1000 |
public function setUsername($username) { |
| 1001 |
$this->username = $username; |
| 1002 |
} |
| 1003 |
public function getUsername() { |
| 1004 |
return $this->username; |
| 1005 |
} |
| 1006 |
public function setKind($kind) { |
| 1007 |
$this->kind = $kind; |
| 1008 |
} |
| 1009 |
public function getKind() { |
| 1010 |
return $this->kind; |
| 1011 |
} |
| 1012 |
public function setItems(/* array(Goal) */ $items) { |
| 1013 |
$this->assertIsArray($items, 'Goal', __METHOD__); |
| 1014 |
$this->items = $items; |
| 1015 |
} |
| 1016 |
public function getItems() { |
| 1017 |
return $this->items; |
| 1018 |
} |
| 1019 |
public function setItemsPerPage($itemsPerPage) { |
| 1020 |
$this->itemsPerPage = $itemsPerPage; |
| 1021 |
} |
| 1022 |
public function getItemsPerPage() { |
| 1023 |
return $this->itemsPerPage; |
| 1024 |
} |
| 1025 |
public function setPreviousLink($previousLink) { |
| 1026 |
$this->previousLink = $previousLink; |
| 1027 |
} |
| 1028 |
public function getPreviousLink() { |
| 1029 |
return $this->previousLink; |
| 1030 |
} |
| 1031 |
public function setStartIndex($startIndex) { |
| 1032 |
$this->startIndex = $startIndex; |
| 1033 |
} |
| 1034 |
public function getStartIndex() { |
| 1035 |
return $this->startIndex; |
| 1036 |
} |
| 1037 |
public function setNextLink($nextLink) { |
| 1038 |
$this->nextLink = $nextLink; |
| 1039 |
} |
| 1040 |
public function getNextLink() { |
| 1041 |
return $this->nextLink; |
| 1042 |
} |
| 1043 |
public function setTotalResults($totalResults) { |
| 1044 |
$this->totalResults = $totalResults; |
| 1045 |
} |
| 1046 |
public function getTotalResults() { |
| 1047 |
return $this->totalResults; |
| 1048 |
} |
| 1049 |
} |
| 1050 |
|
| 1051 |
class Profile extends apiModel { |
| 1052 |
public $defaultPage; |
| 1053 |
public $kind; |
| 1054 |
public $excludeQueryParameters; |
| 1055 |
public $name; |
| 1056 |
public $created; |
| 1057 |
public $webPropertyId; |
| 1058 |
public $updated; |
| 1059 |
public $siteSearchQueryParameters; |
| 1060 |
public $currency; |
| 1061 |
public $internalWebPropertyId; |
| 1062 |
protected $__childLinkType = 'ProfileChildLink'; |
| 1063 |
protected $__childLinkDataType = ''; |
| 1064 |
public $childLink; |
| 1065 |
public $timezone; |
| 1066 |
public $siteSearchCategoryParameters; |
| 1067 |
protected $__parentLinkType = 'ProfileParentLink'; |
| 1068 |
protected $__parentLinkDataType = ''; |
| 1069 |
public $parentLink; |
| 1070 |
public $id; |
| 1071 |
public $selfLink; |
| 1072 |
public $accountId; |
| 1073 |
public function setDefaultPage($defaultPage) { |
| 1074 |
$this->defaultPage = $defaultPage; |
| 1075 |
} |
| 1076 |
public function getDefaultPage() { |
| 1077 |
return $this->defaultPage; |
| 1078 |
} |
| 1079 |
public function setKind($kind) { |
| 1080 |
$this->kind = $kind; |
| 1081 |
} |
| 1082 |
public function getKind() { |
| 1083 |
return $this->kind; |
| 1084 |
} |
| 1085 |
public function setExcludeQueryParameters($excludeQueryParameters) { |
| 1086 |
$this->excludeQueryParameters = $excludeQueryParameters; |
| 1087 |
} |
| 1088 |
public function getExcludeQueryParameters() { |
| 1089 |
return $this->excludeQueryParameters; |
| 1090 |
} |
| 1091 |
public function setName($name) { |
| 1092 |
$this->name = $name; |
| 1093 |
} |
| 1094 |
public function getName() { |
| 1095 |
return $this->name; |
| 1096 |
} |
| 1097 |
public function setCreated($created) { |
| 1098 |
$this->created = $created; |
| 1099 |
} |
| 1100 |
public function getCreated() { |
| 1101 |
return $this->created; |
| 1102 |
} |
| 1103 |
public function setWebPropertyId($webPropertyId) { |
| 1104 |
$this->webPropertyId = $webPropertyId; |
| 1105 |
} |
| 1106 |
public function getWebPropertyId() { |
| 1107 |
return $this->webPropertyId; |
| 1108 |
} |
| 1109 |
public function setUpdated($updated) { |
| 1110 |
$this->updated = $updated; |
| 1111 |
} |
| 1112 |
public function getUpdated() { |
| 1113 |
return $this->updated; |
| 1114 |
} |
| 1115 |
public function setSiteSearchQueryParameters($siteSearchQueryParameters) { |
| 1116 |
$this->siteSearchQueryParameters = $siteSearchQueryParameters; |
| 1117 |
} |
| 1118 |
public function getSiteSearchQueryParameters() { |
| 1119 |
return $this->siteSearchQueryParameters; |
| 1120 |
} |
| 1121 |
public function setCurrency($currency) { |
| 1122 |
$this->currency = $currency; |
| 1123 |
} |
| 1124 |
public function getCurrency() { |
| 1125 |
return $this->currency; |
| 1126 |
} |
| 1127 |
public function setInternalWebPropertyId($internalWebPropertyId) { |
| 1128 |
$this->internalWebPropertyId = $internalWebPropertyId; |
| 1129 |
} |
| 1130 |
public function getInternalWebPropertyId() { |
| 1131 |
return $this->internalWebPropertyId; |
| 1132 |
} |
| 1133 |
public function setChildLink(ProfileChildLink $childLink) { |
| 1134 |
$this->childLink = $childLink; |
| 1135 |
} |
| 1136 |
public function getChildLink() { |
| 1137 |
return $this->childLink; |
| 1138 |
} |
| 1139 |
public function setTimezone($timezone) { |
| 1140 |
$this->timezone = $timezone; |
| 1141 |
} |
| 1142 |
public function getTimezone() { |
| 1143 |
return $this->timezone; |
| 1144 |
} |
| 1145 |
public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) { |
| 1146 |
$this->siteSearchCategoryParameters = $siteSearchCategoryParameters; |
| 1147 |
} |
| 1148 |
public function getSiteSearchCategoryParameters() { |
| 1149 |
return $this->siteSearchCategoryParameters; |
| 1150 |
} |
| 1151 |
public function setParentLink(ProfileParentLink $parentLink) { |
| 1152 |
$this->parentLink = $parentLink; |
| 1153 |
} |
| 1154 |
public function getParentLink() { |
| 1155 |
return $this->parentLink; |
| 1156 |
} |
| 1157 |
public function setId($id) { |
| 1158 |
$this->id = $id; |
| 1159 |
} |
| 1160 |
public function getId() { |
| 1161 |
return $this->id; |
| 1162 |
} |
| 1163 |
public function setSelfLink($selfLink) { |
| 1164 |
$this->selfLink = $selfLink; |
| 1165 |
} |
| 1166 |
public function getSelfLink() { |
| 1167 |
return $this->selfLink; |
| 1168 |
} |
| 1169 |
public function setAccountId($accountId) { |
| 1170 |
$this->accountId = $accountId; |
| 1171 |
} |
| 1172 |
public function getAccountId() { |
| 1173 |
return $this->accountId; |
| 1174 |
} |
| 1175 |
} |
| 1176 |
|
| 1177 |
class ProfileChildLink extends apiModel { |
| 1178 |
public $href; |
| 1179 |
public $type; |
| 1180 |
public function setHref($href) { |
| 1181 |
$this->href = $href; |
| 1182 |
} |
| 1183 |
public function getHref() { |
| 1184 |
return $this->href; |
| 1185 |
} |
| 1186 |
public function setType($type) { |
| 1187 |
$this->type = $type; |
| 1188 |
} |
| 1189 |
public function getType() { |
| 1190 |
return $this->type; |
| 1191 |
} |
| 1192 |
} |
| 1193 |
|
| 1194 |
class ProfileParentLink extends apiModel { |
| 1195 |
public $href; |
| 1196 |
public $type; |
| 1197 |
public function setHref($href) { |
| 1198 |
$this->href = $href; |
| 1199 |
} |
| 1200 |
public function getHref() { |
| 1201 |
return $this->href; |
| 1202 |
} |
| 1203 |
public function setType($type) { |
| 1204 |
$this->type = $type; |
| 1205 |
} |
| 1206 |
public function getType() { |
| 1207 |
return $this->type; |
| 1208 |
} |
| 1209 |
} |
| 1210 |
|
| 1211 |
class Profiles extends apiModel { |
| 1212 |
public $username; |
| 1213 |
public $kind; |
| 1214 |
protected $__itemsType = 'Profile'; |
| 1215 |
protected $__itemsDataType = 'array'; |
| 1216 |
public $items; |
| 1217 |
public $itemsPerPage; |
| 1218 |
public $previousLink; |
| 1219 |
public $startIndex; |
| 1220 |
public $nextLink; |
| 1221 |
public $totalResults; |
| 1222 |
public function setUsername($username) { |
| 1223 |
$this->username = $username; |
| 1224 |
} |
| 1225 |
public function getUsername() { |
| 1226 |
return $this->username; |
| 1227 |
} |
| 1228 |
public function setKind($kind) { |
| 1229 |
$this->kind = $kind; |
| 1230 |
} |
| 1231 |
public function getKind() { |
| 1232 |
return $this->kind; |
| 1233 |
} |
| 1234 |
public function setItems(/* array(Profile) */ $items) { |
| 1235 |
$this->assertIsArray($items, 'Profile', __METHOD__); |
| 1236 |
$this->items = $items; |
| 1237 |
} |
| 1238 |
public function getItems() { |
| 1239 |
return $this->items; |
| 1240 |
} |
| 1241 |
public function setItemsPerPage($itemsPerPage) { |
| 1242 |
$this->itemsPerPage = $itemsPerPage; |
| 1243 |
} |
| 1244 |
public function getItemsPerPage() { |
| 1245 |
return $this->itemsPerPage; |
| 1246 |
} |
| 1247 |
public function setPreviousLink($previousLink) { |
| 1248 |
$this->previousLink = $previousLink; |
| 1249 |
} |
| 1250 |
public function getPreviousLink() { |
| 1251 |
return $this->previousLink; |
| 1252 |
} |
| 1253 |
public function setStartIndex($startIndex) { |
| 1254 |
$this->startIndex = $startIndex; |
| 1255 |
} |
| 1256 |
public function getStartIndex() { |
| 1257 |
return $this->startIndex; |
| 1258 |
} |
| 1259 |
public function setNextLink($nextLink) { |
| 1260 |
$this->nextLink = $nextLink; |
| 1261 |
} |
| 1262 |
public function getNextLink() { |
| 1263 |
return $this->nextLink; |
| 1264 |
} |
| 1265 |
public function setTotalResults($totalResults) { |
| 1266 |
$this->totalResults = $totalResults; |
| 1267 |
} |
| 1268 |
public function getTotalResults() { |
| 1269 |
return $this->totalResults; |
| 1270 |
} |
| 1271 |
} |
| 1272 |
|
| 1273 |
class Segment extends apiModel { |
| 1274 |
public $definition; |
| 1275 |
public $kind; |
| 1276 |
public $segmentId; |
| 1277 |
public $created; |
| 1278 |
public $updated; |
| 1279 |
public $id; |
| 1280 |
public $selfLink; |
| 1281 |
public $name; |
| 1282 |
public function setDefinition($definition) { |
| 1283 |
$this->definition = $definition; |
| 1284 |
} |
| 1285 |
public function getDefinition() { |
| 1286 |
return $this->definition; |
| 1287 |
} |
| 1288 |
public function setKind($kind) { |
| 1289 |
$this->kind = $kind; |
| 1290 |
} |
| 1291 |
public function getKind() { |
| 1292 |
return $this->kind; |
| 1293 |
} |
| 1294 |
public function setSegmentId($segmentId) { |
| 1295 |
$this->segmentId = $segmentId; |
| 1296 |
} |
| 1297 |
public function getSegmentId() { |
| 1298 |
return $this->segmentId; |
| 1299 |
} |
| 1300 |
public function setCreated($created) { |
| 1301 |
$this->created = $created; |
| 1302 |
} |
| 1303 |
public function getCreated() { |
| 1304 |
return $this->created; |
| 1305 |
} |
| 1306 |
public function setUpdated($updated) { |
| 1307 |
$this->updated = $updated; |
| 1308 |
} |
| 1309 |
public function getUpdated() { |
| 1310 |
return $this->updated; |
| 1311 |
} |
| 1312 |
public function setId($id) { |
| 1313 |
$this->id = $id; |
| 1314 |
} |
| 1315 |
public function getId() { |
| 1316 |
return $this->id; |
| 1317 |
} |
| 1318 |
public function setSelfLink($selfLink) { |
| 1319 |
$this->selfLink = $selfLink; |
| 1320 |
} |
| 1321 |
public function getSelfLink() { |
| 1322 |
return $this->selfLink; |
| 1323 |
} |
| 1324 |
public function setName($name) { |
| 1325 |
$this->name = $name; |
| 1326 |
} |
| 1327 |
public function getName() { |
| 1328 |
return $this->name; |
| 1329 |
} |
| 1330 |
} |
| 1331 |
|
| 1332 |
class Segments extends apiModel { |
| 1333 |
public $username; |
| 1334 |
public $kind; |
| 1335 |
protected $__itemsType = 'Segment'; |
| 1336 |
protected $__itemsDataType = 'array'; |
| 1337 |
public $items; |
| 1338 |
public $itemsPerPage; |
| 1339 |
public $previousLink; |
| 1340 |
public $startIndex; |
| 1341 |
public $nextLink; |
| 1342 |
public $totalResults; |
| 1343 |
public function setUsername($username) { |
| 1344 |
$this->username = $username; |
| 1345 |
} |
| 1346 |
public function getUsername() { |
| 1347 |
return $this->username; |
| 1348 |
} |
| 1349 |
public function setKind($kind) { |
| 1350 |
$this->kind = $kind; |
| 1351 |
} |
| 1352 |
public function getKind() { |
| 1353 |
return $this->kind; |
| 1354 |
} |
| 1355 |
public function setItems(/* array(Segment) */ $items) { |
| 1356 |
$this->assertIsArray($items, 'Segment', __METHOD__); |
| 1357 |
$this->items = $items; |
| 1358 |
} |
| 1359 |
public function getItems() { |
| 1360 |
return $this->items; |
| 1361 |
} |
| 1362 |
public function setItemsPerPage($itemsPerPage) { |
| 1363 |
$this->itemsPerPage = $itemsPerPage; |
| 1364 |
} |
| 1365 |
public function getItemsPerPage() { |
| 1366 |
return $this->itemsPerPage; |
| 1367 |
} |
| 1368 |
public function setPreviousLink($previousLink) { |
| 1369 |
$this->previousLink = $previousLink; |
| 1370 |
} |
| 1371 |
public function getPreviousLink() { |
| 1372 |
return $this->previousLink; |
| 1373 |
} |
| 1374 |
public function setStartIndex($startIndex) { |
| 1375 |
$this->startIndex = $startIndex; |
| 1376 |
} |
| 1377 |
public function getStartIndex() { |
| 1378 |
return $this->startIndex; |
| 1379 |
} |
| 1380 |
public function setNextLink($nextLink) { |
| 1381 |
$this->nextLink = $nextLink; |
| 1382 |
} |
| 1383 |
public function getNextLink() { |
| 1384 |
return $this->nextLink; |
| 1385 |
} |
| 1386 |
public function setTotalResults($totalResults) { |
| 1387 |
$this->totalResults = $totalResults; |
| 1388 |
} |
| 1389 |
public function getTotalResults() { |
| 1390 |
return $this->totalResults; |
| 1391 |
} |
| 1392 |
} |
| 1393 |
|
| 1394 |
class Webproperties extends apiModel { |
| 1395 |
public $username; |
| 1396 |
public $kind; |
| 1397 |
protected $__itemsType = 'Webproperty'; |
| 1398 |
protected $__itemsDataType = 'array'; |
| 1399 |
public $items; |
| 1400 |
public $itemsPerPage; |
| 1401 |
public $previousLink; |
| 1402 |
public $startIndex; |
| 1403 |
public $nextLink; |
| 1404 |
public $totalResults; |
| 1405 |
public function setUsername($username) { |
| 1406 |
$this->username = $username; |
| 1407 |
} |
| 1408 |
public function getUsername() { |
| 1409 |
return $this->username; |
| 1410 |
} |
| 1411 |
public function setKind($kind) { |
| 1412 |
$this->kind = $kind; |
| 1413 |
} |
| 1414 |
public function getKind() { |
| 1415 |
return $this->kind; |
| 1416 |
} |
| 1417 |
public function setItems(/* array(Webproperty) */ $items) { |
| 1418 |
$this->assertIsArray($items, 'Webproperty', __METHOD__); |
| 1419 |
$this->items = $items; |
| 1420 |
} |
| 1421 |
public function getItems() { |
| 1422 |
return $this->items; |
| 1423 |
} |
| 1424 |
public function setItemsPerPage($itemsPerPage) { |
| 1425 |
$this->itemsPerPage = $itemsPerPage; |
| 1426 |
} |
| 1427 |
public function getItemsPerPage() { |
| 1428 |
return $this->itemsPerPage; |
| 1429 |
} |
| 1430 |
public function setPreviousLink($previousLink) { |
| 1431 |
$this->previousLink = $previousLink; |
| 1432 |
} |
| 1433 |
public function getPreviousLink() { |
| 1434 |
return $this->previousLink; |
| 1435 |
} |
| 1436 |
public function setStartIndex($startIndex) { |
| 1437 |
$this->startIndex = $startIndex; |
| 1438 |
} |
| 1439 |
public function getStartIndex() { |
| 1440 |
return $this->startIndex; |
| 1441 |
} |
| 1442 |
public function setNextLink($nextLink) { |
| 1443 |
$this->nextLink = $nextLink; |
| 1444 |
} |
| 1445 |
public function getNextLink() { |
| 1446 |
return $this->nextLink; |
| 1447 |
} |
| 1448 |
public function setTotalResults($totalResults) { |
| 1449 |
$this->totalResults = $totalResults; |
| 1450 |
} |
| 1451 |
public function getTotalResults() { |
| 1452 |
return $this->totalResults; |
| 1453 |
} |
| 1454 |
} |
| 1455 |
|
| 1456 |
class Webproperty extends apiModel { |
| 1457 |
public $kind; |
| 1458 |
public $name; |
| 1459 |
public $created; |
| 1460 |
public $updated; |
| 1461 |
public $websiteUrl; |
| 1462 |
public $internalWebPropertyId; |
| 1463 |
protected $__childLinkType = 'WebpropertyChildLink'; |
| 1464 |
protected $__childLinkDataType = ''; |
| 1465 |
public $childLink; |
| 1466 |
protected $__parentLinkType = 'WebpropertyParentLink'; |
| 1467 |
protected $__parentLinkDataType = ''; |
| 1468 |
public $parentLink; |
| 1469 |
public $id; |
| 1470 |
public $selfLink; |
| 1471 |
public $accountId; |
| 1472 |
public function setKind($kind) { |
| 1473 |
$this->kind = $kind; |
| 1474 |
} |
| 1475 |
public function getKind() { |
| 1476 |
return $this->kind; |
| 1477 |
} |
| 1478 |
public function setName($name) { |
| 1479 |
$this->name = $name; |
| 1480 |
} |
| 1481 |
public function getName() { |
| 1482 |
return $this->name; |
| 1483 |
} |
| 1484 |
public function setCreated($created) { |
| 1485 |
$this->created = $created; |
| 1486 |
} |
| 1487 |
public function getCreated() { |
| 1488 |
return $this->created; |
| 1489 |
} |
| 1490 |
public function setUpdated($updated) { |
| 1491 |
$this->updated = $updated; |
| 1492 |
} |
| 1493 |
public function getUpdated() { |
| 1494 |
return $this->updated; |
| 1495 |
} |
| 1496 |
public function setWebsiteUrl($websiteUrl) { |
| 1497 |
$this->websiteUrl = $websiteUrl; |
| 1498 |
} |
| 1499 |
public function getWebsiteUrl() { |
| 1500 |
return $this->websiteUrl; |
| 1501 |
} |
| 1502 |
public function setInternalWebPropertyId($internalWebPropertyId) { |
| 1503 |
$this->internalWebPropertyId = $internalWebPropertyId; |
| 1504 |
} |
| 1505 |
public function getInternalWebPropertyId() { |
| 1506 |
return $this->internalWebPropertyId; |
| 1507 |
} |
| 1508 |
public function setChildLink(WebpropertyChildLink $childLink) { |
| 1509 |
$this->childLink = $childLink; |
| 1510 |
} |
| 1511 |
public function getChildLink() { |
| 1512 |
return $this->childLink; |
| 1513 |
} |
| 1514 |
public function setParentLink(WebpropertyParentLink $parentLink) { |
| 1515 |
$this->parentLink = $parentLink; |
| 1516 |
} |
| 1517 |
public function getParentLink() { |
| 1518 |
return $this->parentLink; |
| 1519 |
} |
| 1520 |
public function setId($id) { |
| 1521 |
$this->id = $id; |
| 1522 |
} |
| 1523 |
public function getId() { |
| 1524 |
return $this->id; |
| 1525 |
} |
| 1526 |
public function setSelfLink($selfLink) { |
| 1527 |
$this->selfLink = $selfLink; |
| 1528 |
} |
| 1529 |
public function getSelfLink() { |
| 1530 |
return $this->selfLink; |
| 1531 |
} |
| 1532 |
public function setAccountId($accountId) { |
| 1533 |
$this->accountId = $accountId; |
| 1534 |
} |
| 1535 |
public function getAccountId() { |
| 1536 |
return $this->accountId; |
| 1537 |
} |
| 1538 |
} |
| 1539 |
|
| 1540 |
class WebpropertyChildLink extends apiModel { |
| 1541 |
public $href; |
| 1542 |
public $type; |
| 1543 |
public function setHref($href) { |
| 1544 |
$this->href = $href; |
| 1545 |
} |
| 1546 |
public function getHref() { |
| 1547 |
return $this->href; |
| 1548 |
} |
| 1549 |
public function setType($type) { |
| 1550 |
$this->type = $type; |
| 1551 |
} |
| 1552 |
public function getType() { |
| 1553 |
return $this->type; |
| 1554 |
} |
| 1555 |
} |
| 1556 |
|
| 1557 |
class WebpropertyParentLink extends apiModel { |
| 1558 |
public $href; |
| 1559 |
public $type; |
| 1560 |
public function setHref($href) { |
| 1561 |
$this->href = $href; |
| 1562 |
} |
| 1563 |
public function getHref() { |
| 1564 |
return $this->href; |
| 1565 |
} |
| 1566 |
public function setType($type) { |
| 1567 |
$this->type = $type; |
| 1568 |
} |
| 1569 |
public function getType() { |
| 1570 |
return $this->type; |
| 1571 |
} |
| 1572 |
} |
| 1573 |
|