Lumaktaw patungo sa pangunahing content

replaceSiteUrl

Callable

  • replaceSiteUrl(playground: UniversalPHP, documentRoot: string, oldSiteUrl: string, newSiteUrl: string): Promise<void>

  • Updates stored site URLs when a Playground moves to another host or scope. Serialized settings must be decoded and encoded again because URL lengths can change. Keep scope-only links working as they did during ZIP imports. Serialized objects and references are preserved unchanged. Serialized-looking values that fail decoding or round-trip checks are also preserved. Matching rows are read into memory, as during ZIP imports.


    Parameters

    • playground: UniversalPHP
    • documentRoot: string
    • oldSiteUrl: string
    • newSiteUrl: string

    Returns Promise<void>