Ejemplo n.º 1
0
 /**
  * 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"));
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }