method findI18nOption documentation in bbn\Appui\Option

returns an array containing the option (having the property i18n set) corresponding to the given id

function($id, $items = true) { $res = []; if ($this->check()) { if ($opt = $this->db->rselect( $this->class_cfg['table'], [ $this->fields['id'], $this->fields['id_parent'], $this->fields['text'], $this->fields['cfg'] ], [$this->fields['id'] => $id] ) ) { $cfg = json_decode($opt[$this->fields['cfg']]); if (!empty($cfg->i18n)) { $opt['language'] = $cfg->i18n; } unset($opt[$this->fields['cfg']]); if (!empty($items)) { $res[] = array_merge($opt, ['items' => $this->fullOptions($id) ?? []]); } else { $res[] = $opt; } } } return $res; }

returns an array containing the option (having the property i18n set) corresponding to the given id 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.