Example #1
0
 /**
  * Constructs a new UIText that replaces newline chars with HTML line breaks.
  * 
  * $text : must be valid, escaped HTML, but newlines are OK and converted to HTML breaks
  * $title : optional
  * $cols : number of columns to render, 1 by default
  */
 public function __construct($text, $title = null, $cols = 1)
 {
     parent::__construct();
     if (is_numeric($title)) {
         $cols = $title;
         $title = null;
     }
     $this->text = $text;
     $this->cols = $cols;
     $this->replace = true;
     if ($title != null) {
         $this->title = $title;
     }
 }
Example #2
0
 protected function __construct($entries, $header = null)
 {
     parent::__construct();
     $this->entries = $entries;
     $this->header = $header;
     require_css('table');
 }
Example #3
0
 public function __construct($title = null)
 {
     parent::__construct($title);
 }