code/controller/behavior/editable.php
public function getReferrer(ControllerContextModel $context)
    {
        if($context->request->cookies->has($this->_cookie_name))
        {
            $referrer = $context->request->cookies->get($this->_cookie_name, 'url');
            $referrer = $this->getObject('lib:http.url', array('url' => $referrer));
        }
        else $referrer = $this->findReferrer($context);

        return $referrer;
    }
public function getReferrer(ControllerContextModel $context)
    {
        if($context->request->cookies->has($this->_cookie_name))
        {
            $referrer = $context->request->cookies->get($this->_cookie_name, 'url');
            $referrer = $this->getObject('lib:http.url', array('url' => $referrer));
        }
        else $referrer = $this->findReferrer($context);

        return $referrer;
    }
public function getReferrer ( ControllerContextModel $ context ) { if ( $ context -> request -> cookies -> has ( $ this -> _cookie_name ) ) { $ referrer = $ context -> request -> cookies -> get ( $ this -> _cookie_name , 'url' ) ; $ referrer = $ this -> getObject ( 'lib:http.url' , array ( 'url' => $ referrer ) ) ; } else $ referrer = $ this -> findReferrer ( $ context ) ; return $ referrer ; }
Get the referrer

@param   ControllerContextModel $context A controller context object
@return  HttpUrl    A HttpUrl object
Get the referrer