Skip to main content

Reference

Quick-reference tables for obeliOmed conventions, constants, and shared types.

Plugin status codes

CodeMeaning
pendingCreated, awaiting action
confirmedConfirmed by clinic
in_progressCurrently in progress
completedSuccessfully completed
cancelledCancelled (by patient or clinic)
no_showPatient did not show up

Multi-tenant quick reference

// Get current company and clinic center from FacturaScripts context
$idEmpresa = $this->empresa->idempresa;
$codalmacen = $this->user->codalmacen;

// Always filter by both in queries
$where = [
new DataBaseWhere('idempresa', $idEmpresa),
new DataBaseWhere('codalmacen', $codalmacen),
];

Shared date/time formats

Use caseFormatExample
Database dateYYYY-MM-DD2026-06-20
Database datetimeYYYY-MM-DD HH:MM:SS2026-06-20 09:30:00
CalVer versionAAMMDD.NN260620.01
RRULE scheduleRFC 5545RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR

FacturaScripts controller namespaces

Base classFull namespace
ListControllerFacturaScripts\Core\Lib\ExtendedController\ListController
EditControllerFacturaScripts\Core\Lib\ExtendedController\EditController
PanelControllerFacturaScripts\Core\Lib\ExtendedController\PanelController

:::caution Common mistake Do NOT use FacturaScripts\Core\Template\* — those are Twig template helpers, not base controllers. :::

Audit event types

EventType string
Record created<entity>.created
Record updated<entity>.updated
Record deleted / pseudonymised<entity>.deleted
Consent signedconsent.signed
Consent revokedconsent.revoked
Document signeddocument.signed
Authentication successauth.login
Authentication failureauth.login_failed
Settings changedsettings.updated

PHP class reference

Auto-generated from PHPDoc by phpDocumentor. Available in each plugin page under Plugins > (Plugin Name) > API Reference.