當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。