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
4
6
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
35 $this->_closeTransition=$_closeTransition;
36 return $this;
37 }
38}
JQuery PHP library.
Definition JsUtils.php:23
exec($js, $immediatly=false)
Executes the code $js.