95 $connection = \Bitrix\Main\Application::getConnection();
99 if ($this->
queue->getElement($this->iblockId, $this->sectionId) ===
false)
101 $ids = $this->
queue->get($this->iblockId);
102 $query = $connection->query(
"
112 b_iblock_section_iprop IP
113 INNER JOIN b_iblock_iproperty P ON P.ID = IP.IPROP_ID
115 IP.IBLOCK_ID = ".$this->iblockId.
"
116 AND IP.SECTION_ID in (".implode(
", ", $ids).
")
119 while ($row = $query->fetch())
121 $result[$row[
"SECTION_ID"]][$row[
"CODE"]] = $row;
123 $this->
queue->set($this->iblockId, $result);
125 $result = $this->
queue->getElement($this->iblockId, $this->sectionId);
129 $sqlHelper = $connection->getSqlHelper();
137 $result = parent::queryValues();
138 foreach ($result as $row)
144 $sqlHelper->forSql($row[
"VALUE"]),
147 $this->
insertValues(
"b_iblock_section_iprop", $fields, $rows);