original_string: public function get_marking_workflow_filters($export = false) {
          $markingworkflow = $this->get_instance()->markingworkflow;
          // Get marking states to show in form.
          $markingworkflowoptions = array();
          if ($markingworkflow) {
              $notmarked = get_string('markingworkflowstatenotmarked', 'assign');
              $markingworkflowoptions[''] = get_string('filternone', 'assign');
              $markingworkflowoptions[ASSIGN_MARKING_WORKFLOW_STATE_NOTMARKED] = $notmarked;
              $markingworkflowoptions = array_merge($markingworkflowoptions, $this->get_marking_workflow_states_for_current_user());
          }
          if ($export) {
              $workflowfilter = get_user_preferences('assign_workflowfilter', '');
              $result = [];
              foreach ($markingworkflowoptions as $option => $label) {
                  array_push($result, [
                      'key' => $option,
                      'name' => $label,
                      'active' => ($workflowfilter == $option),
                  ]);
              }
              return $result;
          }
          return $markingworkflowoptions;
      }
code: public function get_marking_workflow_filters($export = false) {
          $markingworkflow = $this->get_instance()->markingworkflow;
          // Get marking states to show in form.
          $markingworkflowoptions = array();
          if ($markingworkflow) {
              $notmarked = get_string('markingworkflowstatenotmarked', 'assign');
              $markingworkflowoptions[''] = get_string('filternone', 'assign');
              $markingworkflowoptions[ASSIGN_MARKING_WORKFLOW_STATE_NOTMARKED] = $notmarked;
              $markingworkflowoptions = array_merge($markingworkflowoptions, $this->get_marking_workflow_states_for_current_user());
          }
          if ($export) {
              $workflowfilter = get_user_preferences('assign_workflowfilter', '');
              $result = [];
              foreach ($markingworkflowoptions as $option => $label) {
                  array_push($result, [
                      'key' => $option,
                      'name' => $label,
                      'active' => ($workflowfilter == $option),
                  ]);
              }
              return $result;
          }
          return $markingworkflowoptions;
      }
code_tokens: public function get_marking_workflow_filters ( $ export = false ) { $ markingworkflow = $ this -> get_instance ( ) -> markingworkflow ; // Get marking states to show in form. $ markingworkflowoptions = array ( ) ; if ( $ markingworkflow ) { $ notmarked = get_string ( 'markingworkflowstatenotmarked' , 'assign' ) ; $ markingworkflowoptions [ '' ] = get_string ( 'filternone' , 'assign' ) ; $ markingworkflowoptions [ ASSIGN_MARKING_WORKFLOW_STATE_NOTMARKED ] = $ notmarked ; $ markingworkflowoptions = array_merge ( $ markingworkflowoptions , $ this -> get_marking_workflow_states_for_current_user ( ) ) ; } if ( $ export ) { $ workflowfilter = get_user_preferences ( 'assign_workflowfilter' , '' ) ; $ result = [ ] ; foreach ( $ markingworkflowoptions as $ option => $ label ) { array_push ( $ result , [ 'key' => $ option , 'name' => $ label , 'active' => ( $ workflowfilter == $ option ) , ] ) ; } return $ result ; } return $ markingworkflowoptions ; }
docstring: Return array of valid grading workflow filters for the grading interface.
  
  @param boolean $export Export the list of filters for a template.
  @return array
docstring_tokens: Return array of valid grading workflow filters for the grading interface .