public static function record_from_handler($handler) {
        $record = new \stdClass();
        $record->id = $handler->id;
        $record->component = $handler->component;
        $record->classname = get_class($handler);
        if (strpos($record->classname, '\\') !== 0) {
            $record->classname = '\\' . $record->classname;
        }
        $record->defaultexpiration = $handler->defaultexpiration;
        $record->validateaddress = $handler->validateaddress;
        $record->enabled = $handler->enabled;

        return $record;
    }
public static function record_from_handler($handler) {
        $record = new \stdClass();
        $record->id = $handler->id;
        $record->component = $handler->component;
        $record->classname = get_class($handler);
        if (strpos($record->classname, '\\') !== 0) {
            $record->classname = '\\' . $record->classname;
        }
        $record->defaultexpiration = $handler->defaultexpiration;
        $record->validateaddress = $handler->validateaddress;
        $record->enabled = $handler->enabled;

        return $record;
    }
public static function record_from_handler ( $ handler ) { $ record = new \ stdClass ( ) ; $ record -> id = $ handler -> id ; $ record -> component = $ handler -> component ; $ record -> classname = get_class ( $ handler ) ; if ( strpos ( $ record -> classname , '\\' ) !== 0 ) { $ record -> classname = '\\' . $ record -> classname ; } $ record -> defaultexpiration = $ handler -> defaultexpiration ; $ record -> validateaddress = $ handler -> validateaddress ; $ record -> enabled = $ handler -> enabled ; return $ record ; }
Create a flat stdClass for the handler, appropriate for inserting
into the database.

@param \core\message\inbound\handler $handler The handler to retrieve the record for.
@return \stdClass
Create a flat stdClass for the handler appropriate for inserting into the database .