Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
Updated get-template-info demo with template contain user document pr…
Browse files Browse the repository at this point in the history
…operties
  • Loading branch information
jonathanmaron committed Jul 27, 2018
1 parent 99815b9 commit 604b755
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions demo/get-template-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@

// ---------------------------------------------------------------------------------------------------------------------

$templateName = 'test_template.tx';
$templateNames = [
'test_template.tx',
'test_template_with_user_document_properties.docx',
];

$sourceFilename = REPORTING_CLOUD_DEMO_MEDIA_PATH . DIRECTORY_SEPARATOR . $templateName;
foreach ($templateNames as $templateName) {

// ---------------------------------------------------------------------------------------------------------------------
$sourceFilename = REPORTING_CLOUD_DEMO_MEDIA_PATH . DIRECTORY_SEPARATOR . $templateName;

// Upload template, if not already in template storage
// Upload template, if not already in template storage

if (!$reportingCloud->templateExists($templateName)) {
if (!$reportingCloud->templateExists($templateName)) {
$reportingCloud->uploadTemplate($sourceFilename);
}

$reportingCloud->uploadTemplate($sourceFilename);
var_dump($reportingCloud->getTemplateInfo($templateName));
}

// ---------------------------------------------------------------------------------------------------------------------

var_dump($reportingCloud->getTemplateInfo($templateName));

// ---------------------------------------------------------------------------------------------------------------------

0 comments on commit 604b755

Please sign in to comment.