method createsLangOptions documentation in bbn\Appui\Project
Creates the children of the option lang, if no arguments is given it uses the array of primaries languages
function(array $langs = [])
{
if (empty($langs)) {
$primaries = $this->getPrimariesLangs();
$langs = $primaries;
}
if (!empty($langs)) {
$res = [];
foreach ($langs as $l) {
if ($id_opt = $this->options->add(
[
'text' => $l['text'],
'code' => $l['code'],
'id_parent' => $this->id_langs,
'id_alias' => $l['id'],
]
)) {
$l['id'] = $id_opt;
$res[] = $l;
}
}
return $res;
}
}
Creates the children of the option lang, if no arguments is given it uses the array of primaries languages 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