summaryrefslogtreecommitdiffstats
path: root/samples/ListRenderingExtensions.php
diff options
context:
space:
mode:
authorarron.woods <arron.woods@deae1e92-32f9-c189-e222-5b9b5081a27a>2011-03-10 23:14:50 +0000
committerarron.woods <arron.woods@deae1e92-32f9-c189-e222-5b9b5081a27a>2011-03-10 23:14:50 +0000
commit634884044dd95345962db9e54764f37f6ba84853 (patch)
treee16f69cd22e0ac4a1759987e2f66566b4f9a08eb /samples/ListRenderingExtensions.php
downloadphp-ssrs-634884044dd95345962db9e54764f37f6ba84853.zip
php-ssrs-634884044dd95345962db9e54764f37f6ba84853.tar.gz
php-ssrs-634884044dd95345962db9e54764f37f6ba84853.tar.bz2
v0.1 committed
Diffstat (limited to 'samples/ListRenderingExtensions.php')
-rwxr-xr-xsamples/ListRenderingExtensions.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/samples/ListRenderingExtensions.php b/samples/ListRenderingExtensions.php
new file mode 100755
index 0000000..0f17f2a
--- /dev/null
+++ b/samples/ListRenderingExtensions.php
@@ -0,0 +1,40 @@
+<?php
+require('../library/SSRS/Report.php');
+
+try {
+ $options = array(
+ 'username' => 'testing',
+ 'password' => 'password'
+ );
+
+ $ssrs = new SSRS_Report('http://localhost/reportserver/', $options);
+ $results = $ssrs->listRenderingExtensions();
+
+ echo '<table border="1" width="100%">';
+ echo '<tr>';
+ echo '<th>ExtensionType</th>';
+ echo '<th>Name</th>';
+ echo '<th>LocalisedName</th>';
+ echo '<th>Visible</th>';
+ echo '<th>IsModelGenerationSupported</th>';
+ echo '</tr>';
+ foreach ($results->Extensions->Extension as $extension) {
+ $extension->Visible = (empty($extension->Visible))?"Null":$extension->Visible;
+ $extension->IsModelGenerationSupported = (empty($extension->IsModelGenerationSupported))?"Null":$extension->IsModelGenerationSupported;
+
+ echo '<tr>';
+ echo '<td>'.$extension->ExtensionType.'</td>';
+ echo '<td>'.$extension->Name.'</td>';
+ echo '<td>'.$extension->LocalizedName.'</td>';
+ echo '<td>'.$extension->Visible.'</td>';
+ echo '<td>'.$extension->IsModelGenerationSupported.'</td>';
+ echo '</tr>';
+ }
+ echo '</table>';
+
+} catch (Exception $error) {
+ echo 'Exception:' . PHP_EOL;
+ print_r($error);
+
+}
+?> \ No newline at end of file