TwistPHP Documentation

set

File path: dist/twist/Core/Models/Settings.model.php
Namespace: Twist\Core\Models
Extends:

setSet a value against a particular setting Key, the value will be stored in the Database or File depending on how TwistPHP has been configured.

Parameters

Name Type Description
$strKeystringn/a
$mxdDatamixedn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strKey 'foo';
$mxdData 'foo-123';

//Call the function set with the example vars
$resSettings = new \Twist\Core\Models\Settings();
$resSettings -> set($strKey$mxdData);