public function get_endorsement() {
        global $DB;
        $endorsement = array();
        $record = $DB->get_record_select('badge_endorsement', 'badgeid = ?', array($this->_data->id));
        return $record;
    }
public function get_endorsement() {
        global $DB;
        $endorsement = array();
        $record = $DB->get_record_select('badge_endorsement', 'badgeid = ?', array($this->_data->id));
        return $record;
    }
public function get_endorsement ( ) { global $ DB ; $ endorsement = array ( ) ; $ record = $ DB -> get_record_select ( 'badge_endorsement' , 'badgeid = ?' , array ( $ this -> _data -> id ) ) ; return $ record ; }
Get endorsement of the badge.

@return false|stdClass Endorsement information.
Get endorsement of the badge .