Documentation

Add

int
CIBlockPropertyEnum::Add(
 array fields
);

The method adds a new option of the LIST property value.

Parameters

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

Return Values

Returns the ID of the added option, or false otherwise.

See Also

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

    Example


    <?
    $ibpenum = new CIBlockPropertyEnum;
    if ($PropID = $ibpenum->Add(Array('PROPERTY_ID'=>$PROPERTY_ID, 
                                      'VALUE'=>'New Enum 1')))
        echo 'New ID:'.$PropID;
    ?>
    
  • © «Bitrix24», 2001-2024
    Up