phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlLink.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ajax\bootstrap\html;
4 
5 use Ajax\JsUtils;
8 
10  use HtmlLinkTrait;
11 
12  public function __construct($identifier, $href="#", $content="Link") {
13  parent::__construct($identifier, "a");
14  $this->setHref($href);
15  $this->content=$content;
16  }
17 
18  /*
19  * (non-PHPdoc)
20  * @see \Ajax\bootstrap\html\base\HtmlSingleElement::run()
21  */
22  public function run(JsUtils $js) {
23  $this->_bsComponent=$js->bootstrap()->generic("#".$this->identifier);
24  $this->addEventsOnRun($js);
25  return $this->_bsComponent;
26  }
27 }
addEventsOnRun(JsUtils $js=NULL)
bootstrap(Bootstrap $bootstrap=NULL)
getter or setter of the Twitter Bootstrap variable
Definition: JsUtils.php:141
JQuery PHP library.
Definition: JsUtils.php:23