method getProp documentation in bbn\Appui\Option

Get an option's single property


X::dump($opt->getProp(12, 'myProperty')); // (int) 78 X::dump($opt->setProp(12, ['myProperty' => "78%"])); // (int) 1 X::dump($opt->getProp(12, 'myProperty')); // (string) "78%" function($id, string $prop) { if (!empty($id) && !empty($prop) && ($o = $this->option($id)) && isset($o[$prop])) { return $o[$prop]; } return null; }

Get an option's single property BBN is a suite of PHP and JS libraries and VueJS components - all open-source!, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.