From c47e3bfff4085690778075429b62b2d443637409 Mon Sep 17 00:00:00 2001 From: Bruce Bannon Date: Sat, 16 Sep 2023 02:39:06 -0600 Subject: [PATCH] example of reworked phpDoc --- access.php | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/access.php b/access.php index 75eb09dcf..ae8e9caf3 100644 --- a/access.php +++ b/access.php @@ -3,11 +3,11 @@ * This page is used to manage user access rights. * * It has three different modes: - * - list users to manage (no parameters) - * - manage a single user's rights (just "user" parameter) - * this will include which functions the user can access and - * (if $ALLOW_VIEW_OTHER is 'Y') which calendars they can view/edit/approve - * - update the database (form handler) + * - list users to manage (no parameters) + * - manage a single user's rights (just "user" parameter) + * this will include which functions the user can access and + * (if $ALLOW_VIEW_OTHER is 'Y') which calendars they can view/edit/approve + * - update the database (form handler) * * Input Parameters: * user - specifies which user to manage, a form will be presented @@ -15,6 +15,11 @@ * * access_N - where N is 0 to ACCESS_NUMBER_FUNCTIONS as defined in * includes/access.php. Each should be either 'Y' or 'N'. + * + * @package WebCalendar + */ +/** + * Include the basics. */ require_once 'includes/init.php'; @@ -443,7 +448,14 @@ echo print_trailer(); /** - * Get the list of users that the specified user can see. + * get_list_of_users + * + * @param string $user + * + * @global string $is_admin + * @global string $is_nonuser_admin + * + * @return array of users that the specified user can see. */ function get_list_of_users( $user ) { global $is_admin, $is_nonuser_admin;