File path: dist/twist/Core/Models/Settings.model.php
Namespace: Twist\Core\Models
install
— Install/Add a new setting into the Database or File depending on how TwistPHP has been configured.
Name | Description |
---|---|
$strPackage | n/a |
$strGroup | n/a |
$strKey | n/a |
$mxdValue | n/a |
$strTitle | n/a |
$strDescription | n/a |
$strDefault | n/a |
$strType | n/a |
$strOptions | n/a |
[$blNull = false] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strPackage = 'foo';
$strGroup = 'foo';
$strKey = 'foo';
$mxdValue = 'foo-123';
$strTitle = 'foo';
$strDescription = 'foo';
$strDefault = 'foo';
$strType = 'foo';
$strOptions = 'foo';
$blNull = false;
//Call the function install with the example vars
$resSettings = new \Twist\Core\Models\Settings();
$resSettings -> install($strPackage, $strGroup, $strKey, $mxdValue, $strTitle, $strDescription, $strDefault, $strType, $strOptions, $blNull);