method code documentation in bbn\Appui\Option

Returns an option's code

Example

X::dump($opt->code(12)); // (string) bbn_ide function(string $id) { if ($this->check() && bbn\Str::isUid($id)) { return $this->db->selectOne( $this->class_cfg['table'], $this->fields['code'], [ $this->fields['id'] => $id ] ); } return null; }

Returns an option's code 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.