method fullOptionsCfg documentation in bbn\Appui\Option

Returns an array of full options with the config in arrays for a given parent

Example

X::dump($opt->fullOptionsCfg(12)); /* array [ ['id' => 21, 'id_parent' => 12, 'num' => 1, 'title' => "My option 21", 'myProperty' => "78%", 'cfg' => ['sortable' => true, 'desc' => "I am a description"]], ['id' => 22, 'id_parent' => 12, 'num' => 2, 'title' => "My option 22", 'myProperty' => "26%", 'cfg' => ['desc' => "I am a description"]], ['id' => 25, 'id_parent' => 12, 'num' => 3, 'title' => "My option 25", 'myProperty' => "50%", 'cfg' => ['desc' => "I am a description"]], ['id' => 27, 'id_parent' => 12, 'num' => 4, 'title' => "My option 27", 'myProperty' => "40%", 'cfg' => ['desc' => "I am a description"]] ] function($code = NULL) { if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) { $o =& $this; return $this->map( function ($a) use ($o) { $a[$this->fields['cfg']] = $o->getCfg($a[$this->fields['id']]); return $a; }, $id ); } return null; }

Returns an array of full options with the config in arrays for a given parent 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.