function __construct($href, $content, $attrs=array()) { parent::__construct(); $this->content=$content; $this->setAttr('href', $href); $this->setAttrs($attrs); }
public function __construct($action=false, $method='post', $files=false) { parent::__construct(); if ($action===false) $action=LPC_URI::getCurrentURI(); $this->setAttr('action', $action); $this->setAttr('method', $method); if ($files) $this->setAttr('enctype','multipart/form-data'); else $this->setAttr('enctype','application/x-www-form-urlencoded'); }
function __construct($glyph) { parent::__construct("span"); $this->setClass("glyphicon glyphicon-".$glyph); }