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


PHP rebuildSprites函數代碼示例

本文整理匯總了PHP中rebuildSprites函數的典型用法代碼示例。如果您正苦於以下問題:PHP rebuildSprites函數的具體用法?PHP rebuildSprites怎麽用?PHP rebuildSprites使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: testSugarSpriteBuilder

 public function testSugarSpriteBuilder()
 {
     require_once 'modules/UpgradeWizard/uw_utils.php';
     rebuildSprites(true);
     $this->assertTrue(file_exists('cache/sprites'), 'Assert that we have built the sprites directory');
     $files = glob('cache/sprites/default/*.png');
     $this->assertTrue(!empty($files), 'Assert that we have created .png sprite images');
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:8,代碼來源:SugarSpriteBuilderTest.php

示例2: logThis

{
   logThis('Add global search for custom modules start .', $path);
   add_unified_search_to_custom_modules_vardefs();
   logThis('Add global search for custom modules finished .', $path);
}
*/
//Upgrade system displayed tabs and subpanels
if (function_exists('upgradeDisplayedTabsAndSubpanels')) {
    upgradeDisplayedTabsAndSubpanels($_SESSION['current_db_version']);
}
//Unlink files that have been removed
if (function_exists('unlinkUpgradeFiles')) {
    unlinkUpgradeFiles($_SESSION['current_db_version']);
}
if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) {
    rebuildSprites(true);
}
require_once 'modules/Administration/upgrade_custom_relationships.php';
upgrade_custom_relationships();
require_once 'modules/UpgradeWizard/uw_utils.php';
/*
if($_SESSION['current_db_version'] < '620')
{
	upgradeDateTimeFields($path);
	upgradeDocumentTypeFields($path);
}
*/
//Update the license
logThis('Start Updating the license ', $path);
ob_start();
check_now(get_sugarbeat());
開發者ID:netconstructor,項目名稱:sugarcrm_dev,代碼行數:31,代碼來源:end.php

示例3: action_callRebuildSprites

 public function action_callRebuildSprites()
 {
     global $current_user;
     $this->view = 'ajax';
     if (function_exists('imagecreatetruecolor')) {
         if (is_admin($current_user)) {
             require_once 'modules/UpgradeWizard/uw_utils.php';
             rebuildSprites(false);
         }
     } else {
         echo $mod_strings['LBL_SPRITES_NOT_SUPPORTED'];
         $GLOBALS['log']->error($mod_strings['LBL_SPRITES_NOT_SUPPORTED']);
     }
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:14,代碼來源:controller.php


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