1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
search_reindex.php
См. документацию.
1<?
3{
7
11
13 /*
14 arParams
15 PATH_TO_GROUP
16
17 BLOG_GROUP_ID
18 PATH_TO_GROUP_BLOG
19 PATH_TO_USER_BLOG
20
21 FORUM_ID
22 PATH_TO_GROUP_FORUM_MESSAGE
23 PATH_TO_USER_FORUM_MESSAGE
24
25 PHOTO_GROUP_IBLOCK_ID
26 PATH_TO_GROUP_PHOTO_ELEMENT
27 PHOTO_USER_IBLOCK_ID
28 PATH_TO_USER_PHOTO_ELEMENT
29
30 CALENDAR_GROUP_IBLOCK_ID
31 PATH_TO_GROUP_CALENDAR_ELEMENT
32
33 PATH_TO_GROUP_TASK_ELEMENT
34 PATH_TO_USER_TASK_ELEMENT
35
36 FILES_PROPERTY_CODE
37 FILES_FORUM_ID
38 FILES_GROUP_IBLOCK_ID
39 PATH_TO_GROUP_FILES_ELEMENT
40 FILES_USER_IBLOCK_ID
41 PATH_TO_USER_FILES_ELEMENT
42 */
43 public function __construct($user_id=0, $group_id=0, $arParams=array())
44 {
45 $this->_user_id = intval($user_id);
46 $this->_group_id = intval($group_id);
47 $this->_params = $arParams;
48 $this->_counter = 0;
49 }
50
51 function GetCounter()
52 {
53 return $this->_counter;
54 }
55
56 function InitSession($arType)
57 {
58 if(!array_key_exists("BX_SOCNET_REINDEX_SESS_ID", $_SESSION))
59 $_SESSION["BX_SOCNET_REINDEX_SESS_ID"] = array();
60
61 $key = md5(uniqid(""));
62 foreach($arType as $type)
63 $_SESSION["BX_SOCNET_REINDEX_SESS_ID"][$type] = $key;
64
65 $_SESSION["BX_SOCNET_REINDEX_SESS_ID"]["KEY"] = $key;
66 }
67
68 function ReindexForum($entity_type, $last_id, $path_template)
69 {
70 global $DB;
71
72 if(!CModule::IncludeModule('forum'))
73 return false;
74
75 $rsForumMessages = $DB->Query("
76 SELECT ft.ID TOPIC_ID, ft.SOCNET_GROUP_ID, ft.OWNER_ID, fm.ID
77 FROM
78 b_forum_topic ft
79 INNER JOIN b_forum_message fm ON fm.TOPIC_ID = ft.ID
80 WHERE
81 fm.ID > ".intval($last_id)."
82 ".($entity_type == "G"?
83 "AND ft.SOCNET_GROUP_ID IS NOT NULL AND ft.SOCNET_GROUP_ID > 0":
84 "AND (ft.SOCNET_GROUP_ID IS NULL OR ft.SOCNET_GROUP_ID = 0) AND ft.OWNER_ID IS NOT NULL"
85 )."
86 ORDER BY fm.ID
87 ");
88 while($arMessage = $rsForumMessages->Fetch())
89 {
90 $url = str_replace(
91 array(
92 "#user_id#",
93 "#group_id#",
94 "#topic_id#",
95 "#message_id#",
96 "#action#",
97 ),
98 array(
99 $arMessage["OWNER_ID"],
100 $arMessage["SOCNET_GROUP_ID"],
101 $arMessage["TOPIC_ID"],
102 $arMessage["ID"],
103 "",
104 ),
105 $path_template
106 );
107
108 CSearch::ChangeSite("forum", array(
109 SITE_ID => $url,
110 ), $arMessage["ID"]);
111
112 $arGroups = $this->GetSearchGroups(
113 $entity_type,
114 $entity_type=="G"? $arMessage["SOCNET_GROUP_ID"]: $arMessage["OWNER_ID"],
115 'forum',
116 'view'
117 );
118
119 $arParams = $this->GetSearchParams(
120 $entity_type,
121 $entity_type=="G"? $arMessage["SOCNET_GROUP_ID"]: $arMessage["OWNER_ID"],
122 'forum',
123 'view'
124 );
125
126 CSearch::ChangePermission('forum', $arGroups, $arMessage["ID"]);
127 CSearch::ChangeIndex("forum", array("UPD" => $this->_sess_id, "PARAMS" => $arParams), $arMessage["ID"]);
128
129 $this->_counter++;
130
131 if($this->_end_time && $this->_end_time <= time())
132 return $arMessage["ID"];
133 }
134
135 return false;
136 }
137
138 function GetBlog($ID)
139 {
140 if(!is_array($this->_blog_cache))
141 $this->_blog_cache = array();
142 if(!array_key_exists($ID, $this->_blog_cache))
143 {
144 global $DB;
145 $rsBlog = $DB->Query("
146 SELECT ID, OWNER_ID, SOCNET_GROUP_ID
147 FROM b_blog
148 WHERE ID = ".intval($ID)."
149 AND USE_SOCNET='Y'
150 AND GROUP_ID = ".intval($this->_params["BLOG_GROUP_ID"])."
151 ");
152 $this->_blog_cache[$ID] = $rsBlog->Fetch();
153 }
154 return $this->_blog_cache[$ID];
155 }
156
158 {
159 global $DB;
160
161 $ID = $arFields["ID"];
162 if($ID=="")
163 return true;
164 unset($arFields["ID"]);
165
166 switch(mb_substr($ID, 0, 1))
167 {
168 case "P":
169 $blog = $this->GetBlog($arFields["PARAM2"]);
170 if(
171 is_array($blog)
172 && intval($blog["SOCNET_GROUP_ID"]) <= 0
173 && intval($blog["OWNER_ID"]) > 0
174 && $this->_params["PATH_TO_USER_BLOG_POST"] <> ''
175 )
176 {
177 $paramsTmp = $this->GetSearchParams(
178 "U",
179 intval($blog["OWNER_ID"]),
180 'blog',
181 'view_post'
182 );
183 if(!empty($arFields["PARAMS"]))
184 {
185 $arFields["PARAMS"] = array_merge($paramsTmp, $arFields["PARAMS"]);
186 }
187 else
188 {
189 $arFields["PARAMS"] = $paramsTmp;
190 }
191
192 foreach($arFields["SITE_ID"] as $site_id => $url)
193 {
194 $arFields["SITE_ID"][$site_id] = str_replace(
195 array(
196 "#user_id#",
197 "#group_id#",
198 "#post_id#",
199 ),
200 array(
201 $blog["OWNER_ID"],
202 $blog["SOCNET_GROUP_ID"],
203 mb_substr($ID, 1),
204 ),
205 $this->_params["PATH_TO_USER_BLOG_POST"]
206 );
207 }
208
209 $arFields["REINDEX_FLAG"] = true;
210 CSearch::Index("blog", $ID, $arFields, false, $this->_sess_id);
211 $this->_counter++;
212 }
213 break;
214 case "C":
215 $blog = $this->GetBlog(intval($arFields["PARAM2"]));
216 if(
217 is_array($blog)
218 && intval($blog["SOCNET_GROUP_ID"]) <= 0
219 && intval($blog["OWNER_ID"]) > 0
220 && $this->_params["PATH_TO_USER_BLOG_COMMENT"] <> ''
221 )
222 {
223 $paramsTmp = $this->GetSearchParams(
224 "U",
225 intval($blog["OWNER_ID"]),
226 'blog',
227 'view_comment'
228 );
229 if(!empty($arFields["PARAMS"]))
230 {
231 $arFields["PARAMS"] = array_merge($paramsTmp, $arFields["PARAMS"]);
232 }
233 else
234 {
235 $arFields["PARAMS"] = $paramsTmp;
236 }
237
238 foreach($arFields["SITE_ID"] as $site_id => $url)
239 {
240 $arFields["SITE_ID"][$site_id] = str_replace(
241 array(
242 "#user_id#",
243 "#group_id#",
244 "#post_id#",
245 "#comment_id#",
246 ),
247 array(
248 $blog["OWNER_ID"],
249 $blog["SOCNET_GROUP_ID"],
250 mb_substr($arFields["PARAM2"], mb_strpos($arFields["PARAM2"], "|") + 1),
251 mb_substr($ID, 1),
252 ),
253 $this->_params["PATH_TO_USER_BLOG_COMMENT"]
254 );
255 }
256
257 $arFields["REINDEX_FLAG"] = true;
258 CSearch::Index("blog", $ID, $arFields, false, $this->_sess_id);
259 $this->_counter++;
260 }
261 break;
262 }
263
264 if($this->_end_time && $this->_end_time <= time())
265 return false;
266 else
267 return true;
268 }
269
271 {
272 if($this->_end_time && $this->_end_time <= time())
273 return false;
274 else
275 return true;
276 }
277
278 function ReindexBlog($entity_type, $last_id)
279 {
280 global $DB;
281
282 if(!CModule::IncludeModule('blog'))
283 return false;
284
285 if(mb_substr($last_id, 0, 1) == "0")
286 $last_id = "";
287
288 if($entity_type=="G")
289 return false;
290
292 "ID" => $last_id,
293 "MODULE" => "blog",
294 ), $this, "IndexBlogItemUser");
295
296 }
297
298 function UpdateForumTopicIndex($topic_id, $entity_type, $entity_id, $feature, $operation, $path_template)
299 {
300 global $DB;
301
302 if(!CModule::IncludeModule("forum"))
303 return;
304
305 $topic_id = intval($topic_id);
306
307 $rsForumTopic = $DB->Query("SELECT FORUM_ID FROM b_forum_topic WHERE ID = ".$topic_id);
308 $arForumTopic = $rsForumTopic->Fetch();
309 if(!$arForumTopic)
310 return;
311
312 $arGroups = $this->GetSearchGroups(
313 $entity_type,
314 $entity_id,
315 $feature,
316 $operation
317 );
318
319 CSearch::ChangePermission("forum", $arGroups, false, $arForumTopic["FORUM_ID"], $topic_id);
320
321 $rsForumMessages = $DB->Query("
322 SELECT ID
323 FROM b_forum_message
324 WHERE TOPIC_ID = ".intval($topic_id)."
325 ");
326 while($arMessage = $rsForumMessages->Fetch())
327 {
328 $url = str_replace(
329 array(
330 "#topic_id#",
331 "#message_id#",
332 "#action#",
333 ),
334 array(
335 $arTopic["ID"],
336 $arMessage["ID"],
337 "",
338 ),
339 $path_template
340 );
341
342 CSearch::ChangeSite("forum", array(
343 SITE_ID => $url,
344 ), $arMessage["ID"]);
345
346 $this->_counter++;
347 }
348
349 $arParams = $this->GetSearchParams(
350 $entity_type,
351 $entity_id,
352 $feature,
353 $operation
354 );
355
356 CSearch::ChangeIndex("forum", array("UPD" => $this->_sess_id, "PARAMS"=>$arParams), false, $arForumTopic["FORUM_ID"], $topic_id);
357 }
358
359 function ReindexIBlock($iblock_id, $entity_type, $feature, $operation, $path_template, $arFieldList, $last_id)
360 {
361 global $DB;
362
363 if(!CModule::IncludeModule("iblock"))
364 return false;
365
366 $arSections = array();
367
368 $rsElements = CIBlockElement::GetList(
369 array("ID"=>"asc"),
370 array(
371 "IBLOCK_ID" => $iblock_id,
372 ">ID" => intval($last_id),
373 "CHECK_PERMISSIONS" => "N",
374 ),
375 false, false,
376 array_merge(
377 array("ID", "IBLOCK_ID", "IBLOCK_TYPE_ID", "NAME", "TAGS", "TIMESTAMP_X", "IBLOCK_SECTION_ID"),
378 $arFieldList
379 )
380 );
381 while($arFields = $rsElements->Fetch())
382 {
383 if(!array_key_exists($arFields["IBLOCK_SECTION_ID"], $arSections))
384 {
385 $rsPath = CIBlockSection::GetNavChain($arFields["IBLOCK_ID"], $arFields["IBLOCK_SECTION_ID"]);
386 $arSection = $rsPath->Fetch();
387 if($entity_type == "G")
388 $arSections[$arFields["IBLOCK_SECTION_ID"]] = intval($arSection["SOCNET_GROUP_ID"]);
389 else
390 $arSections[$arFields["IBLOCK_SECTION_ID"]] = intval($arSection["CREATED_BY"]);
391 }
392 $entity_id = $arSections[$arFields["IBLOCK_SECTION_ID"]];
393
394 if($entity_id)
395 {
396 $url = str_replace(
397 array(
398 "#user_id#",
399 "#group_id#",
400 "#user_alias#",
401 "#section_id#",
402 "#element_id#",
403 "#task_id#",
404 "#name#",
405 ),
406 array(
407 $entity_id,
408 $entity_id,
409 ($entity_type == "G"? "group_": "user_").$entity_id,
410 $arFields["IBLOCK_SECTION_ID"],
411 $arFields["ID"],
412 $arFields["ID"],
413 rawurlencode($arFields["NAME"]),
414 ),
415 $path_template
416 );
417
418 $body = "";
419 if($feature == "wiki")
420 $CWikiParser = new CWikiParser();
421 foreach($arFieldList as $field)
422 {
423 $text = "";
424
425 if($field == "PREVIEW_TEXT" || $field == "DETAIL_TEXT")
426 {
427 if(isset($CWikiParser))
428 $text = HTMLToTxt($CWikiParser->parseForSearch($arFields[$field]));
429 elseif(isset($arFields[$field."_TYPE"]) && $arFields[$field."_TYPE"] === "html")
430 $text = HTMLToTxt($arFields[$field]);
431 else
432 $text = $arFields[$field];
433 }
434 elseif($field == $this->_file_property)
435 {
436 $arFile = CIBlockElement::__GetFileContent($arFields[$this->_file_property."_VALUE"]);
437 if(is_array($arFile))
438 {
439 $text = $arFile["CONTENT"];
440 $arFields["TAGS"] .= ",".$arFile["PROPERTIES"][COption::GetOptionString("search", "page_tag_property")];
441 }
442 }
443 elseif($field == "PROPERTY_FORUM_TOPIC_ID")
444 {
445 $topic_id = intval($arFields["PROPERTY_FORUM_TOPIC_ID_VALUE"]);
446 if($topic_id)
447 $this->UpdateForumTopicIndex($topic_id, $entity_type, $entity_id, $feature, $operation, $this->Url($url, array("MID" => "#message_id#"), "message#message_id#"));
448 }
449
450 $body .= $text."\n\r";
451 }
452
453 if(isset($CWikiParser))
454 $title = preg_replace('/^category:/iu', GetMessage('CATEGORY_NAME').':', $arFields['NAME']);
455 else
456 $title = $arFields["NAME"];
457
458 $arPermissions = $this->GetSearchGroups(
459 $entity_type,
460 $entity_id,
461 $feature,
462 $operation
463 );
464
465 if (CIBlock::GetArrayByID($arFields["IBLOCK_ID"], "RIGHTS_MODE") == "E")
466 {
467 $obElementRights = new CIBlockElementRights($arFields["IBLOCK_ID"], $arFields["ID"]);
468 $arPermissions = $obElementRights->GetGroups(array("element_read"));
469 }
470
471 CSearch::Index("socialnetwork", $arFields["ID"], array(
472 "LAST_MODIFIED" => $arFields["TIMESTAMP_X"],
473 "TITLE" => $title,
474 "BODY" => $body,
475 "SITE_ID" => array(SITE_ID => $url),
476 "PARAM1" => $arFields["IBLOCK_TYPE_ID"],
477 "PARAM2" => $arFields["IBLOCK_ID"],
478 "PARAM3" => $entity_id,
479 "TAGS" => $arFields["TAGS"],
480 "PERMISSIONS" => $arPermissions,
481 "PARAMS" => $this->GetSearchParams(
482 $entity_type,
483 $entity_id,
484 $feature,
485 $operation
486 ),
487 "REINDEX_FLAG" => true,
488 ), true, $this->_sess_id);
489
490 $this->_counter++;
491 }
492
493 if($this->_end_time && $this->_end_time <= time())
494 return $arFields["ID"];
495 }
496
497 return false;
498 }
499
500 function ReindexGroups($last_id)
501 {
502 return $this->OnSearchReindex(array(
503 "MODULE" => "socialnetwork",
504 ), $this, "IndexItem");
505 }
506
508 {
509 $ID = $arFields["ID"];
510 if($ID=="")
511 return true;
512 unset($arFields["ID"]);
513
514 $arFields["REINDEX_FLAG"] = true;
515 CSearch::Index("socialnetwork", $ID, $arFields, false, $this->_sess_id);
516
517 $this->_counter++;
518
519// if($this->_end_time && $this->_end_time <= time())
520// return false;
521// else
522 return true;
523 }
524
525 function StepIndex($arSteps, $current_step, $last_id, $timeout=0)
526 {
527 global $DB;
528
529 if(!CModule::IncludeModule('search'))
530 return false;
531
532 foreach ($_SESSION["BX_SOCNET_REINDEX_SESS_ID"] as $key => $value)
533 $_SESSION["BX_SOCNET_REINDEX_SESS_ID"][$key] = $DB->ForSQL($value);
534
535 if($timeout > 0)
536 $this->_end_time = time()+$timeout;
537 else
538 $this->_end_time = 0;
539
540 $this->_counter = 0;
541
542 $this->_sess_id = $_SESSION["BX_SOCNET_REINDEX_SESS_ID"]["KEY"];
543
544 do
545 {
546 $next_step = array_shift($arSteps);
547 } while ($next_step != $current_step);
548
549 if(count($arSteps) <= 0)
550 $next_step = "end";
551 else
552 $next_step = array_shift($arSteps);
553
554 switch($current_step)
555 {
556
557 case "init":
558 $last_id = 0;
559 break;
560
561 case "groups":
562 $last_id = $this->ReindexGroups($last_id);
563 break;
564
565 case "group_blogs":
566 $blog_group = intval($this->_params["BLOG_GROUP_ID"]);
567 if($blog_group)
568 $last_id = $this->ReindexBlog("G", $last_id);
569 break;
570
571 case "user_blogs":
572 $blog_group = intval($this->_params["BLOG_GROUP_ID"]);
573 if($blog_group)
574 $last_id = $this->ReindexBlog("U", $last_id);
575 break;
576
577 case "group_forums":
578 $path_template = trim($this->_params["PATH_TO_GROUP_FORUM_MESSAGE"]);
579 if($path_template <> '')
580 {
581 $last_id = $this->ReindexForum("G", $last_id, $path_template);
582 }
583 break;
584
585 case "user_forums":
586 $path_template = trim($this->_params["PATH_TO_USER_FORUM_MESSAGE"]);
587 if($path_template <> '')
588 {
589 $last_id = $this->ReindexForum("U", $last_id, $path_template);
590 }
591 break;
592
593 case "group_photos":
594 $path_template = trim($this->_params["PATH_TO_GROUP_PHOTO_ELEMENT"]);
595 $iblock = intval($this->_params["PHOTO_GROUP_IBLOCK_ID"]);
596
597 if(mb_strlen($path_template) && $iblock)
598 $last_id = $this->ReindexIBlock($iblock, "G", "photo", "view", $path_template, array("PREVIEW_TEXT", "PROPERTY_FORUM_TOPIC_ID"), $last_id);
599 else
600 $last_id = 0;
601 break;
602
603 case "user_photos":
604 $path_template = trim($this->_params["PATH_TO_USER_PHOTO_ELEMENT"]);
605 $iblock = intval($this->_params["PHOTO_USER_IBLOCK_ID"]);
606
607 if(mb_strlen($path_template) && $iblock)
608 $last_id = $this->ReindexIBlock($iblock, "U", "photo", "view", $path_template, array("PREVIEW_TEXT", "PROPERTY_FORUM_TOPIC_ID"), $last_id);
609 else
610 $last_id = 0;
611 break;
612
613 case "group_calendars":
614 $path_template = trim($this->_params["PATH_TO_GROUP_CALENDAR_ELEMENT"]);
615 $iblock = intval($this->_params["CALENDAR_GROUP_IBLOCK_ID"]);
616
617 if(mb_strlen($path_template) && $iblock)
618 $last_id = $this->ReindexIBlock($iblock, "G", "calendar", "view", $path_template, array("DETAIL_TEXT"), $last_id);
619 else
620 $last_id = 0;
621 break;
622
623 case "group_files":
624 $path_template = trim($this->_params["PATH_TO_GROUP_FILES_ELEMENT"]);
625 $iblock = intval($this->_params["FILES_GROUP_IBLOCK_ID"]);
626
627 $property = mb_strtoupper(trim($this->_params["FILES_PROPERTY_CODE"]));
628 if($property == '')
629 $property = "FILE";
630 $this->_file_property = "PROPERTY_".$property;
631
632 if(mb_strlen($path_template) && $iblock)
633 $last_id = $this->ReindexIBlock($iblock, "G", "files", "view", $path_template, array($this->_file_property, "PROPERTY_FORUM_TOPIC_ID"), $last_id);
634 else
635 $last_id = 0;
636 break;
637
638 case "group_wiki":
639 if(CModule::IncludeModule("wiki"))
640 {
641 $path_template = trim($this->_params["PATH_TO_GROUP"])."wiki/#name#/";
642 $iblock = intval(COption::GetOptionInt("wiki", "socnet_iblock_id"));
643
644 if(mb_strlen($path_template) && $iblock)
645 $last_id = $this->ReindexIBlock($iblock, "G", "wiki", "view", $path_template, array("DETAIL_TEXT"), $last_id);
646 else
647 $last_id = 0;
648 }
649 break;
650
651 case "user_files":
652 $path_template = trim($this->_params["PATH_TO_USER_FILES_ELEMENT"]);
653 $iblock = intval($this->_params["FILES_USER_IBLOCK_ID"]);
654
655 $property = mb_strtoupper(trim($this->_params["FILES_PROPERTY_CODE"]));
656 if($property == '')
657 $property = "FILE";
658 $this->_file_property = "PROPERTY_".$property;
659
660 if(mb_strlen($path_template) && $iblock)
661 $last_id = $this->ReindexIBlock($iblock, "U", "files", "view", $path_template, array($this->_file_property, "PROPERTY_FORUM_TOPIC_ID"), $last_id);
662 else
663 $last_id = 0;
664 break;
665
666 case "delete_old":
667 CSearch::DeleteOld($_SESSION["BX_SOCNET_REINDEX_SESS_ID"], "socialnetwork");
668 $last_id = 0;
669 break;
670
671 default:
672 $last_id = 0;
673 break;
674 }
675
676 if($last_id > 0 || preg_match('/^.\d/', $last_id))
677 return array("step" => $current_step, "last_id" => $last_id);
678 else
679 return array("step" => $next_step, "last_id" => 0);
680 }
681
682 public static function OnBeforeFullReindexClear()
683 {
684 }
685
686 public static function OnBeforeIndexDelete($strWhere)
687 {
688 }
689}
$arParams
Определения access_dialog.php:21
$type
Определения options.php:106
static ChangeIndex($MODULE_ID, $arFields, $ITEM_ID=false, $PARAM1=false, $PARAM2=false, $SITE_ID=false)
Определения search.php:3044
static ChangePermission($MODULE_ID, $arGroups, $ITEM_ID=false, $PARAM1=false, $PARAM2=false, $SITE_ID=false, $PARAMS=false)
Определения search.php:3097
static DeleteOld($SESS_ID, $MODULE_ID='', $SITE_ID='')
Определения search.php:2836
static ChangeSite($MODULE_ID, $arSite, $ITEM_ID=false, $PARAM1=false, $PARAM2=false, $SITE_ID=false)
Определения search.php:3069
static Index($MODULE_ID, $ITEM_ID, $arFields, $bOverWrite=false, $SEARCH_SESS_ID='')
Определения search.php:1302
static OnSearchReindex($NS=Array(), $oCallback=NULL, $callback_method="")
Определения blog_search.php:89
Определения search.php:4
static OnSearchReindex($NS=Array(), $oCallback=NULL, $callback_method="")
Определения search.php:218
static GetSearchGroups($entity_type, $entity_id, $feature, $operation)
Определения search.php:162
Url($url, $params, $ancor)
Определения search.php:502
static GetSearchParams($entity_type, $entity_id, $feature, $operation)
Определения search.php:154
__construct($user_id=0, $group_id=0, $arParams=array())
Определения search_reindex.php:43
IndexBlogItemGroup($arFields)
Определения search_reindex.php:270
GetBlog($ID)
Определения search_reindex.php:138
static OnBeforeIndexDelete($strWhere)
Определения search_reindex.php:686
IndexBlogItemUser($arFields)
Определения search_reindex.php:157
StepIndex($arSteps, $current_step, $last_id, $timeout=0)
Определения search_reindex.php:525
ReindexGroups($last_id)
Определения search_reindex.php:500
ReindexBlog($entity_type, $last_id)
Определения search_reindex.php:278
IndexItem($arFields)
Определения search_reindex.php:507
ReindexForum($entity_type, $last_id, $path_template)
Определения search_reindex.php:68
ReindexIBlock($iblock_id, $entity_type, $feature, $operation, $path_template, $arFieldList, $last_id)
Определения search_reindex.php:359
UpdateForumTopicIndex($topic_id, $entity_type, $entity_id, $feature, $operation, $path_template)
Определения search_reindex.php:298
GetCounter()
Определения search_reindex.php:51
InitSession($arType)
Определения search_reindex.php:56
static OnBeforeFullReindexClear()
Определения search_reindex.php:682
Определения wiki_parser.php:6
$arFields
Определения dblapprove.php:5
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$arGroups
Определения options.php:1766
if($ajaxMode) $ID
Определения get_user.php:27
if(! $catalogEdit->isSuccess()) $iblock
Определения iblock_catalog_edit.php:38
global $DB
Определения cron_frame.php:29
HTMLToTxt($str, $strSiteUrl="", $aDelete=[], $maxlen=70)
Определения tools.php:2587
GetMessage($name, $aReplace=null)
Определения tools.php:3397
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393
if(empty($signedUserToken)) $key
Определения quickway.php:257
$text
Определения template_pdf.php:79
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения waybill.php:936
$title
Определения pdf.php:123
$site_id
Определения sonet_set_content_view.php:9
const SITE_ID
Определения sonet_set_content_view.php:12
$url
Определения iframe.php:7
$arSections
Определения yandex_run.php:805