diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-16 15:37:31 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-16 15:37:31 -0300 |
commit | 2ec3b3c05e535ffacb1e10a64aa62ad057499d47 (patch) | |
tree | db24e16e84c4d8f14d157e632d7d989aa3ba58b3 /classes/helpers/CinisisHttpHelper.php | |
parent | 73731fa698fd658985cabeb202f3e6218931641f (diff) | |
download | cinisis-2ec3b3c05e535ffacb1e10a64aa62ad057499d47.tar.gz cinisis-2ec3b3c05e535ffacb1e10a64aa62ad057499d47.tar.bz2 |
Adding helper classes and repetition finder
Diffstat (limited to 'classes/helpers/CinisisHttpHelper.php')
-rw-r--r-- | classes/helpers/CinisisHttpHelper.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/classes/helpers/CinisisHttpHelper.php b/classes/helpers/CinisisHttpHelper.php new file mode 100644 index 0000000..34ff349 --- /dev/null +++ b/classes/helpers/CinisisHttpHelper.php @@ -0,0 +1,15 @@ +<?php + +class CinisisHttpHelper { + static function get_numeric_arg($name) { + // Get the query parameter. + if (isset($_GET[$name]) && ! empty($_GET[$name])) { + $arg = (int) $_GET[$name]; + } + else { + $arg = 1; + } + + return $arg; + } +} |