aboutsummaryrefslogtreecommitdiff
path: root/classes/helpers/CinisisHttpHelper.php
blob: 34ff349a3a71511f741fd2a9a8386dd65f9b08a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
  }
}