<?
/**
*
* PTagSupport Class
*
* @author Masahiro.Kobayashi < masa918@nifty.com >
* @access public
* @version 0.1
*
*/
class PTagSupport
{
/**
* parent object PTagSupport
* @access public
*/
var $parent = null;
/**
* attribute
* @access public
*/
var $attrs = array();
/**
*
* attribute set method
*
* @access private
*/
function set($key,$value){
$this->attrs[$key] = $value;
}
/**
* set parent object
*/
function setParent(&$parent)
{
$this->parent =& $parent;
}
/**
* @access public
*/
function doStartTag(){
}
/**
* @access public
*/
function doBody($data = ""){
print htmlspecialchars($data);
}
/**
* @access public
*/
function doEndTag(){
}
/**
* @access public
*/
function release()
{
$this->attrs = array();
}
}
?> |