int CSaleLocationGroup::Add( array arFields );
The method Add adds a new group of locations.
Parameter | Description |
---|---|
arFields | Associated array whose keys are the location group parameter names, and
the values are the parameter values. The following keys are possible:
|
Returns the ID of the new group on success or false otherwise.
<? $arFields = array( "SORT" => 150, "LOCATION_ID" => array(12, 34, 35, 36, 37), "LANG" => array( array("LID" => "en", "NAME" => "Group 1") array("LID" => "fr", "NAME" => "Groupe 1"), ) ); $ID = CSaleLocationGroup::Add($arFields); if (IntVal($ID)<=0) echo "Error adding a group"; ?>
© 2001-2005 Bitrix | Bitrix Site Manager |