public function is_related($query) {
        if (parent::is_related($query)) {
            return true;
        }

        $authsavailable = core_component::get_plugin_list('auth');
        foreach ($authsavailable as $auth => $dir) {
            if (strpos($auth, $query) !== false) {
                return true;
            }
            $authplugin = get_auth_plugin($auth);
            $authtitle = $authplugin->get_title();
            if (strpos(core_text::strtolower($authtitle), $query) !== false) {
                return true;
            }
        }
        return false;
    }
public function is_related($query) {
        if (parent::is_related($query)) {
            return true;
        }

        $authsavailable = core_component::get_plugin_list('auth');
        foreach ($authsavailable as $auth => $dir) {
            if (strpos($auth, $query) !== false) {
                return true;
            }
            $authplugin = get_auth_plugin($auth);
            $authtitle = $authplugin->get_title();
            if (strpos(core_text::strtolower($authtitle), $query) !== false) {
                return true;
            }
        }
        return false;
    }
public function is_related ( $ query ) { if ( parent :: is_related ( $ query ) ) { return true ; } $ authsavailable = core_component :: get_plugin_list ( 'auth' ) ; foreach ( $ authsavailable as $ auth => $ dir ) { if ( strpos ( $ auth , $ query ) !== false ) { return true ; } $ authplugin = get_auth_plugin ( $ auth ) ; $ authtitle = $ authplugin -> get_title ( ) ; if ( strpos ( core_text :: strtolower ( $ authtitle ) , $ query ) !== false ) { return true ; } } return false ; }
Search to find if Query is related to auth plugin

@param string $query The string to search for
@return bool true for related false for not
Search to find if Query is related to auth plugin