PHP code example of se7enxweb / explayouts-content-browser-core
1. Go to this page and download the library: Download se7enxweb/explayouts-content-browser-core 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/ */
se7enxweb / explayouts-content-browser-core example snippets
$backend = new expLayoutsContentBrowserCoreBackend(
array( 'article', 'folder' ), // allowed/selectable content class identifiers
array( 'folder' ) // class identifiers treated as locations (reserved)
);
$items = $backend->getSubItems( 43, 0, 25 );
$total = $backend->getSubItemsCount( 43 );
$items = $backend->searchItems( 'annual report', 43, 0, 20 );
$total = $backend->searchItemsCount( 'annual report', 43 );
$item = $backend->loadItem( 123 ); // expLayoutsContentBrowserItem or false