method getCodes documentation in bbn\Appui\Option
Returns an array of options in the form id => code
function($code = NULL)
{
if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) {
$c =& $this->fields;
$opt = $this->db->rselectAll($this->class_cfg['table'], [$c['id'], $c['code']], [$c['id_parent'] => $id], [($this->isSortable($id) ? $c['num'] : $c['code']) => 'ASC']);
$res = [];
foreach ($opt as $r){
$res[$r[$c['id']]] = $r[$c['code']];
}
return $res;
}
return [];
}
Returns an array of options in the form id => code 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-2023
BBN Solutions