SysNoteRepository
Sys_note repository
Table of Contents
Constants
Properties
Methods
- __construct() : mixed
- 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
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