| @@ 254-263 (lines=10) @@ | ||
| 251 | * |
|
| 252 | * @return int |
|
| 253 | */ |
|
| 254 | public function getTemplatePageCount($templateName) |
|
| 255 | { |
|
| 256 | StaticValidator::execute($templateName, 'TemplateName'); |
|
| 257 | ||
| 258 | $query = [ |
|
| 259 | 'templateName' => $templateName, |
|
| 260 | ]; |
|
| 261 | ||
| 262 | return (int) $this->get('/templates/pagecount', $query); |
|
| 263 | } |
|
| 264 | ||
| 265 | /** |
|
| 266 | * Return true, if the template exists in template storage |
|
| @@ 274-283 (lines=10) @@ | ||
| 271 | * |
|
| 272 | * @return bool |
|
| 273 | */ |
|
| 274 | public function templateExists($templateName) |
|
| 275 | { |
|
| 276 | StaticValidator::execute($templateName, 'TemplateName'); |
|
| 277 | ||
| 278 | $query = [ |
|
| 279 | 'templateName' => $templateName, |
|
| 280 | ]; |
|
| 281 | ||
| 282 | return (bool) $this->get('/templates/exists', $query); |
|
| 283 | } |
|
| 284 | ||
| 285 | /** |
|
| 286 | * Return an array of available fonts on the Reporting Cloud service |
|