cjp2600 / composite.shape
composite emulator component
Installs: 80
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 1
Open Issues: 0
Type:bitrix-component
Requires
- php: >=5.3.0
- composer/installers: ~1
This package is auto-updated.
Last update: 2024-10-23 17:05:19 UTC
README
#Composite shape#
Компонент - оболочка для элементов сайта с высокой нагрузкой для CMS Bitrix.
#Установка через Composer##
В своем Bitrix проекте в файле composer.json необходимо прописать:
{ "extra": { "installer-paths": { "local/components/{$vendor}/{$name}/": [ "type:bitrix-component" ] } }, "require": { "cjp2600/composite.shape": ">=0.0.1" } }
Указать путь к папке компонентов, и ссылку на репозиторий
##Example:##
$APPLICATION->IncludeComponent( '8il:composite.shape', '', array( "ID" => "UniqueShapeComponentID", # ID -shape (Required, unique parameter) "CACHE_TIME" => 604800, # Time caching (not required) "USE_PRELOADER" => false, # Use preloader (true / false) (Optional - default false) "PRELOADER_IMG" => " ... ", # The path of a custom preloader for (the default one that is in the images) "CACHE_TAG" => array("Pro") # The tag for the cache. "CALL_FUNCTION" => function() { echo time(); sleep(3); } ), # The anonymous function (body -shape) null, array( 'HIDE_ICONS' => 'Y' ) );
##Clear cache example:##
\CBitrixComponent::includeComponentClass("8il:composite.shape"); if (class_exists('CCompositeShapeClass')) { \CCompositeShapeClass::clearCacheById($cacheId); }