當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ModuleInstaller::rebuild_vardefs方法代碼示例

本文整理匯總了PHP中ModuleInstaller::rebuild_vardefs方法的典型用法代碼示例。如果您正苦於以下問題:PHP ModuleInstaller::rebuild_vardefs方法的具體用法?PHP ModuleInstaller::rebuild_vardefs怎麽用?PHP ModuleInstaller::rebuild_vardefs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ModuleInstaller的用法示例。


在下文中一共展示了ModuleInstaller::rebuild_vardefs方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ModuleInstaller

header('Content-Type: text/html; charset=UTF-8');
// Bypass output buffering if enforced by FastCGI implementation
header('X-Accel-Buffering: no');
// Flush after each output so the user can see the progress in real-time
ob_implicit_flush();
// When output_buffering is enabled - which is recommended in production -
// make sure we flush the current output buffer(s) otherwise we are still
// buffering at this point and real-time updates wont make it to the screen.
while (@ob_end_flush()) {
}
require_once 'install/install_utils.php';
// since we need to make sure we have even the custom tabledictionary items in there
$mi = new ModuleInstaller();
$mi->silent = true;
$mi->rebuild_tabledictionary();
$mi->rebuild_vardefs();
require_once 'include/MetaDataManager/MetaDataManager.php';
MetaDataManager::disableCache();
include "modules/Trackers/tracker_perfMetaData.php";
include "modules/Trackers/tracker_queriesMetaData.php";
include "modules/Trackers/tracker_sessionsMetaData.php";
include "modules/Trackers/tracker_tracker_queriesMetaData.php";
require_once 'modules/TableDictionary.php';
$trackerManager = TrackerManager::getInstance();
$trackerManager->pause();
$cache_dir = sugar_cached("");
$line_entry_format = "&nbsp&nbsp&nbsp&nbsp&nbsp<b>";
$line_exit_format = "... &nbsp&nbsp</b>";
$rel_dictionary = $dictionary;
// sourced by modules/TableDictionary.php
$render_table_close = "";
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:31,代碼來源:performSetup.php

示例2: cleanCache

 /**
  * Clears cache.
  */
 protected function cleanCache()
 {
     $mi = new ModuleInstaller();
     $mi->silent = true;
     Relationship::delete_cache();
     $mi->rebuild_vardefs();
     $mi->rebuild_tabledictionary();
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:11,代碼來源:1_ClearVarDefs.php


注:本文中的ModuleInstaller::rebuild_vardefs方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。