Piwik\Tracker\Response::getOutput PHP Method

getOutput() public method

public getOutput ( )
    public function getOutput()
    {
        $this->outputAccessControlHeaders();
        if (is_null($this->content) && ob_get_level() > 0) {
            $this->content = ob_get_clean();
        }
        return $this->content;
    }

Usage Example

Example #1
0
 public function getOutput()
 {
     Common::sendHeader('Content-Type: application/json');
     return parent::getOutput();
 }
All Usage Examples Of Piwik\Tracker\Response::getOutput