function preParse() { if (!$this->hasAttribute('target') && !$this->hasAttribute('to')) { $this->raiseCompilerError('Required attribute not found', array('attribute' => 'target or to')); } if ($this->hasAttribute('target') && $this->hasAttribute('to')) { $this->raiseCompilerError('Both target and buffer attribute are not supported'); } $this->_fillToAttributeFromTargetAttribute(); return parent::preParse(); }