本文整理汇总了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 = "     <b>";
$line_exit_format = "...   </b>";
$rel_dictionary = $dictionary;
// sourced by modules/TableDictionary.php
$render_table_close = "";
示例2: cleanCache
/**
* Clears cache.
*/
protected function cleanCache()
{
$mi = new ModuleInstaller();
$mi->silent = true;
Relationship::delete_cache();
$mi->rebuild_vardefs();
$mi->rebuild_tabledictionary();
}