PluginProbe
Authorizer / 2.2
Authorizer v2.2
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / inc / google-api-php-client / src / Google / Service / Webfonts.php

Webfonts.php in Authorizer 2.2, at inc/google-api-php-client/src/Google/Service/Webfonts.php

224 lines 4.4 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 Google_Service_Webfonts extends Google_Service
33 {
34
35
36 public $webfonts;
37
38
39 /**
40 * Constructs the internal representation of the Webfonts service.
41 *
42 * @param Google_Client $client
43 */
44 public function __construct(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 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 Google_Service_Webfonts(...);
79 * $webfonts = $webfontsService->webfonts;
80 * </code>
81 */
82 class Google_Service_Webfonts_Webfonts_Resource extends 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 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), "Google_Service_Webfonts_WebfontList");
100 }
101 }
102
103
104
105
106 class Google_Service_Webfonts_Webfont extends 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 Google_Service_Webfonts_WebfontList extends Google_Collection
199 {
200 protected $itemsType = 'Google_Service_Webfonts_Webfont';
201 protected $itemsDataType = 'array';
202 public $kind;
203
204 public function setItems($items)
205 {
206 $this->items = $items;
207 }
208
209 public function getItems()
210 {
211 return $this->items;
212 }
213
214 public function setKind($kind)
215 {
216 $this->kind = $kind;
217 }
218
219 public function getKind()
220 {
221 return $this->kind;
222 }
223 }
224