Ajax/common/traits/JsUtilsActionsTrait.php
private function _validate_speed($speed) {
		if (in_array($speed, array (
				'slow','normal','fast'
		))) {
			$speed='"'.$speed.'"';
		} elseif (preg_match("/[^0-9]/", $speed)) {
			$speed='';
		}

		return $speed;
	}
private function _validate_speed($speed) {
		if (in_array($speed, array (
				'slow','normal','fast'
		))) {
			$speed='"'.$speed.'"';
		} elseif (preg_match("/[^0-9]/", $speed)) {
			$speed='';
		}

		return $speed;
	}
private function _validate_speed ( $ speed ) { if ( in_array ( $ speed , array ( 'slow' , 'normal' , 'fast' ) ) ) { $ speed = '"' . $ speed . '"' ; } elseif ( preg_match ( "/[^0-9]/" , $ speed ) ) { $ speed = '' ; } return $ speed ; }
Ensures the speed parameter is valid for jQuery
@param string|int $speed
@return string
Ensures the speed parameter is valid for jQuery