| @@ 164-173 (lines=10) @@ | ||
| 161 | * |
|
| 162 | * @return bool |
|
| 163 | */ |
|
| 164 | public function getTemplatePageCount($templateName) |
|
| 165 | { |
|
| 166 | StaticValidator::execute($templateName, 'TemplateName'); |
|
| 167 | ||
| 168 | $query = [ |
|
| 169 | 'templateName' => $templateName, |
|
| 170 | ]; |
|
| 171 | ||
| 172 | return (integer) $this->get('/templates/pagecount', $query); |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * Return true, if the template exists in template storage |
|
| @@ 184-193 (lines=10) @@ | ||
| 181 | * |
|
| 182 | * @return bool |
|
| 183 | */ |
|
| 184 | public function templateExists($templateName) |
|
| 185 | { |
|
| 186 | StaticValidator::execute($templateName, 'TemplateName'); |
|
| 187 | ||
| 188 | $query = [ |
|
| 189 | 'templateName' => $templateName, |
|
| 190 | ]; |
|
| 191 | ||
| 192 | return (boolean) $this->get('/templates/exists', $query); |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * Return an array properties for the ReportingCloud account |
|