summaryrefslogtreecommitdiffstats
path: root/samples/ListChildren.php
blob: 513e7a2c74f792efe176e0a9bdd028bca3d78c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

require(dirname(__FILE__) . '/../library/SSRS/Report.php');

$options = array(
    'username' => 'testing',
    'password' => 'password',
);

$ssrs = new SSRS_Report('http://localhost/reportserver/', $options);
$result = $ssrs->listChildren('/Reports', true);

foreach ($result->CatalogItems AS $item) {
    echo $item->Name . ': ' . $item->Path . PHP_EOL;
}