UpdateDesc
CDBResult CFile::UpdateDesc( int file_id, string description )
The method updates description for a registered file. Returns an instance of the CDBResult class. Static method.
Parameters
Parameter | Description |
---|---|
file_id | Numerical file ID. |
description | New description to file. |
See Also
Examples of use
<? if ($rsElements = GetIBlockElementListEx($IBLOCK_TYPE, $IBLOCK_ID, false, array($ELEMENT_SORT_FIELD => $ELEMENT_SORT_ORDER, "ID" => "ASC"), false, $arrFilter)): $rsElements->NavStart($PAGE_ELEMENT_COUNT); while ($obElement = $rsElements->GetNextElement()): $arElement = $obElement->GetFields(); CFile::UpdateDesc($arElement["PREVIEW_PICTURE"], "Element # ".$arElement["ID"]); endwhile; endif; ?>
© «Bitrix24», 2001-2024