blob: 7b10725ab691fd5e30857121b2689b54a0cc45aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
namespace SSRS\Object;
class RenderStream extends ObjectAbstract {
public $Result;
public $MimeType;
public function __construct(\stdClass $stream = null) {
if ($stream) {
$this->Result = $stream->Result;
$this->MimeType = $stream->MimeType;
}
}
public function send() {
header('Content-Type: ' . $this->MimeType);
echo $this->Result;
}
public function __toString() {
return $this->Result;
}
}
|