tce__functions__user__select_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_functions_user_select.php File Reference

Namespaces

 com\tecnick\tcexam\admin
 TCExam Administration Area.
 

Functions

 F_select_user ($order_field, $orderdir, $firstrow, $rowsperpage, $group_id=0, $andwhere=“, $searchterms=”)
 
 F_show_select_user ($order_field, $orderdir, $firstrow, $rowsperpage, $group_id=0, $andwhere=“, $searchterms=”)
 
 F_show_select_user_popup ($order_field, $orderdir, $firstrow, $rowsperpage, $group_id=0, $andwhere=“, $searchterms=”, $cid=0)
 
 F_isTestOnGroup ($test_id, $group_id)
 
 F_isUserOnGroup ($user_id, $group_id)
 
 F_isAuthorizedEditorForGroup ($group_id)
 
 F_isAuthorizedEditorForUser ($user_id)
 
 F_user_group_select_sql ($where=“)
 
 F_user_group_select ($name=‘group_id’)
 
 F_get_user_groups ($user_id)
 
 F_getUIDfromRegnum ($regnum)
 

Detailed Description

Functions to display and select registered user.

Function Documentation

F_get_user_groups (   $user_id)

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

Parameters
$user_id(int) user ID
Returns
array containing user’s groups IDs

F_getUIDfromRegnum (   $regnum)

Return the user ID from registration number.

Parameters
$regnumber(int) user registration number.
Returns
(int) User ID or 0 in case of error.
Since
11.3.005 (2012-07-31)

F_isAuthorizedEditorForGroup (   $group_id)

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

Parameters
$group_id(int) group ID
Returns
boolean true/false
Since
11.1.003 (2010-10-05)

F_isAuthorizedEditorForUser (   $user_id)

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

Parameters
$user_id(int) user ID
Returns
boolean true/false
Since
11.1.003 (2010-10-05)

F_isTestOnGroup (   $test_id,
  $group_id 
)

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

Parameters
$test_id(int) test ID
$group_id(int) group ID
Returns
boolean true/false
Since
11.1.003 (2010-10-05)

F_isUserOnGroup (   $user_id,
  $group_id 
)

Return true if the selected user belongs to the selected group

Parameters
$user_id(int) user ID
$group_id(int) group ID
Returns
boolean true/false
Since
11.1.003 (2010-10-05)

F_select_user (   $order_field,
  $orderdir,
  $firstrow,
  $rowsperpage,
  $group_id = 0,
  $andwhere = ,
  $searchterms =  
)

Display user selection for using F_show_select_user function.

Author
Nicola Asuni
Since
2001-09-13
Parameters
$order_field(string) order by column name
$orderdir(string) oreder direction
$firstrow(string) number of first row to display
$rowsperpage(string) number of rows per page
$group_id(int) id of the group (default = 0 = no specific group selected)
$andwhere(string) additional SQL WHERE query conditions
$searchterms(string) search terms
Returns
true

F_show_select_user (   $order_field,
  $orderdir,
  $firstrow,
  $rowsperpage,
  $group_id = 0,
  $andwhere = ,
  $searchterms =  
)

Display user selection XHTML table.

Author
Nicola Asuni
Since
2001-09-13
Parameters
$order_field(string) Order by column name.
$orderdir(int) Order direction.
$firstrow(int) Number of first row to display.
$rowsperpage(int) Number of rows per page.
$group_id(int) ID of the group (default = 0 = no specific group selected).
$andwhere(string) Additional SQL WHERE query conditions.
$searchterms(string) Search terms.
Returns
false in case of empty database, true otherwise

F_show_select_user_popup (   $order_field,
  $orderdir,
  $firstrow,
  $rowsperpage,
  $group_id = 0,
  $andwhere = ,
  $searchterms = ,
  $cid = 0 
)

Display user selection XHTML table (popup mode).

Author
Nicola Asuni
Since
2012-04-14
Parameters
$order_field(string) Order by column name.
$orderdir(int) Order direction.
$firstrow(int) Number of first row to display.
$rowsperpage(int) Number of rows per page.
$group_id(int) ID of the group (default = 0 = no specific group selected).
$andwhere(string) Additional SQL WHERE query conditions.
$searchterms(string) Search terms.
string$cidID of the calling form field.
Returns
false in case of empty database, true otherwise

F_user_group_select (   $name = ‘group_id’)

Display select box for user groups

Parameters
$name(string) name of the select field
Returns
table header element string

F_user_group_select_sql (   $where = )

Return the SQL selection query for user groups

Parameters
$where(string) filters to add on WHERE clause
Returns
sql selection string
Since
11.1.003 (2010-10-05)

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy