original_string: public static function init(moodle_page $page = null) {
          global $PAGE;
  
          if (empty($page)) {
              $page = $PAGE;
          }
          // setup variables for non-js interface
          self::$nonjs = optional_param('nonjscomment', '', PARAM_ALPHANUM);
          self::$comment_itemid = optional_param('comment_itemid',  '', PARAM_INT);
          self::$comment_component = optional_param('comment_component', '', PARAM_COMPONENT);
          self::$comment_context = optional_param('comment_context', '', PARAM_INT);
          self::$comment_page = optional_param('comment_page',    '', PARAM_INT);
          self::$comment_area = optional_param('comment_area',    '', PARAM_AREA);
  
          $page->requires->strings_for_js(array(
                  'addcomment',
                  'comments',
                  'commentscount',
                  'commentsrequirelogin',
                  'deletecommentbyon'
              ),
              'moodle'
          );
      }
code: public static function init(moodle_page $page = null) {
          global $PAGE;
  
          if (empty($page)) {
              $page = $PAGE;
          }
          // setup variables for non-js interface
          self::$nonjs = optional_param('nonjscomment', '', PARAM_ALPHANUM);
          self::$comment_itemid = optional_param('comment_itemid',  '', PARAM_INT);
          self::$comment_component = optional_param('comment_component', '', PARAM_COMPONENT);
          self::$comment_context = optional_param('comment_context', '', PARAM_INT);
          self::$comment_page = optional_param('comment_page',    '', PARAM_INT);
          self::$comment_area = optional_param('comment_area',    '', PARAM_AREA);
  
          $page->requires->strings_for_js(array(
                  'addcomment',
                  'comments',
                  'commentscount',
                  'commentsrequirelogin',
                  'deletecommentbyon'
              ),
              'moodle'
          );
      }
code_tokens: public static function init ( moodle_page $ page = null ) { global $ PAGE ; if ( empty ( $ page ) ) { $ page = $ PAGE ; } // setup variables for non-js interface self :: $ nonjs = optional_param ( 'nonjscomment' , '' , PARAM_ALPHANUM ) ; self :: $ comment_itemid = optional_param ( 'comment_itemid' , '' , PARAM_INT ) ; self :: $ comment_component = optional_param ( 'comment_component' , '' , PARAM_COMPONENT ) ; self :: $ comment_context = optional_param ( 'comment_context' , '' , PARAM_INT ) ; self :: $ comment_page = optional_param ( 'comment_page' , '' , PARAM_INT ) ; self :: $ comment_area = optional_param ( 'comment_area' , '' , PARAM_AREA ) ; $ page -> requires -> strings_for_js ( array ( 'addcomment' , 'comments' , 'commentscount' , 'commentsrequirelogin' , 'deletecommentbyon' ) , 'moodle' ) ; }
docstring: Receive nonjs comment parameters
  
  @param moodle_page $page The page object to initialise comments within
  If not provided the global $PAGE is used
docstring_tokens: Receive nonjs comment parameters