Settings bugfix, frontend implementation, API CLI template integration

This commit is contained in:
2024-04-05 13:01:15 +02:00
parent 10f7025569
commit 98fcd2822c
12 changed files with 1098 additions and 27 deletions

10
cli.php
View File

@@ -859,6 +859,10 @@ function onAPI(array $argv): void {
// TODO: auto-generated method stub
return \$this->success;
}
public static function getDefaultACL(Insert \$insert): void {
\$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false);
}
}";
}, $methodNames));
$content = "<?php
@@ -867,6 +871,7 @@ namespace Site\API {
use Core\API\Request;
use Core\Objects\Context;
use Core\Driver\SQL\Query\Insert;
abstract class {$apiName}API extends Request {
public function __construct(Context \$context, bool \$externalCall = false, array \$params = []) {
@@ -891,6 +896,7 @@ namespace Site\API;
use Core\API\Request;
use Core\Objects\Context;
use Core\Driver\SQL\Query\Insert;
class $apiName extends Request {
@@ -903,6 +909,10 @@ class $apiName extends Request {
// TODO: auto-generated method stub
return \$this->success;
}
public static function getDefaultACL(Insert \$insert): void {
\$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false);
}
}
";
}