content)) {
$this->content = Array();
}
array_push($this->content, $lineStr);
}
function set($typeStr) {
$this->type = $typeStr;
}
function show(){
if(!empty($this->content)) {
$htmlOutput = '
';
if(!$this->header) {
if(strtolower($this->type) == 'error') {
$htmlOutput .= 'Please review and correct following errors:
';
} else if(strtolower($this->type) == 'success') {
$htmlOutput .= 'Your request was successfully processed:';
}
} else {
$htmlOutput .= $this->header.'';
}
foreach($this->content as $messageLine) {
$htmlOutput .= '
'.ucFirst($messageLine).' ';
}
$htmlOutput .= '
';
return $htmlOutput;
}
}
function status() {
if(!empty($this->content)) {
return 1;
} else {
return 0;
}
}
function flush() {
unset($this->content);
}
function halt() {
if($this->halt == '1') {
$this->halt = 0;
} else {
$this->halt = 1;
}
}
}
?>