ajout ldap

This commit is contained in:
2024-04-04 22:21:20 +04:00
parent 5ca55e1919
commit d4eb43c3d9
94 changed files with 15867 additions and 24 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace nur\ldap\syntaxes;
use nur\data\types\Metadata;
use nur\php\Autogen;
class cvalues {
static function autogen_properties(array $schema): array {
$md = Metadata::with($schema);
$properties = [];
foreach ($md->getKeys() as $key) {
$type = $md->getType($key);
[$phpType, $returnType] = Autogen::fix_type($type->getPhpType());
$properties[] = "$returnType \$$key";
}
return $properties;
}
}