本文整理汇总了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;
}
示例2: uninstall
public function uninstall ()
{
$tab = new Tab(Tab::getIdFromClassName('AdminNewsletter'));
return parent::uninstall()
&& $tab->delete()
&& Configuration::deleteByName('NSletter_id_parent_tab');;
}
示例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;
}
示例4: _removeAjaxContoller
private function _removeAjaxContoller()
{
if ($tab_id = (int) Tab::getIdFromClassName('AdminThemeConfigurator')) {
$tab = new Tab($tab_id);
$tab->delete();
}
return true;
}
示例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;
}
示例6: uninstall
public function uninstall()
{
$id_tab = (int) Tab::getIdFromClassName('AdminDashgoals');
if ($id_tab) {
$tab = new Tab($id_tab);
$tab->delete();
}
return parent::uninstall();
}
示例7: uninstallModuleTab
private function uninstallModuleTab($tabClass)
{
$idTab = Tab::getIdFromClassName($tabClass);
if ($idTab != 0) {
$tab = new Tab($idTab);
$tab->delete();
return true;
}
return false;
}
示例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;
}
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}