TwistPHP Documentation

install

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

installInstall/Add a new setting into the Database or File depending on how TwistPHP has been configured.

Parameters

Name Type Description
$strPackagestringn/a
$strGroupstringn/a
$strKeystringn/a
$mxdValuemixedn/a
$strTitlestringn/a
$strDescriptionstringn/a
$strDefaultstringn/a
$strTypestringn/a
$strOptionsstringn/a
[$blNull = false]booleann/a

Return Values

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

Example

<?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);