NoteController
Renders notes for the current backend user
Table of Contents
Properties
- $notesRepository : SysNoteRepository
- $pagePermissionCache : array<string|int, mixed>
Methods
- __construct() : mixed
- listAction() : string
- Render notes by single PID or PID list
- enrichWithEditPermissions() : array<string|int, mixed>
- getBackendUser() : BackendUserAuthentication
Properties
$notesRepository
protected
SysNoteRepository
$notesRepository
$pagePermissionCache
protected
array<string|int, mixed>
$pagePermissionCache
= []
Methods
__construct()
public
__construct() : mixed
listAction()
Render notes by single PID or PID list
public
listAction(string $pids[, int|null $position = null ]) : string
Parameters
- $pids : string
-
Single PID or comma separated list of PIDs
- $position : int|null = null
-
null for no restriction, integer for defined position
Return values
stringenrichWithEditPermissions()
protected
enrichWithEditPermissions(array<string|int, mixed> $notes) : array<string|int, mixed>
Parameters
- $notes : array<string|int, mixed>
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication