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