src/Http/Models/En_HttpRequest.php
private function init($config){
        //Configuro valores basicos-genericos
        $this->getParams= filter_input_array(INPUT_GET);
        $this->postParams= filter_input_array(INPUT_POST);
        $this->attributes= array();
        $this->session= new Session($config['SESSION_AUTOSTART']);
        $this->requestMethod= filter_input(INPUT_SERVER, 'REQUEST_METHOD');
        $this->queryString= filter_input(INPUT_SERVER, 'QUERY_STRING');
        $this->requestUri= filter_input(INPUT_SERVER, 'REQUEST_URI');
        $this->httpHost= filter_input(INPUT_SERVER, 'HTTP_HOST');        
        $this->httpAccept= filter_input(INPUT_SERVER, 'HTTP_ACCEPT');
        $this->httpAcceptLanguage= filter_input(INPUT_SERVER, 'HTTP_ACCEPT_LANGUAGE');
        $this->httpUserAgent= filter_input(INPUT_SERVER, 'HTTP_USER_AGENT');
        $this->clientIp= filter_input(INPUT_SERVER, 'REMOTE_ADDR');
        //Configuro la URIAPP y defino varios valores propios de la Aplicación        
        $this->realBaseUrl= $config['REAL_BASE_URL'];
        $this->baseUrlLocale= $config['BASEURL_LOCALE'];
        $this->uriApp= $config['URIAPP'];
        $this->uriAppLocale= $config['URIAPP_LOCALE'];
        $this->localeUri= $config['LOCALE_URI'];
        $this->locale= $config['LOCALE'];
    }
private function init($config){
        //Configuro valores basicos-genericos
        $this->getParams= filter_input_array(INPUT_GET);
        $this->postParams= filter_input_array(INPUT_POST);
        $this->attributes= array();
        $this->session= new Session($config['SESSION_AUTOSTART']);
        $this->requestMethod= filter_input(INPUT_SERVER, 'REQUEST_METHOD');
        $this->queryString= filter_input(INPUT_SERVER, 'QUERY_STRING');
        $this->requestUri= filter_input(INPUT_SERVER, 'REQUEST_URI');
        $this->httpHost= filter_input(INPUT_SERVER, 'HTTP_HOST');        
        $this->httpAccept= filter_input(INPUT_SERVER, 'HTTP_ACCEPT');
        $this->httpAcceptLanguage= filter_input(INPUT_SERVER, 'HTTP_ACCEPT_LANGUAGE');
        $this->httpUserAgent= filter_input(INPUT_SERVER, 'HTTP_USER_AGENT');
        $this->clientIp= filter_input(INPUT_SERVER, 'REMOTE_ADDR');
        //Configuro la URIAPP y defino varios valores propios de la Aplicación        
        $this->realBaseUrl= $config['REAL_BASE_URL'];
        $this->baseUrlLocale= $config['BASEURL_LOCALE'];
        $this->uriApp= $config['URIAPP'];
        $this->uriAppLocale= $config['URIAPP_LOCALE'];
        $this->localeUri= $config['LOCALE_URI'];
        $this->locale= $config['LOCALE'];
    }
private function init ( $ config ) { //Configuro valores basicos-genericos $ this -> getParams = filter_input_array ( INPUT_GET ) ; $ this -> postParams = filter_input_array ( INPUT_POST ) ; $ this -> attributes = array ( ) ; $ this -> session = new Session ( $ config [ 'SESSION_AUTOSTART' ] ) ; $ this -> requestMethod = filter_input ( INPUT_SERVER , 'REQUEST_METHOD' ) ; $ this -> queryString = filter_input ( INPUT_SERVER , 'QUERY_STRING' ) ; $ this -> requestUri = filter_input ( INPUT_SERVER , 'REQUEST_URI' ) ; $ this -> httpHost = filter_input ( INPUT_SERVER , 'HTTP_HOST' ) ; $ this -> httpAccept = filter_input ( INPUT_SERVER , 'HTTP_ACCEPT' ) ; $ this -> httpAcceptLanguage = filter_input ( INPUT_SERVER , 'HTTP_ACCEPT_LANGUAGE' ) ; $ this -> httpUserAgent = filter_input ( INPUT_SERVER , 'HTTP_USER_AGENT' ) ; $ this -> clientIp = filter_input ( INPUT_SERVER , 'REMOTE_ADDR' ) ; //Configuro la URIAPP y defino varios valores propios de la Aplicación         $ this -> realBaseUrl = $ config [ 'REAL_BASE_URL' ] ; $ this -> baseUrlLocale = $ config [ 'BASEURL_LOCALE' ] ; $ this -> uriApp = $ config [ 'URIAPP' ] ; $ this -> uriAppLocale = $ config [ 'URIAPP_LOCALE' ] ; $ this -> localeUri = $ config [ 'LOCALE_URI' ] ; $ this -> locale = $ config [ 'LOCALE' ] ; }
Setea todas las propiedades de la instancia
GET - POST - SERVER y FRAMEWORK
@param array $config
Setea todas las propiedades de la instancia GET - POST - SERVER y FRAMEWORK