method addTag documentation in bbn\Models\Tts\Tagger
function(string $id_element, string $tag, string $lang = '', string $description = '')
{
$this->taggerInit();
$lang = $this->taggerGetLang($lang);
if ($tmp = $this->taggerObject->get($tag, $lang)) {
$id_tag = $tmp['id'];
}
else {
$id_tag = $this->taggerObject->add($tag, $lang, $description);
}
if (!$id_tag) {
throw new Exception(X::_("Impossible to create the tag %s", $tag));
}
return $this->db->insertIgnore(
$this->taggerTable,
[
$this->taggerCols['id_element'] => $id_element,
$this->taggerCols['id_tag'] => $id_tag
]
);
}
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-2025
BBN Solutions