Skip to content

Commit

Permalink
Merge pull request modx-pro#864 from Electrica/vendorevents
Browse files Browse the repository at this point in the history
Добавил события при создании вендора modx-pro#861
  • Loading branch information
biz87 authored and dimasites committed Apr 30, 2023
2 parents 9bc89a2 + a51d990 commit 02fe127
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _build/data/transport.events.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@

'msOnManagerCustomCssJs',

'msOnBeforeVendorCreate',
'msOnAfterVendorCreate',
'msOnBeforeVendorUpdate',
'msOnAfterVendorUpdate',
'msOnBeforeVendorDelete',
'msOnAfterVendorDelete',
];

foreach ($tmp as $k => $v) {
Expand Down
1 change: 1 addition & 0 deletions _build/env
Submodule env added at f8ff67
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class msVendorCreateProcessor extends modObjectCreateProcessor
public $classKey = 'msVendor';
public $languageTopics = ['minishop2'];
public $permission = 'mssetting_save';
public $beforeSaveEvent = 'msOnBeforeVendorCreate';
public $afterSaveEvent = 'msOnAfterVendorCreate';

/**
* @return bool|null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class msVendorRemoveProcessor extends modObjectRemoveProcessor
public $classKey = 'msVendor';
public $languageTopics = ['minishop2'];
public $permission = 'mssetting_save';
public $beforeRemoveEvent = 'msOnBeforeVendorDelete';
public $afterRemoveEvent = 'msOnAfterVendorDelete';

/**
* @return bool|null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class msVendorUpdateProcessor extends modObjectUpdateProcessor
public $classKey = 'msVendor';
public $languageTopics = ['minishop2'];
public $permission = 'mssetting_save';
public $beforeSaveEvent = 'msOnBeforeVendorUpdate';
public $afterSaveEvent = 'msOnAfterVendorUpdate';

/**
* @return bool|null|string
Expand Down

0 comments on commit 02fe127

Please sign in to comment.