phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlLinkTrait.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ajax\common\html\html5;
4 
5 trait HtmlLinkTrait {
6 
7  abstract public function setProperty($name,$value);
8  abstract public function getProperty($name);
9 
10  public function setHref($value) {
11  $this->setProperty("href", $value);
12  }
13 
14  public function getHref() {
15  return $this->getProperty("href");
16  }
17 
18  public function setTarget($value="_self") {
19  return $this->setProperty("target", $value);
20  }
21 }
setTarget($value="_self")