Source for file renderer.php

Documentation is available at renderer.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Platform
  4.  * @subpackage  Document
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Abstract class for a renderer
  14.  *
  15.  * @package     Joomla.Platform
  16.  * @subpackage  Document
  17.  * @since       11.1
  18.  */
  19. {
  20.     /**
  21.      * Reference to the JDocument object that instantiated the renderer
  22.      *
  23.      * @var    JDocument 
  24.      * @since  11.1
  25.      */
  26.     protected $_doc = null;
  27.  
  28.     /**
  29.      * Renderer mime type
  30.      *
  31.      * @var    string 
  32.      * @since  11.1
  33.      */
  34.     protected $_mime = "text/html";
  35.  
  36.     /**
  37.      * Class constructor
  38.      *
  39.      * @param   JDocument  $doc  A reference to the JDocument object that instantiated the renderer
  40.      *
  41.      * @since   11.1
  42.      */
  43.     public function __construct(JDocument $doc)
  44.     {
  45.         $this->_doc = $doc;
  46.     }
  47.  
  48.     /**
  49.      * Renders a script and returns the results as a string
  50.      *
  51.      * @param   string  $name     The name of the element to render
  52.      * @param   array   $params   Array of values
  53.      * @param   string  $content  Override the output of the renderer
  54.      *
  55.      * @return  string  The output of the script
  56.      *
  57.      * @since   11.1
  58.      */
  59.     public function render($name$params null$content null)
  60.     {
  61.     }
  62.  
  63.     /**
  64.      * Return the content type of the renderer
  65.      *
  66.      * @return  string  The contentType
  67.      *
  68.      * @since   11.1
  69.      */
  70.     public function getContentType()
  71.     {
  72.         return $this->_mime;
  73.     }
  74. }

Documentation generated on Tue, 19 Nov 2013 15:11:48 +0100 by phpDocumentor 1.4.3