User Tools

Site Tools


Sidebar

Dokumentation

vortex:api:view

View

The viwes in Vortex keeps track of which fields and relations to load and show. Views are used and can be created in the GUI, but can also be a powerful tool to speed up data access in the API. When loading data through a view only one query is run to fetch data from the database.

Examples

Creating a view and selecting some fields to show

$view = new View();
$view->setTable( 'myTable' );
$view->addField( 'myField1' );
$view->addField( 'myField2' );
$view->addField( 'myRelation.relatedField1' );
vortex/api/view.txt · Last modified: 2019/06/28 07:01 by hubbe