phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
AjaxTransition.php
Go to the documentation of this file.
1<?php
2namespace Ajax\service;
4
6 public static function none($responseElement,$jqueryDone="html"){
7 return $responseElement.".".$jqueryDone."( data )";
8 }
9
10 public static function jqFade($responseElement,$jqueryDone="html"){
11 return $responseElement.".hide().{$jqueryDone}( data ).fadeIn()";
12 }
13
14 public static function jqSlide($responseElement,$jqueryDone="html"){
15 return $responseElement.".hide().{$jqueryDone}( data ).slideDown()";
16 }
17
18 public static function random($responseElement,$jqueryDone="html"){
19 $transitions=Transition::getConstantValues();
20 $transition=$transitions[\rand(0,\sizeof($transitions)-1)];
21 return self::__callStatic($transition, [$responseElement,$jqueryDone]);
22 }
23
24 public static function __callStatic($name, $arguments){
25 if(\sizeof($arguments)==2){
26 $responseElement=$arguments[0];
27 $jqueryDone=$arguments[1];
29 return $responseElement.".".$jqueryDone."( data ).transition('{$name} in')";
30 }
31 }
32}
static getConstantValues($postFix="", $prefixBefore=false)
Definition BaseEnum.php:29
static jqSlide($responseElement, $jqueryDone="html")
static jqFade($responseElement, $jqueryDone="html")
static __callStatic($name, $arguments)
static random($responseElement, $jqueryDone="html")
static none($responseElement, $jqueryDone="html")
static camelCaseToSeparated($input, $separator=" ")
Definition JString.php:38