PluginProbe
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) / 1.2.4
Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) v1.2.4
9.1.2 9.1.1 9.1.0 9.0.2 9.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 All 153 releases
wp-analytify / lib / Google / Service / Webfonts.php

Webfonts.php in Analytify – Google Analytics Dashboard For WordPress (GA4 analytics tracking) 1.2.4, at lib/Google/Service/Webfonts.php

229 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 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 /**
19 * Service definition for Webfonts (v1).
20 *
21 * <p>
22 * The Google Fonts Developer API.
23 * </p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/fonts/docs/developer_api" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Analytify_Google_Service_Webfonts extends Analytify_Google_Service
33 {
34
35
36 public $webfonts;
37
38
39 /**
40 * Constructs the internal representation of the Webfonts service.
41 *
42 * @param Analytify_Google_Client $client
43 */
44 public function __construct(Analytify_Google_Client $client)
45 {
46 parent::__construct($client);
47 $this->servicePath = 'webfonts/v1/';
48 $this->version = 'v1';
49 $this->serviceName = 'webfonts';
50
51 $this->webfonts = new Analytify_Google_Service_Webfonts_Webfonts_Resource(
52 $this,
53 $this->serviceName,
54 'webfonts',
55 array(
56 'methods' => array(
57 'list' => array(
58 'path' => 'webfonts',
59 'httpMethod' => 'GET',
60 'parameters' => array(
61 'sort' => array(
62 'location' => 'query',
63 'type' => 'string',
64 ),
65 ),
66 ),
67 )
68 )
69 );
70 }
71 }
72
73
74 /**
75 * The "webfonts" collection of methods.
76 * Typical usage is:
77 * <code>
78 * $webfontsService = new Analytify_Google_Service_Webfonts(...);
79 * $webfonts = $webfontsService->webfonts;
80 * </code>
81 */
82 class Analytify_Google_Service_Webfonts_Webfonts_Resource extends Analytify_Google_Service_Resource
83 {
84
85 /**
86 * Retrieves the list of fonts currently served by the Google Fonts Developer
87 * API (webfonts.listWebfonts)
88 *
89 * @param array $optParams Optional parameters.
90 *
91 * @opt_param string sort
92 * Enables sorting of the list
93 * @return Analytify_Google_Service_Webfonts_WebfontList
94 */
95 public function listWebfonts($optParams = array())
96 {
97 $params = array();
98 $params = array_merge($params, $optParams);
99 return $this->call('list', array($params), "Analytify_Google_Service_Webfonts_WebfontList");
100 }
101 }
102
103
104
105
106 class Analytify_Google_Service_Webfonts_Webfont extends Analytify_Google_Collection
107 {
108 public $category;
109 public $family;
110 public $files;
111 public $kind;
112 public $lastModified;
113 public $subsets;
114 public $variants;
115 public $version;
116
117 public function setCategory($category)
118 {
119 $this->category = $category;
120 }
121
122 public function getCategory()
123 {
124 return $this->category;
125 }
126
127 public function setFamily($family)
128 {
129 $this->family = $family;
130 }
131
132 public function getFamily()
133 {
134 return $this->family;
135 }
136
137 public function setFiles($files)
138 {
139 $this->files = $files;
140 }
141
142 public function getFiles()
143 {
144 return $this->files;
145 }
146
147 public function setKind($kind)
148 {
149 $this->kind = $kind;
150 }
151
152 public function getKind()
153 {
154 return $this->kind;
155 }
156
157 public function setLastModified($lastModified)
158 {
159 $this->lastModified = $lastModified;
160 }
161
162 public function getLastModified()
163 {
164 return $this->lastModified;
165 }
166
167 public function setSubsets($subsets)
168 {
169 $this->subsets = $subsets;
170 }
171
172 public function getSubsets()
173 {
174 return $this->subsets;
175 }
176
177 public function setVariants($variants)
178 {
179 $this->variants = $variants;
180 }
181
182 public function getVariants()
183 {
184 return $this->variants;
185 }
186
187 public function setVersion($version)
188 {
189 $this->version = $version;
190 }
191
192 public function getVersion()
193 {
194 return $this->version;
195 }
196 }
197
198 class Analytify_Google_Service_Webfonts_WebfontFiles extends Analytify_Google_Model
199 {
200
201 }
202
203 class Analytify_Google_Service_Webfonts_WebfontList extends Analytify_Google_Collection
204 {
205 protected $itemsType = 'Analytify_Google_Service_Webfonts_Webfont';
206 protected $itemsDataType = 'array';
207 public $kind;
208
209 public function setItems($items)
210 {
211 $this->items = $items;
212 }
213
214 public function getItems()
215 {
216 return $this->items;
217 }
218
219 public function setKind($kind)
220 {
221 $this->kind = $kind;
222 }
223
224 public function getKind()
225 {
226 return $this->kind;
227 }
228 }
229