method itemsRef documentation in bbn\Appui\Option

Returns each individual item plus the children of items having this as alias.

Example

X::dump($opt->itemsRef(12)); /* array [ [21], [22], [25], [26] ] function($code = NULL) { if (bbn\Str::isUid($id = $this->fromCode(\func_get_args()))) { $all = $this->items($id) ?? []; if ($aliases = $this->getAliases($id)) { foreach ($aliases as $a) { if ($items = $this->items($a)) { array_push($all, ...$items); } } } return $all; } return null; }

Returns each individual item plus the children of items having this as alias. 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.