PHP code example of symbiote / silverstripe-restrictedobjects
1. Go to this page and download the library: Download symbiote/silverstripe-restrictedobjects 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/ */
symbiote / silverstripe-restrictedobjects example snippets
Object::add_extension('Page', 'Restrictable');
Object::add_extension('SiteConfig', 'Restrictable');
Object::add_extension('Page', 'RestrictedPage');