original_string: protected function validate_ruletype($value) {
          if ($value === null) {
              return true;
          }
  
          if (!class_exists($value) || !is_subclass_of($value, 'core_competency\\competency_rule')) {
              return new lang_string('invaliddata', 'error');
          }
  
          return true;
      }
code: protected function validate_ruletype($value) {
          if ($value === null) {
              return true;
          }
  
          if (!class_exists($value) || !is_subclass_of($value, 'core_competency\\competency_rule')) {
              return new lang_string('invaliddata', 'error');
          }
  
          return true;
      }
code_tokens: protected function validate_ruletype ( $ value ) { if ( $ value === null ) { return true ; } if ( ! class_exists ( $ value ) || ! is_subclass_of ( $ value , 'core_competency\\competency_rule' ) ) { return new lang_string ( 'invaliddata' , 'error' ) ; } return true ; }
docstring: Validate the rule.
  
  @param string $value The ID.
  @return true|lang_string
docstring_tokens: Validate the rule .