method getDefault documentation in bbn\Appui\Option

Returns the ID of the default option ($id_parent used when not provided)

Example

X::dump($opt->getDefault()); // (int) 0 $opt->setDefault(5); X::dump($opt->getDefault()); // (int) 5 $opt->setDefault(); X::dump($opt->getDefault()); // (int) 0 function() { if ($this->check()) { return $this->default; } return null; }

Returns the ID of the default option ($id_parent used when not provided) 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.