openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

CssOutput.class.php (527B)


      1 <?php
      2 
      3 namespace cms\output;
      4 
      5 use cms\output\APIOutput;
      6 use Exception;
      7 use util\json\JSON;
      8 use util\YAML;
      9 
     10 /**
     11  * CSS rendering.
     12  */
     13 class CssOutput extends BaseOutput
     14 {
     15 	public function getContentType()
     16 	{
     17 		return 'text/css';
     18 	}
     19 
     20 	protected function outputData($request, $data)
     21 	{
     22 		echo implode('',$data['output'] );
     23 	}
     24 
     25 
     26 	/**
     27 	 * @param $text string Error Message
     28 	 * @param $cause Exception
     29 	 */
     30 	protected function setError($text, $cause)
     31 	{
     32 		echo "/* CSS Output error */";
     33 		echo "/* ".$cause->getMessage()." */";
     34 	}
     35 }