Source API for the «PorteTables» class

Central class to store and manage all the tables (instances of PorteTable).

PHP magic methods

__construct

This method is not yet documented.

__get

Overwritte PHP magick "__get" method retrieve a table for a given type.

Exemple to load the table object associated to a model named "user":
$table->user $porte->users $porte->tables->user

Public methods

get

Return a "PorteTable" object.

On first request, table objects are created on demand and then internally stored in the current connection.

return
PorteTable
The table object associated to the provided arguments.
mixed
$arg, PorteRecord
|| String Record or record type.
array[optional]
$options, Options
transfered to the "set" method.
update

This method is not yet documented.