phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlToast.php
Go to the documentation of this file.
1<?php
3
7
17
18 protected $_paramParts=array();
19
20 public function __construct($identifier, $content='') {
21 parent::__construct($identifier, 'div','ui toast');
22 if(isset($content)){
23 $this->setContent($content);
24 }
25 }
26
27 public function setContent($value) {
28 $this->content['content']=new HtmlSemDoubleElement('content-' . $this->identifier, 'div', 'content', $value);
29 return $this;
30 }
31
38 public function compile(JsUtils $js=NULL, &$view=NULL) {
39 $this->content=JArray::sortAssociative($this->content, ['content','actions' ]);
40 return parent::compile($js, $view);
41 }
42
43 /*
44 * (non-PHPdoc)
45 * @see BaseHtml::run()
46 */
47 public function run(JsUtils $js) {
48 if(isset($this->_bsComponent)===false){
49 $this->_bsComponent=$js->semantic()->toast('#'.$this->identifier,$this->_params,$this->_paramParts);
50 }
51 $this->addEventsOnRun($js);
53 }
54}
55
JQuery PHP library.
Definition JsUtils.php:23
semantic(Semantic $semantic=NULL)
getter or setter of the Semantic-UI variable
Definition JsUtils.php:158
Base class for Semantic double elements.
Ajax\semantic\html\modules$HtmlToast This class is part of phpMv-ui.
Definition HtmlToast.php:16
run(JsUtils $js)
{{SimpleExtComponent\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\BaseHtmlrun()}HtmlDoubleElement:...
Definition HtmlToast.php:47
__construct($identifier, $content='')
Definition HtmlToast.php:20
compile(JsUtils $js=NULL, &$view=NULL)
{}BaseHtml::compile()
Definition HtmlToast.php:38