Habari\Comment::list_comment_statuses PHP Метод

list_comment_statuses() публичный статический Метод

Obtain an associative array of comment statuses
public static list_comment_statuses ( boolean $refresh = false ) : array
$refresh boolean Whether to force a refresh of the cached values
Результат array An array mapping comment statuses names to interger values
    public static function list_comment_statuses($refresh = false)
    {
        if ($refresh || empty(self::$comment_status_list)) {
            self::$comment_status_list = DB::get_keyvalue('SELECT id, name FROM {commentstatus};');
        }
        self::$comment_status_list = Plugins::filter('list_comment_statuses', self::$comment_status_list);
        return self::$comment_status_list;
    }