forked from joomla/joomla-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
renderer.php
69 lines (63 loc) · 1.36 KB
/
renderer.php
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* @version $Id$
* @package Joomla.Framework
* @subpackage Document
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('JPATH_BASE') or die;
/**
* Abstract class for a renderer
*
* @abstract
* @package Joomla.Framework
* @subpackage Document
* @since 1.5
*/
class JDocumentRenderer extends JObject
{
/**
* reference to the JDocument object that instantiated the renderer
*
* @var object
* @access protected
*/
var $_doc = null;
/**
* Renderer mime type
*
* @var string
* @access private
*/
var $_mime = "text/html";
/**
* Class constructor
*
* @param object A reference to the JDocument object that instantiated the renderer
*/
public function __construct(&$doc)
{
$this->_doc = &$doc;
}
/**
* Renders a script and returns the results as a string
*
* @param string $name The name of the element to render
* @param array $array Array of values
* @param string $content Override the output of the renderer
* @return string The output of the script
*/
public function render($name, $params = null, $content = null)
{
}
/**
* Return the content type of the renderer
*
* @return string The contentType
*/
function getContentType() {
return $this->_mime;
}
}