Piwik\Tracker\Request::isAuthenticated PHP Method

isAuthenticated() public method

public isAuthenticated ( ) : boolean
return boolean
    public function isAuthenticated()
    {
        if (is_null($this->isAuthenticated)) {
            $this->authenticateTrackingApi($this->tokenAuth);
        }
        return $this->isAuthenticated;
    }

Usage Example

Example #1
0
 protected function getUrlOverrideValueIfAllowed($urlParamToOverride, Request $request)
 {
     if (!$request->isAuthenticated()) {
         return false;
     }
     $value = Common::getRequestVar($urlParamToOverride, false, 'string', $request->getParams());
     if (!empty($value)) {
         return $value;
     }
     return false;
 }
All Usage Examples Of Piwik\Tracker\Request::isAuthenticated