original_string: protected static function get_canonical_class_name($taskorstring) {
          if (is_string($taskorstring)) {
              $classname = $taskorstring;
          } else {
              $classname = get_class($taskorstring);
          }
          if (strpos($classname, '\\') !== 0) {
              $classname = '\\' . $classname;
          }
          return $classname;
      }
code: protected static function get_canonical_class_name($taskorstring) {
          if (is_string($taskorstring)) {
              $classname = $taskorstring;
          } else {
              $classname = get_class($taskorstring);
          }
          if (strpos($classname, '\\') !== 0) {
              $classname = '\\' . $classname;
          }
          return $classname;
      }
code_tokens: protected static function get_canonical_class_name ( $ taskorstring ) { if ( is_string ( $ taskorstring ) ) { $ classname = $ taskorstring ; } else { $ classname = get_class ( $ taskorstring ) ; } if ( strpos ( $ classname , '\\' ) !== 0 ) { $ classname = '\\' . $ classname ; } return $ classname ; }
docstring: Gets class name for use in database table. Always begins with a \.
  
  @param string|task_base $taskorstring Task object or a string
docstring_tokens: Gets class name for use in database table . Always begins with a \ .