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