method fullOptions documentation in bbn\User\Preferences
Returns all the children IDs of the given code with their property and their preferences.
Example
//[
// [
// "id" => "943d955824ef11eca47652540000cfbe",
// "id_parent" => "9439491824ef11eca47652540000cfbe",
// "id_alias" => null,
// "num" => null,
// "text" => "Favourites",
// "code" => "favourites",
// "value" => null,
// "num_children" => 0,
// "items" => [
// ]
// ],
// [
// "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" => [
// ]
// ],
// [
// "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" => [
// ]
// ],
// [
// "id" => "944190af24ef11eca47652540000cfbe",
// "id_parent" => "9439491824ef11eca47652540000cfbe",
// "id_alias" => null,
// "num" => null,
// "text" => "Sources",
// "code" => "sources",
// "value" => null,
// "num_children" => 0,
// "items" => [
// [
// "path" => "/home/",
// "host" => "185.142.53.114",
// "pass" => "******",
// "user" => "root",
// "type" => "ssh",
// "id" => "042b29722c2f11eca47652540000cfbe",
// "id_option" => "944190af24ef11eca47652540000cfbe",
// "num" => null,
// "id_user" => "930cc07724ef11eca47652540000cfbe",
// "id_group" => null,
// "id_alias" => null,
// "public" => 0,
// "id_link" => null,
// "text" => "inova"
// ],
// [
// "path" => "",
// "host" => "qr.dev.bbn.io",
// "user" => "qr",
// "type" => "ssh",
// "id" => "179d85a0284911eca47652540000cfbe",
// "id_option" => "944190af24ef11eca47652540000cfbe",
// "num" => null,
// "id_user" => "930cc07724ef11eca47652540000cfbe",
// "id_group" => null,
// "id_alias" => null,
// "public" => 0,
// "id_link" => null,
// "text" => "quentin"
// ],
// ]
// ]
//];
function($code)
{
if ($ops = $this->opt->fullOptions(\func_get_args())) {
foreach ($ops as &$o) {
$o['items'] = $this->getAll($o['id']);
}
return $ops;
}
return null;
}
Returns all the children IDs of the given code with their property and their preferences. 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.
© 2011-2025
BBN Solutions