PHP code example of cjp2600 / composite.shape

1. Go to this page and download the library: Download cjp2600/composite.shape library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cjp2600 / composite.shape example snippets


$APPLICATION->IncludeComponent(
  '8il:composite.shape',
  '',
   array(
       "ID" => "UniqueShapeComponentID", # ID -shape (Required, unique parameter)
       "CACHE_TIME"    => 604800,        # Time caching (not )
       "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'
   )
);

\CBitrixComponent::CCompositeShapeClass')) {
   \CCompositeShapeClass::clearCacheById($cacheId);
}