7namespace Bitrix\Iblock\PropertyIndex;
45 return "b_iblock_".$this->iblockId.
"_index";
56 if (!array_key_exists($this->iblockId, self::$exists))
93 'values' =>
array(0, 1),
95 ),
array(
"SECTION_ID",
"FACET_ID",
"VALUE",
"VALUE_NUM",
"ELEMENT_ID"));
144 public function addIndexEntry($sectionId, $elementId, $facetId, $value, $valueNum, $includeSubsections)
159 ".intval($sectionId).
"
160 ,".intval($elementId).
"
161 ,".intval($facetId).
"
163 ,".doubleval($valueNum).
"
164 ,".($includeSubsections > 0? 1: 0).
"
192 public function queueIndexEntry($sectionId, $elementId, $facetId, $value, $valueNum, $includeSubsections)
198 .intval($sectionId).
","
199 .intval($elementId).
","
200 .intval($facetId).
","
202 .doubleval($valueNum).
","
203 .($includeSubsections > 0? 1: 0)
205 $this->insertBuffer[] = $values;
206 $this->insertLength += mb_strlen($values);
207 if ($this->insertLength > $this->insertMax)
223 if ($this->insertBuffer)
228 INSERT INTO ".$this->getTableName().
"
229 (SECTION_ID ,ELEMENT_ID ,FACET_ID ,VALUE ,VALUE_NUM ,INCLUDE_SUBSECTIONS)
230 VALUES ".implode(
',', $this->insertBuffer).
"
233 $this->insertBuffer =
array();
234 $this->insertLength = 0;
269 return intval($propertyId * 2);
280 return intval($priceId * 2 + 1);
292 return ($facetId % 2) != 0;
304 return ($facetId % 2) == 0;
316 return intval($facetId / 2);
328 return intval(($facetId - 1) / 2);
static isPriceId($facetId)
static isPropertyId($facetId)
static facetIdToPriceId($facetId)
static priceIdToFacetId($priceId)
static propertyIdToFacetId($propertyId)
queueIndexEntry($sectionId, $elementId, $facetId, $value, $valueNum, $includeSubsections)
addIndexEntry($sectionId, $elementId, $facetId, $value, $valueNum, $includeSubsections)
deleteIndexElement($elementId)
static facetIdToPropertyId($facetId)
static getConnection($name="")
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)