本文整理汇总了PHP中MY_Controller::adminAutoload方法的典型用法代码示例。如果您正苦于以下问题:PHP MY_Controller::adminAutoload方法的具体用法?PHP MY_Controller::adminAutoload怎么用?PHP MY_Controller::adminAutoload使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MY_Controller
的用法示例。
在下文中一共展示了MY_Controller::adminAutoload方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: adminAutoload
/**
* AdminAutoload method.
*
* @return void
*/
public static function adminAutoload()
{
parent::adminAutoload();
\CMSFactory\Events::create()->onShopProductDelete()->setListener('addProductWhenDelete');
\CMSFactory\Events::create()->onShopProductCreate()->setListener('delProductWhenCreate');
\CMSFactory\Events::create()->onShopProductAjaxChangeActive()->setListener('addProductWhenAjaxChangeActive');
\CMSFactory\Events::create()->onShopCategoryDelete()->setListener('addProductsWhenCatDelete');
}
示例2: adminAutoload
public static function adminAutoload()
{
parent::adminAutoload();
// Set listeners on page pre update to set url
\CMSFactory\Events::create()->setListener('setUpdatedUrl', 'ShopAdminProducts:preEdit');
\CMSFactory\Events::create()->onAdminPagePreEdit()->setListener('setUpdatedUrl');
\CMSFactory\Events::create()->onAdminCategoryPreUpdate()->setListener('setUpdatedUrl');
\CMSFactory\Events::create()->onShopCategoryPreEdit()->setListener('setUpdatedUrl');
\CMSFactory\Events::create()->onShopBrandPreEdit()->setListener('setUpdatedUrl');
\CMSFactory\Events::create()->onShopProductCreate()->setListener('ping_google');
\CMSFactory\Events::create()->onShopProductUpdate()->setListener('ping_google');
\CMSFactory\Events::create()->onShopProductDelete()->setListener('ping_google');
\CMSFactory\Events::create()->onShopCategoryCreate()->setListener('ping_google');
\CMSFactory\Events::create()->onShopCategoryEdit()->setListener('ping_google');
\CMSFactory\Events::create()->onShopCategoryDelete()->setListener('ping_google');
\CMSFactory\Events::create()->onShopBrandCreate()->setListener('ping_google');
\CMSFactory\Events::create()->onShopBrandEdit()->setListener('ping_google');
\CMSFactory\Events::create()->onShopBrandDelete()->setListener('ping_google');
\CMSFactory\Events::create()->onAdminPageCreate()->setListener('ping_google');
\CMSFactory\Events::create()->onAdminPageUpdate()->setListener('ping_google');
\CMSFactory\Events::create()->onAdminPageDelete()->setListener('ping_google');
\CMSFactory\Events::create()->onAdminCategoryCreate()->setListener('ping_google');
\CMSFactory\Events::create()->onAdminCategoryUpdate()->setListener('ping_google');
}
示例3: adminAutoload
public static function adminAutoload()
{
parent::adminAutoload();
}
示例4: adminAutoload
public static function adminAutoload()
{
parent::adminAutoload();
\CMSFactory\Events::create()->onShopProductUpdate()->setListener('priceUpdate');
\CMSFactory\Events::create()->onShopProductDelete()->setListener('priceDelete');
}