phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HasTimeoutTrait.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\base\traits
;
4
5
use
Ajax\JsUtils
;
6
12
class
HasTimeoutTrait
{
13
protected
$_timeout
;
14
protected
$_closeTransition
=
"{animation : 'scale',duration : '2s'}"
;
15
20
public
function
run
(
JsUtils
$js){
21
if
(!isset($this->_bsComponent)){
22
if
(isset($this->_timeout)){
23
$js->
exec
(
"setTimeout(function() { $('#{$this->identifier}').transition({$this->_closeTransition}); }, {$this->_timeout});"
,
true
);
24
}
25
}
26
return
parent::run($js);
27
}
28
29
public
function
setTimeout
(
$_timeout
) {
30
$this->_timeout=
$_timeout
;
31
return
$this;
32
}
33
34
public
function
setCloseTransition
(
$_closeTransition
) {
35
$this->_closeTransition=
$_closeTransition
;
36
return
$this;
37
}
38
}
Ajax\JsUtils
JQuery PHP library.
Definition
JsUtils.php:23
Ajax\common\traits\JsUtilsActionsTrait\exec
exec($js, $immediatly=false)
Executes the code $js.
Definition
JsUtilsActionsTrait.php:593
Ajax\semantic\html\base\traits\HasTimeoutTrait
Definition
HasTimeoutTrait.php:12
Ajax\semantic\html\base\traits\HasTimeoutTrait\setTimeout
setTimeout($_timeout)
Definition
HasTimeoutTrait.php:29
Ajax\semantic\html\base\traits\HasTimeoutTrait\run
run(JsUtils $js)
Definition
HasTimeoutTrait.php:20
Ajax\semantic\html\base\traits\HasTimeoutTrait\setCloseTransition
setCloseTransition($_closeTransition)
Definition
HasTimeoutTrait.php:34
Ajax\semantic\html\base\traits\HasTimeoutTrait\$_closeTransition
$_closeTransition
Definition
HasTimeoutTrait.php:14
Ajax\semantic\html\base\traits\HasTimeoutTrait\$_timeout
$_timeout
Definition
HasTimeoutTrait.php:13
Ajax\semantic\html\base\traits
Definition
AttachedTrait.php:3
Ajax
semantic
html
base
traits
HasTimeoutTrait.php
Generated on Sun Dec 10 2023 16:16:04 for
phpMv-UI
by
doxygen
1.9.8