36 public $mRenderBuffer;
40 public $mTemplateName;
42 public $mAttributes = [];
47 public $mType = XCUBE_RENDER_TARGET_TYPE_BUFFER;
51 public function __construct() {
54 public function setName( $name ) {
58 public function getName() {
62 public function setTemplateName( $name ) {
63 $this->mTemplateName = $name;
66 public function getTemplateName() {
67 return $this->mTemplateName;
70 public function setAttribute( $key, $value ) {
71 $this->mAttributes[ $key ] = $value;
74 public function setAttributes( $attr ) {
75 $this->mAttributes = $attr;
78 public function getAttribute( $key ) {
79 return $this->mAttributes[$key] ??
null;
82 public function getAttributes() {
83 return $this->mAttributes;
95 $this->setAttribute(
'legacy_buffertype', $type );
105 return $this->getAttribute(
'legacy_buffertype' );
109 public function setResult( &$result ) {
110 $this->mRenderBuffer = $result;
113 public function getResult() {
114 return $this->mRenderBuffer;
121 $this->setTemplateName(
null );
122 unset( $this->mAttributes );
123 $this->mAttributes = [];
124 $this->mRenderBuffer =
null;