Settings bugfix, frontend implementation, API CLI template integration
This commit is contained in:
10
cli.php
10
cli.php
@@ -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);
|
||||
}
|
||||
}
|
||||
";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user