Import
CSmile::import( array( 'FILE' => $_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/main/install/smiles/smiles_default.zip', 'SET_ID' => $setId, array 'IMPORT_IF_FILE_EXISTS' = 'Y' ) );
The method imports archive with smileys. Static method.
Parameters
Parameter | Description |
---|---|
FILE | Path to the imported file |
SET_ID | Smileys set ID |
IMPORT_IF_FILE_EXISTS | Import smileys, even if they are physically located on disk (optional parameter) |
Returned value
Returns the number of imported smileys or false in case of an error ([link=89744]CApplicationException Class[/link] is created)
© «Bitrix24», 2001-2024