Stud.IP  3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
UserPrivacy Class Reference
Collaboration diagram for UserPrivacy:
Collaboration graph

Public Member Functions

 __construct ($userid=null)
 getProfileSettings ()
 updateAllFromRequest ($data)
 update ($key, $state, $db=null, $userid=null)
 getHTMLArgs ()

Constructor & Destructor Documentation

__construct (   $userid = null)

Builds a visibility setting for a specific userid

Parameters
type$useridthe specific userid

Member Function Documentation

getHTMLArgs ( )

Returns all Arguments for the SettingsPage

Returns
array Arguments for the SettingsPage

Here is the call graph for this function:

getProfileSettings ( )

Returns all the categorys and it's items

Returns
array categorys and it's items

Here is the call graph for this function:

Here is the caller graph for this function:

update (   $key,
  $state,
  $db = null,
  $userid = null 
)

Updates a PrivacySetting in the DB

Parameters
type$keyThe Settings Identifier
type$stateThe wanted state
type$dbOptional an open database connection
type$useridOptional the users id

Here is the call graph for this function:

updateAllFromRequest (   $data)

Takes the new_priv_settings request and stores it into the database

Parameters
array$dataThe given requestdata produced by the privacySettings view

Here is the call graph for this function:


The documentation for this class was generated from the following file: