How duarteol2000/patrimonio works
This is a PHP web application for managing organizational patrimony: users browse, register, view and report on assets, with supporting administration, communication, audit and REST capabilities. The main web entry point selects a page from the request and builds the themed interface; asset-list actions open the asset form or view, and the list can launch a sector report. The source excerpts substantiate those links and the asset model’s related records. Other substantial subsystems are represented from the repository tree, but their internal call paths were not sampled.
Main entry points: Bens.php Asset record · BensList.php Asset list · index.php Web entry · BensQueryReport.php Asset query report
Components 25
Web application
- Web entry
index.php - Request engine
engine.php - Menu builder
app/lib/menu/AdiantiMenuBuilder.php - Application setup
init.php
Asset management
- Asset list
app/control/cadastro/BensList.php - Asset form
app/control/cadastro/BensForm.php - Asset view
app/control/cadastro/BensFormView.php - Asset record
app/model/Bens.php - Asset movement
app/model/Movimentacao.php
Asset reference data
- Destination
app/model/Destino.php - Company
app/model/Empresa.php - Product condition
app/model/Estadoprod.php - Acquisition type
app/model/Tipoaquisicao.php - Product type
app/model/Tipoproduto.php - Asset tag type
app/model/Tipotomb.php
Platform services
- Authentication
app/service/auth/ApplicationAuthenticationService.php - System user
app/model/admin/SystemUser.class.php - Administration screens
app/control/admin - Communication screens
app/control/communication - Audit and logs
app/service/log
Reporting and APIs
- Sector report
app/control/relatorio/BensPorSetor.php - Asset query report
app/control/relatorio/BensQueryReport.php - Asset chart
app/control/grafico/GraficoBensPorTipoProd.php - REST endpoints
rest/request.php
Other components
- User
Connections 19
- User → Web entry: requests page
index.php - Web entry → Application setup: loads setup
index.php - Web entry → Menu builder: builds menu
index.php - Web entry → Asset list: dispatches page
- Request engine → Application setup: loads setup
engine.php - Asset list → Asset record: lists records
app/control/cadastro/BensList.php - Asset list → Asset form: opens edit
app/control/cadastro/BensList.php - Asset list → Asset view: opens view
app/control/cadastro/BensList.php - Asset list → Sector report: opens report
app/control/cadastro/BensList.php - Asset record → Asset tag type: loads related record
app/model/Bens.php - Asset record → Product condition: loads related record
app/model/Bens.php - Asset record → Company: loads related record
app/model/Bens.php - Asset record → Product type: loads related record
app/model/Bens.php - Asset record → Acquisition type: loads related record
app/model/Bens.php - Asset query report → Destination: selects destination
app/control/relatorio/BensQueryReport.php - Asset query report → Asset list: returns to list
app/control/relatorio/BensQueryReport.php - Asset query report → Asset record: queries assets
app/control/relatorio/BensQueryReport.php - Authentication → System user: authenticates user
app/service/auth/ApplicationAuthenticationService.php - REST endpoints → User: exchanges JSON