method setCode documentation in bbn\Appui\Option
Sets the code of an option
Example
X::dump($opt->setCode(26, "HWD"));
// (int) 1
function($id, string $code = NULL)
{
if ($this->check()) {
return $this->db->updateIgnore(
$this->class_cfg['table'], [
$this->fields['code'] => $code ?: null
], [
$this->fields['id'] => $id
]
);
}
return null;
}
Sets the code of an option 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