PHP code example of restruct / silverstripe-softscheduler
1. Go to this page and download the library: Download restruct/silverstripe-softscheduler 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/ */
restruct / silverstripe-softscheduler example snippets
// workaround for Embargo/Expiry (augmentSQL for embargo/expiry is not working yet);
if( $class::has_extension(EmbargoExpirySchedulerExtension::class) ){
$items = $items->where( EmbargoExpirySchedulerExtension::extraWhereQuery($class) );
}