original_string: public function get_action_icons(stdClass $instance) {
          global $OUTPUT;
  
          $context = context_course::instance($instance->courseid);
  
          $icons = array();
          if (has_capability('enrol/manual:enrol', $context) or has_capability('enrol/manual:unenrol', $context)) {
              $managelink = new moodle_url("/enrol/manual/manage.php", array('enrolid'=>$instance->id));
              $icons[] = $OUTPUT->action_icon($managelink, new pix_icon('t/enrolusers', get_string('enrolusers', 'enrol_manual'), 'core', array('class'=>'iconsmall')));
          }
          $parenticons = parent::get_action_icons($instance);
          $icons = array_merge($icons, $parenticons);
  
          return $icons;
      }
code: public function get_action_icons(stdClass $instance) {
          global $OUTPUT;
  
          $context = context_course::instance($instance->courseid);
  
          $icons = array();
          if (has_capability('enrol/manual:enrol', $context) or has_capability('enrol/manual:unenrol', $context)) {
              $managelink = new moodle_url("/enrol/manual/manage.php", array('enrolid'=>$instance->id));
              $icons[] = $OUTPUT->action_icon($managelink, new pix_icon('t/enrolusers', get_string('enrolusers', 'enrol_manual'), 'core', array('class'=>'iconsmall')));
          }
          $parenticons = parent::get_action_icons($instance);
          $icons = array_merge($icons, $parenticons);
  
          return $icons;
      }
code_tokens: public function get_action_icons ( stdClass $ instance ) { global $ OUTPUT ; $ context = context_course :: instance ( $ instance -> courseid ) ; $ icons = array ( ) ; if ( has_capability ( 'enrol/manual:enrol' , $ context ) or has_capability ( 'enrol/manual:unenrol' , $ context ) ) { $ managelink = new moodle_url ( "/enrol/manual/manage.php" , array ( 'enrolid' => $ instance -> id ) ) ; $ icons [ ] = $ OUTPUT -> action_icon ( $ managelink , new pix_icon ( 't/enrolusers' , get_string ( 'enrolusers' , 'enrol_manual' ) , 'core' , array ( 'class' => 'iconsmall' ) ) ) ; } $ parenticons = parent :: get_action_icons ( $ instance ) ; $ icons = array_merge ( $ icons , $ parenticons ) ; return $ icons ; }
docstring: Returns edit icons for the page with list of instances.
  @param stdClass $instance
  @return array
docstring_tokens: Returns edit icons for the page with list of instances .