original_string: static public function define_decode_rules() {
          $rules = array();
  
          $rules[] = new restore_decode_rule('LESSONEDIT', '/mod/lesson/edit.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONESAY', '/mod/lesson/essay.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONREPORT', '/mod/lesson/report.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONMEDIAFILE', '/mod/lesson/mediafile.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONVIEWBYID', '/mod/lesson/view.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONINDEX', '/mod/lesson/index.php?id=$1', 'course');
          $rules[] = new restore_decode_rule('LESSONVIEWPAGE', '/mod/lesson/view.php?id=$1&pageid=$2', array('course_module', 'lesson_page'));
          $rules[] = new restore_decode_rule('LESSONEDITPAGE', '/mod/lesson/edit.php?id=$1&pageid=$2', array('course_module', 'lesson_page'));
  
          return $rules;
  
      }
code: static public function define_decode_rules() {
          $rules = array();
  
          $rules[] = new restore_decode_rule('LESSONEDIT', '/mod/lesson/edit.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONESAY', '/mod/lesson/essay.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONREPORT', '/mod/lesson/report.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONMEDIAFILE', '/mod/lesson/mediafile.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONVIEWBYID', '/mod/lesson/view.php?id=$1', 'course_module');
          $rules[] = new restore_decode_rule('LESSONINDEX', '/mod/lesson/index.php?id=$1', 'course');
          $rules[] = new restore_decode_rule('LESSONVIEWPAGE', '/mod/lesson/view.php?id=$1&pageid=$2', array('course_module', 'lesson_page'));
          $rules[] = new restore_decode_rule('LESSONEDITPAGE', '/mod/lesson/edit.php?id=$1&pageid=$2', array('course_module', 'lesson_page'));
  
          return $rules;
  
      }
code_tokens: static public function define_decode_rules ( ) { $ rules = array ( ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONEDIT' , '/mod/lesson/edit.php?id=$1' , 'course_module' ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONESAY' , '/mod/lesson/essay.php?id=$1' , 'course_module' ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONREPORT' , '/mod/lesson/report.php?id=$1' , 'course_module' ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONMEDIAFILE' , '/mod/lesson/mediafile.php?id=$1' , 'course_module' ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONVIEWBYID' , '/mod/lesson/view.php?id=$1' , 'course_module' ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONINDEX' , '/mod/lesson/index.php?id=$1' , 'course' ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONVIEWPAGE' , '/mod/lesson/view.php?id=$1&pageid=$2' , array ( 'course_module' , 'lesson_page' ) ) ; $ rules [ ] = new restore_decode_rule ( 'LESSONEDITPAGE' , '/mod/lesson/edit.php?id=$1&pageid=$2' , array ( 'course_module' , 'lesson_page' ) ) ; return $ rules ; }
docstring: Define the decoding rules for links belonging
  to the activity to be executed by the link decoder
docstring_tokens: Define the decoding rules for links belonging to the activity to be executed by the link decoder