File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,28 @@ switch ($modx->event->name){
148148``` php:line-numbers
149149switch ($modx->event->name){
150150 case 'senditOnGetWebConfig':
151- $object->webConfig['myparam'] = 'test;
151+ $object->webConfig['myparam'] = 'test';
152+ break;
153+ }
154+ ```
155+
156+ :::
157+
158+ #### senditOnSetValue - генерируется перед присвоением нового значения ключу в $_ POST
159+
160+ Доступные параметры:
161+
162+ * ** $key** - имя поля.
163+ * ** $value** - оригинальное значение.
164+ * ** $SendIt** - экземпляр класса SendIt.
165+
166+ ::: details Пример плагина
167+
168+ ``` php:line-numbers
169+ switch ($modx->event->name){
170+ case 'senditOnSetValue':
171+ // устанавливаем оригинальное значение без каких-либо проверок
172+ $SendIt->newValue = $value;
152173 break;
153174}
154175```
You can’t perform that action at this time.
0 commit comments