aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-20 15:46:01 -0300
committerSilvio <silvio@devlet.com.br>2010-08-20 15:46:01 -0300
commit3ee2c153df3633c707da10a159c6104bfbe1c6d6 (patch)
tree30b40acb022e69e3b5cfe6bf214a019f274b04df /classes/helpers
parentb879f0fcc8651b49ae46a6db64d7eb1a27c7af1a (diff)
downloadcinisis-3ee2c153df3633c707da10a159c6104bfbe1c6d6.tar.gz
cinisis-3ee2c153df3633c707da10a159c6104bfbe1c6d6.tar.bz2
Minor changes
Diffstat (limited to 'classes/helpers')
-rw-r--r--classes/helpers/CinisisHttpHelper.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/helpers/CinisisHttpHelper.php b/classes/helpers/CinisisHttpHelper.php
index e262b3a..1bc540a 100644
--- a/classes/helpers/CinisisHttpHelper.php
+++ b/classes/helpers/CinisisHttpHelper.php
@@ -16,7 +16,7 @@ class CinisisHttpHelper {
* @return
* Argument value.
*/
- static function get_arg($name, $default = 1) {
+ static function getArg($name, $default = 1) {
// Get the query parameter.
if (isset($_GET[$name]) && ! empty($_GET[$name])) {
$arg = $_GET[$name];
@@ -37,8 +37,8 @@ class CinisisHttpHelper {
* @return
* Argument value.
*/
- static function get_numeric_arg($name) {
- return (int) self::get_arg($name, 1);
+ static function getNumericArg($name) {
+ return (int) self::getArg($name, 1);
}
/**
@@ -50,7 +50,7 @@ class CinisisHttpHelper {
* @return
* Argument value.
*/
- static function get_textual_arg($name) {
- return (string) self::get_arg($name, 'a');
+ static function getTextualArg($name) {
+ return htmlspecialchars((string) self::getArg($name, 'a'));
}
}