$primary_key
$primary_key : string
The name of the Primary Key field of the table.
This class handles table-specific interactions and instantiates records.
$mp : \Blackpulp\MinistryPlatform\MinistryPlatform
An instance of the core MinistryPlatform object
__construct(\Blackpulp\MinistryPlatform\MinistryPlatform $mp, string $table, string $primary_key)
Instantiate a Table object
\Blackpulp\MinistryPlatform\MinistryPlatform | $mp | |
string | $table | |
string | $primary_key |
getMpInstance() : \Blackpulp\MinistryPlatform\MinistryPlatform
Retrieve the current MinistryPlatform instance
makeRecord(array $fields) : \Blackpulp\MinistryPlatform\Record
Create a new Record instance from the current Table instance.
array | $fields |