public function mapParams(array $map, $params = null)
    {
        if (!isset($params)) {
            $params = $this->params;
        }

        $mapped = array();

        foreach ($params as $key => $value) {
            if (isset($map[$key]) && is_string($map[$key])) {
                gplcart_array_set($mapped, $map[$key], $value);
            }
        }

        return $mapped;
    }
public function mapParams(array $map, $params = null)
    {
        if (!isset($params)) {
            $params = $this->params;
        }

        $mapped = array();

        foreach ($params as $key => $value) {
            if (isset($map[$key]) && is_string($map[$key])) {
                gplcart_array_set($mapped, $map[$key], $value);
            }
        }

        return $mapped;
    }
public function mapParams ( array $ map , $ params = null ) { if ( ! isset ( $ params ) ) { $ params = $ this -> params ; } $ mapped = array ( ) ; foreach ( $ params as $ key => $ value ) { if ( isset ( $ map [ $ key ] ) && is_string ( $ map [ $ key ] ) ) { gplcart_array_set ( $ mapped , $ map [ $ key ] , $ value ) ; } } return $ mapped ; }
Map the command line parameters to an array of submitted data to be passed to validators
@param array $map
@param null|array $params
@return array
Map the command line parameters to an array of submitted data to be passed to validators