SysNoteRepository

Sys_note repository

Internal

Table of Contents

Constants

SYS_NOTE_POSITION_BOTTOM  = 0
SYS_NOTE_POSITION_TOP  = 1

Properties

$connectionPool  : ConnectionPool

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

Methods

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

Return values
array<string|int, mixed>

        
On this page

Search results