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;
    }
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;
    }
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 ; }
Gets class name for use in database table. Always begins with a \.

@param string|task_base $taskorstring Task object or a string
Gets class name for use in database table . Always begins with a \ .