src/Core.php
/**
     * Fetches the specified list of arguments from $_REQUEST. This will return 
     * false if any parameters could not be found.
     * 
     * @param array $args - array of all the argument names.
     * @param array $input_array - array from which we are pulling the required 
     *                             args.
     * 
     * @return result - false if any parameters could not be found.
     */
Fetches the specified list of arguments from $_REQUEST. This will return
false if any parameters could not be found.

@param array $args - array of all the argument names.
@param array $input_array - array from which we are pulling the required
args.

@return result - false if any parameters could not be found.
Fetches the specified list of arguments from $_REQUEST . This will return false if any parameters could not be found . @param array $args - array of all the argument names . @param array $input_array - array from which we are pulling the required args . @return result - false if any parameters could not be found .
public static function fetchReqArgsFromArray($args, $input_array)
    {
        $values = array();
        foreach ($args as $arg)
        {
            if (isset($input_array[$arg]))
            {
                $values[$arg] = $input_array[$arg];
            }
            else
            {
                $errMsg = "Required parameter: " . $arg . " not specified";
                throw new \Exception($errMsg);
                break;
            }
        }
        return $values;
    }
public static function fetchReqArgsFromArray ( $ args , $ input_array ) { $ values = array ( ) ; foreach ( $ args as $ arg ) { if ( isset ( $ input_array [ $ arg ] ) ) { $ values [ $ arg ] = $ input_array [ $ arg ] ; } else { $ errMsg = " Required parameter:  " . $ arg . "  not specified " ; throw new \ Exception ( $ errMsg ) ; break ; } } return $ values ; }
Fetches the specified list of arguments from $_REQUEST.
Fetches the specified list of arguments from $_REQUEST .