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
2
namespace
Ajax\semantic\html\modules
;
3
4
use
Ajax\semantic\html\base\HtmlSemDoubleElement
;
5
use
Ajax\JsUtils
;
6
use
Ajax\service\JArray
;
7
16
class
HtmlToast
extends
HtmlSemDoubleElement
{
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);
52
return
$this->_bsComponent
;
53
}
54
}
55
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\JsUtils\semantic
semantic(Semantic $semantic=NULL)
getter or setter of the Semantic-UI variable
Definition
JsUtils.php:158
Ajax\common\html\BaseHtml\$_bsComponent
$_bsComponent
Definition
BaseHtml.php:27
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlDoubleElement\$content
$content
Definition
HtmlDoubleElement.php:14
Ajax\common\html\traits\BaseHtmlEventsTrait\addEventsOnRun
addEventsOnRun(JsUtils $js=NULL)
Definition
BaseHtmlEventsTrait.php:91
Ajax\semantic\html\base\HtmlSemDoubleElement
Base class for Semantic double elements.
Definition
HtmlSemDoubleElement.php:23
Ajax\semantic\html\modules\HtmlToast
Ajax\semantic\html\modules$HtmlToast This class is part of phpMv-ui.
Definition
HtmlToast.php:16
Ajax\semantic\html\modules\HtmlToast\run
run(JsUtils $js)
{{SimpleExtComponent\Ajax\common\html\BaseHtmlrun()\Ajax\common\html\BaseHtmlrun()}HtmlDoubleElement:...
Definition
HtmlToast.php:47
Ajax\semantic\html\modules\HtmlToast\__construct
__construct($identifier, $content='')
Definition
HtmlToast.php:20
Ajax\semantic\html\modules\HtmlToast\compile
compile(JsUtils $js=NULL, &$view=NULL)
{}BaseHtml::compile()
Definition
HtmlToast.php:38
Ajax\semantic\html\modules\HtmlToast\$_paramParts
$_paramParts
Definition
HtmlToast.php:18
Ajax\semantic\html\modules\HtmlToast\setContent
setContent($value)
Definition
HtmlToast.php:27
Ajax\service\JArray
Definition
JArray.php:4
Ajax\semantic\html\modules
Ajax
semantic
html
modules
HtmlToast.php
Generated on Sun Dec 10 2023 16:16:09 for
phpMv-UI
by
doxygen
1.9.8