本文整理汇总了PHP中Cx\Core\Setting\Controller\Setting::getSettings方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::getSettings方法的具体用法?PHP Setting::getSettings怎么用?PHP Setting::getSettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cx\Core\Setting\Controller\Setting
的用法示例。
在下文中一共展示了Setting::getSettings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testAddGetDeleteValueFromFileSystem
public function testAddGetDeleteValueFromFileSystem()
{
\DBG::log('*** testAddAndGetValueFromFileSystem ***');
$this->addValuesFileSystem();
$this->addValuesFileSystem();
Setting::init('MultiSiteTest', null, 'FileSystem');
$this->assertEquals('value6.1', Setting::getValue('key6.1'));
$this->assertEquals('value6.2', Setting::getValue('key6.2'));
$this->assertEquals('value8.1', Setting::getValue('key8.1', 'SupportTest'));
$this->assertEquals('value8.2', Setting::getValue('key8.2', 'SupportTest'));
$this->assertEquals('value7.1', Setting::getValue('key7.1'));
$this->assertEquals('value7.2', Setting::getValue('key7.2'));
/** delete check **/
Setting::init('MultiSiteTest', 'testgroup1', 'Database');
Setting::delete('key1.1');
Setting::init('MultiSiteTest', 'testgroup1', 'Database');
$this->assertNull(Setting::getValue('key1.1'));
$this->deleteValuesFileSystem();
Setting::init('MultiSiteTest', null, 'FileSystem');
$this->assertEmpty(Setting::getSettings('MultiSiteTest', 'FileSystem'));
Setting::init('SupportTest', null, 'FileSystem');
$this->assertEmpty(Setting::getSettings('SupportTest', 'FileSystem'));
}