Add
int CIBlockPropertyEnum::Add( array fields );
The method adds a new option of the LIST property value.
Parameters
Parameter | Description |
---|---|
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
Example
<? $ibpenum = new CIBlockPropertyEnum; if ($PropID = $ibpenum->Add(Array('PROPERTY_ID'=>$PROPERTY_ID, 'VALUE'=>'New Enum 1'))) echo 'New ID:'.$PropID; ?>
© «Bitrix24», 2001-2024