original_string: public function get_bulk_operations(course_enrolment_manager $manager) {
          global $CFG;
          require_once($CFG->dirroot.'/enrol/manual/locallib.php');
          $context = $manager->get_context();
          $bulkoperations = array();
          if (has_capability("enrol/manual:manage", $context)) {
              $bulkoperations['editselectedusers'] = new enrol_manual_editselectedusers_operation($manager, $this);
          }
          if (has_capability("enrol/manual:unenrol", $context)) {
              $bulkoperations['deleteselectedusers'] = new enrol_manual_deleteselectedusers_operation($manager, $this);
          }
          return $bulkoperations;
      }
code: public function get_bulk_operations(course_enrolment_manager $manager) {
          global $CFG;
          require_once($CFG->dirroot.'/enrol/manual/locallib.php');
          $context = $manager->get_context();
          $bulkoperations = array();
          if (has_capability("enrol/manual:manage", $context)) {
              $bulkoperations['editselectedusers'] = new enrol_manual_editselectedusers_operation($manager, $this);
          }
          if (has_capability("enrol/manual:unenrol", $context)) {
              $bulkoperations['deleteselectedusers'] = new enrol_manual_deleteselectedusers_operation($manager, $this);
          }
          return $bulkoperations;
      }
code_tokens: public function get_bulk_operations ( course_enrolment_manager $ manager ) { global $ CFG ; require_once ( $ CFG -> dirroot . '/enrol/manual/locallib.php' ) ; $ context = $ manager -> get_context ( ) ; $ bulkoperations = array ( ) ; if ( has_capability ( "enrol/manual:manage" , $ context ) ) { $ bulkoperations [ 'editselectedusers' ] = new enrol_manual_editselectedusers_operation ( $ manager , $ this ) ; } if ( has_capability ( "enrol/manual:unenrol" , $ context ) ) { $ bulkoperations [ 'deleteselectedusers' ] = new enrol_manual_deleteselectedusers_operation ( $ manager , $ this ) ; } return $ bulkoperations ; }
docstring: The manual plugin has several bulk operations that can be performed.
  @param course_enrolment_manager $manager
  @return array
docstring_tokens: The manual plugin has several bulk operations that can be performed .