/** * 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; } }
protected function __construct($entries, $header = null) { parent::__construct(); $this->entries = $entries; $this->header = $header; require_css('table'); }
public function __construct($title = null) { parent::__construct($title); }