public function has_type_handler($module, $type) {
        if (!$this->is_known_type($type)) {
            throw new coding_exception("Checking for handler for unknown type $type");
        }
        foreach ($this->types[$type]->handlers as $handler) {
            if ($handler->module == $module) {
                return true;
            }
        }
        return false;
    }
public function has_type_handler($module, $type) {
        if (!$this->is_known_type($type)) {
            throw new coding_exception("Checking for handler for unknown type $type");
        }
        foreach ($this->types[$type]->handlers as $handler) {
            if ($handler->module == $module) {
                return true;
            }
        }
        return false;
    }
public function has_type_handler ( $ module , $ type ) { if ( ! $ this -> is_known_type ( $ type ) ) { throw new coding_exception ( "Checking for handler for unknown type $type" ) ; } foreach ( $ this -> types [ $ type ] -> handlers as $ handler ) { if ( $ handler -> module == $ module ) { return true ; } } return false ; }
Check to see if the module in question has registered to handle the
type given

@param string $module The name of the module
@param string $type The identifier of the type
@return bool True if the module has registered to handle that type
Check to see if the module in question has registered to handle the type given