Skip to content

Technical Plugin ReportVideo

Daniel Neto edited this page Oct 29, 2026 · 1 revision

Technical: ReportVideo plugin

Collects video reports and exposes moderation controls.

Audience: developers, advanced administrators and AI-assisted diagnosis. Plugin catalog.

Source baseline

  • Review date: 2026-10-29. Method: static source analysis; runtime/provider behavior was not exercised.
  • Code ownership: AVideo Streamer repository.
  • Reported version: 2.3.
  • Source revision: 7d48f2dfc0289236718a3f9fba7c5ffecff4a37f.
  • Entry class file: ReportVideo.php.

Confirm the installed plugin version independently of the Streamer version. Configuration defaults below are not a dump of this installation's saved settings.

Dependencies

No literal dependency declaration was extracted. This does not prove the plugin is standalone.

Literal runtime plugin references: Cache. These calls do not mean every referenced plugin is mandatory.

Hook integration

Override Implementation
getTags() ReportVideo.php:10
getPluginMenu() ReportVideo.php:45
updateScript() ReportVideo.php:70
getWatchActionButton($videos_id) ReportVideo.php:91

Configuration assignments

These are direct assignments inside getEmptyDataObject(), not evaluated effective defaults. Stored plugins.object_data, globals, structured values and conditional branches may alter runtime behavior. Private/default credential values are omitted.

Field Literal default or expression type Literal source label/help Evidence
emailLogo "" — source

Files and request surface

This inventory distinguishes implementation files from an API specification. Includes, templates, callbacks and CLI workers are not interchangeable HTTP endpoints. Request-field names below are direct source references, not a complete schema or permission declaration.

File Source role Direct request fields observed
Objects/videos_reported.php class/helper implementation —
ReportVideo.php plugin entry class —
View/index.php PHP page/include/worker; inspect caller —
actionButton.php PHP page/include/worker; inspect caller —
actionButtonBlockUser.php PHP page/include/worker; inspect caller —
block.json.php JSON entry point; inspect caller and guard unblock, users_id
buttonBlockUser.php PHP page/include/worker; inspect caller —
install/install.sql schema/migration SQL —
install/updateV2.0.sql schema/migration SQL —
install/updateV2.1.sql schema/migration SQL —
report.json.php JSON entry point; inspect caller and guard comments_id, obs, pass, reported_users_id, user, videos_id

Data and migrations

Tables named in available CREATE TABLE statements: videos_reported. Apply installation/update behavior through the owning plugin; this reference is not a script for running historical migrations manually.

Main-file named symbols

Visibility and implementation semantics must be checked in source. Nonempty string defaults are represented as . This is a symbol reference, not a stable public API promise.

Function or method Source
getTags() 10
getDescription() 17
getName() 22
getUUID() 27
getEmptyDataObject() 32
getPluginVersion() 40
getPluginMenu() 45
sanitizeReportReason($obs) 55
updateScript() 70
getWatchActionButton($videos_id) 91
send($email, $subject, $body) 115
replaceText($users_id, $videos_id, $text) 145
getTemplateText($videos_id, $message) 160
report($users_id, $videos_id, $obs = '') 187
block($users_id, $reported_users_id) 245
unBlock($users_id, $reported_users_id) 277
clearVideoListsCache() 309
isBlocked($reported_users_id, $users_id = 0) 319
getAllReportedUsersIdFromUser($users_id=0) 331
buttonBlockUser($users_id) 340
actionButtonBlockUser($users_id) 354

Supporting PHP declarations

These symbols are grouped by source file; inspect the class declaration and visibility before calling them.

Objects/videos_reported.php

Declared classes: VideosReported.

Named symbol Source
getSearchFieldsNames() 9
getTableName() 13
getFromDbUserAndVideo($users_id, $videos_id) 17
getFromDbUserAndReportedUser($users_id, $reported_users_id) 37
getAllReportedUsersIdFromUser($users_id) 57
getAllReports($limit = 500) 93
getId() 116
getObs() 120
getVideos_id() 124
getUsers_id() 128
setId($id) 132
setObs($obs) 136
setVideos_id($videos_id) 140
setUsers_id($users_id) 144
getStatus() 148
getReported_users_id() 152
setStatus($status) 156
setReported_users_id($reported_users_id) 160
save() 164
delete() 180

Diagnostics and validation

  1. Check the installed/enabled version and the dependencies/settings above.
  2. Identify the actual failing page, request, callback or worker and correlate its timestamp with the AVideo log.
  3. Follow the linked method and caller. Check business-state changes and output artifacts as well as HTTP status.
  4. Reproduce the relevant workflow in a test environment. External provider, Encoder, live-server, storage, payment and authenticated flows require their real integrations.

Related test filenames (name matches only; not executed by generation):

Shared diagnostic workflow. This page is not a security audit or a claim of end-to-end validation.

Clone this wiki locally