Documentation

Update

bool
CIBlockPropertyEnum::Update(
 int ID,
 array arFields
);

The method modifies the value option.

Parameters

ParameterDescription
ID Option ID.
arFields An array of the format Array("field"=>"value", ...). Contains values of all fields of a property value option.

Return Values

Returns true on success, or false otherwise.

See Also

  • CIBlockPropertyEnum::Add
  • Possible values for properties of the type LIST

    Example


    <?
    $ibpenum = new CIBlockPropertyEnum;
    $ibpenum->Update($PROPERTY_ENUM_ID, Array('VALUE'=>'Enum 1'));
    ?>
  • © «Bitrix24», 2001-2024