kernel/classes/datatypes/ezuser/ezuser.php
function loginCount()
    {
        $db = eZDB::instance();
        $userVisitArray = $db->arrayQuery( "SELECT login_count FROM ezuservisit WHERE user_id=$this->ContentObjectID" );
        if ( isset( $userVisitArray[0] ) )
        {
            return $userVisitArray[0]['login_count'];
        }
        else
        {
            return 0;
        }
    }
function loginCount()
    {
        $db = eZDB::instance();
        $userVisitArray = $db->arrayQuery( "SELECT login_count FROM ezuservisit WHERE user_id=$this->ContentObjectID" );
        if ( isset( $userVisitArray[0] ) )
        {
            return $userVisitArray[0]['login_count'];
        }
        else
        {
            return 0;
        }
    }
function loginCount ( ) { $ db = eZDB :: instance ( ) ; $ userVisitArray = $ db -> arrayQuery ( "SELECT login_count FROM ezuservisit WHERE user_id=$this->ContentObjectID" ) ; if ( isset ( $ userVisitArray [ 0 ] ) ) { return $ userVisitArray [ 0 ] [ 'login_count' ] ; } else { return 0 ; } }
Returns the login count for the current user.

@since Version 4.1
@return int Login count for current user.
Returns the login count for the current user .