¡Hola, amigos! I’m Señor FAQ, the mustached maestro of questions and answers! With my trusty glasses and a book of endless wisdom, I turn dudas into solutions. Soy el héroe de los curiosos and the champion of clarity.
JScms_get_usergroup_all
The JScms_get_usergroup_all
function retrieves all user groups from the specified table with their ID, name, and description.
JScms_get_usergroup_all(object $jakdb, string $table): array
$jakdb
: (object) Database connection instance.$table
: (string) The name of the database table to query.
(array) An array of user groups with their id
, name
, and description
.
<?php
$userGroups = JScms_get_usergroup_all($jakdb, "user_groups");
foreach ($userGroups as $group) {
echo $group["id"] . ": " . $group["name"] . " - " . $group["description"] . "\n";
}
?>
id
, name
, and description
fields.