当前位置: 首页>>代码示例>>PHP>>正文


PHP MY_Controller::adminAutoload方法代码示例

本文整理汇总了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');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:13,代码来源:trash.php

示例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');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:24,代码来源:sitemap.php

示例3: adminAutoload

 public static function adminAutoload()
 {
     parent::adminAutoload();
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:4,代码来源:star_rating.php

示例4: adminAutoload

 public static function adminAutoload()
 {
     parent::adminAutoload();
     \CMSFactory\Events::create()->onShopProductUpdate()->setListener('priceUpdate');
     \CMSFactory\Events::create()->onShopProductDelete()->setListener('priceDelete');
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:6,代码来源:pricespy.php


注:本文中的MY_Controller::adminAutoload方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。