[ PHPXref.com ] [ Generated: Sun Jul 20 19:53:39 2008 ] [ PHProjekt 5.0.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/settings/ -> settings_data_profile.php (summary)

PHProjekt Version 5.0

File Size: 173 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 lib/access.inc.php

Defines 4 functions

  delete_profile()
  insert_profile()
  update_profile()
  prepare_profile_data()

Functions
Functions that are not part of a class:

delete_profile($id)   X-Ref
Delete the profile identified by the given ID
It is NOT checked, if the profile really belongs to that user!
This HAS to be done before.

param: int $id    ID of the profile to delete

insert_profile($data)   X-Ref
Insert a new profile.
Parameterchecks are NOT performed at this point.
If the array of usernames is empty, the insert does NOT get executed.

author: Franz Graf
param: string $data['name']   Name of this profile
param: array  $data['users']  array of user-id's
param: string $data['acc']    access rights

update_profile($data)   X-Ref
Update an already existing profile of this user.
Parameterchecks are NOT performed at this point.

author: Franz Graf
param: int    $data['id']     ID of the profile to update
param: string $data['name']   (new) Name of this profile
param: array  $data['users']  array of user-id's
param: string $data['acc']    access rights

prepare_profile_data(&$data)   X-Ref
Prepare the form data for saving.

param: string &$data['name']   Name of the profile
param: array  &$data['users']  array of user-shortnames(!)



[ Powered by PHPXref - Served by Debian GNU/Linux ]