ajout t et mapper

This commit is contained in:
2024-04-04 16:26:22 +04:00
parent 93790d7be5
commit 86ce10cf95
125 changed files with 9314 additions and 16 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace nur\mapper\base\oobd;
use nur\str;
class OobdManager implements IOobdManager {
use TOobdManager;
function getKeyPrefixValues(?string $keyPrefix=null): ?array {
if ($keyPrefix === null) return $this->oobdValues;
$values = null;
foreach ($this->oobdValues as $key => $value) {
if (is_string($key) && str::_starts_with($keyPrefix, $key)) {
$key = str::without_prefix($keyPrefix, $key);
$values[$key] = $value;
}
}
return $values;
}
}