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


PHP Tab::delete方法代码示例

本文整理汇总了PHP中Tab::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Tab::delete方法的具体用法?PHP Tab::delete怎么用?PHP Tab::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tab的用法示例。


在下文中一共展示了Tab::delete方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: uninstall

 public function uninstall()
 {
     Configuration::deleteByName('POSSEQUENCE');
     // Uninstall Tabs
     //$tab = new Tab((int)Tab::getIdFromClassName('AdminPosMenu'));
     //$tab->delete();
     $tab = new Tab((int) Tab::getIdFromClassName('AdminPossequence'));
     $tab->delete();
     Configuration::deleteByName($this->name . '_pause_time');
     Configuration::deleteByName($this->name . '_animation_speed');
     Configuration::deleteByName($this->name . '_show_arrow');
     Configuration::deleteByName($this->name . '_show_navigation');
     Configuration::deleteByName($this->name . '_auto_slide');
     //uninstall db
     include dirname(__FILE__) . '/sql/uninstall_sql.php';
     foreach ($sql as $s) {
         if (!Db::getInstance()->execute($s)) {
             return false;
         }
     }
     // Uninstall Module
     if (!parent::uninstall()) {
         return false;
     }
     // !$this->unregisterHook('actionObjectExampleDataAddAfter')
     return true;
 }
开发者ID:OaSiis,项目名称:LDDP,代码行数:27,代码来源:possequence.php

示例2: uninstall

 public function uninstall ()
 {
     $tab = new Tab(Tab::getIdFromClassName('AdminNewsletter'));
     return parent::uninstall()
             && $tab->delete()
             && Configuration::deleteByName('NSletter_id_parent_tab');;
 }
开发者ID:rsmaizys,项目名称:Newsletter-Tab-Module-for-PrestaShop,代码行数:7,代码来源:newslettertabmodule.php

示例3: uninstall

 public function uninstall()
 {
     Configuration::deleteByName('poslogo');
     // Uninstall Tabs
     $tab = new Tab((int) Tab::getIdFromClassName('AdminPosLogo'));
     $tab->delete();
     Configuration::deleteByName($this->name . '_auto');
     Configuration::deleteByName($this->name . '_speed_slide');
     Configuration::deleteByName($this->name . '_a_speed');
     // Configuration::deleteByName($this->name . '_show_price');
     //Configuration::deleteByName($this->name . '_show_des');
     Configuration::deleteByName($this->name . '_qty_products');
     Configuration::deleteByName($this->name . '_qty_items');
     Configuration::deleteByName($this->name . '_width_item');
     Configuration::deleteByName($this->name . '_show_nextback');
     Configuration::deleteByName($this->name . '_show_control');
     Configuration::deleteByName($this->name . '_min_item');
     Configuration::deleteByName($this->name . '_max_item');
     Configuration::deleteByName($this->name . '_mode_dir');
     include dirname(__FILE__) . '/sql/uninstall_sql.php';
     foreach ($sql as $s) {
         if (!Db::getInstance()->execute($s)) {
             return false;
         }
     }
     // Uninstall Module
     if (!parent::uninstall()) {
         return false;
     }
     // !$this->unregisterHook('actionObjectExampleDataAddAfter')
     return true;
 }
开发者ID:IngenioContenidoDigital,项目名称:serta,代码行数:32,代码来源:poslogo.php

示例4: _removeAjaxContoller

 private function _removeAjaxContoller()
 {
     if ($tab_id = (int) Tab::getIdFromClassName('AdminThemeConfigurator')) {
         $tab = new Tab($tab_id);
         $tab->delete();
     }
     return true;
 }
开发者ID:AlexEven,项目名称:themeconfigurator,代码行数:8,代码来源:themeconfigurator.php

示例5: uninstallAdminTab

 public function uninstallAdminTab($class_name)
 {
     $id_tab = (int) Tab::getIdFromClassName($class_name);
     if ($id_tab) {
         $tab = new Tab($id_tab);
         return $tab->delete();
     }
     return false;
 }
开发者ID:Oldwo1f,项目名称:yakaboutique,代码行数:9,代码来源:psmsetup16.php

示例6: uninstall

 public function uninstall()
 {
     $id_tab = (int) Tab::getIdFromClassName('AdminDashgoals');
     if ($id_tab) {
         $tab = new Tab($id_tab);
         $tab->delete();
     }
     return parent::uninstall();
 }
开发者ID:informaticapb,项目名称:Prestashop,代码行数:9,代码来源:dashgoals.php

示例7: uninstallModuleTab

 private function uninstallModuleTab($tabClass)
 {
     $idTab = Tab::getIdFromClassName($tabClass);
     if ($idTab != 0) {
         $tab = new Tab($idTab);
         $tab->delete();
         return true;
     }
     return false;
 }
