method options documentation in bbn\User\Preferences

Returns all children of the given code with they own attributes.

Example

$pref->options('finder', 'appui'); // (array) = [ // [ // "id" => "943d955824ef11eca47652540000cfbe", // "id_parent" => "9439491824ef11eca47652540000cfbe", // "id_alias" => null, // "num" => null, // "text" => "Favourites", // "code" => "favourites", // "value" => null, // "num_children" => 0, // "items" => null // ], // [ // "id" => "9c57439824ef11eca47652540000cfbe", // "id_parent" => "9439491824ef11eca47652540000cfbe", // "id_alias" => "9891c4d624ef11eca47652540000cfbe", // "num" => null, // "text" => "Permissions", // "code" => "permissions", // "num_children" => 3, // "icon" => "nf nf-fa-key", // "alias" => [ // "id" => "9891c4d624ef11eca47652540000cfbe", // "id_parent" => "988d97ee24ef11eca47652540000cfbe", // "id_alias" => null, // "num" => null, // "text" => "Permissions", // "code" => "permissions", // "num_children" => 3, // "icon" => "nf nf-fa-key" // ], // "items" => null // ], // [ // "id" => "9ee7450224ef11eca47652540000cfbe", // "id_parent" => "9439491824ef11eca47652540000cfbe", // "id_alias" => "98a3dfca24ef11eca47652540000cfbe", // "num" => null, // "text" => "Plugins", // "code" => "plugins", // "num_children" => 0, // "icon" => "nf nf-mdi-puzzle", // "alias" => [ // "id" => "98a3dfca24ef11eca47652540000cfbe", // "id_parent" => "988d97ee24ef11eca47652540000cfbe", // "id_alias" => null, // "num" => null, // "text" => "Plugins", // "code" => "plugins", // "num_children" => 0, // "icon" => "nf nf-mdi-puzzle" // ], // "items" => null // ], // [ // "id" => "944190af24ef11eca47652540000cfbe", // "id_parent" => "9439491824ef11eca47652540000cfbe", // "id_alias" => null, // "num" => null, // "text" => "Sources", // "code" => "sources", // "value" => null, // "num_children" => 0, // "items" => null // ] // ]; function($code) { // List of the options' id corresponding to the given code if ($list = $this->items(\func_get_args())) { $res = []; foreach ($list as $i => $li) { $res[$i] = $this->opt->option($li); $res[$i]['items'] = $this->get($li); } return $res; } return null; }

Returns all children of the given code with they own attributes. 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.