Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс DuplicateImages

Открытые члены

 __construct (?int $blockId, array $params=[])
 
 update (bool $needSave=false)
 

Открытые статические члены

static updateLanding (int $lid)
 
static onAfterFileDeleteDuplicate (EO_File $original, EO_File $duplicate)
 

Защищенные данные

const IMG_TYPES = ['img', 'styleimg']
 
Block $block
 
array $manifest
 
string $content
 

Подробное описание

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

См. определение в файле duplicateimages.php строка 19

Конструктор(ы)

◆ __construct()

__construct ( ?int $blockId,
array $params = [] )
Аргументы
int | null$blockId
array$params

См. определение в файле duplicateimages.php строка 31

Методы

◆ onAfterFileDeleteDuplicate()

static onAfterFileDeleteDuplicate ( EO_File $original,
EO_File $duplicate )
static

См. определение в файле duplicateimages.php строка 169

◆ update()

update ( bool $needSave = false)
Аргументы
bool$needSave- if false - just return replaced content.True - save changes in DB
Возвращает
string
Исключения
ArgumentTypeException

См. определение в файле duplicateimages.php строка 57

◆ updateLanding()

static updateLanding ( int $lid)
static

См. определение в файле duplicateimages.php строка 149

Данные класса

◆ $block

Block $block
protected

См. определение в файле duplicateimages.php строка 23

◆ $content

string $content
protected

См. определение в файле duplicateimages.php строка 25

◆ $manifest

array $manifest
protected

См. определение в файле duplicateimages.php строка 24

◆ IMG_TYPES

const IMG_TYPES = ['img', 'styleimg']
protected

См. определение в файле duplicateimages.php строка 21