开发者ID:bhuvanaurora,项目名称:erp5,代码行数:10,代码来源:oneclickconnect.php

示例8: uninstallTab

 public function uninstallTab()
 {
     $id_tab = (int) Tab::getIdFromClassName('AdminOnboarding');
     if ($id_tab) {
         $tab = new Tab($id_tab);
         return $tab->delete();
     } else {
         return false;
     }
 }
开发者ID:ortegon000,项目名称:tienda,代码行数:10,代码来源:onboarding.php

示例9: uninstall

 public function uninstall()
 {
     // Database Table
     include dirname(__FILE__) . '/sql/uninstall.php';
     // Module Tab
     if ($id_tab = (int) Tab::getIdFromClassName('AdminAutozip')) {
         $tab = new Tab($id_tab);
         $tab->delete();
     }
     return parent::uninstall();
 }
开发者ID:kimengumi,项目名称:AutoZip-PrestaShop,代码行数:11,代码来源:autozip.php

示例10: uninstallModuleTab

 /**
  * Uninstall
  */
 private function uninstallModuleTab($class_sfx = '')
 {
     $tab_class = 'Admin' . Tools::ucfirst($this->name) . Tools::ucfirst($class_sfx);
     $id_tab = Tab::getIdFromClassName($tab_class);
     if ($id_tab != 0) {
         $tab = new Tab($id_tab);
         $tab->delete();
         return true;
     }
     return false;
 }
开发者ID:pacxs,项目名称:pacxscom,代码行数:14,代码来源:leoblog.php

示例11: removeAdminTab

 public function removeAdminTab()
 {
     $adminTabId = Configuration::get('ADMIN_TAB_MODULE_MAPPA');
     if (Tab::existsInDatabase($adminTabId, Tab::$definition['table'])) {
         $adminTab = new Tab($adminTabId);
         if (!$adminTab->delete()) {
             return false;
         }
         return Configuration::deleteByName('ADMIN_TAB_MODULE_MAPPA');
     }
     return true;
 }
开发者ID:thhomas,项目名称:prestashop-mappa,代码行数:12,代码来源:mappa.php

示例12: upgrade_module_1_0_3

function upgrade_module_1_0_3($object)
{
    $idTabs = array();
    $idTabs[] = Tab::getIdFromClassName('AdminSimpleBlogRelatedPosts');
    foreach ($idTabs as $idTab) {
        if ($idTab) {
            $tab = new Tab($idTab);
            $tab->delete();
        }
    }
    return true;
}
开发者ID:evgrishin,项目名称:se1614,代码行数:12,代码来源:install-1.0.3.php

示例13: uninstall

 public function uninstall()
 {
     if (!parent::uninstall() && !$this->unregisterHook('orderConfirmation') && !$this->unregisterHook('footer')) {
         return false;
     }
     // Uninstall Tab
     $tab = new Tab((int) Tab::getIdFromClassName('AdminFacebookShop'));
     $tab->delete();
     $tab = new Tab((int) Tab::getIdFromClassName('AdminFacebookShopMain'));
     $tab->delete();
     return true;
 }
开发者ID:Oelan,项目名称:PrestaShop,代码行数:12,代码来源:beetailer.php

示例14: upgrade_module_0_5

/**
 * 
 * @param piwikanalyticsjs $module
 * @return boolean
 */
function upgrade_module_0_5($module)
{
    if (_PS_VERSION_ < '1.5' && _PS_VERSION_ > '1.3') {
        $PiwikAnalytics = Tab::getIdFromClassName('PiwikAnalytics');
        if (is_int($PiwikAnalytics) && $PiwikAnalytics > 0) {
            $tab = new Tab($PiwikAnalytics);
            $tab->delete();
        }
        return $this->registerHook('header') && $this->registerHook('footer') && $this->registerHook('search') && $this->registerHook('extraRight') && $this->registerHook('productfooter') && $this->registerHook('orderConfirmation') && $this->registerHook('AdminStatsModules');
    }
    return true;
}
开发者ID:Onasusweb,项目名称:piwikanalyticsjs-prestashop,代码行数:17,代码来源:install-0.5.php

示例15: uninstall

 public function uninstall()
 {
     $id_tab = (int) Tab::getIdFromClassName('AdminBlockCategories');
     if ($id_tab) {
         $tab = new Tab($id_tab);
         $tab->delete();
     }
     if (!parent::uninstall() || !Configuration::deleteByName('BLOCK_CATEG_MAX_DEPTH') || !Configuration::deleteByName('BLOCK_CATEG_DHTML') || !Configuration::deleteByName('BLOCK_CATEG_ROOT_CATEGORY')) {
         return false;
     }
     return true;
 }
开发者ID:vadia007,项目名称:paintings,代码行数:12,代码来源:blockcategories.php


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