Home
last modified time | relevance | path

Searched refs:UserNote (Results 1 – 5 of 5) sorted by relevance

/web-php/tests/Unit/UserNotes/
H A DSorterTest.php9 use phpweb\UserNotes\UserNote; alias
29 new UserNote('1', '', '', '1613487094', '', '', 0, 0),
36 $normalized = array_map(static function (UserNote $note): array {
55 new UserNote('1', '', '', '1613487094', '', '', 0, 2),
56 new UserNote('2', '', '', '1508180150', '', '', 0, 0),
57 new UserNote('3', '', '', '1508179844', '', '', 14, 3),
58 new UserNote('4', '', '', '1508179844', '', '', 14, 3),
65 $normalized = array_map(static function (UserNote $note): array {
107 …$notes[$id] = new UserNote($id, $sect, $rate, $ts, $user, base64_decode($note, true), (int) $up, (…
114 $normalized = array_map(static function (UserNote $note): array {
[all …]
/web-php/src/UserNotes/
H A DSorter.php51 private function calcVotePriority(UserNote $note):float {
55 private function calcRatingPriority(UserNote $note):float {
59 private function calcRating(UserNote $note):float {
H A DUserNote.php5 final readonly class UserNote class
/web-php/manual/
H A Dadd-note.php144 manual_note_display(new UserNote('', '', '', time(), $user, $note));
/web-php/include/
H A Dshared-manual.inc28 use phpweb\UserNotes\UserNote;
33 * @param array<string, UserNote> $notes
88 * @return array<string, UserNote>
107 …$notes[$id] = new UserNote($id, $sect, $rate, $ts, $user, base64_decode($note, true), (int) $up, (…
115 function manual_note_display(UserNote $note, $voteOption = true): void

Completed in 12 milliseconds