method setTags documentation in bbn\Models\Tts\Tagger

Undocumented function

function(string $id_element, array $tags, string $lang = '') { $this->taggerInit(); $lang = $this->taggerGetLang($lang); if (!$this->exists($id_element)) { throw new Exception(X::_("Impossible to find the element in %s", __CLASS__)); } foreach ($this->getTags($id_element, true) as $tag) { $idx = X::indexOf($tags, $tag['tag']); if ($idx > -1) { array_splice($tags, $idx, 1); } else { $this->removeTag($id_element, $tag['id']); } } $num = 0; foreach ($tags as $tag) { if ($this->addTag($id_element, $tag, $lang)) { $num++; } } return $num; }

Undocumented function 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.