method jsCategories documentation in bbn\Appui\Option

Retourne toutes les caractéristiques des options d'une catégorie donnée dans un tableau indexé sur leur `id`

function($id = NULL) { if (!$id) { $id = $this->default; } if ($tmp = $this->cacheGet($id, __FUNCTION__)) { return $tmp; } $res = [ 'categories' => [] ]; if ($cats = $this->fullOptions($id ?: false)) { foreach ($cats as $cat){ if (!empty($cat['tekname'])) { $res[$cat['tekname']] = $this->textValueOptions($cat[$this->fields['id']]); $res['categories'][$cat[$this->fields['id']]] = $cat['tekname']; } } } $this->cacheSet($id, __FUNCTION__, $res); return $res; }

Retourne toutes les caractéristiques des options d'une catégorie donnée dans un tableau indexé sur leur `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.