<?php
abstract class ErrorView extends Base {
	public $_form;

	public function __construct($properties = null) {
		$this->configure($properties);
	}

	public abstract function applyAjaxErrorResponse();

	public function clear() {
		echo 'jQuery("#', wp_kses_post((string)$this->_form->getAttribute("id")), ' .alert-error").remove();';
	}

	public abstract function render();
	public abstract function renderAjaxErrorResponse();

	public function renderCSS() {}

	public function _setForm(RM_PFBC_Form $form) {
		$this->_form = $form;
	}
}
