Logidav Docs

TemuAppendCategoryTemplatePidCommand extends ContainerAwareCommand
in package

Table of Contents

Methods

configure()  : mixed
execute()  : mixed
isSameMapping()  : bool
Compare logique: mêmes mappings (ordre ignoré) — compatible PHP < 7.4
mergeCategoryTemplatePid()  : array<string|int, mixed>
Fusionne {category_id, template_pid} dans category_template_pid (array|json) - remplace si l’entrée category_id existe déjà - ajoute sinon
processSingleCategory()  : int
setCategoryTemplatePidSmart()  : void
Setter "intelligent" pour category_template_pid : - Essayez setCategoryTemplatePid(array) - Sinon setCategoryTemplatePid($json, false) (si signature façon setParcels) - Sinon setCategoryTemplatePid($json)

Methods

isSameMapping()

Compare logique: mêmes mappings (ordre ignoré) — compatible PHP < 7.4

private isSameMapping(mixed $a, mixed $b) : bool
Parameters
$a : mixed
$b : mixed
Return values
bool

mergeCategoryTemplatePid()

Fusionne {category_id, template_pid} dans category_template_pid (array|json) - remplace si l’entrée category_id existe déjà - ajoute sinon

private mergeCategoryTemplatePid(mixed $current, int $categoryId, int $templatePid) : array<string|int, mixed>
Parameters
$current : mixed
$categoryId : int
$templatePid : int
Return values
array<string|int, mixed>

processSingleCategory()

private processSingleCategory(int $categoryId, OutputInterface $output) : int
Parameters
$categoryId : int
$output : OutputInterface
Return values
int

setCategoryTemplatePidSmart()

Setter "intelligent" pour category_template_pid : - Essayez setCategoryTemplatePid(array) - Sinon setCategoryTemplatePid($json, false) (si signature façon setParcels) - Sinon setCategoryTemplatePid($json)

private setCategoryTemplatePidSmart(TemuCategorySpecs $spec, array<string|int, mixed> $data) : void
Parameters
$spec : TemuCategorySpecs
$data : array<string|int, mixed>

        
On this page

Search results