/** * xarTpl__XarPINode: tag class * * Generates a processing instruction * @package blocklayout * @access private */ class xarTpl__XarPINode extends xarTpl__TplTagNode { function __construct(&$parser, $tagName, $parentTagName='', $parameters=array()) { parent::__construct($parser, $tagName, $parentTagName, $parameters); } function render() { if (!array_key_exists('target', $this->attributes)) { $this->raiseError(XAR_BL_MISSING_ATTRIBUTE,'Missing \'target\' attribute in tag.'); return; } $target = $this->attributes['target']; unset($this->attributes['target']); $attributes = ''; foreach ($this->attributes as $k => $v) { $attributes .= $k.'="'.$v.'"'; } return "echo ''"; } } ?>