Stud.IP  5.4
PrivacyController Class Reference
Inheritance diagram for PrivacyController:
AuthenticatedController StudipController

Public Member Functions

 index_action ($user_id, $section=null)
 
 landing_action ($user_id)
 
 export2CSV_action ($table, $user_id)
 
 print_action ($user_id)
 
 export_action ($user_id)
 
 xml_action ($user_id, $section=null)
 
 filesexport_action ($user_id)
 
 askfor_action ($user_id)
 
- Public Member Functions inherited from AuthenticatedController
 before_filter (&$action, &$args)
 
- Public Member Functions inherited from StudipController
 before_filter (&$action, &$args)
 
 erase_response ()
 
 perform ($unconsumed_path)
 
 after_filter ($action, $args)
 
 validate_args (&$args, $types=null)
 
 url_for ($to='')
 
 link_for ($to='')
 
 redirect ($to)
 
 relocate ($to)
 
 rescue ($exception)
 
 render_json ($data)
 
 render_csv ($data, $filename=null, $delimiter=';', $enclosure='"')
 
 render_file ( $file, $filename=null, $content_type=null, $content_disposition='attachment', Closure $callback=null, $chunk_size=262144)
 
 render_temporary_file ( $file, $filename=null, $content_type=null, $content_disposition='attachment', Closure $callback=null, $chunk_size=262144)
 
 render_form (\Studip\Forms\Form $form)
 
 relay ($to_uri)
 
 relayWithRedirect (... $args)
 
 perform_relayed ($unconsumed)
 
 render_template_as_string ($template, $layout=null)
 
 __call ($method, $arguments)
 
 has_action ($action)
 
 action_url ($action)
 
 action_link ($action)
 
 validate_datetime ($datetime, $format='H:i')
 
 render_spreadsheet (array $header, array $data, string $format, string $filename, ?string $filepath=null)
 

Protected Member Functions

 getViewSections ()
 
- Protected Member Functions inherited from AuthenticatedController
 keepRequest ()
 
- Protected Member Functions inherited from StudipController
 render_pdf (TCPDF $pdf, $filename, $inline=false)
 
 controller_path ()
 
 getBodyElementIdForControllerAndAction ($unconsumed_path)
 

Additional Inherited Members

- Protected Attributes inherited from AuthenticatedController
 $with_session = true
 
 $allow_nobody = false
 
- Protected Attributes inherited from StudipController
 $with_session = false
 
 $allow_nobody = true
 
 $_autobind = false
 

Member Function Documentation

◆ askfor_action()

askfor_action (   $user_id)

Show a message dialog to ask for user data

Parameters
string$user_id

◆ export2CSV_action()

export2CSV_action (   $table,
  $user_id 
)

Create a csv file with user data from a specific table of a plugin

Parameters
string$plugin_id
string$table
string$user_id
Exceptions
AccessDeniedExceptionif user has no privileges

◆ export_action()

export_action (   $user_id)

Create a zip file with user data

Parameters
string$user_id
Exceptions
AccessDeniedExceptionif user has no privileges

◆ filesexport_action()

filesexport_action (   $user_id)

Delivers a zip containing the files from plugins which feature the specific function

Parameters
string$user_id
Exceptions
AccessDeniedExceptionif user has no privileges

◆ getViewSections()

getViewSections ( )
protected

Returns a list of all the sections to be displayed.

Returns
array of arrays (key => icon, title, description)

◆ index_action()

index_action (   $user_id,
  $section = null 
)

Presents the userdata of given user

Parameters
string$user_id
string$section
Exceptions
AccessDeniedExceptionif user has no privileges

◆ landing_action()

landing_action (   $user_id)

Gives access to accumulated userdata or single categories

Parameters
string$user_id
Exceptions
AccessDeniedExceptionif user has no privileges

◆ print_action()

print_action (   $user_id)

Create a print view with user data

Parameters
string$user_id
Exceptions
AccessDeniedExceptionif user has no privileges

◆ xml_action()

xml_action (   $user_id,
  $section = null 
)

Create a xml file with user data

Parameters
string$user_id
Exceptions
AccessDeniedExceptionif user has no privileges

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