Exemple #1
0
	function __construct($href, $content, $attrs=array())
	{
		parent::__construct();
		$this->content=$content;
		$this->setAttr('href', $href);
		$this->setAttrs($attrs);
	}
Exemple #2
0
	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');
	}
Exemple #3
0
	function __construct($glyph)
	{
		parent::__construct("span");
		$this->setClass("glyphicon glyphicon-".$glyph);
	}