original_string: public function get_handler_classname() {
          global $CFG;
  
          if (!empty($CFG->sitepolicyhandler)) {
              $sitepolicyhandlers = $this->get_all_handlers();
  
              if (!isset($sitepolicyhandlers[$CFG->sitepolicyhandler])) {
                  return default_handler::class;
  
              } else {
                  return $sitepolicyhandlers[$CFG->sitepolicyhandler];
              }
  
          } else {
              return default_handler::class;
          }
      }
code: public function get_handler_classname() {
          global $CFG;
  
          if (!empty($CFG->sitepolicyhandler)) {
              $sitepolicyhandlers = $this->get_all_handlers();
  
              if (!isset($sitepolicyhandlers[$CFG->sitepolicyhandler])) {
                  return default_handler::class;
  
              } else {
                  return $sitepolicyhandlers[$CFG->sitepolicyhandler];
              }
  
          } else {
              return default_handler::class;
          }
      }
code_tokens: public function get_handler_classname ( ) { global $ CFG ; if ( ! empty ( $ CFG -> sitepolicyhandler ) ) { $ sitepolicyhandlers = $ this -> get_all_handlers ( ) ; if ( ! isset ( $ sitepolicyhandlers [ $ CFG -> sitepolicyhandler ] ) ) { return default_handler :: class ; } else { return $ sitepolicyhandlers [ $ CFG -> sitepolicyhandler ] ; } } else { return default_handler :: class ; } }
docstring: Returns the current site policy handler
  
  @return handler
docstring_tokens: Returns the current site policy handler