- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/classes/general/sharepoint.php
- Класс: CAllIntranetSharepoint
- Вызов: CAllIntranetSharepoint::SetPropertyValue
static function SetPropertyValue($XML_ID, $FIELD, $value)
{
$dbRes = CIBlockElement::GetList(array(), array('XML_ID' => $XML_ID, "CHECK_PERMISSIONS" => "N"));
if ($arEl = $dbRes->Fetch())
{
if ($prop = self::__prop($FIELD))
{
CIBlockElement::SetPropertyValuesEx($arEl['ID'], false, array($prop => $value));
}
else
{
if (is_array($value) && count($value) == 1)
$value = $value[0];
$obEl = new CIBlockElement();
$obEl->Update($arEl['ID'], array($FIELD => $value));
}
}
return true;
}