Update
CSmile::upd ate( id, Array( 'TYPE' => CSmile::TYPE_SMILE, 'SET_ID' => CSmileSet::getByStringId('default'), 'SORT' => 300, 'TYPING' => ':=)', 'IMAGE' => 'smile_long_hr.png', 'IMAGE_HR' => 'Y', 'IMAGE_WIDTH' => '32', 'IMAGE_HEIGHT' => '32', 'LANG' => Array( 'en' => 'Smiley', ) ));
The method updates smiley data. Static method.
Parameters
Parameter | Description |
---|---|
id | Smiley ID |
Array of parameters | |
TYPE | Smiley type |
SET_ID | Smiley set ID |
SORT | Sorting |
TYPING | Typed smiley in editor |
IMAGE | Smiley file |
IMAGE_HR | High resolution image (the image will be reduced twofold when showed) |
IMAGE_WIDTH | Image width in pixels |
IMAGE_HEIGHT | Image height in pixels |
LANG | Smiley name |
Note: Fields IMAGE_HR, IMAGE_WIDTH, IMAGE_HEIGHT can be updated only if IMAGE is specified.
Returned value
Returns true on success and false otherwise ([link=89669]CAdminException[/link] is created)
© «Bitrix24», 2001-2024