method fromPath documentation in bbn\Appui\Option

Returns the closest ID option from a _path_ of codes, with separator and optional id_parent

Example

X::dump("bbn_ide|test1|test8")); // (int) 36 function(string $path, string $sep = '|', $parent = NULL) { if ($this->check()) { if (!empty($sep)) { $parts = explode($sep, $path); } else{ $parts = [$path]; } if (null === $parent) { $parent = $this->default; } foreach ($parts as $p){ if (!($parent = $this->fromCode($p, $parent))) { break; } } return $parent ?: null; } return null; }

Returns the closest ID option from a _path_ of codes, with separator and optional id_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.