original_string: public function get_status() {
  
          $pluginman = $this->pluginman;
  
          if (is_null($this->versiondb) and is_null($this->versiondisk)) {
              return core_plugin_manager::PLUGIN_STATUS_NODB;
  
          } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
              return core_plugin_manager::PLUGIN_STATUS_NEW;
  
          } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
              if ($pluginman::is_deleted_standard_plugin($this->type, $this->name)) {
                  return core_plugin_manager::PLUGIN_STATUS_DELETE;
              } else {
                  return core_plugin_manager::PLUGIN_STATUS_MISSING;
              }
  
          } else if ((float)$this->versiondb === (float)$this->versiondisk) {
              // Note: the float comparison should work fine here
              //       because there are no arithmetic operations with the numbers.
              return core_plugin_manager::PLUGIN_STATUS_UPTODATE;
  
          } else if ($this->versiondb < $this->versiondisk) {
              return core_plugin_manager::PLUGIN_STATUS_UPGRADE;
  
          } else if ($this->versiondb > $this->versiondisk) {
              return core_plugin_manager::PLUGIN_STATUS_DOWNGRADE;
  
          } else {
              // $version = pi(); and similar funny jokes - hopefully Donald E. Knuth will never contribute to Moodle ;-)
              throw new coding_exception('Unable to determine plugin state, check the plugin versions');
          }
      }
code: public function get_status() {
  
          $pluginman = $this->pluginman;
  
          if (is_null($this->versiondb) and is_null($this->versiondisk)) {
              return core_plugin_manager::PLUGIN_STATUS_NODB;
  
          } else if (is_null($this->versiondb) and !is_null($this->versiondisk)) {
              return core_plugin_manager::PLUGIN_STATUS_NEW;
  
          } else if (!is_null($this->versiondb) and is_null($this->versiondisk)) {
              if ($pluginman::is_deleted_standard_plugin($this->type, $this->name)) {
                  return core_plugin_manager::PLUGIN_STATUS_DELETE;
              } else {
                  return core_plugin_manager::PLUGIN_STATUS_MISSING;
              }
  
          } else if ((float)$this->versiondb === (float)$this->versiondisk) {
              // Note: the float comparison should work fine here
              //       because there are no arithmetic operations with the numbers.
              return core_plugin_manager::PLUGIN_STATUS_UPTODATE;
  
          } else if ($this->versiondb < $this->versiondisk) {
              return core_plugin_manager::PLUGIN_STATUS_UPGRADE;
  
          } else if ($this->versiondb > $this->versiondisk) {
              return core_plugin_manager::PLUGIN_STATUS_DOWNGRADE;
  
          } else {
              // $version = pi(); and similar funny jokes - hopefully Donald E. Knuth will never contribute to Moodle ;-)
              throw new coding_exception('Unable to determine plugin state, check the plugin versions');
          }
      }
code_tokens: public function get_status ( ) { $ pluginman = $ this -> pluginman ; if ( is_null ( $ this -> versiondb ) and is_null ( $ this -> versiondisk ) ) { return core_plugin_manager :: PLUGIN_STATUS_NODB ; } else if ( is_null ( $ this -> versiondb ) and ! is_null ( $ this -> versiondisk ) ) { return core_plugin_manager :: PLUGIN_STATUS_NEW ; } else if ( ! is_null ( $ this -> versiondb ) and is_null ( $ this -> versiondisk ) ) { if ( $ pluginman :: is_deleted_standard_plugin ( $ this -> type , $ this -> name ) ) { return core_plugin_manager :: PLUGIN_STATUS_DELETE ; } else { return core_plugin_manager :: PLUGIN_STATUS_MISSING ; } } else if ( ( float ) $ this -> versiondb === ( float ) $ this -> versiondisk ) { // Note: the float comparison should work fine here //       because there are no arithmetic operations with the numbers. return core_plugin_manager :: PLUGIN_STATUS_UPTODATE ; } else if ( $ this -> versiondb < $ this -> versiondisk ) { return core_plugin_manager :: PLUGIN_STATUS_UPGRADE ; } else if ( $ this -> versiondb > $ this -> versiondisk ) { return core_plugin_manager :: PLUGIN_STATUS_DOWNGRADE ; } else { // $version = pi(); and similar funny jokes - hopefully Donald E. Knuth will never contribute to Moodle ;-) throw new coding_exception ( 'Unable to determine plugin state, check the plugin versions' ) ; } }
docstring: Returns the status of the plugin
  
  @return string one of core_plugin_manager::PLUGIN_STATUS_xxx constants
docstring_tokens: Returns the status of the plugin