public static function fetch_discussion_subscription($forumid, $userid = null) {
        self::fill_discussion_subscription_cache($forumid, $userid);

        if (!isset(self::$forumdiscussioncache[$userid]) || !isset(self::$forumdiscussioncache[$userid][$forumid])) {
            return array();
        }

        return self::$forumdiscussioncache[$userid][$forumid];
    }
public static function fetch_discussion_subscription($forumid, $userid = null) {
        self::fill_discussion_subscription_cache($forumid, $userid);

        if (!isset(self::$forumdiscussioncache[$userid]) || !isset(self::$forumdiscussioncache[$userid][$forumid])) {
            return array();
        }

        return self::$forumdiscussioncache[$userid][$forumid];
    }
public static function fetch_discussion_subscription ( $ forumid , $ userid = null ) { self :: fill_discussion_subscription_cache ( $ forumid , $ userid ) ; if ( ! isset ( self :: $ forumdiscussioncache [ $ userid ] ) || ! isset ( self :: $ forumdiscussioncache [ $ userid ] [ $ forumid ] ) ) { return array ( ) ; } return self :: $ forumdiscussioncache [ $ userid ] [ $ forumid ] ; }
Retrieve the discussion subscription data for the specified userid and forum.

This is returned as an array of discussions for that forum which contain the preference in a stdClass.

@param int $forumid The forum to retrieve a cache for
@param int $userid The user ID
@return array of stdClass objects with one per discussion in the forum.
Retrieve the discussion subscription data for the specified userid and forum .