roundcubemail/program/lib/Roundcube/rcube_user.php
function get_identity($id = null)
    {
        $id = (int)$id;
        // cache identities for better performance
        if (!array_key_exists($id, $this->identities)) {
            $result = $this->list_identities($id ? "AND `identity_id` = $id" : '');
            $this->identities[$id] = $result[0];
        }

        return $this->identities[$id];
    }
function get_identity($id = null)
    {
        $id = (int)$id;
        // cache identities for better performance
        if (!array_key_exists($id, $this->identities)) {
            $result = $this->list_identities($id ? "AND `identity_id` = $id" : '');
            $this->identities[$id] = $result[0];
        }

        return $this->identities[$id];
    }
function get_identity ( $ id = null ) { $ id = ( int ) $ id ; // cache identities for better performance if ( ! array_key_exists ( $ id , $ this -> identities ) ) { $ result = $ this -> list_identities ( $ id ? "AND `identity_id` = $id" : '' ) ; $ this -> identities [ $ id ] = $ result [ 0 ] ; } return $ this -> identities [ $ id ] ; }
Get default identity of this user

@param  int   $id Identity ID. If empty, the default identity is returned
@return array Hash array with all cols of the identity record
Get default identity of this user