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


PHP Variable::delete方法代码示例

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


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

示例1: uninstall

 public function uninstall()
 {
     $ret = true;
     if ($ret) {
         $ret = Variable::delete('mail_from_addr');
     }
     if ($ret) {
         $ret = Variable::delete('mail_from_name');
     }
     if ($ret) {
         $ret = Variable::delete('mail_use_replyto');
     }
     if ($ret) {
         $ret = Variable::delete('mail_method');
     }
     if ($ret) {
         $ret = Variable::delete('mail_user');
     }
     if ($ret) {
         $ret = Variable::delete('mail_password');
     }
     if ($ret) {
         $ret = Variable::delete('mail_host');
     }
     if ($ret) {
         $ret = Variable::delete('mail_security');
     }
     if ($ret) {
         $ret = Variable::delete('mail_auth');
     }
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     return $ret;
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:33,代码来源:MailInstall.php

示例2: uninstall

 public function uninstall()
 {
     Base_ThemeCommon::uninstall_default_theme(Base_User_LoginInstall::module_name());
     Variable::delete('host_ban_time');
     Variable::delete('host_ban_nr_of_tries');
     Variable::delete('host_ban_by_login');
     return DB::DropTable('user_password') && DB::DropTable('user_login_ban') && DB::DropTable('user_autologin') && DB::DropTable('user_reset_pass');
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:8,代码来源:LoginInstall.php

示例3: uninstall

 public function uninstall()
 {
     recursive_rmdir(DATA_DIR . '/Base_Theme/templates/default/images');
     Variable::delete('default_theme');
     Variable::delete('preload_image_cache_default');
     Variable::delete('preload_image_cache_selected');
     return true;
 }
开发者ID:62BRAINS,项目名称:EPESI,代码行数:8,代码来源:ThemeInstall.php

示例4: delete

 public function delete()
 {
     if ($this->id > 0) {
         $variable = new Variable($this->nom);
         parent::delete();
         ActionsModules::instance()->appel_module("delvariable", $variable);
     }
     redirige("variable.php");
 }
开发者ID:anti-conformiste,项目名称:thelia1,代码行数:9,代码来源:VariableAdmin.class.php

示例5: uninstall

 public function uninstall()
 {
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     Variable::delete('printers_registered', false);
     Variable::delete('print_document_types', false);
     Variable::delete('print_href_callback', false);
     Variable::delete('print_disabled_templates', false);
     return true;
 }
开发者ID:62BRAINS,项目名称:EPESI,代码行数:9,代码来源:PrintInstall.php

示例6: uninstall

 public function uninstall()
 {
     Variable::delete('logo_file');
     Variable::delete('login_logo_file');
     Variable::delete('base_page_title');
     Variable::delete('show_caption_in_title');
     Variable::delete('show_module_indicator');
     Base_ThemeCommon::uninstall_default_theme(Base_MainModuleIndicatorInstall::module_name());
     return true;
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:10,代码来源:MainModuleIndicatorInstall.php

示例7: uninstall

 public function uninstall()
 {
     return Variable::delete('default_lang');
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:4,代码来源:LangInstall.php

示例8: Variable

            $variable = new Variable();
            if ($variable->charger_id($id)) {
                if ($valeur != $variable->valeur) {
                    $variable->valeur = $valeur;
                    $variable->maj();
                    ActionsModules::instance()->appel_module("modvariable", $variable);
                }
            }
        }
    }
    // Ajouter ?
    $nom = lireParam('ajout_nom', 'string');
    if ($nom != '') {
        $variable = new Variable();
        $variable->nom = $nom;
        $variable->valeur = lireParam('ajout_valeur', 'string');
        $variable->protege = 0;
        $variable->cache = 0;
        $variable->add();
        ActionsModules::instance()->appel_module("addvariable", $variable);
    }
} else {
    if ($action == "supprimer") {
        $variable = new Variable();
        if ($variable->charger_id(intval(lireParam('id', 'int')))) {
            $variable->delete();
        }
        ActionsModules::instance()->appel_module("delvariable", $variable);
    }
}
redirige("variable.php");
开发者ID:anti-conformiste,项目名称:thelia1,代码行数:31,代码来源:variable_modifier.php

示例9: uninstall

 public function uninstall()
 {
     Variable::delete('error_mail');
     return true;
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:5,代码来源:ErrorInstall.php

示例10: defined

<?php

defined("_VALID_ACCESS") || die('Direct access forbidden');
Variable::delete('utils_attachments_google_user', false);
Variable::delete('utils_attachments_google_pass', false);
@DB::DropTable('utils_attachment_googledocs');
开发者ID:cretzu89,项目名称:EPESI,代码行数:6,代码来源:20151127_remove_google_docs.php

示例11: uninstall

 public function uninstall()
 {
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     return Variable::delete('allow_lang_change');
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:5,代码来源:AdministratorInstall.php

示例12: defined

<?php

defined("_VALID_ACCESS") || die('Direct access forbidden');
Variable::delete('preload_image_cache_default');
Variable::delete('preload_image_cache_selected');
开发者ID:cretzu89,项目名称:EPESI,代码行数:5,代码来源:20150526_remove_preload_images.php

示例13: clear_license_key

 public static function clear_license_key($only_current = true)
 {
     $license_keys = Variable::get(self::VAR_LICENSE_KEY, false);
     if (!$only_current || !is_array($license_keys)) {
         Variable::delete(self::VAR_LICENSE_KEY, false);
         return;
     }
     unset($license_keys[self::get_server_url_base()]);
     Variable::set(self::VAR_LICENSE_KEY, $license_keys);
 }
开发者ID:62BRAINS,项目名称:EPESI,代码行数:10,代码来源:EssClientCommon_0.php

示例14: uninstall

 public function uninstall()
 {
     $this->drop_all_rc_tables();
     Utils_RecordBrowserCommon::delete_addon('rc_mails', 'CRM/Roundcube', 'attachments_addon');
     Utils_RecordBrowserCommon::delete_addon('contact', 'CRM/Roundcube', 'addon');
     Utils_RecordBrowserCommon::delete_addon('company', 'CRM/Roundcube', 'addon');
     DB::DropTable('rc_mails_attachments');
     DB::DropTable('rc_mails_attachments_download');
     Utils_RecordBrowserCommon::uninstall_recordset('rc_mails');
     Utils_RecordBrowserCommon::uninstall_recordset('rc_accounts');
     Utils_RecordBrowserCommon::uninstall_recordset('rc_multiple_emails');
     Utils_CommonDataCommon::remove('CRM/Roundcube/Security');
     Utils_RecordBrowserCommon::unregister_processing_callback('rc_accounts', array('CRM_RoundcubeCommon', 'submit_account'));
     Utils_RecordBrowserCommon::unregister_processing_callback('rc_mails', array('CRM_RoundcubeCommon', 'submit_mail'));
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     Variable::delete('crm_roundcube_global_signature');
     return true;
 }
开发者ID:62BRAINS,项目名称:EPESI,代码行数:18,代码来源:RoundcubeInstall.php

示例15: download_module

 /**
  * Download module to epesi installation.
  * @param array $module_license module license data
  * @return mixed string with error message or true on success
  */
 public static function download_module($module_license)
 {
     // downloading invalidates updates count so remove
     // store updates count to perform check again next time.
     Variable::delete('epesi_store_updates', false);
     try {
         $file = self::download_module_file($module_license);
         self::extract_module_file($file);
         self::store_info_about_downloaded_module($module_license, $file);
         self::post_install_refresh_by_ajax();
     } catch (Exception $e) {
         return $e->getMessage();
     }
     return true;
 }
开发者ID:cretzu89,项目名称:EPESI,代码行数:20,代码来源:EpesiStoreCommon_0.php


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