SysNoteRepository
Sys_note repository
Table of Contents
Constants
Properties
Methods
- __construct() : mixed
- findByCategoryRestricted() : array<string|int, mixed>
- Find notes by given category but restricted to backend user permissions
- findByPidAndAuthorId() : array<string|int, mixed>
- Find notes by given pid and author
Constants
SYS_NOTE_POSITION_BOTTOM
public
mixed
SYS_NOTE_POSITION_BOTTOM
= 0
SYS_NOTE_POSITION_TOP
public
mixed
SYS_NOTE_POSITION_TOP
= 1
Properties
$connectionPool read-only
protected
ConnectionPool
$connectionPool
Methods
__construct()
public
__construct(ConnectionPool $connectionPool) : mixed
Parameters
- $connectionPool : ConnectionPool
findByCategoryRestricted()
Find notes by given category but restricted to backend user permissions
public
findByCategoryRestricted([int|null $category = null ]) : array<string|int, mixed>
Parameters
- $category : int|null = null
Return values
array<string|int, mixed>findByPidAndAuthorId()
Find notes by given pid and author
public
findByPidAndAuthorId(int $pid, int $author[, int|null $position = null ]) : array<string|int, mixed>
Parameters
- $pid : int
-
Single pid
- $author : int
-
Author uid
- $position : int|null = null
-
null for no restriction, integer for defined position