PHP code example of open-csp / w-s-spaces

1. Go to this page and download the library: Download open-csp/w-s-spaces 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/ */

    

open-csp / w-s-spaces example snippets


public static function onWSSpacesAfterCreateSpace( \WSS\Space $space ) {}

public static function onWSSpacesCustomApiExceptionHandler( \ApiUsageException $exception ) {}

// NOTE: This is not very nice, and another solution is needed, but it suffices for now
for ($i = 50000; $i < 55000; $i++) {
	$smwgNamespacesWithSemanticLinks[$i] = true;
}