Documentation

GetConfigSetId

Note: From version 15.5.2 this method is not used by default. Currently it is replaced by the method CSmileGallery::getDefaultId because now smiley retrieval is perfumed not by sets, but by galleries.

CSmileSet::getConfigSetId(
);

The method gets set ID for parser from set configuration. Static method.

Returned value

Returns set ID.

Note

Static checking without the database is required inside the method. If this lim it cannot be avoided, use caching via bucket method - per 100 elements in single cache, because this cache is designed for possible multiple users.

Events

Event is CalledClassAvailable from version
OnBeforeSmileGetConfigSetId before getting smiley config. Allows to change config result.
AddEventHandler("main", "OnBeforeSmileGetConfigSetId", "___OnBeforeSmileGetConfigSetId");
function ___OnBeforeSmileGetConfigSetId($setId)
{
    return 16;
}

echo CSmileSet::getConfigSetId(); // return 16
GetConfigSetId12.5.7


© «Bitrix24», 2001-2024