public function initFromGlobals()
    {
        /** @var Sheep_Debug_Helper_Http $helper */
        $helper = Mage::helper('sheep_debug/http');

        $this->httpMethod = $helper->getHttpMethod();
        $this->requestPath = $this->requestOriginalPath = $helper->getRequestPath();
        $this->remoteIp = $helper->getRemoteAddr();

        $this->serverParameters = $helper->getGlobalServer();
        $this->requestHeaders = $helper->getAllHeaders();
        $this->cookies = $helper->getGlobalCookie();
        $this->session = $helper->getGlobalSession();
        $this->getParameters = $helper->getGlobalGet();
        $this->postParameters = $helper->getGlobalPost();
    }
public function initFromGlobals()
    {
        
        $helper = Mage::helper('sheep_debug/http');

        $this->httpMethod = $helper->getHttpMethod();
        $this->requestPath = $this->requestOriginalPath = $helper->getRequestPath();
        $this->remoteIp = $helper->getRemoteAddr();

        $this->serverParameters = $helper->getGlobalServer();
        $this->requestHeaders = $helper->getAllHeaders();
        $this->cookies = $helper->getGlobalCookie();
        $this->session = $helper->getGlobalSession();
        $this->getParameters = $helper->getGlobalGet();
        $this->postParameters = $helper->getGlobalPost();
    }
public function initFromGlobals ( ) { /** @var Sheep_Debug_Helper_Http $helper */ $ helper = Mage :: helper ( 'sheep_debug/http' ) ; $ this -> httpMethod = $ helper -> getHttpMethod ( ) ; $ this -> requestPath = $ this -> requestOriginalPath = $ helper -> getRequestPath ( ) ; $ this -> remoteIp = $ helper -> getRemoteAddr ( ) ; $ this -> serverParameters = $ helper -> getGlobalServer ( ) ; $ this -> requestHeaders = $ helper -> getAllHeaders ( ) ; $ this -> cookies = $ helper -> getGlobalCookie ( ) ; $ this -> session = $ helper -> getGlobalSession ( ) ; $ this -> getParameters = $ helper -> getGlobalGet ( ) ; $ this -> postParameters = $ helper -> getGlobalPost ( ) ; }
Initialize generic request attributes stored in PHP global variables (POST, GET, etc)
Initialize generic request attributes stored in PHP global variables ( POST GET etc )