Example #1
0
 /**
  * UIDiv constructor.
  *
  * @param array|string $contents The content of this HTML division.
  * @param string       $id       HTML ID Attribute
  * @param array        $classes  Classes for use with CSS and Javascript
  */
 public function __construct($contents = [], $classes = [], $id = '')
 {
     parent::__construct('div', $contents, $classes, $id);
 }
Example #2
0
 /**
  * UIHeading constructor.
  *
  * @param int          $size     The size of the heading, from 1 - 5.
  * @param array|string $contents The content of this HTML division.
  * @param string       $id       HTML ID Attribute
  * @param array        $classes  Classes for use with CSS and Javascript
  */
 public function __construct($size = 1, $contents = [], $classes = [], $id = '')
 {
     parent::__construct('h' . $size, $contents, $classes, $id);
 }