Bitrix API

DuplicateImages

After enable file duplicate control for all and run the migrator, some image urls in blocks have become incorrect (then has duplicate).

Need updater, then fix links

Table of Contents

Methods

__construct()  : mixed
onAfterFileDeleteDuplicate()  : mixed
update()  : string
updateLanding()  : void

Methods

__construct()

public __construct(int|null $blockId[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
$blockId : int|null
$params : array<string|int, mixed> = []

onAfterFileDeleteDuplicate()

public static onAfterFileDeleteDuplicate(EO_File $original, EO_File $duplicate) : mixed
Parameters
$original : EO_File
$duplicate : EO_File

update()

public update([bool $needSave = false ]) : string
Parameters
$needSave : bool = false
  • if false - just return replaced content.True - save changes in DB
Tags
throws
ArgumentTypeException
Return values
string

updateLanding()

public static updateLanding(int $lid) : void
Parameters
$lid : int

        
On this page

Search results