method codeIds documentation in bbn\Appui\Option
* Returns an array of ids for a given parent
Example
X::dump($opt->codeIds(12));
/*
array [
'code_1' => 21,
'code_2' => 22,
]
function($code = NULL)
{
if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) {
$list = $this->items($id);
if (\is_array($list)) {
$res = [];
foreach ($list as $i){
$o = $this->option($i);
$res[$o[$this->fields['code']]] = $o[$this->fields['id']];
}
return $res;
}
}
return null;
}
* Returns an array of ids for a given parent BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2024
BBN Solutions