本文整理匯總了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');
}