TwistPHP Documentation

uninstall

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

uninstallRemove/Uninstall a particular setting or group of settings form the Database or File depending on how TwistPHP has been configured.

Parameters

Name Type Description
$strPackagestringn/a
[$strKey = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strPackage 'foo';
$strKey null;

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