2009-08-28 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_db.php: add function get_all_model_groups for to
	get all rows of table "tmodule_group".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-08-28 16:45:49 +00:00
parent 47e2da906f
commit 7899580185
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-08-28 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: add function get_all_model_groups for to
get all rows of table "tmodule_group".
2009-08-27 Ramon Novoa <rnovoa@artica.es>
* include/functions_db.php,

View File

@ -1240,6 +1240,25 @@ function get_users_info ($order = "fullname", $info = "fullname") {
}
return $ret;
}
/**
* Get all the Model groups a user has reading privileges.
*
* @param string User id
* @param string The privilege to evaluate
*
* @return array A list of the groups the user has certain privileges.
*/
function get_all_model_groups () {
$groups = get_db_all_rows_in_table ('tmodule_group');
$returnGroups = array();
foreach ($groups as $group)
$returnGroups[$group['id_mg']] = $group['name'];
return $returnGroups;
}
/**
* Get all the groups a user has reading privileges.