original_string: protected static function create_note_list($courseid, $context, $userid, $state, $author = 0) {
          $results = array();
          $notes = note_list($courseid, $userid, $state, $author);
          foreach ($notes as $key => $note) {
              $note = (array)$note;
              list($note['content'], $note['format']) = external_format_text($note['content'],
                                                                             $note['format'],
                                                                             $context->id,
                                                                             '',
                                                                             '',
                                                                             0);
              $results[$key] = $note;
          }
          return $results;
      }
code: protected static function create_note_list($courseid, $context, $userid, $state, $author = 0) {
          $results = array();
          $notes = note_list($courseid, $userid, $state, $author);
          foreach ($notes as $key => $note) {
              $note = (array)$note;
              list($note['content'], $note['format']) = external_format_text($note['content'],
                                                                             $note['format'],
                                                                             $context->id,
                                                                             '',
                                                                             '',
                                                                             0);
              $results[$key] = $note;
          }
          return $results;
      }
code_tokens: protected static function create_note_list ( $ courseid , $ context , $ userid , $ state , $ author = 0 ) { $ results = array ( ) ; $ notes = note_list ( $ courseid , $ userid , $ state , $ author ) ; foreach ( $ notes as $ key => $ note ) { $ note = ( array ) $ note ; list ( $ note [ 'content' ] , $ note [ 'format' ] ) = external_format_text ( $ note [ 'content' ] , $ note [ 'format' ] , $ context -> id , '' , '' , 0 ) ; $ results [ $ key ] = $ note ; } return $ results ; }
docstring: Create a notes list
  
  @param int $courseid ID of the Course
  @param stdClass $context context object
  @param int $userid ID of the User
  @param int $state
  @param int $author
  @return array of notes
  @since Moodle 2.9
docstring_tokens: Create a notes list