com-tecnick-tcexam-admin
[ class tree: com-tecnick-tcexam-admin ] [ index: com-tecnick-tcexam-admin ] [ all elements ]

Procedural File: tce_functions_user_select.php

Source Location: /admin/code/tce_functions_user_select.php



Page Details:

Functions to display and select registered user.



Tags:

author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2001-09-13
license:  GNU Affero General Public License








F_get_user_groups [line 462]

array F_get_user_groups( int $user_id)

Returns an array containing groups IDs to which the specified user belongs



Tags:

return:  containing user's groups IDs


Parameters

int   $user_id   user ID
[ Top ]



F_isAuthorizedEditorForGroup [line 354]

boolean F_isAuthorizedEditorForGroup( int $group_id)

Return true if the current user is an administrator or belongs to the group, false otherwise



Tags:

return:  true/false
since:  11.1.003 (2010-10-05)


Parameters

int   $group_id   group ID
[ Top ]



F_isAuthorizedEditorForUser [line 370]

boolean F_isAuthorizedEditorForUser( int $user_id)

Return true if the current user is authorized to edit the specified user



Tags:

return:  true/false
since:  11.1.003 (2010-10-05)


Parameters

int   $user_id   user ID
[ Top ]



F_isTestOnGroup [line 317]

boolean F_isTestOnGroup( int $test_id, int $group_id)

Return true if the selected test is active for the selected group



Tags:

return:  true/false
since:  11.1.003 (2010-10-05)


Parameters

int   $test_id   test ID
int   $group_id   group ID
[ Top ]



F_isUserOnGroup [line 336]

boolean F_isUserOnGroup( int $user_id, int $group_id)

Return true if the selected user belongs to the selected group



Tags:

return:  true/false
since:  11.1.003 (2010-10-05)


Parameters

int   $user_id   user ID
int   $group_id   group ID
[ Top ]



F_select_user [line 69]

true F_select_user( string $order_field, string $orderdir, string $firstrow, string $rowsperpage, [int $group_id = 0], [string $andwhere = ''], [string $searchterms = ''])

Display user selection for using F_show_select_user function.



Tags:

author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2001-09-13
uses:  F_show_select_user()
license:  GNU Affero General Public License


Parameters

string   $order_field   order by column name
string   $orderdir   oreder direction
string   $firstrow   number of first row to display
string   $rowsperpage   number of rows per page
int   $group_id   id of the group (default = 0 = no specific group selected)
string   $andwhere   additional SQL WHERE query conditions
string   $searchterms   search terms
[ Top ]



F_show_select_user [line 92]

false F_show_select_user( string $order_field, int $orderdir, int $firstrow, int $rowsperpage, [int $group_id = 0], [string $andwhere = ''], [string $searchterms = ''])

Display user selection XHTML table.



Tags:

return:  in case of empty database, true otherwise
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2001-09-13
usedby:  F_select_user()
license:  GNU Affero General Public License


Parameters

string   $order_field   order by column name
int   $orderdir   oreder direction
int   $firstrow   number of first row to display
int   $rowsperpage   number of rows per page
int   $group_id   id of the group (default = 0 = no specific group selected)
string   $andwhere   additional SQL WHERE query conditions
string   $searchterms   search terms
[ Top ]



F_user_group_select [line 437]

table F_user_group_select( [string $name = 'group_id'])

Display select box for user groups



Tags:

return:  header element string


Parameters

string   $name   name of the select field
[ Top ]



F_user_group_select_sql [line 411]

sql F_user_group_select_sql( [string $where = ''])

Return the SQL selection query for user groups



Tags:

return:  selection string
since:  11.1.003 (2010-10-05)


Parameters

string   $where   filters to add on WHERE clause
[ Top ]



F_user_table_header_element [line 295]

table F_user_table_header_element( string $order_field, string $orderdir, string $title, string $name, [string $current_order_field = ''], [int $group_id = 0], [string $filter = ''])

Display table header element with order link.



Tags:

return:  header element string


Parameters

string   $order_field   name of table field
string   $orderdir   order direction
string   $title   title field of anchor link
string   $name   column name
string   $current_order_field   current order field name
int   $group_id   id of the group (default = 0 = no specific group selected)
string   $filter   additional parameters to pass on URL
[ Top ]



Documentation generated on Mon, 06 Dec 2010 12:03:05 +0100 by phpDocumentor 1.4.3