PHP code example of jaeger-app / settings
1. Go to this page and download the library: Download jaeger-app/settings library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jaeger-app / settings example snippets
class MyPluginSettings extends \JaegerApp\Settings
{
/**
* The name of the settings storage table
*
* @var string
*/
protected $table = 'my_plugin_settings';
/**
* The accepted settings with a default value
*
* @var array
*/
protected $_defaults = array(
'key1' => 'value1',
'key2' => 'value2',
);
public function __construct($db, $lang)
{
parent::__construct($db, $lang);
$this->setTable($this->table);
$this->setTable($this->table);
}
public function validate(array $data, array $extra = array())
{}
}