@@ 154-163 (lines=10) @@ | ||
151 | * |
|
152 | * @return integer |
|
153 | */ |
|
154 | public function getTemplatePageCount($templateName) |
|
155 | { |
|
156 | StaticValidator::execute($templateName, 'TemplateName'); |
|
157 | ||
158 | $query = [ |
|
159 | 'templateName' => $templateName, |
|
160 | ]; |
|
161 | ||
162 | return (integer) $this->get('/templates/pagecount', $query); |
|
163 | } |
|
164 | ||
165 | /** |
|
166 | * Return true, if the template exists in template storage |
|
@@ 174-183 (lines=10) @@ | ||
171 | * |
|
172 | * @return bool |
|
173 | */ |
|
174 | public function templateExists($templateName) |
|
175 | { |
|
176 | StaticValidator::execute($templateName, 'TemplateName'); |
|
177 | ||
178 | $query = [ |
|
179 | 'templateName' => $templateName, |
|
180 | ]; |
|
181 | ||
182 | return (boolean) $this->get('/templates/exists', $query); |
|
183 | } |
|
184 | ||
185 | /** |
|
186 | * Return an array of available fonts on the Reporting Cloud service |