src/Autocreate/Handlers/OnBeforeIBlockPropertyAdd.php 1 location
|
@@ 49-56 (lines=8) @@
|
46 |
|
* |
47 |
|
* @return array |
48 |
|
*/ |
49 |
|
public function getReplace() |
50 |
|
{ |
51 |
|
return [ |
52 |
|
'fields' => var_export($this->fields, true), |
53 |
|
'iblockId' => $this->fields['IBLOCK_ID'], |
54 |
|
'code' => "'".$this->fields['CODE']."'", |
55 |
|
]; |
56 |
|
} |
57 |
|
} |
58 |
|
|
src/Autocreate/Handlers/OnBeforeIBlockPropertyUpdate.php 1 location
|
@@ 61-68 (lines=8) @@
|
58 |
|
* |
59 |
|
* @return array |
60 |
|
*/ |
61 |
|
public function getReplace() |
62 |
|
{ |
63 |
|
return [ |
64 |
|
'fields' => var_export($this->fields, true), |
65 |
|
'iblockId' => $this->fields['IBLOCK_ID'], |
66 |
|
'code' => "'".$this->fields['CODE']."'", |
67 |
|
]; |
68 |
|
} |
69 |
|
|
70 |
|
/** |
71 |
|
* Collect property fields from DB and convert them to format that can be compared from user input. |