Пример #1
0
define('BX_INTRANET_SP_LOCK_TIME', 300);
define('BX_INTRANET_SP_QUEUE_COUNT', 5);
define('BX_INTRANET_SP_QUEUE_COUNT_MANUAL', 50);
define('BX_INTRANET_SP_LOG_COUNT', 3);
define('BX_INTRANET_SP_LOG_COUNT_MANUAL', 30);
define('BX_INTRANET_SP_NUM_ROWS_AUTO', 50);
define('BX_INTRANET_SP_NUM_ROWS_MANUAL', 100);
define('BX_INTRANET_SP_UF_NAME', 'UF_SP_ID');
define('SONET_INTRANET_NEW_USER_ENTITY', 'IN');
define('SONET_INTRANET_NEW_USER_EVENT_ID', 'intranet_new_user');
define('SONET_INTRANET_NEW_USER_COMMENT_EVENT_ID', 'intranet_new_user_comment');
IncludeModuleLangFile(__FILE__);
global $DBType;
CModule::AddAutoloadClasses("intranet", array("CIntranetUtils" => "classes/general/utils.php", "CIntranetSearch" => "tools/search.php", "CIntranetSearchConverter" => "tools/search.php", "CIntranetSearchConverters" => "tools/search.php", "CIntranetNotify" => "classes/general/notify.php", "CIntranetTasks" => "classes/general/tasks.php", "CEventCalendar" => "classes/general/event_calendar.php", "CIntranetCalendarWS" => "classes/general/ws_calendar.php", "CIntranetContactsWS" => "classes/general/ws_contacts.php", "CIntranetTasksWS" => "classes/general/ws_tasks.php", "CIntranetRestService" => "classes/general/rest.php", "CIntranetToolbar" => "classes/general/toolbar.php", "CIntranetTasksDocument" => "classes/general/tasks_document.php", "CIntranetSharepoint" => "classes/" . $DBType . "/sharepoint.php", "CIntranetSharepointQueue" => "classes/" . $DBType . "/sharepoint_queue.php", "CIntranetSharepointLog" => "classes/" . $DBType . "/sharepoint_log.php", "CIntranetAuthProvider" => "classes/general/authproviders.php", "CRatingRulesIntranet" => "classes/general/rating_rules.php", "CRatingsComponentsIntranet" => "classes/" . $DBType . "/ratings_components.php", "CIntranetPlanner" => "classes/general/planner.php", "CIntranetInviteDialog" => "classes/general/invite_dialog.php"));
//loads custom language messages for organization types
CIntranetUtils::LoadCustomMessages();
$GLOBALS['INTRANET_TOOLBAR'] = new CIntranetToolbar();
CJSCore::RegisterExt('intranet_structure', array('js' => '/bitrix/js/intranet/structure.js', 'lang' => '/bitrix/modules/intranet/lang/' . LANGUAGE_ID . '/js_core_intranet_structure.php', 'rel' => array('ajax', 'popup')));
CJSCore::RegisterExt('planner', array('js' => '/bitrix/js/intranet/core_planner.js', 'css' => '/bitrix/js/intranet/core_planner.css', 'lang' => '/bitrix/modules/intranet/lang/' . LANGUAGE_ID . '/js_core_intranet_planner.php', 'rel' => array('date')));
include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/intranet/properties.php";
/*patchlimitationmutatormark1*/
class CIntranetEventHandlers
{
    public static function SPRegisterUpdatedItem($arFields)
    {
        if (CBXFeatures::IsFeatureEnabled('intranet_sharepoint')) {
            if (CIntranetSharepoint::$bUpdateInProgress) {
                return;
            }
            $dbRes = CIntranetSharepoint::GetByID($arFields['IBLOCK_ID']);
            if ($arRes = $dbRes->Fetch()) {