phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlCarouselItem.php
Go to the documentation of this file.
1 <?php
2 
4 
6 use Ajax\JsUtils;
7 
8 class HtmlCarouselItem extends BaseHtml {
9  protected $imageSrc;
10  protected $imageAlt;
11  protected $caption;
12 
13  public function __construct($identifier) {
14  parent::__construct($identifier);
15  $this->_template=include __DIR__.'/../templates/tplCarouselItem.php';
16  }
17 
18  public function getImageSrc() {
19  return $this->imageSrc;
20  }
21 
22  public function setImageSrc($imageSrc) {
23  $this->imageSrc=$imageSrc;
24  return $this;
25  }
26 
27  public function getImageAlt() {
28  return $this->imageAlt;
29  }
30 
31  public function setImageAlt($imageAlt) {
32  $this->imageAlt=$imageAlt;
33  return $this;
34  }
35 
36  public function getCaption() {
37  return $this->caption;
38  }
39 
40  public function setCaption($caption) {
41  $this->caption=$caption;
42  return $this;
43  }
44 
45  /*
46  * (non-PHPdoc)
47  * @see \Ajax\bootstrap\html\base\BaseHtml::run()
48  */
49  public function run(JsUtils $js) {
50 
51  }
52 
53  public function __toString() {
54  return $this->compile();
55  }
56 
57  public function setClass($value) {
58  $this->setProperty("class", $value);
59  }
60 }
BaseHtml for HTML components.
Definition: BaseHtml.php:17
compile(JsUtils $js=NULL, &$view=NULL)
Definition: BaseHtml.php:208
JQuery PHP library.
Definition: JsUtils.php:23