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


PHP CRM_Utils_File::flushDynamicResources方法代碼示例

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


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

示例1: rebuildMenuAndCaches

 /**
  * @param bool $triggerRebuild
  * @param bool $sessionReset
  *
  * @throws Exception
  */
 static function rebuildMenuAndCaches($triggerRebuild = FALSE, $sessionReset = FALSE)
 {
     $config = CRM_Core_Config::singleton();
     $config->clearModuleList();
     // also cleanup all caches
     $config->cleanupCaches($sessionReset || CRM_Utils_Request::retrieve('sessionReset', 'Boolean', CRM_Core_DAO::$_nullObject, FALSE, 0, 'GET'));
     CRM_Core_Menu::store();
     // also reset navigation
     CRM_Core_BAO_Navigation::resetNavigation();
     // also cleanup module permissions
     $config->cleanupPermissions();
     // also rebuild word replacement cache
     CRM_Core_BAO_WordReplacement::rebuild();
     // Clear dynamic js files
     CRM_Utils_File::flushDynamicResources();
     CRM_Core_BAO_Setting::updateSettingsFromMetaData();
     CRM_Core_Resources::singleton()->resetCacheCode();
     CRM_Case_XMLRepository::singleton(TRUE);
     // also rebuild triggers if requested explicitly
     if ($triggerRebuild || CRM_Utils_Request::retrieve('triggerRebuild', 'Boolean', CRM_Core_DAO::$_nullObject, FALSE, 0, 'GET')) {
         CRM_Core_DAO::triggerRebuild();
     }
     CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE);
     CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
 }
開發者ID:prashantgajare,項目名稱:civicrm-core,代碼行數:31,代碼來源:Invoke.php

示例2: rebuild

 /**
  * Rebuild
  */
 static function rebuild()
 {
     $id = CRM_Core_Config::domainID();
     $stringOverride = self::getAllAsConfigArray($id);
     $params = array('locale_custom_strings' => serialize($stringOverride));
     $wordReplacementSettings = CRM_Core_BAO_Domain::edit($params, $id);
     if ($wordReplacementSettings) {
         CRM_Core_Config::singleton()->localeCustomStrings = $stringOverride;
         // Reset navigation
         CRM_Core_BAO_Navigation::resetNavigation();
         // Clear js string cache
         CRM_Core_Resources::singleton()->flushStrings();
         // Clear dynamic js files which may contain localization
         CRM_Utils_File::flushDynamicResources();
         return TRUE;
     }
     return FALSE;
 }
開發者ID:prashantgajare,項目名稱:civicrm-core,代碼行數:21,代碼來源:WordReplacement.php


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