Stud.IP  5.4
UserPrivacy Class Reference

Public Member Functions

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

Constructor & Destructor Documentation

◆ __construct()

__construct (   $userid = null)

Builds a visibility setting for a specific userid

Parameters
type$useridthe specific userid

Member Function Documentation

◆ getHTMLArgs()

getHTMLArgs ( )

Returns all Arguments for the SettingsPage

Returns
array Arguments for the SettingsPage

◆ getProfileSettings()

getProfileSettings ( )

Returns all the categorys and it's items

Returns
array categorys and it's items

◆ update()

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

◆ updateAllFromRequest()

updateAllFromRequest (   $data)

Takes the new_priv_settings request and stores it into the database

Parameters
array$dataThe given requestdata produced by the privacySettings view

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