public static function get_handler($classname) {
        global $DB;

        if (strpos($classname, '\\') !== 0) {
            $classname = '\\' . $classname;
        }

        $record = $DB->get_record('messageinbound_handlers', array('classname' => $classname), '*', IGNORE_MISSING);
        if (!$record) {
            return false;
        }
        return self::handler_from_record($record);
    }
public static function get_handler($classname) {
        global $DB;

        if (strpos($classname, '\\') !== 0) {
            $classname = '\\' . $classname;
        }

        $record = $DB->get_record('messageinbound_handlers', array('classname' => $classname), '*', IGNORE_MISSING);
        if (!$record) {
            return false;
        }
        return self::handler_from_record($record);
    }
public static function get_handler ( $ classname ) { global $ DB ; if ( strpos ( $ classname , '\\' ) !== 0 ) { $ classname = '\\' . $ classname ; } $ record = $ DB -> get_record ( 'messageinbound_handlers' , array ( 'classname' => $ classname ) , '*' , IGNORE_MISSING ) ; if ( ! $ record ) { return false ; } return self :: handler_from_record ( $ record ) ; }
Load the Inbound Message handler details for a given classname.

@param string $classname The name of the class for the handler.
@return \core\message\inbound\handler or false
Load the Inbound Message handler details for a given classname .