diff --git a/examples/DeegraphConnection.php b/examples/DeegraphConnection.php new file mode 100644 index 0000000..5b5ff1d --- /dev/null +++ b/examples/DeegraphConnection.php @@ -0,0 +1,19 @@ +On("b222c121-0ed2-5819-bbf9-4db9aab85ea3") + ->Build() + ->RunQuery(DeegraphConnection::DB()) +; + +echo "Permissions\n"; +echo "==========="; +echo "\nCan Act: " . ($permissions->CanAct ? "YES" : "NO"); +echo "\nCan Delete: " . ($permissions->CanDelete ? "YES" : "NO"); +echo "\nCan Read: " . ($permissions->CanRead ? "YES" : "NO"); +echo "\nCan Write: " . ($permissions->CanWrite ? "YES" : "NO");