kernel/classes/datatypes/ezuser/ezuser.php
public static function anonymousId()
    {
        if ( self::$anonymousId === null )
        {
            $ini = eZINI::instance();
            self::$anonymousId = (int)$ini->variable( 'UserSettings', 'AnonymousUserID' );
            $GLOBALS['eZUserBuiltins'] = array( self::$anonymousId );
        }
        return self::$anonymousId;
    }
public static function anonymousId()
    {
        if ( self::$anonymousId === null )
        {
            $ini = eZINI::instance();
            self::$anonymousId = (int)$ini->variable( 'UserSettings', 'AnonymousUserID' );
            $GLOBALS['eZUserBuiltins'] = array( self::$anonymousId );
        }
        return self::$anonymousId;
    }
public static function anonymousId ( ) { if ( self :: $ anonymousId === null ) { $ ini = eZINI :: instance ( ) ; self :: $ anonymousId = ( int ) $ ini -> variable ( 'UserSettings' , 'AnonymousUserID' ) ; $ GLOBALS [ 'eZUserBuiltins' ] = array ( self :: $ anonymousId ) ; } return self :: $ anonymousId ; }
Gets the id of the anonymous user.

@static
@return int User id of anonymous user.
Gets the id of the anonymous user .