/** * Deletes index and mark iblock as having none. * * @param integer $iblockId Information block identifier. * * @return void */ public static function deleteIndex($iblockId) { self::dropIfExists($iblockId); \Bitrix\Iblock\IblockTable::update($iblockId, array("PROPERTY_INDEX" => "N")); }
/** * End of index creation. Marks iblock as indexed. * * @return boolean */ public function endIndex() { \Bitrix\Iblock\IblockTable::update($this->iblockId, array("PROPERTY_INDEX" => "Y")); if ($this->skuIblockId) { \Bitrix\Iblock\IblockTable::update($this->skuIblockId, array("PROPERTY_INDEX" => "Y")); } return true; }