Knowledge Base updated: 2026-11-19
iTop knowledge base
Orientation
iTop is a PHP-based IT service management and CMDB application. Its core layer provides the meta-model, object persistence, query execution, runtime configuration, and extension mechanisms used by packaged modules.
The datamodels/2.x/ modules define the managed-domain model: ITIL processes, tickets, configuration items, organizations, portals, authentication, and optional capabilities. Data is persisted through the CMDB object layer and accessed through OQL and database abstractions.
Back-office and portal requests enter through PHP entrypoints and page controllers. Rendering combines web-page services, Twig/templates, Ajax endpoints, and reusable UI components; application-level HTTP DTOs provide endpoint request and response contracts.
Critical runtime state is split between the database-backed CMDB, configuration and compiled data-model artifacts, PHP session/user context, module metadata, and asynchronous/cron execution state.
flowchart TD
Browser[Back-office / Portal browser] --> Entry[PHP entrypoints]
Entry --> Routing[Controllers and routing]
Routing --> UI[Web pages, Twig, Ajax UI]
Routing --> HTTP[HTTP request contracts]
Routing --> Identity[Identity and user state]
UI --> Search[Search, dashboards and news]
Routing --> Core[Core runtime and MetaModel]
Core --> CMDB[CMDB object layer]
CMDB --> OQL[OQL and query services]
OQL --> DB[(iTop database)]
Core --> Modules[Versioned datamodel modules]
Modules --> CMDB
Core --> Extensions[Modules, plugins and extensions]
Extensions --> Integration[APIs, imports and synchronization]
Integration --> Background[Cron, async work and notifications]
Background --> DB
Glossary
- CMDB: iTop's database-backed model of managed objects and their relationships.
- MetaModel: the runtime description of classes, attributes, relations, and module-provided model definitions.
- OQL: Object Query Language used to select CMDB objects.
- Data model module: a versioned package under
datamodels/2.x/that contributes classes, UI behavior, and domain capabilities. - iTop web page: the server-side page abstraction used by back-office and portal entrypoints to build responses.
Codebase-wide invariants
- CMDB class and attribute behavior must remain consistent with the metadata definitions in core/datamodel.core.xml and the runtime interpretation in core/metamodel.class.php.
- Persistent object changes flow through the core object layer (core/dbobject.class.php); callers must not bypass its lifecycle and validation semantics.
- Datamodel modules under
datamodels/2.x/**extend the shared MetaModel rather than defining an independent persistence model. - Endpoint validation failures use the application HTTP request/response abstractions and Ajax entrypoint conventions, including pages/ajax.render.php where applicable.
- Module and extension startup must remain compatible with core runtime discovery and configuration conventions in
core/**.
Routing table
- core/dbobject.class.php, core/action.class.inc.php, core/metamodel.class.php, core/datamodel.core.xml -> CMDB and data model
- core/dbobject.class.php, core/action.class.inc.php, core/transaction*.php, core/orm*.php -> CMDB object lifecycle
- core/oql*.php, core/dbsearch*.php, core/query*.php, core/dbobjectset*.php -> Querying and OQL
- datamodels/…/datamodel*.xml,
datamodels/2.x/itop-*/module.*,datamodels/2.x/itop-attachments/**-> ITIL and infrastructure data models application/**, pages/index.php, pages/UI.php,themes/**-> Application experience- pages/*.php, pages/ajax.render.php, core/webpage*.php,
templates/**,portal/**-> Request routing and UI rendering - core/login*.php, core/user*.php, core/session*.php,
datamodels/2.x/itop-authentication-*/**-> Identity and user state - core/universalsearch*.php,
datamodels/2.x/itop-portal/**,datamodels/2.x/itop-newsroom/**,datamodels/2.x/itop-welcome-popup/**-> Search, dashboards, and news - core/http*.php,
core/Http/**, pages/ajax.render.php -> HTTP request contracts - core/module*.php, core/services*.php, core/config*.php, core/metamodel.class.php -> Platform runtime and extensibility
- core/autoload*.php, core/module*.php, core/services*.php, core/extension*.php, core/cache*.php -> Startup and module composition
setup/**,install/**,datamodels/**/install/**,datamodels/**/upgrade/**-> Installation and upgradeswebservices/**,synchro/**, core/cron*.php, core/async*.php, core/event*.php -> Integrations and automation- webservices/rest.php, webservices/soap*.php, webservices/wsdl*.php, core/rest*.php -> Web-service APIs
datamodels/2.x/itop-data-*/**,synchro/**, core/csv*.php, core/import*.php -> Data exchange and synchronization- core/cron*.php, core/async*.php, core/event*.php, core/email*.php,
datamodels/2.x/itop-notifications/**-> Background processing and notifications