本文将讨论Magento 2中的事件列表。如您所知,Magento 2正在使用事件驱动的体系结构,这将有助于扩展Magento功能。我们可以把这个事件理解为一种在特定情况发生时上升的旗帜。我们将使用示例模块Mageplaza_HelloWorld来练习本课程。
目录
- 派遣事件
- 抓住并处理事件
- 活动区
- 创建events.xml
- 观察
- 列出Magento 2中的所有活动
- PHP文件中的事件
- JavaScript Varien事件
派遣事件
在Magento 2事件列表中,我们可以使用该类Magento\Framework\Event\Manager
来调度事件。例如,我们在Mageplaza_HelloWorld中创建一个控制器动作,在屏幕上显示“Hello World”一词:
文件: app/code/Mageplaza/HelloWorld/Controller/Index/Test.php
<?php
namespace Mageplaza\HelloWorld\Controller\Index;
class Test extends \Magento\Framework\App\Action\Action
{
public function execute()
{
echo "Hello World";
exit;
}
}
现在我们要调度一个Magento 2事件列表,允许其他模块更改显示的单词。我们将改变这样的控制器:
文件: app/code/Mageplaza/HelloWorld/Controller/Index/Test.php
<?php
namespace Mageplaza\HelloWorld\Controller\Index;
class Test extends \Magento\Framework\App\Action\Action
{
public function execute()
{
$textDisplay = new \Magento\Framework\DataObject(array('text' => 'Mageplaza'));
$this->_eventManager->dispatch('mageplaza_helloworld_display_text', ['mp_text' => $textDisplay]);
echo $textDisplay->getText();
exit;
}
}
dispatch方法将接收2个参数:唯一的事件名称和数组数据。在此示例中,我们将数据对象添加到事件中并将其调回以显示文本。
抓住并处理事件
活动区
Magento使用区域定义来管理商店。我们将有一个前端区域和管理区域。使用配置文件,它们可以放在3个位置:
- 在
etc/
文件夹下是可以在管理员和前端使用的配置。 - 在
etc/frontend
文件夹将用于前端区域。 - 在
etc/adminhtml
文件夹将用于管理区。
与事件配置文件相同。您可以为每个区域创建事件配置文件,如下所示:
- 管理区域:
app/code/Mageplaza/HelloWorld/etc/adminhtml/events.xml
- 前端区域:
app/code/Mageplaza/HelloWorld/etc/frontend/events.xml
- 全球领域:
app/code/Mageplaza/HelloWorld/etc/events.xml
创建events.xml
在这个例子中,我们只捕获事件以Mageplaza - Event
在前端显示单词,因此我们应该events.xml
在etc/frontend
文件夹中创建一个文件。
文件: app/code/Mageplaza/HelloWorld/etc/frontend/events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="mageplaza_helloworld_display_text">
<observer name="mp_display_text" instance="Mageplaza\HelloWorld\Observer\ChangeDisplayText" />
</event>
</config>
在这个文件中,在config元素下,我们定义一个事件元素,其名称是上面调度的事件名称。将通过instance属性在observer元素中定义将执行此事件的类。观察者的名字用于与此事件的其他观察者一起识别。
使用此events.xml
文件,Mageplaza\HelloWorld\Observer\ChangeDisplayText
只要在前端区域调用此事件的调度方法,Magento就会执行类。请注意,我们放在events.xml
前端区域,因此如果您在管理区域(如管理员控制台)发送该事件,它将无法运行。
观察
现在我们将创建一个类来执行上面的事件。
文件: app/code/Mageplaza/HelloWorld/Observer/ChangeDisplayText.php
<?php
namespace Mageplaza\HelloWorld\Observer;
class ChangeDisplayText implements \Magento\Framework\Event\ObserverInterface
{
public function execute(\Magento\Framework\Event\Observer $observer)
{
$displayText = $observer->getData('mp_text');
echo $displayText->getText() . " - Event </br>";
$displayText->setText('Execute event successfully.');
return $this;
}
}
该类将实现ObserverInterface
并声明execute方法。你可以看到这个简单的方法来了解它是如何工作的。
让我们刷新缓存并查看结果
列出Magento 2中的所有活动
PHP文件中的事件
- 活动名称:
sales_quote_remove_item
- 文件:vendor / magento / Collect / Model / Quote.php
$this->_eventManager->dispatch('sales_quote_remove_item', ['quote_item' => $item]);
- 活动名称:
sales_quote_add_item
- 文件:vendor / magento / Collect / Model / Quote.php
$this->_eventManager->dispatch('sales_quote_add_item', ['quote_item' => $item]);
- 活动名称:
sales_quote_product_add_after
- 文件:vendor / magento / Collect / Model / Quote.php
$this->_eventManager->dispatch('sales_quote_product_add_after', ['items' => $items]);
- 活动名称:
_merge_before
- 文件:vendor / magento / Collect / Model / Quote.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_merge_before',
[$this->_eventObject => $this, 'source' => $quote]
);
- 活动名称:
_merge_after
- 文件:vendor / magento / Collect / Model / Quote.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_merge_after',
[$this->_eventObject => $this, 'source' => $quote]
);
- 活动名称:
sales_quote_item_qty_set_after
- 文件:vendor / magento / Collect / Model / Quote / Item.php
$this->_eventManager->dispatch('sales_quote_item_qty_set_after', ['item' => $this]);
- 活动名称:
sales_quote_item_set_product
- 文件:vendor / magento / Collect / Model / Quote / Item.php
$this->_eventManager->dispatch(
'sales_quote_item_set_product',
['product' => $product, 'quote_item' => $this]
);
- 活动名称:
_import_data_before
- 文件:vendor / magento / Collect / Model / Quote / Payment.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_import_data_before',
[$this->_eventObject => $this, 'input' => $data]
);
- 活动名称:
_load_after
- 文件:vendor / magento / Collect / Model / ResourceModel / Quote / Address / Collection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);
- 活动名称:
prepare_catalog_product_collection_prices
- 文件:vendor / magento / Collect / Model / ResourceModel / Quote / Item / Collection.php
$this->_eventManager->dispatch(
'prepare_catalog_product_collection_prices',
['collection' => $productCollection, 'store_id' => $this->getStoreId()]
);
- 活动名称:
sales_quote_item_collection_products_after_load
- 文件:vendor / magento / Collect / Model / ResourceModel / Quote / Item / Collection.php
$this->_eventManager->dispatch(
'sales_quote_item_collection_products_after_load',
['collection' => $productCollection]
);
- 活动名称:
controller_front_send_response_before
- 文件:vendor / magento / framework / App / Http.php
$this->_eventManager->dispatch('controller_front_send_response_before', $eventParams);
- 活动名称:
controller_action_layout_render_before
- 文件:vendor / magento / framework / App / View.php
$this->_eventManager->dispatch('controller_action_layout_render_before');
- 活动名称:
controller_action_layout_render_before_
- 文件:vendor / magento / framework / App / View.php
$this->_eventManager->dispatch(
'controller_action_layout_render_before_' . $this->_request->getFullActionName()
);
- 活动名称:
controller_action_predispatch
- 文件:vendor / magento / framework / App / Action / Action.php
$this->_eventManager->dispatch('controller_action_predispatch', $eventParameters);
- 活动名称:
controller_action_predispatch_
- 文件:vendor / magento / framework / App / Action / Action.php
$this->_eventManager->dispatch('controller_action_predispatch_' . $request->getRouteName(), $eventParameters);
- 活动名称:
controller_action_predispatch_
- 文件:vendor / magento / framework / App / Action / Action.php
$this->_eventManager->dispatch(
'controller_action_predispatch_' . $request->getFullActionName(),
$eventParameters
);
- 活动名称:
controller_action_postdispatch_
- 文件:vendor / magento / framework / App / Action / Action.php
$this->_eventManager->dispatch(
'controller_action_postdispatch_' . $request->getFullActionName(),
$eventParameters
);
- 活动名称:
controller_action_postdispatch_
- 文件:vendor / magento / framework / App / Action / Action.php
$this->_eventManager->dispatch(
'controller_action_postdispatch_' . $request->getRouteName(),
$eventParameters
);
- 活动名称:
controller_action_postdispatch
- 文件:vendor / magento / framework / App / Action / Action.php
$this->_eventManager->dispatch('controller_action_postdispatch', $eventParameters);
- 活动名称:
controller_action_noroute
- 文件:vendor / magento / framework / Controller / Noroute / Index.php
$this->_eventManager->dispatch('controller_action_noroute', ['action' => $this, 'status' => $status]);
- 活动名称:
currency_display_options_forming
- 文件:vendor / magento / framework / Locale / Currency.php
$this->_eventManager->dispatch(
'currency_display_options_forming',
['currency_options' => $options, 'base_code' => $currency]
);
- 活动名称:
model_load_before
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_load_before', $params);
- 活动名称:
_load_before
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_before', $params);
- 活动名称:
model_load_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_load_after', ['object' => $this]);
- 活动名称:
_load_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', $this->_getEventData());
- 活动名称:
model_save_commit_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_save_commit_after', ['object' => $this]);
- 活动名称:
_save_commit_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_save_commit_after', $this->_getEventData());
- 活动名称:
model_save_before
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_save_before', ['object' => $this]);
- 活动名称:
_save_before
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_save_before', $this->_getEventData());
- 活动名称:
model_save_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_save_after', ['object' => $this]);
- 活动名称:
clean_cache_by_tags
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('clean_cache_by_tags', ['object' => $this]);
- 活动名称:
_save_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_save_after', $this->_getEventData());
- 活动名称:
model_delete_before
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_delete_before', ['object' => $this]);
- 活动名称:
_delete_before
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_delete_before', $this->_getEventData());
- 活动名称:
model_delete_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_delete_after', ['object' => $this]);
- 活动名称:
clean_cache_by_tags
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('clean_cache_by_tags', ['object' => $this]);
- 活动名称:
_delete_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_delete_after', $this->_getEventData());
- 活动名称:
model_delete_commit_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch('model_delete_commit_after', ['object' => $this]);
- 活动名称:
_delete_commit_after
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_delete_commit_after', $this->_getEventData());
- 活动名称:
_clear
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_clear', $this->_getEventData());
- 活动名称:
_clear
- 文件:vendor / magento / framework / Model / AbstractModel.php
$this->_eventManager->dispatch($this->_eventPrefix . '_clear', $this->_getEventData());
- 活动名称:
core_collection_abstract_load_before
- 文件:vendor / magento / framework / Model / ResourceModel / Db / Collection / AbstractCollection.php
$this->_eventManager->dispatch('core_collection_abstract_load_before', ['collection' => $this]);
- 活动名称:
_load_before
- 文件:vendor / magento / framework / Model / ResourceModel / Db / Collection / AbstractCollection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_before', [$this->_eventObject => $this]);
- 活动名称:
core_collection_abstract_load_after
- 文件:vendor / magento / framework / Model / ResourceModel / Db / Collection / AbstractCollection.php
$this->_eventManager->dispatch('core_collection_abstract_load_after', ['collection' => $this]);
- 活动名称:
_load_after
- 文件:vendor / magento / framework / Model / ResourceModel / Db / Collection / AbstractCollection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);
- 活动名称:
core_layout_render_element
- 文件:vendor / magento / framework / View / Layout.php
$this->_eventManager->dispatch(
'core_layout_render_element',
['element_name' => $name, 'layout' => $this, 'transport' => $this->_renderingOutput]
);
- 活动名称:
view_block_abstract_to_html_before
- 文件:vendor / magento / framework / View / Element / AbstractBlock.php
$this->_eventManager->dispatch('view_block_abstract_to_html_before', ['block' => $this]);
- 活动名称:
view_message_block_render_grouped_html_after
- 文件:vendor / magento / framework / View / Element / Messages.php
$this->_eventManager->dispatch('view_message_block_render_grouped_html_after', $params);
- 活动名称:
adminhtml_block_html_before
- 文件:vendor / magento / module-backend / Block / Template.php
$this->_eventManager->dispatch('adminhtml_block_html_before', ['block' => $this]);
- 活动名称:
adminhtml_store_edit_form_prepare_form
- 文件:vendor / magento / module-backend / Block / System / Store / Edit / AbstractForm.php
$this->_eventManager->dispatch('adminhtml_store_edit_form_prepare_form', ['block' => $this]);
- 活动名称:
backend_block_widget_grid_prepare_grid_before
- 文件:vendor / magento / module-backend / Block / Widget / Grid.php
$this->_eventManager->dispatch(
'backend_block_widget_grid_prepare_grid_before',
['grid' => $this, 'collection' => $this->getCollection()]
);
- 活动名称:
clean_catalog_images_cache_after
- 文件:vendor / magento / module-backend / Controller / Adminhtml / Cache / CleanImages.php
$this->_eventManager->dispatch('clean_catalog_images_cache_after');
- 活动名称:
clean_media_cache_after
- 文件:vendor / magento / module-backend / Controller / Adminhtml / Cache / CleanMedia.php
$this->_eventManager->dispatch('clean_media_cache_after');
- 活动名称:
clean_static_files_cache_after
- 文件:vendor / magento / module-backend / Controller / Adminhtml / Cache / CleanStaticFiles.php
$this->_eventManager->dispatch('clean_static_files_cache_after');
- 活动名称:
adminhtml_cache_flush_all
- 文件:vendor / magento / module-backend / Controller / Adminhtml / Cache / FlushAll.php
$this->_eventManager->dispatch('adminhtml_cache_flush_all');
- 活动名称:
adminhtml_cache_flush_system
- 文件:vendor / magento / module-backend / Controller / Adminhtml / Cache / FlushSystem.php
$this->_eventManager->dispatch('adminhtml_cache_flush_system');
- 活动名称:
theme_save_after
- 文件:vendor / magento / module-backend / Controller / Adminhtml / System / Design / Save.php
$this->_eventManager->dispatch('theme_save_after');
- 活动名称:
store_delete
- 文件:vendor / magento / module-backend / Controller / Adminhtml / System / Store / DeleteStorePost.php
$this->_eventManager->dispatch('store_delete', ['store' => $model]);
- 活动名称:
store_group_save
- 文件:vendor / magento / module-backend / Controller / Adminhtml / System / Store / Save.php
$this->_eventManager->dispatch('store_group_save', ['group' => $groupModel]);
- 活动名称:
store_edit
- 文件:vendor / magento / module-backend / Controller / Adminhtml / System / Store / Save.php
$eventName = 'store_edit';
$this->_eventManager->dispatch($eventName, ['store' => $storeModel]);
- 活动名称:
store_add
- 文件:vendor / magento / module-backend / Controller / Adminhtml / System / Store / Save.php
$eventName = 'store_add';
$this->_eventManager->dispatch($eventName, ['store' => $storeModel]);
- 活动名称:
backend_auth_user_login_success
- 文件:vendor / magento / module-backend / Model / Auth.php
$this->_eventManager->dispatch(
'backend_auth_user_login_success',
['user' => $this->getCredentialStorage()]
);
- 活动名称:
backend_auth_user_login_failed
- 文件:vendor / magento / module-backend / Model / Auth.php
$this->_eventManager->dispatch(
'backend_auth_user_login_failed',
['user_name' => $username, 'exception' => $e]
);
- 活动名称:
catalog_product_option_price_configuration_after
- 文件:vendor / magento / module-bundle / Block / Catalog / Product / View / Type / Bundle.php
$this->_eventManager->dispatch('catalog_product_option_price_configuration_after', ['configObj' => $configObj]);
- 活动名称:
prepare_catalog_product_collection_prices
- 文件:vendor / magento / module-bundle / Model / Product / Price.php
$this->_eventManager->dispatch(
'prepare_catalog_product_collection_prices',
['collection' => $selections, 'store_id' => $product->getStoreId()]
);
- 活动名称:
catalog_product_get_final_price
- 文件:vendor / magento / module-bundle / Model / Product / Price.php
$this->_eventManager->dispatch('catalog_product_get_final_price', ['product' => $product, 'qty' => $qty]);
- 活动名称:
catalog_product_prepare_index_select
- 文件:vendor / magento / module-bundle / Model / ResourceModel / Indexer / Price.php
$this->_eventManager->dispatch(
'catalog_product_prepare_index_select',
[
'select' => $select,
'entity_field' => new \Zend_Db_Expr('e.entity_id'),
'website_field' => new \Zend_Db_Expr('cw.website_id'),
'store_field' => new \Zend_Db_Expr('cs.store_id')
]
);
- 活动名称:
catalog_product_import_bunch_delete_commit_before
- 文件:vendor / magento / module-catalog-import-export / Model / Import / Product.php
$this->_eventManager->dispatch(
'catalog_product_import_bunch_delete_commit_before',
[
'adapter' => $this,
'bunch' => $bunch,
'ids_to_delete' => $idsToDelete
]
);
- 活动名称:
catalog_product_import_bunch_delete_after
- 文件:vendor / magento / module-catalog-import-export / Model / Import / Product.php
$this->_eventManager->dispatch('catalog_product_import_bunch_delete_after', ['adapter' => $this, 'bunch' => $bunch]);
- 活动名称:
catalog_product_import_finish_before
- 文件:vendor / magento / module-catalog-import-export / Model / Import / Product.php
$this->_eventManager->dispatch('catalog_product_import_finish_before', ['adapter' => $this]);
- 活动名称:
catalog_product_import_bunch_save_after
- 文件:vendor / magento / module-catalog-import-export / Model / Import / Product.php
$this->_eventManager->dispatch(
'catalog_product_import_bunch_save_after',
['adapter' => $this, 'bunch' => $bunch]
);
- 活动名称:
catalogrule_dirty_notice
- 文件:vendor / magento / module-catalog-rule / Controller / Adminhtml / Promo / Catalog / Index.php
$this->_eventManager->dispatch(
'catalogrule_dirty_notice',
['dirty_rules' => $dirtyRules, 'message' => $this->getDirtyRulesNoticeMessage()]
);
- 活动名称:
adminhtml_controller_catalogrule_prepare_save
- 文件:vendor / magento / module-catalog-rule / Controller / Adminhtml / Promo / Catalog / Save.php
$this->_eventManager->dispatch(
'adminhtml_controller_catalogrule_prepare_save',
['request' => $this->getRequest()]
);
- 活动名称:
clean_cache_by_tags
- 文件:vendor / magento / module-catalog-rule / Model / Indexer / AbstractIndexer.php
$this->_eventManager->dispatch('clean_cache_by_tags', ['object' => $this]);
- 活动名称:
catalogsearch_reset_search_result
- 文件:vendor / magento / module-catalog-search / Model / ResourceModel / Fulltext.php
$this->_eventManager->dispatch('catalogsearch_reset_search_result');
- 活动名称:
shortcut_buttons_container
- 文件:vendor / magento / module-catalog / Block / ShortcutButtons.php
$this->_eventManager->dispatch(
'shortcut_buttons_container',
[
'container' => $this,
'is_catalog_product' => $this->_isCatalogProduct,
'or_position' => $this->_orPosition
]
);
- 活动名称:
adminhtml_catalog_category_tree_is_moveable
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Category / Tree.php
$this->_eventManager->dispatch('adminhtml_catalog_category_tree_is_moveable', ['options' => $options]);
- 活动名称:
adminhtml_catalog_category_tree_can_add_root_category
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Category / Tree.php
$this->_eventManager->dispatch(
'adminhtml_catalog_category_tree_can_add_root_category',
['category' => $this->getCategory(), 'options' => $options, 'store' => $this->getStore()->getId()]
);
- 活动名称:
adminhtml_catalog_category_tree_can_add_sub_category
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Category / Tree.php
$this->_eventManager->dispatch(
'adminhtml_catalog_category_tree_can_add_sub_category',
['category' => $this->getCategory(), 'options' => $options, 'store' => $this->getStore()->getId()]
);
- 活动名称:
adminhtml_catalog_product_grid_prepare_massaction
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Grid.php
$this->_eventManager->dispatch('adminhtml_catalog_product_grid_prepare_massaction', ['block' => $this]);
- 活动名称:
product_attribute_grid_build
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Grid.php
$this->_eventManager->dispatch('product_attribute_grid_build', ['grid' => $this]);
- 活动名称:
product_attribute_form_build
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Edit / Tab / Advanced.php
$this->_eventManager->dispatch('product_attribute_form_build', ['form' => $form]);
- 活动名称:
product_attribute_form_build_front_tab
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Edit / Tab / Front.php
$this->_eventManager->dispatch('product_attribute_form_build_front_tab', ['form' => $form]);
- 活动名称:
adminhtml_catalog_product_attribute_edit_frontend_prepare_form
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Edit / Tab / Front.php
$this->_eventManager->dispatch(
'adminhtml_catalog_product_attribute_edit_frontend_prepare_form',
['form' => $form, 'attribute' => $attributeObject]
);
- 活动名称:
adminhtml_product_attribute_types
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Edit / Tab / Main.php
$this->_eventManager->dispatch('adminhtml_product_attribute_types', ['response' => $response]);
- 活动名称:
product_attribute_form_build_main_tab
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Edit / Tab / Main.php
$this->_eventManager->dispatch('product_attribute_form_build_main_tab', ['form' => $form]);
- 活动名称:
adminhtml_catalog_product_edit_prepare_form
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / NewAttribute / Product / Attributes.php
$this->_eventManager->dispatch('adminhtml_catalog_product_edit_prepare_form', ['form' => $form]);
- 活动名称:
adminhtml_catalog_product_edit_element_types
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / NewAttribute / Product / Attributes.php
$this->_eventManager->dispatch('adminhtml_catalog_product_edit_element_types', ['response' => $response]);
- 活动名称:
adminhtml_catalog_product_attribute_set_main_html_before
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Set / Main.php
$this->_eventManager->dispatch(
'adminhtml_catalog_product_attribute_set_main_html_before',
['block' => $this]
);
- 活动名称:
adminhtml_catalog_product_attribute_set_toolbar_main_html_before
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Attribute / Set / Toolbar / Main.php
$this->_eventManager->dispatch(
'adminhtml_catalog_product_attribute_set_toolbar_main_html_before',
['block' => $this]
);
- 活动名称:
adminhtml_catalog_product_form_prepare_excluded_field_list
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Edit / Action / Attribute / Tab / Attributes.php
$this->_eventManager->dispatch(
'adminhtml_catalog_product_form_prepare_excluded_field_list',
['object' => $this]
);
- 活动名称:
adminhtml_catalog_product_edit_prepare_form
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Edit / Tab / Attributes.php
$this->_eventManager->dispatch(
'adminhtml_catalog_product_edit_prepare_form',
['form' => $form, 'layout' => $this->getLayout()]
);
- 活动名称:
adminhtml_catalog_product_edit_element_types
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Edit / Tab / Attributes.php
$this->_eventManager->dispatch('adminhtml_catalog_product_edit_element_types', ['response' => $response]);
- 活动名称:
catalog_product_gallery_prepare_layout
- 文件:vendor / magento / module-catalog / Block / Adminhtml / Product / Helper / Form / Gallery / Content.php
$this->_eventManager->dispatch('catalog_product_gallery_prepare_layout', ['block' => $this]);
- 活动名称:
catalog_block_product_status_display
- 文件:vendor / magento / module-catalog / Block / Product / AbstractProduct.php
$this->_eventManager->dispatch('catalog_block_product_status_display', ['status' => $statusInfo]);
- 活动名称:
catalog_block_product_list_collection
- 文件:vendor / magento / module-catalog / Block / Product / ListProduct.php
$this->_eventManager->dispatch(
'catalog_block_product_list_collection',
['collection' => $this->_getProductCollection()]
);
- 活动名称:
catalog_product_view_config
- 文件:vendor / magento / module-catalog / Block / Product / View.php
$this->_eventManager->dispatch('catalog_product_view_config', ['response_object' => $responseObject]);
- 活动名称:
catalog_product_upsell
- 文件:vendor / magento / module-catalog / Block / Product / ProductList / Upsell.php
$this->_eventManager->dispatch(
'catalog_product_upsell',
['product' => $product, 'collection' => $this->_itemCollection, 'limit' => null]
);
- 活动名称:
catalog_product_option_price_configuration_after
- 文件:vendor / magento / module-catalog / Block / Product / View / Options.php
$this->_eventManager->dispatch('catalog_product_option_price_configuration_after', ['configObj' => $configObj]);
- 活动名称:
rss_catalog_category_xml_callback
- 文件:vendor / magento / module-catalog / Block / Rss / Category.php
$this->_eventManager->dispatch('rss_catalog_category_xml_callback', ['product' => $product]);
- 活动名称:
rss_catalog_new_xml_callback
- 文件:vendor / magento / module-catalog / Block / Rss / Product / NewProducts.php
$this->_eventManager->dispatch('rss_catalog_new_xml_callback', [
'row' => $item->getData(),
'product' => $item
]);
- 活动名称:
rss_catalog_special_xml_callback
- 文件:vendor / magento / module-catalog / Block / Rss / Product / Special.php
$this->_eventManager->dispatch('rss_catalog_special_xml_callback', [
'row' => $item->getData(),
'product' => $item
]);
- 活动名称:
category_prepare_ajax_response
- 文件:vendor / magento / module-catalog / Controller / Adminhtml / Category.php
$this->_eventManager->dispatch(
'category_prepare_ajax_response',
['response' => $eventResponse, 'controller' => $this]
);
- 活动名称:
catalog_controller_category_delete
- 文件:vendor / magento / module-catalog / Controller / Adminhtml / Category / Delete.php
$this->_eventManager->dispatch('catalog_controller_category_delete', ['category' => $category]);
- 活动名称:
catalog_category_prepare_save
- 文件:vendor / magento / module-catalog / Controller / Adminhtml / Category / Save.php
$this->_eventManager->dispatch(
'catalog_category_prepare_save',
['category' => $category, 'request' => $this->getRequest()]
);
- 活动名称:
catalog_product_edit_action
- 文件:vendor / magento / module-catalog / Controller / Adminhtml / Product / Edit.php
$this->_eventManager->dispatch('catalog_product_edit_action', ['product' => $product]);
- 活动名称:
catalog_product_new_action
- 文件:vendor / magento / module-catalog / Controller / Adminhtml / Product / NewAction.php
$this->_eventManager->dispatch('catalog_product_new_action', ['product' => $product]);
- 活动名称:
controller_action_catalog_product_save_entity_after
- 文件:vendor / magento / module-catalog / Controller / Adminhtml / Product / Save.php
$this->_eventManager->dispatch(
'controller_action_catalog_product_save_entity_after',
['controller' => $this, 'product' => $product]
);
- 活动名称:
catalog_product_to_website_change
- 文件:vendor / magento / module-catalog / Controller / Adminhtml / Product / Action / Attribute / Save.php
$this->_eventManager->dispatch('catalog_product_to_website_change', ['products' => $productIds]);
- 活动名称:
catalog_controller_category_init_after
- 文件:vendor / magento / module-catalog / Controller / Category / View.php
$this->_eventManager->dispatch(
'catalog_controller_category_init_after',
['category' => $category, 'controller_action' => $this]
);
- 活动名称:
catalog_product_compare_add_product
- 文件:vendor / magento / module-catalog / Controller / Product / Compare / Add.php
$this->_eventManager->dispatch('catalog_product_compare_add_product', ['product' => $product]);
- 活动名称:
catalog_product_compare_remove_product
- 文件:vendor / magento / module-catalog / Controller / Product / Compare / Remove.php
$this->_eventManager->dispatch(
'catalog_product_compare_remove_product',
['product' => $item]
);
- 活动名称:
catalog_controller_product_init_before
- 文件:vendor / magento / module-catalog / Helper / Product.php
$this->_eventManager->dispatch(
'catalog_controller_product_init_before',
['controller_action' => $controller, 'params' => $params]
);
- 活动名称:
catalog_controller_product_init_after
- 文件:vendor / magento / module-catalog / Helper / Product.php
$this->_eventManager->dispatch(
'catalog_controller_product_init_after',
['product' => $product, 'controller_action' => $controller]
);
- 活动名称:
catalog_controller_product_view
- 文件:vendor / magento / module-catalog / Helper / Product / View.php
$this->_eventManager->dispatch('catalog_controller_product_view', ['product' => $product]);
- 活动名称:
_move_before
- 文件:vendor / magento / module-catalog / Model / Category.php
$this->_eventManager->dispatch($this->_eventPrefix . '_move_before', $eventParams);
- 活动名称:
_move_after
- 文件:vendor / magento / module-catalog / Model / Category.php
$this->_eventManager->dispatch($this->_eventPrefix . '_move_after', $eventParams);
- 活动名称:
category_move
- 文件:vendor / magento / module-catalog / Model / Category.php
$this->_eventManager->dispatch($this->_eventPrefix . 'category_move', $eventParams);
- 活动名称:
clean_cache_by_tags
- 文件:vendor / magento / module-catalog / Model / Category.php
$this->_eventManager->dispatch('clean_cache_by_tags', ['object' => $this]);
- 活动名称:
_validate_before
- 文件:vendor / magento / module-catalog / Model / Product.php
$this->_eventManager->dispatch($this->_eventPrefix . '_validate_before', $this->_getEventData());
- 活动名称:
_validate_after
- 文件:vendor / magento / module-catalog / Model / Product.php
$this->_eventManager->dispatch($this->_eventPrefix . '_validate_after', $this->_getEventData());
- 活动名称:
catalog_product_is_salable_before
- 文件:vendor / magento / module-catalog / Model / Product.php
$this->_eventManager->dispatch('catalog_product_is_salable_before', ['product' => $this]);
- 活动名称:
catalog_product_is_salable_after
- 文件:vendor / magento / module-catalog / Model / Product.php
$this->_eventManager->dispatch(
'catalog_product_is_salable_after',
['product' => $this, 'salable' => $object]
);
- 活动名称:
catalog_product_attribute_update_before
- 文件:vendor / magento / module-catalog / Model / Product / Action.php
$this->_eventManager->dispatch(
'catalog_product_attribute_update_before',
['attributes_data' => &$attrData, 'product_ids' => &$productIds, 'store_id' => &$storeId]
);
- 活动名称:
adminhtml_product_attribute_types
- 文件:vendor / magento / module-catalog / Model / Product / Attribute / Source / Inputtype.php
$this->_eventManager->dispatch('adminhtml_product_attribute_types', ['response' => $response]);
- 活动名称:
catalog_product_type_prepare_%s_options
- 文件:vendor / magento / module-catalog / Model / Product / Type / AbstractType.php
$eventName = sprintf('catalog_product_type_prepare_%s_options', $processMode);
$this->_eventManager->dispatch(
$eventName,
['transport' => $transport, 'buy_request' => $buyRequest, 'product' => $product]
);
- 活动名称:
catalog_product_get_final_price
- 文件:vendor / magento / module-catalog / Model / Product / Type / Price.php
$this->_eventManager->dispatch('catalog_product_get_final_price', ['product' => $product, 'qty' => $qty]);
- 活动名称:
catalog_category_change_products
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category.php
$this->_eventManager->dispatch(
'catalog_category_change_products',
['category' => $category, 'product_ids' => $productIds]
);
- 活动名称:
catalog_category_delete_after_done
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category.php
$this->_eventManager->dispatch(
'catalog_category_delete_after_done',
['product' => $object]
);
- 活动名称:
_load_before
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Collection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_before', [$this->_eventObject => $this]);
- 活动名称:
_load_after
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Collection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);
- 活动名称:
_add_is_active_filter
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Collection.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_add_is_active_filter',
[$this->_eventObject => $this]
);
- 活动名称:
catalog_category_tree_init_inactive_category_ids
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Flat.php
$this->_eventManager->dispatch('catalog_category_tree_init_inactive_category_ids', ['tree' => $this]);
- 活动名称:
catalog_category_flat_loadnodes_before
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Flat.php
$this->_eventManager->dispatch('catalog_category_flat_loadnodes_before', ['select' => $select]);
- 活动名称:
catalog_category_tree_init_inactive_category_ids
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Tree.php
$this->_eventManager->dispatch('catalog_category_tree_init_inactive_category_ids', ['tree' => $this]);
- 活动名称:
_load_before
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Flat / Collection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_before', [$this->_eventObject => $this]);
- 活动名称:
_load_after
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Flat / Collection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);
- 活动名称:
_add_is_active_filter
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Category / Flat / Collection.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_add_is_active_filter',
[$this->_eventObject => $this]
);
- 活动名称:
catalog_prepare_price_select
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Collection.php
$this->_eventManager->dispatch('catalog_prepare_price_select', $eventArgs);
- 活动名称:
catalog_product_collection_load_after
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Collection.php
$this->_eventManager->dispatch('catalog_product_collection_load_after', ['collection' => $this]);
- 活动名称:
catalog_product_collection_before_add_count_to_categories
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Collection.php
$this->_eventManager->dispatch(
'catalog_product_collection_before_add_count_to_categories',
['collection' => $this]
);
- 活动名称:
catalog_product_collection_apply_limitations_after
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Collection.php
$this->_eventManager->dispatch(
'catalog_product_collection_apply_limitations_after',
['collection' => $this]
);
- 活动名称:
catalog_product_compare_item_collection_clear
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Compare / Item / Collection.php
$this->_eventManager->dispatch('catalog_product_compare_item_collection_clear');
- 活动名称:
prepare_catalog_product_index_select
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Indexer / Eav / AbstractEav.php
$this->_eventManager->dispatch(
'prepare_catalog_product_index_select',
[
'select' => $select,
'entity_field' => new \Zend_Db_Expr('l.parent_id'),
'website_field' => new \Zend_Db_Expr('cs.website_id'),
'store_field' => new \Zend_Db_Expr('cs.store_id')
]
);
- 活动名称:
prepare_catalog_product_index_select
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Indexer / Eav / Decimal.php
$this->_eventManager->dispatch(
'prepare_catalog_product_index_select',
[
'select' => $select,
'entity_field' => new \Zend_Db_Expr('cpe.entity_id'),
'website_field' => new \Zend_Db_Expr('cs.website_id'),
'store_field' => new \Zend_Db_Expr('cs.store_id')
]
);
- 活动名称:
prepare_catalog_product_index_select
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Indexer / Eav / Source.php
$this->_eventManager->dispatch(
'prepare_catalog_product_index_select',
[
'select' => $select,
'entity_field' => new \Zend_Db_Expr('pid.entity_id'),
'website_field' => new \Zend_Db_Expr('pid.website_id'),
'store_field' => new \Zend_Db_Expr('pid.store_id')
]
);
- 活动名称:
prepare_catalog_product_index_select
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Indexer / Eav / Source.php
$this->_eventManager->dispatch(
'prepare_catalog_product_index_select',
[
'select' => $select,
'entity_field' => new \Zend_Db_Expr('cpe.entity_id'),
'website_field' => new \Zend_Db_Expr('cs.website_id'),
'store_field' => new \Zend_Db_Expr('cs.store_id')
]
);
- 活动名称:
prepare_catalog_product_index_select
- 文件:vendor / magento / module-catalog / Model / ResourceModel / Product / Indexer / Price / DefaultPrice.php
$this->_eventManager->dispatch(
'prepare_catalog_product_index_select',
[
'select' => $select,
'entity_field' => new \Zend_Db_Expr('e.entity_id'),
'website_field' => new \Zend_Db_Expr('cw.website_id'),
'store_field' => new \Zend_Db_Expr('cs.store_id')
]
);
- 活动名称:
shortcut_buttons_container
- 文件:vendor / magento / module-checkout / Block / QuoteShortcutButtons.php
$this->_eventManager->dispatch(
'shortcut_buttons_container',
[
'container' => $this,
'is_catalog_product' => $this->_isCatalogProduct,
'or_position' => $this->_orPosition,
'checkout_session' => $this->_checkoutSession
]
);
- 活动名称:
checkout_cart_add_product_complete
- 文件:vendor / magento / module-checkout / Controller / Cart / Add.php
$this->_eventManager->dispatch(
'checkout_cart_add_product_complete',
['product' => $product, 'request' => $this->getRequest(), 'response' => $this->getResponse()]
);
- 活动名称:
checkout_cart_update_item_complete
- 文件:vendor / magento / module-checkout / Controller / Cart / UpdateItemOptions.php
$this->_eventManager->dispatch(
'checkout_cart_update_item_complete',
['item' => $item, 'request' => $this->getRequest(), 'response' => $this->getResponse()]
);
- 活动名称:
checkout_controller_onepage_saveOrder
- 文件:vendor / magento / module-checkout / Controller / Onepage / SaveOrder.php
$this->_eventManager->dispatch(
'checkout_controller_onepage_saveOrder',
[
'result' => $result,
'action' => $this
]
);
- 活动名称:
checkout_onepage_controller_success_action
- 文件:vendor / magento / module-checkout / Controller / Onepage / Success.php
$this->_eventManager->dispatch(
'checkout_onepage_controller_success_action',
['order_ids' => [$session->getLastOrderId()]]
);
- 活动名称:
checkout_allow_guest
- 文件:vendor / magento / module-checkout / Helper / Data.php
$this->_eventManager->dispatch(
'checkout_allow_guest',
['quote' => $quote, 'store' => $store, 'result' => $result]
);
- 活动名称:
checkout_cart_product_add_after
- 文件:vendor / magento / module-checkout / Model / Cart.php
$this->_eventManager->dispatch(
'checkout_cart_product_add_after',
['quote_item' => $result, 'product' => $product]
);
- 活动名称:
checkout_cart_update_items_before
- 文件:vendor / magento / module-checkout / Model / Cart.php
$this->_eventManager->dispatch(
'checkout_cart_update_items_before',
['cart' => $this, 'info' => $infoDataObject]
);
- 活动名称:
checkout_cart_update_items_after
- 文件:vendor / magento / module-checkout / Model / Cart.php
$this->_eventManager->dispatch(
'checkout_cart_update_items_after',
['cart' => $this, 'info' => $infoDataObject]
);
- 活动名称:
checkout_cart_save_before
- 文件:vendor / magento / module-checkout / Model / Cart.php
$this->_eventManager->dispatch('checkout_cart_save_before', ['cart' => $this]);
- 活动名称:
checkout_cart_save_after
- 文件:vendor / magento / module-checkout / Model / Cart.php
$this->_eventManager->dispatch('checkout_cart_save_after', ['cart' => $this]);
- 活动名称:
checkout_cart_product_update_after
- 文件:vendor / magento / module-checkout / Model / Cart.php
$this->_eventManager->dispatch(
'checkout_cart_product_update_after',
['quote_item' => $result, 'product' => $product]
);
- 活动名称:
custom_quote_process
- 文件:vendor / magento / module-checkout / Model / Session.php
$this->_eventManager->dispatch('custom_quote_process', ['checkout_session' => $this]);
- 活动名称:
checkout_quote_init
- 文件:vendor / magento / module-checkout / Model / Session.php
$this->_eventManager->dispatch('checkout_quote_init', ['quote' => $quote]);
- 活动名称:
load_customer_quote_before
- 文件:vendor / magento / module-checkout / Model / Session.php
$this->_eventManager->dispatch('load_customer_quote_before', ['checkout_session' => $this]);
- 活动名称:
checkout_quote_destroy
- 文件:vendor / magento / module-checkout / Model / Session.php
$this->_eventManager->dispatch('checkout_quote_destroy', ['quote' => $this->getQuote()]);
- 活动名称:
restore_quote
- 文件:vendor / magento / module-checkout / Model / Session.php
$this->_eventManager->dispatch('restore_quote', ['order' => $order, 'quote' => $quote]);
- 活动名称:
checkout_type_onepage_save_order_after
- 文件:vendor / magento / module-checkout / Model / Type / Onepage.php
$this->_eventManager->dispatch(
'checkout_type_onepage_save_order_after',
['order' => $order, 'quote' => $this->getQuote()]
);
- 活动名称:
checkout_submit_all_after
- 文件:vendor / magento / module-checkout / Model / Type / Onepage.php
$this->_eventManager->dispatch(
'checkout_submit_all_after',
[
'order' => $order,
'quote' => $this->getQuote()
]
);
- 活动名称:
cms_controller_router_match_before
- 文件:vendor / magento / module-cms / Controller / Router.php
$this->_eventManager->dispatch(
'cms_controller_router_match_before',
['router' => $this, 'condition' => $condition]
);
- 活动名称:
adminhtml_cmspage_on_delete
- 文件:vendor / magento / module-cms / Controller / Adminhtml / Page / Delete.php
$this->_eventManager->dispatch(
'adminhtml_cmspage_on_delete',
['title' => $title, 'status' => 'success']
);
- 活动名称:
adminhtml_cmspage_on_delete
- 文件:vendor / magento / module-cms / Controller / Adminhtml / Page / Delete.php
$this->_eventManager->dispatch(
'adminhtml_cmspage_on_delete',
['title' => $title, 'status' => 'fail']
);
- 活动名称:
cms_page_prepare_save
- 文件:vendor / magento / module-cms / Controller / Adminhtml / Page / Save.php
$this->_eventManager->dispatch(
'cms_page_prepare_save',
['page' => $model, 'request' => $this->getRequest()]
);
- 活动名称:
cms_page_render
- 文件:vendor / magento / module-cms / Helper / Page.php
$this->_eventManager->dispatch(
'cms_page_render',
['page' => $this->_page, 'controller_action' => $action]
);
- 活动名称:
cms_wysiwyg_images_static_urls_allowed
- 文件:vendor / magento / module-cms / Helper / Wysiwyg / Images.php
$this->_eventManager->dispatch(
'cms_wysiwyg_images_static_urls_allowed',
['result' => $checkResult, 'store_id' => $this->_storeId]
);
- 活动名称:
adminhtml_system_config_advanced_disableoutput_render_before
- 文件:vendor / magento / module-config / Block / System / Config / Form / Fieldset / Modules / DisableOutput.php
$this->_eventManager->dispatch(
'adminhtml_system_config_advanced_disableoutput_render_before',
['modules' => $dispatchResult]
);
- 活动名称:
admin_system_config_changed_section_
- 文件:vendor / magento / module-config / Model / Config.php
$this->_eventManager->dispatch(
"admin_system_config_changed_section_{$this->getSection()}",
['website' => $this->getWebsite(), 'store' => $this->getStore()]
);
- 活动名称:
controller_action_nocookies
- 文件:vendor / magento / module-cookie / Controller / Index / NoCookies.php
$this->_eventManager->dispatch(
'controller_action_nocookies',
['action' => $this, 'redirect' => $redirect]
);
- 活动名称:
admin_system_config_changed_section_currency_before_reinit
- 文件:vendor / magento / module-currency-symbol / Model / System / Currencysymbol.php
$this->_eventManager->dispatch(
'admin_system_config_changed_section_currency_before_reinit',
['website' => $this->_websiteId, 'store' => $this->_storeId]
);
- 活动名称:
adminhtml_block_html_before
- 文件:vendor / magento / module-customer / Block / Adminhtml / Edit / Tab / Carts.php
$this->_eventManager->dispatch('adminhtml_block_html_before', ['block' => $this]);
- 活动名称:
customer_register_success
- 文件:vendor / magento / module-customer / Controller / Account / CreatePost.php
$this->_eventManager->dispatch(
'customer_register_success',
['account_controller' => $this, 'customer' => $customer]
);
- 活动名称:
customer_account_edited
- 文件:vendor / magento / module-customer / Controller / Account / EditPost.php
$this->_eventManager->dispatch(
'customer_account_edited',
['email' => $customerCandidateDataObject->getEmail()]
);
- 活动名称:
adminhtml_customer_prepare_save
- 文件:vendor / magento / module-customer / Controller / Adminhtml / Index / Save.php
$this->_eventManager->dispatch(
'adminhtml_customer_prepare_save',
['customer' => $customer, 'request' => $this->getRequest()]
);
- 活动名称:
adminhtml_customer_save_after
- 文件:vendor / magento / module-customer / Controller / Adminhtml / Index / Save.php
$this->_eventManager->dispatch(
'adminhtml_customer_save_after',
['customer' => $customer, 'request' => $this->getRequest()]
);
- 活动名称:
customer_customer_authenticated
- 文件:vendor / magento / module-customer / Model / Customer.php
$this->_eventManager->dispatch(
'customer_customer_authenticated',
['model' => $this, 'password' => $password]
);
- 活动名称:
customer_session_init
- 文件:vendor / magento / module-customer / Model / Session.php
$this->_eventManager->dispatch('customer_session_init', ['customer_session' => $this]);
- 活动名称:
customer_login
- 文件:vendor / magento / module-customer / Model / Session.php
$this->_eventManager->dispatch('customer_login', ['customer' => $customer]);
- 活动名称:
customer_data_object_login
- 文件:vendor / magento / module-customer / Model / Session.php
$this->_eventManager->dispatch('customer_data_object_login', ['customer' => $this->getCustomerDataObject()]);
- 活动名称:
customer_logout
- 文件:vendor / magento / module-customer / Model / Session.php
$this->_eventManager->dispatch('customer_logout', ['customer' => $this->getCustomer()]);
- 活动名称:
visitor_init
- 文件:vendor / magento / module-customer / Model / Visitor.php
$this->_eventManager->dispatch('visitor_init', ['visitor' => $this]);
- 活动名称:
visitor_activity_save
- 文件:vendor / magento / module-customer / Model / Visitor.php
$this->_eventManager->dispatch('visitor_activity_save', ['visitor' => $this]);
- 活动名称:
customer_address_format
- 文件:vendor / magento / module-customer / Model / Address / AbstractAddress.php
$this->_eventManager->dispatch('customer_address_format', ['type' => $formatType, 'address' => $this]);
- 活动名称:
adminhtml_block_eav_attribute_edit_form_init
- 文件:vendor / magento / module-eav / Block / Adminhtml / Attribute / Edit / Main / AbstractMain.php
$this->_eventManager->dispatch(
'adminhtml_block_eav_attribute_edit_form_init',
['form' => $this->getForm()]
);
- 活动名称:
eav_collection_abstract_load_before
- 文件:vendor / magento / module-eav / Model / Entity / Collection / AbstractCollection.php
$this->_eventManager->dispatch('eav_collection_abstract_load_before', ['collection' => $this]);
- 活动名称:
gift_options_prepare_items
- 文件:vendor / magento / module-gift-message / Block / Message / Inline.php
$this->_eventManager->dispatch('gift_options_prepare_items', ['items' => $entityItems]);
- 活动名称:
catalog_product_prepare_index_select
- 文件:vendor / magento / module-grouped-product / Model / ResourceModel / Product / Indexer / Price / Grouped.php
$this->_eventManager->dispatch(
'catalog_product_prepare_index_select',
[
'select' => $select,
'entity_field' => new \Zend_Db_Expr('e.entity_id'),
'website_field' => new \Zend_Db_Expr('cw.website_id'),
'store_field' => new \Zend_Db_Expr('cs.store_id')
]
);
- 活动名称:
checkout_controller_multishipping_shipping_post
- 文件:vendor / magento / module-multishipping / Controller / Checkout / ShippingPost.php
$this->_eventManager->dispatch(
'checkout_controller_multishipping_shipping_post',
['request' => $this->getRequest(), 'quote' => $this->_getCheckout()->getQuote()]
);
- 活动名称:
multishipping_checkout_controller_success_action
- 文件:vendor / magento / module-multishipping / Controller / Checkout / Success.php
$this->_eventManager->dispatch('multishipping_checkout_controller_success_action', ['order_ids' => $ids]);
- 活动名称:
checkout_type_multishipping_set_shipping_items
- 文件:vendor / magento / module-multishipping / Model / Checkout / Type / Multishipping.php
$this->_eventManager->dispatch('checkout_type_multishipping_set_shipping_items', ['quote' => $quote]);
- 活动名称:
checkout_type_multishipping_create_orders_single
- 文件:vendor / magento / module-multishipping / Model / Checkout / Type / Multishipping.php
$this->_eventManager->dispatch(
'checkout_type_multishipping_create_orders_single',
['order' => $order, 'address' => $address, 'quote' => $this->getQuote()]
);
- 活动名称:
checkout_submit_all_after
- 文件:vendor / magento / module-multishipping / Model / Checkout / Type / Multishipping.php
$this->_eventManager->dispatch(
'checkout_submit_all_after',
['orders' => $orders, 'quote' => $this->getQuote()]
);
- 活动名称:
checkout_multishipping_refund_all
- 文件:vendor / magento / module-multishipping / Model / Checkout / Type / Multishipping.php
$this->_eventManager->dispatch('checkout_multishipping_refund_all', ['orders' => $orders]);
- 活动名称:
payment_form_block_to_html_before
- 文件:vendor / magento / module-payment / Block / Form / Cc.php
$this->_eventManager->dispatch('payment_form_block_to_html_before', ['block' => $this]);
- 活动名称:
payment_cart_collect_items_and_amounts
- 文件:vendor / magento / module-payment / Model / Cart.php
$this->_eventManager->dispatch('payment_cart_collect_items_and_amounts', ['cart' => $this]);
- 活动名称:
payment_method_assign_data_
- 文件:vendor / magento / module-payment / Model / Method / AbstractMethod.php
$this->_eventManager->dispatch(
'payment_method_assign_data_' . $this->getCode(),
[
AbstractDataAssignObserver::METHOD_CODE => $this,
AbstractDataAssignObserver::MODEL_CODE => $this->getInfoInstance(),
AbstractDataAssignObserver::DATA_CODE => $data
]
);
- 活动名称:
payment_method_assign_data
- 文件:vendor / magento / module-payment / Model / Method / AbstractMethod.php
$this->_eventManager->dispatch(
'payment_method_assign_data',
[
AbstractDataAssignObserver::METHOD_CODE => $this,
AbstractDataAssignObserver::MODEL_CODE => $this->getInfoInstance(),
AbstractDataAssignObserver::DATA_CODE => $data
]
);
- 活动名称:
payment_method_is_active
- 文件:vendor / magento / module-payment / Model / Method / AbstractMethod.php
$this->_eventManager->dispatch(
'payment_method_is_active',
[
'result' => $checkResult,
'method_instance' => $this,
'quote' => $quote
]
);
- 活动名称:
paypal_express_place_order_success
- 文件:vendor / magento / module-paypal / Controller / Express / AbstractExpress / PlaceOrder.php
$this->_eventManager->dispatch(
'paypal_express_place_order_success',
[
'order' => $order,
'quote' => $this->_getQuote()
]
);
- 活动名称:
persistent_session_expired
- 文件:vendor / magento / module-persistent / Controller / Index / UnsetCookie.php
$this->_eventManager->dispatch('persistent_session_expired');
- 活动名称:
persistent_session_expired
- 文件:vendor / magento / module-persistent / Observer / CheckExpirePersistentQuoteObserver.php
$this->_eventManager->dispatch('persistent_session_expired');
- 活动名称:
sales_quote_remove_item
- 文件:vendor / magento / module-quote / Model / Quote.php
$this->_eventManager->dispatch('sales_quote_remove_item', ['quote_item' => $item]);
- 活动名称:
sales_quote_add_item
- 文件:vendor / magento / module-quote / Model / Quote.php
$this->_eventManager->dispatch('sales_quote_add_item', ['quote_item' => $item]);
- 活动名称:
sales_quote_product_add_after
- 文件:vendor / magento / module-quote / Model / Quote.php
$this->_eventManager->dispatch('sales_quote_product_add_after', ['items' => $items]);
- 活动名称:
_merge_before
- 文件:vendor / magento / module-quote / Model / Quote.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_merge_before',
[$this->_eventObject => $this, 'source' => $quote]
);
- 活动名称:
_merge_after
- 文件:vendor / magento / module-quote / Model / Quote.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_merge_after',
[$this->_eventObject => $this, 'source' => $quote]
);
- 活动名称:
sales_quote_item_qty_set_after
- 文件:vendor / magento / module-quote / Model / Quote / Item.php
$this->_eventManager->dispatch('sales_quote_item_qty_set_after', ['item' => $this]);
- 活动名称:
sales_quote_item_set_product
- 文件:vendor / magento / module-quote / Model / Quote / Item.php
$this->_eventManager->dispatch(
'sales_quote_item_set_product',
['product' => $product, 'quote_item' => $this]
);
- 活动名称:
_import_data_before
- 文件:vendor / magento / module-quote / Model / Quote / Payment.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_import_data_before',
[$this->_eventObject => $this, 'input' => $data]
);
- 活动名称:
_load_after
- 文件:vendor / magento / module-quote / Model / ResourceModel / Quote / Address / Collection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);
- 活动名称:
prepare_catalog_product_collection_prices
- 文件:vendor / magento / module-quote / Model / ResourceModel / Quote / Item / Collection.php
$this->_eventManager->dispatch(
'prepare_catalog_product_collection_prices',
['collection' => $productCollection, 'store_id' => $this->getStoreId()]
);
- 活动名称:
sales_quote_item_collection_products_after_load
- 文件:vendor / magento / module-quote / Model / ResourceModel / Quote / Item / Collection.php
$this->_eventManager->dispatch(
'sales_quote_item_collection_products_after_load',
['collection' => $productCollection]
);
- 活动名称:
adminhtml_widget_grid_filter_collection
- 文件:vendor / magento / module-reports / Block / Adminhtml / Grid.php
$this->_eventManager->dispatch(
'adminhtml_widget_grid_filter_collection',
['collection' => $this->getCollection(), 'filter_values' => $this->_filterValues]
);
- 活动名称:
sales_prepare_amount_expression
- 文件:vendor / magento / module-reports / Model / ResourceModel / Order / Collection.php
$this->_eventManager->dispatch(
'sales_prepare_amount_expression',
['collection' => $this, 'expression_object' => $expressionTransferObject]
);
- 活动名称:
review_controller_product_init_before
- 文件:vendor / magento / module-review / Controller / Product.php
$this->_eventManager->dispatch('review_controller_product_init_before', ['controller_action' => $this]);
- 活动名称:
review_controller_product_init
- 文件:vendor / magento / module-review / Controller / Product.php
$this->_eventManager->dispatch('review_controller_product_init', ['product' => $product]);
- 活动名称:
review_controller_product_init_after
- 文件:vendor / magento / module-review / Controller / Product.php
$this->_eventManager->dispatch(
'review_controller_product_init_after',
['product' => $product, 'controller_action' => $this]
);
- 活动名称:
rating_rating_collection_load_before
- 文件:vendor / magento / module-review / Model / ResourceModel / Rating / Collection.php
$this->_eventManager->dispatch('rating_rating_collection_load_before', ['collection' => $this]);
- 活动名称:
review_review_collection_load_before
- 文件:vendor / magento / module-review / Model / ResourceModel / Review / Collection.php
$this->_eventManager->dispatch('review_review_collection_load_before', ['collection' => $this]);
- 活动名称:
adminhtml_block_salesrule_actions_prepareform
- 文件:vendor / magento / module-sales-rule / Block / Adminhtml / Promo / Quote / Edit / Tab / Actions.php
$this->_eventManager->dispatch('adminhtml_block_salesrule_actions_prepareform', ['form' => $form]);
- 活动名称:
adminhtml_promo_quote_edit_tab_coupons_form_prepare_form
- 文件:vendor / magento / module-sales-rule / Block / Adminhtml / Promo / Quote / Edit / Tab / Coupons / Form.php
$this->_eventManager->dispatch(
'adminhtml_promo_quote_edit_tab_coupons_form_prepare_form',
['form' => $form]
);
- 活动名称:
adminhtml_block_promo_widget_chooser_prepare_collection
- 文件:vendor / magento / module-sales-rule / Block / Adminhtml / Promo / Widget / Chooser.php
$this->_eventManager->dispatch(
'adminhtml_block_promo_widget_chooser_prepare_collection',
['collection' => $collection]
);
- 活动名称:
adminhtml_controller_salesrule_prepare_save
- 文件:vendor / magento / module-sales-rule / Controller / Adminhtml / Promo / Quote / Save.php
$this->_eventManager->dispatch(
'adminhtml_controller_salesrule_prepare_save',
['request' => $this->getRequest()]
);
- 活动名称:
salesrule_rule_get_coupon_types
- 文件:vendor / magento / module-sales-rule / Model / Rule.php
$this->_eventManager->dispatch('salesrule_rule_get_coupon_types', ['transport' => $transport]);
- 活动名称:
salesrule_validator_process
- 文件:vendor / magento / module-sales-rule / Model / RulesApplier.php
$this->_eventManager->dispatch(
'salesrule_validator_process',
[
'rule' => $rule,
'item' => $item,
'address' => $address,
'quote' => $quote,
'qty' => $qty,
'result' => $discountData
]
);
- 活动名称:
salesrule_rule_condition_combine
- 文件:vendor / magento / module-sales-rule / Model / Rule / Condition / Combine.php
$this->_eventManager->dispatch('salesrule_rule_condition_combine', ['additional' => $additional]);
- 活动名称:
adminhtml_customer_orders_add_action_renderer
- 文件:vendor / magento / module-sales / Block / Adminhtml / Reorder / Renderer / Action.php
$this->_eventManager->dispatch(
'adminhtml_customer_orders_add_action_renderer',
['renderer' => $this, 'row' => $row]
);
- 活动名称:
admin_sales_order_address_update
- 文件:vendor / magento / module-sales / Controller / Adminhtml / Order / AddressSave.php
$this->_eventManager->dispatch(
'admin_sales_order_address_update',
[
'order_id' => $address->getParentId()
]
);
- 活动名称:
adminhtml_sales_order_create_process_data_before
- 文件:vendor / magento / module-sales / Controller / Adminhtml / Order / Create.php
$this->_eventManager->dispatch('adminhtml_sales_order_create_process_data_before', $eventData);
- 活动名称:
adminhtml_sales_order_create_process_data
- 文件:vendor / magento / module-sales / Controller / Adminhtml / Order / Create.php
$this->_eventManager->dispatch('adminhtml_sales_order_create_process_data', $eventData);
- 活动名称:
sales_order_place_before
- 文件:vendor / magento / module-sales / Model / Order.php
$this->_eventManager->dispatch('sales_order_place_before', ['order' => $this]);
- 活动名称:
sales_order_place_after
- 文件:vendor / magento / module-sales / Model / Order.php
$this->_eventManager->dispatch('sales_order_place_after', ['order' => $this]);
- 活动名称:
order_cancel_after
- 文件:vendor / magento / module-sales / Model / Order.php
$this->_eventManager->dispatch('order_cancel_after', ['order' => $this]);
- 活动名称:
sales_convert_order_to_quote
- 文件:vendor / magento / module-sales / Model / AdminOrder / Create.php
$this->_eventManager->dispatch('sales_convert_order_to_quote', ['order' => $order, 'quote' => $quote]);
- 活动名称:
sales_convert_order_item_to_quote_item
- 文件:vendor / magento / module-sales / Model / AdminOrder / Create.php
$this->_eventManager->dispatch(
'sales_convert_order_item_to_quote_item',
['order_item' => $orderItem, 'quote_item' => $item]
);
- 活动名称:
checkout_submit_all_after
- 文件:vendor / magento / module-sales / Model / AdminOrder / Create.php
$this->_eventManager->dispatch('checkout_submit_all_after', ['order' => $order, 'quote' => $quote]);
- 活动名称:
_sales_email_general_async_sending_
- 文件:vendor / magento / module-sales / Model / Config / Backend / Email / AsyncSending.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_sales_email_general_async_sending_' . $state,
$this->_getEventData()
);
- 活动名称:
_dev_grid_async_indexing_
- 文件:vendor / magento / module-sales / Model / Config / Backend / Grid / AsyncIndexing.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_dev_grid_async_indexing_' . $state,
$this->_getEventData()
);
- 活动名称:
sales_order_invoice_pay
- 文件:vendor / magento / module-sales / Model / Order / Invoice.php
$this->_eventManager->dispatch('sales_order_invoice_pay', [$this->_eventObject => $this]);
- 活动名称:
sales_order_invoice_cancel
- 文件:vendor / magento / module-sales / Model / Order / Invoice.php
$this->_eventManager->dispatch('sales_order_invoice_cancel', [$this->_eventObject => $this]);
- 活动名称:
sales_order_invoice_register
- 文件:vendor / magento / module-sales / Model / Order / Invoice.php
$this->_eventManager->dispatch(
'sales_order_invoice_register',
[$this->_eventObject => $this, 'order' => $order]
);
- 活动名称:
sales_order_item_cancel
- 文件:vendor / magento / module-sales / Model / Order / Item.php
$this->_eventManager->dispatch('sales_order_item_cancel', ['item' => $this]);
- 活动名称:
sales_order_payment_place_start
- 文件:vendor / magento / module-sales / Model / Order / Payment.php
$this->_eventManager->dispatch('sales_order_payment_place_start', ['payment' => $this]);
- 活动名称:
sales_order_payment_place_end
- 文件:vendor / magento / module-sales / Model / Order / Payment.php
$this->_eventManager->dispatch('sales_order_payment_place_end', ['payment' => $this]);
- 活动名称:
sales_order_payment_cancel_invoice
- 文件:vendor / magento / module-sales / Model / Order / Payment.php
$this->_eventManager->dispatch(
'sales_order_payment_cancel_invoice',
['payment' => $this, 'invoice' => $invoice]
);
- 活动名称:
sales_order_payment_void
- 文件:vendor / magento / module-sales / Model / Order / Payment.php
$this->_eventManager->dispatch('sales_order_payment_void', ['payment' => $this, 'invoice' => $document]);
- 活动名称:
sales_order_payment_refund
- 文件:vendor / magento / module-sales / Model / Order / Payment.php
$this->_eventManager->dispatch(
'sales_order_payment_refund',
['payment' => $this, 'creditmemo' => $creditmemo]
);
- 活动名称:
sales_order_payment_cancel_creditmemo
- 文件:vendor / magento / module-sales / Model / Order / Payment.php
$this->_eventManager->dispatch(
'sales_order_payment_cancel_creditmemo',
['payment' => $this, 'creditmemo' => $creditmemo]
);
- 活动名称:
sales_order_payment_cancel
- 文件:vendor / magento / module-sales / Model / Order / Payment.php
$this->_eventManager->dispatch('sales_order_payment_cancel', ['payment' => $this]);
- 活动名称:
sales_order_status_unassign
- 文件:vendor / magento / module-sales / Model / Order / Status.php
$this->_eventManager->dispatch(
'sales_order_status_unassign',
[
'status' => $this->getStatus(),
'state' => $state
]
);
- 活动名称:
_html_txn_id
- 文件:vendor / magento / module-sales / Model / Order / Payment / Transaction.php
$this->_eventManager->dispatch($this->_eventPrefix . '_html_txn_id', $this->_getEventData());
- 活动名称:
_load_after
- 文件:vendor / magento / module-sales / Model / ResourceModel / Order / Address / Collection.php
$this->_eventManager->dispatch($this->_eventPrefix . '_load_after', [$this->_eventObject => $this]);
- 活动名称:
_set_sales_order
- 文件:vendor / magento / module-sales / Model / ResourceModel / Order / Collection / AbstractCollection.php
$this->_eventManager->dispatch(
$this->_eventPrefix . '_set_sales_order',
['collection' => $this, $this->_eventObject => $this, 'order' => $order]
);
- 活动名称:
sales_sale_collection_query_before
- 文件:vendor / magento / module-sales / Model / ResourceModel / Sale / Collection.php
$this->_eventManager->dispatch('sales_sale_collection_query_before', ['collection' => $this]);
- 活动名称:
on_view_report
- 文件:vendor / magento / module-search / Controller / Adminhtml / Term / Report.php
$this->_eventManager->dispatch('on_view_report', ['report' => 'search']);
- 活动名称:
sendfriend_product
- 文件:vendor / magento / module-send-friend / Controller / Product / Send.php
$this->_eventManager->dispatch('sendfriend_product', ['product' => $product]);
- 活动名称:
swatch_gallery_upload_image_after
- 文件:vendor / magento / module-swatches / Controller / Adminhtml / Iframe / Show.php
$this->_eventManager->dispatch(
'swatch_gallery_upload_image_after',
['result' => $result, 'action' => $this]
);
- 活动名称:
adminhtml_cache_refresh_type
- 文件:vendor / magento / module-tax / Controller / Adminhtml / Tax / IgnoreTaxNotification.php
$this->_eventManager->dispatch('adminhtml_cache_refresh_type', ['type' => 'block_html']);
- 活动名称:
tax_rate_data_fetch
- 文件:vendor / magento / module-tax / Model / Calculation.php
$this->_eventManager->dispatch('tax_rate_data_fetch', ['request' => $request, 'sender' => $this]);
- 活动名称:
tax_settings_change_after
- 文件:vendor / magento / module-tax / Model / Calculation / Rate.php
$this->_eventManager->dispatch('tax_settings_change_after');
- 活动名称:
page_block_html_topmenu_gethtml_before
- 文件:vendor / magento / module-theme / Block / Html / Topmenu.php
$this->_eventManager->dispatch(
'page_block_html_topmenu_gethtml_before',
['menu' => $this->_menu, 'block' => $this]
);
- 活动名称:
page_block_html_topmenu_gethtml_after
- 文件:vendor / magento / module-theme / Block / Html / Topmenu.php
$this->_eventManager->dispatch(
'page_block_html_topmenu_gethtml_after',
['menu' => $this->_menu, 'transportObject' => $transportObject]
);
- 活动名称:
assign_theme_to_stores_after
- 文件:vendor / magento / module-theme / Model / Config.php
$this->_eventManager->dispatch(
'assign_theme_to_stores_after',
['stores' => $stores, 'scope' => $scope, 'theme' => $theme]
);
- 活动名称:
permissions_role_html_before
- 文件:vendor / magento / module-user / Block / Role.php
$this->_eventManager->dispatch('permissions_role_html_before', ['block' => $this]);
- 活动名称:
admin_permissions_role_prepare_save
- 文件:vendor / magento / module-user / Controller / Adminhtml / User / Role / SaveRole.php
$this->_eventManager->dispatch(
'admin_permissions_role_prepare_save',
['object' => $role, 'request' => $this->getRequest()]
);
- 活动名称:
admin_user_authenticate_before
- 文件:vendor / magento / module-user / Model / User.php
$this->_eventManager->dispatch(
'admin_user_authenticate_before',
['username' => $username, 'user' => $this]
);
- 活动名称:
admin_user_authenticate_after
- 文件:vendor / magento / module-user / Model / User.php
$this->_eventManager->dispatch(
'admin_user_authenticate_after',
['username' => $username, 'password' => $password, 'user' => $this, 'result' => $result]
);
- 活动名称:
admin_user_authenticate_after
- 文件:vendor / magento / module-user / Model / User.php
$this->_eventManager->dispatch(
'admin_user_authenticate_after',
[
'username' => $this->getUserName(),
'password' => $passwordString,
'user' => $this,
'result' => $isCheckSuccessful
]
);
- 活动名称:
product_option_renderer_init
- 文件:vendor / magento / module-wishlist / Block / Customer / Wishlist / Item / Options.php
$this->_eventManager->dispatch('product_option_renderer_init', ['block' => $this]);
- 活动名称:
wishlist_add_product
- 文件:vendor / magento / module-wishlist / Controller / Index / Add.php
$this->_eventManager->dispatch(
'wishlist_add_product',
['wishlist' => $wishlist, 'product' => $product, 'item' => $result]
);
- 活动名称:
wishlist_share
- 文件:vendor / magento / module-wishlist / Controller / Index / Send.php
$this->_eventManager->dispatch('wishlist_share', ['wishlist' => $wishlist]);
- 活动名称:
wishlist_items_renewed
- 文件:vendor / magento / module-wishlist / Helper / Data.php
$this->_eventManager->dispatch('wishlist_items_renewed');
- 活动名称:
wishlist_product_add_after
- 文件:vendor / magento / module-wishlist / Model / Wishlist.php
$this->_eventManager->dispatch('wishlist_product_add_after', ['items' => $items]);
- 活动名称:
wishlist_item_collection_products_after_load
- 文件:vendor / magento / module-wishlist / Model / ResourceModel / Item / Collection.php
$this->_eventManager->dispatch(
'wishlist_item_collection_products_after_load',
['product_collection' => $productCollection]
);
JavaScript Varien事件
- 活动名称:
formSubmit
- 文件:lib / web / mage / adminhtml / form.js
varienGlobalEvents.fireEvent("formSubmit", $(e.target).attr('id'));
- 活动名称:
address_country_changed
- 文件:lib / web / mage / adminhtml / form.js
varienGlobalEvents.fireEvent("address_country_changed", this.countryEl);
- 活动名称:
gridRowClick
- 文件:lib / web / mage / adminhtml / grid.js
varienGlobalEvents.fireEvent('gridRowClick', event);
- 活动名称:
gridRowDblClick
- 文件:lib / web / mage / adminhtml / grid.js
varienGlobalEvents.fireEvent('gridRowDblClick', event);
- 活动名称:
tinymceChange
- 文件:lib / web / mage / adminhtml / wysiwyg / widget.js
varienGlobalEvents.fireEvent('tinymceChange');
- 活动名称:
tinymceSubmit
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent('tinymceSubmit', e);
- 活动名称:
tinymcePaste
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent('tinymcePaste', o);
- 活动名称:
tinymceBeforeSetContent
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent('tinymceBeforeSetContent', o);
- 活动名称:
tinymceSetContent
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent('tinymceSetContent', o);
- 活动名称:
tinymceSetContent
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent('tinymceSaveContent', o);
- 活动名称:
tinymceChange
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent('tinymceChange', l);
- 活动名称:
tinymceExecCommand
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent('tinymceExecCommand', cmd);
- 活动名称:
open_browser_callback
- 文件:lib / web / mage / adminhtml / wysiwyg / tiny_mce / setup.js
varienGlobalEvents.fireEvent("open_browser_callback", {
win: w,
type: objectType,
field: fieldName
});