本文整理汇总了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');
}
示例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());
示例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']);
}
}