phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlImg.php
Go to the documentation of this file.
1 <?php
2 
4 
5 
7 
8 class HtmlImg extends HtmlSingleElement {
9 
10  public function __construct($identifier,$src="",$alt="") {
11  parent::__construct($identifier, "img");
12  $this->setSrc($src);
13  $this->setAlt($alt);
14  }
15 
16  public function getSrc() {
17  return $this->getProperty("src");
18  }
19 
20  public function setSrc($src) {
21  $this->setProperty("src", $src);
22  return $this;
23  }
24 
25  public function getAlt() {
26  return $this->getProperty("alt");
27  }
28 
29  public function setAlt($alt) {
30  $this->setProperty("alt", $alt);
31  return $this;
32  }
33 
34  public function getTitle() {
35  return $this->getProperty("title");
36  }
37 
38  public function setTitle($title) {
39  $this->setProperty("title", $title);
40  return $this;
41  }
42 }
__construct($identifier, $src="", $alt="")
Definition: HtmlImg.php:10