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