diff options
Diffstat (limited to 'samples')
-rwxr-xr-x | samples/GetItemDefinition.php | 6 | ||||
-rwxr-xr-x | samples/ListChildren.php | 4 | ||||
-rwxr-xr-x | samples/ListRenderingExtensions.php | 4 | ||||
-rwxr-xr-x | samples/LoadReport.php | 4 | ||||
-rwxr-xr-x | samples/LoadReportWithParameters.php | 22 |
5 files changed, 20 insertions, 20 deletions
diff --git a/samples/GetItemDefinition.php b/samples/GetItemDefinition.php index ff62818..b8df557 100755 --- a/samples/GetItemDefinition.php +++ b/samples/GetItemDefinition.php @@ -1,16 +1,16 @@ <?php -require('../library/SSRS/Report.php'); +require(__DIR__ . '/../vendor/autoload.php'); $options = array( 'username' => 'testing', 'password' => 'password' ); -$ssrs = new SSRS_Report('http://localhost/reportserver/', $options); +$ssrs = new \SSRS\Report('http://localhost/reportserver/', $options); $ItemPath = '/Reports/Reference_Report'; $result = $ssrs->getItemDefinition($ItemPath); header('Content-Type:text/xml'); -echo $result;
\ No newline at end of file +echo $result; diff --git a/samples/ListChildren.php b/samples/ListChildren.php index 513e7a2..ccedde4 100755 --- a/samples/ListChildren.php +++ b/samples/ListChildren.php @@ -1,13 +1,13 @@ <?php -require(dirname(__FILE__) . '/../library/SSRS/Report.php'); +require(__DIR__ . '/../vendor/autoload.php'); $options = array( 'username' => 'testing', 'password' => 'password', ); -$ssrs = new SSRS_Report('http://localhost/reportserver/', $options); +$ssrs = new \SSRS\Report('http://localhost/reportserver/', $options); $result = $ssrs->listChildren('/Reports', true); foreach ($result->CatalogItems AS $item) { diff --git a/samples/ListRenderingExtensions.php b/samples/ListRenderingExtensions.php index 5b3bf91..036cd18 100755 --- a/samples/ListRenderingExtensions.php +++ b/samples/ListRenderingExtensions.php @@ -1,13 +1,13 @@ <?php -require('../library/SSRS/Report.php'); +require(__DIR__ . '/../vendor/autoload.php'); $options = array( 'username' => 'testing', 'password' => 'password' ); -$ssrs = new SSRS_Report('http://localhost/reportserver/', $options); +$ssrs = new \SSRS\Report('http://localhost/reportserver/', $options); $results = $ssrs->listRenderingExtensions(); echo '<table border="1" width="100%">'; diff --git a/samples/LoadReport.php b/samples/LoadReport.php index 81fb150..08061db 100755 --- a/samples/LoadReport.php +++ b/samples/LoadReport.php @@ -1,13 +1,13 @@ <?php -require('../library/SSRS/Report.php'); +require(__DIR__ . '/../vendor/autoload.php'); $options = array( 'username' => 'testing', 'password' => 'password' ); -$ssrs = new SSRS_Report('http://localhost/reportserver/', $options); +$ssrs = new \SSRS\Report('http://localhost/reportserver/', $options); $result = $ssrs->loadReport('/Reports/Reference_Report'); $ssrs->setSessionId($result->executionInfo->ExecutionID); diff --git a/samples/LoadReportWithParameters.php b/samples/LoadReportWithParameters.php index a99c582..e2a89dd 100755 --- a/samples/LoadReportWithParameters.php +++ b/samples/LoadReportWithParameters.php @@ -1,18 +1,18 @@ <?php -require('../library/SSRS/Report.php'); -include_once('Zend/Debug.php'); + +require(__DIR__ . '/../vendor/autoload.php'); + $options = array( - 'username' => 'CaymanUnreg', - 'password' => 'Gottex2011' + 'username' => 'testing', + 'password' => 'password' ); -$ssrs = new SSRS_Report('http://212.203.112.85/reportserver/', $options); -$result = $ssrs->loadReport('/Off Shore/Cayman Weekly Risk'); -Zend_Debug::dump($result); -//die(); +$ssrs = new \SSRS\Report('http://localhost/reportserver/', $options); +$result = $ssrs->loadReport('/Reports/Reference_Report'); + $reportParameters = array( - 'managedaccount' => '1' - ); + 'test' => '1' +); $parameters = new SSRS_Object_ExecutionParameters($reportParameters); @@ -20,4 +20,4 @@ $ssrs->setSessionId($result->executionInfo->ExecutionID) ->setExecutionParameters($parameters); $output = $ssrs->render('HTML4.0'); // PDF | XML | CSV -echo $output;
\ No newline at end of file +echo $output; |