method count documentation in bbn\Appui\Option
Returns the number of children for a given option
Example
X::dump($opt->count('bbn_ide'));
// (int) 4
function($code = NULL)
{
if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) {
return $this->db->count($this->class_cfg['table'], [$this->fields['id_parent'] => $id]);
}
return null;
}
Returns the number of children for a given 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