protected function checkRequest($name, $default = 0)
    {
        if ($name == 'name') {
            return (isset($_REQUEST[$name]) ? ($_REQUEST[$name]) : $default);
        } else {
            return (isset($_REQUEST[$name]) ? intval($_REQUEST[$name]) : $default);
        }
    }
protected function checkRequest($name, $default = 0)
    {
        if ($name == 'name') {
            return (isset($_REQUEST[$name]) ? ($_REQUEST[$name]) : $default);
        } else {
            return (isset($_REQUEST[$name]) ? intval($_REQUEST[$name]) : $default);
        }
    }
protected function checkRequest ( $ name , $ default = 0 ) { if ( $ name == 'name' ) { return ( isset ( $ _REQUEST [ $ name ] ) ? ( $ _REQUEST [ $ name ] ) : $ default ) ; } else { return ( isset ( $ _REQUEST [ $ name ] ) ? intval ( $ _REQUEST [ $ name ] ) : $ default ) ; } }
Get value by request name or return default

@param string Request Name
@param string Default value (optional)

@return Request|default
Get value by request name or return default