API Documentação da API
Inscrições abertas para nosso Webinar anual Adianti Framework 2024!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

AdiantiMasterDetailTrait

Master Detail Trait

Tags
version
7.6
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Methods

loadItems()  : mixed
Load items for detail into session
storeItems()  : mixed
Store an item from details session into database

Methods

loadItems()

Load items for detail into session

public loadItems( $model,  $foreign_key,  $master_object,  $detail_id[,  $transformer = null ]) : mixed
Parameters
$model :

Model class name

$foreign_key :

Detail foreign key name

$master_object :

Master object

$detail_id :

Detail key in session

$transformer : = null

Function to be applied over the objects

storeItems()

Store an item from details session into database

public storeItems( $model,  $foreign_key,  $master_object,  $detail_id[,  $transformer = null ]) : mixed
Parameters
$model :

Model class name

$foreign_key :

Detail foreign key name

$master_object :

Master object

$detail_id :

Detail key in session

$transformer : = null

Function to be applied over the objects


        
On this page

Search results