17 if (!defined(
"PSF_ENTRY_POINT"))
18 die(
"Not a valid psf entry point");
20 require_once (dirname(__FILE__) .
"/../html/divcontainer.php");
26 public $EscapeHTML =
true;
27 public $IsDismissable =
true;
29 public function __construct($_text, $_type =
"success", $_parent = NULL)
33 parent::__construct($_parent);
36 private function getClass()
38 $class =
"alert alert-" . $this->Type;
39 if ($this->IsDismissable)
40 $class .=
" alert-dismissable";
44 public function ToHtml()
46 if ($this->EscapeHTML)
50 if ($this->ClassName === NULL)
52 $this->ClassName = $this->getClass();
57 return parent::ToHtml();
AppendHtmlLine($html, $indent=-1)
Insert a line of html into body of a page (to bottom of the body). If $indent contains anything else ...
Represents a simple div container that can contain html elements.
$ClassName
The class of html element, if HTML5, this will be added as <element class="text"> if not NULL...