public static function get_fullname_field($firstnamefirst = false) {
        global $DB;
        if ($firstnamefirst) {
            return $DB->sql_fullname(self::resolve_field('firstname', 'user'), self::resolve_field('lastname', 'user'));
        }
        return $DB->sql_fullname(self::resolve_field('lastname', 'user'), self::resolve_field('firstname', 'user'));
    }
public static function get_fullname_field($firstnamefirst = false) {
        global $DB;
        if ($firstnamefirst) {
            return $DB->sql_fullname(self::resolve_field('firstname', 'user'), self::resolve_field('lastname', 'user'));
        }
        return $DB->sql_fullname(self::resolve_field('lastname', 'user'), self::resolve_field('firstname', 'user'));
    }
public static function get_fullname_field ( $ firstnamefirst = false ) { global $ DB ; if ( $ firstnamefirst ) { return $ DB -> sql_fullname ( self :: resolve_field ( 'firstname' , 'user' ) , self :: resolve_field ( 'lastname' , 'user' ) ) ; } return $ DB -> sql_fullname ( self :: resolve_field ( 'lastname' , 'user' ) , self :: resolve_field ( 'firstname' , 'user' ) ) ; }
Convenience method to get get the SQL statement for the full name.

@param bool $firstnamefirst Whether or not the firstname is first in the author's name.
@return string The SQL statement.
Convenience method to get get the SQL statement for the full name .