save()" to store any changes made to the database.">
File path: dist/twist/Core/Models/Database/Record.model.php
Namespace: Twist\Core\Models\Database
set
— Set a single field in the record to a new value, you must call "->save()" to store any changes made to the database
Name | Description |
---|---|
$strField | n/a |
$strValue | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strField = 'foo';
$strValue = 'foo';
//Call the function set with the example vars
$resRecord = new \Twist\Core\Models\Database\Record();
$resRecord -> set($strField, $strValue);