public function col_category($expiredctx) {
        $context = context_helper::instance_by_id($expiredctx->get('contextid'));
        $category = api::get_effective_context_category($context);

        return s($category->get('name'));
    }
public function col_category($expiredctx) {
        $context = context_helper::instance_by_id($expiredctx->get('contextid'));
        $category = api::get_effective_context_category($context);

        return s($category->get('name'));
    }
public function col_category ( $ expiredctx ) { $ context = context_helper :: instance_by_id ( $ expiredctx -> get ( 'contextid' ) ) ; $ category = api :: get_effective_context_category ( $ context ) ; return s ( $ category -> get ( 'name' ) ) ; }
The category name column.

@param stdClass $expiredctx The row data.
@return mixed
@throws coding_exception
@throws dml_exception
The category name column .