method rawOptions documentation in bbn\Appui\Option

Returns an option's items as stored in its original form in the database, including cfg

Example

X::dump($opt->rawOptions('database', 'appui')); /* [ [ 'id' => "77cea323f0ce11e897fd525400007196", 'code' => "bbn_ide", 'text' => "BBN's own IDE", 'cfg' => null, 'id_alias' => null, 'value' => "{\"num\":1}" ], [ 'id' => "77cea323f0ce11e897fd525400007196", 'code' => "bbn_ide", 'text' => "BBN's own IDE", 'cfg' => null, 'id_alias' => null, 'value' => "{\"num\":1}" ] ] function($code = NULL) { if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) { $res = []; if ($its = $this->items($id)) { foreach ($its as $it) { $res[] = $this->db->rselect($this->class_cfg['table'], [], [$this->fields['id'] => $it]); } } return $res; } return null; }

Returns an option's items as stored in its original form in the database, including cfg 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.