SetPropertyValueCode
bool CIBlockElement::SetPropertyValueCode( int ELEMENT_ID, string PROPERTY_CODE, string PROPERTY_VALUE );The method sets the value of an element property.
Parameters
Parameter | Description |
---|---|
ELEMENT_ID | Element ID. |
PROPERTY_CODE | Mnemonic or numeric identifier of a property which is to be changed. |
PROPERTY_VALUE | New value; single value or an array depending on the property kind. |
See Also
Example
<? $arFile = CFile::MakeFileArray($_SERVER["DOCUMENT_ROOT"]."/images/add_basket.gif"); CIBlockElement::SetPropertyValueCode($ELEMENT_ID, "picture", $arFile); ?>
© «Bitrix24», 2001-2024