本文整理汇总了PHP中IEM::_enableInfoTips方法的典型用法代码示例。如果您正苦于以下问题:PHP IEM::_enableInfoTips方法的具体用法?PHP IEM::_enableInfoTips怎么用?PHP IEM::_enableInfoTips使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IEM
的用法示例。
在下文中一共展示了IEM::_enableInfoTips方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public static final function init($reset = false)
{
$GLOBALS['ApplicationUrl'] = SENDSTUDIO_APPLICATION_URL;
if (defined('SENDSTUDIO_IS_SETUP') && SENDSTUDIO_IS_SETUP && !InterspireEvent::eventExists('IEM_MARKER_20090701')) {
IEM_Installer::RegisterEventListeners();
require_once IEM_ADDONS_PATH . '/interspire_addons.php';
$addons = new Interspire_Addons();
$addons->FixEnabledEventListeners();
InterspireEvent::eventCreate('IEM_MARKER_20090701');
}
if (!self::configInit($reset)) {
return false;
}
if (!self::sessionInit($reset)) {
return false;
}
if (!self::userInit($reset)) {
return false;
}
$tempUser = IEM::getCurrentUser();
$tempUserLanguage = 'default';
if (!empty($tempUser->user_language) && is_dir(IEM_PATH . "/language/{$tempUser->user_language}")) {
$tempUserLanguage = $tempUser->user_language;
}
require_once IEM_PATH . "/language/{$tempUserLanguage}/whitelabel.php";
require_once IEM_PATH . "/language/{$tempUserLanguage}/language.php";
self::$_enableInfoTips = false;
if (isset($tempUser->infotips) && $tempUser->infotips) {
self::$_enableInfoTips = true;
}
unset($tempUserLanguage);
unset($tempUser);
}
示例2: init
/**
* Initialize the framework
* @param Boolean $reset Whether or not to re-initialize the framework again
* @return Boolean Returns TRUE the application initializes without encountering any errors, FALSE otherwise
*/
public static final function init($reset = false)
{
$GLOBALS['ApplicationUrl'] = SENDSTUDIO_APPLICATION_URL;
// Defining IEM_MARKER in the event is part of the installation procedure
// If it is not there, we can assume that the stash file has been overwritten
// So we will need to restore it.
// TODO change reference to SENSTUDIO_IS_SETUP
if (defined('SENDSTUDIO_IS_SETUP') && SENDSTUDIO_IS_SETUP && !InterspireEvent::eventExists('IEM_MARKER_20090701')) {
IEM_Installer::RegisterEventListeners();
// Restore Addons listeners
require_once IEM_ADDONS_PATH . '/interspire_addons.php';
$addons = new Interspire_Addons();
$addons->FixEnabledEventListeners();
InterspireEvent::eventCreate('IEM_MARKER_20090701');
}
if (!self::configInit($reset)) {
return false;
}
if (!self::sessionInit($reset)) {
return false;
}
if (!self::userInit($reset)) {
return false;
}
// ----- Include common language variables
$tempUser = IEM::getCurrentUser();
$tempUserLanguage = 'default';
if (!empty($tempUser->user_language) && is_dir(IEM_PATH . "/language/{$tempUser->user_language}")) {
$tempUserLanguage = $tempUser->user_language;
}
require_once IEM_PATH . "/language/{$tempUserLanguage}/whitelabel.php";
require_once IEM_PATH . "/language/{$tempUserLanguage}/language.php";
self::$_enableInfoTips = false;
if (isset($tempUser->infotips) && $tempUser->infotips) {
self::$_enableInfoTips = true;
}
unset($tempUserLanguage);
unset($tempUser);
// -----
}