34 const RIGHTS_ENFORCED_DOWNSTREAM =
'downstream';
90 abstract public function execute(
string $toolName, array $args);
188 if (array_key_exists(
'const', $schema)) {
189 $val = $schema[
'const'];
190 if (!isset($schema[
'enum'])) {
191 $schema[
'enum'] = is_array($val) ? array_values($val) : array($val);
193 if (empty($schema[
'type'])) {
195 $schema[
'type'] =
'integer';
196 } elseif (is_float($val)) {
197 $schema[
'type'] =
'number';
198 } elseif (is_bool($val)) {
199 $schema[
'type'] =
'boolean';
200 } elseif (is_string($val)) {
201 $schema[
'type'] =
'string';
202 } elseif (is_array($val)) {
203 $schema[
'type'] = (array_keys($val) === range(0, count($val) - 1)) ?
'array' :
'object';
206 unset($schema[
'const']);
210 unset($schema[
'$schema'], $schema[
'$id']);
212 foreach ($schema as $key => $value) {
213 if (is_array($value)) {
conf($dolibarr_main_document_root, $realpathconf=null)
Load conf file (file must exists)
$conf db user
Active Directory does not allow anonymous connections.