CForumPMFolder::Add
int Add( array arFields );
The Add method creates a new folder with parameters specified in the arFields array.
Parameters
Parameter | Description |
---|---|
arFields |
An array of the format Array(field1=>value1[, field2=>value2 [, ..]]):
|
Return Values
The method returns the ID of the created folder on success, or false otherwise.See Also
User folder table
Example
<? $arFields = Array( TITLE - > $TITLE, USER_ID - > $USER_ID, ); $ID = CForumPMFolder::Add($arFields); if (IntVal($ID)<=0) echo "Error!"; ?>
© «Bitrix24», 2001-2024