本文整理汇总了PHP中Cx\Core\Setting\Controller\Setting::deleteModule方法的典型用法代码示例。如果您正苦于以下问题:PHP Setting::deleteModule方法的具体用法?PHP Setting::deleteModule怎么用?PHP Setting::deleteModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cx\Core\Setting\Controller\Setting
的用法示例。
在下文中一共展示了Setting::deleteModule方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testStoreFromPost
public function testStoreFromPost()
{
\DBG::log('*** testStoreFromPost ***');
global $_POST, $_FILES;
Setting::init('MultiSiteTest', 'posttestgroup', 'FileSystem');
//Setting::add('key10.1', '', false, Setting::TYPE_FILEUPLOAD);
Setting::add('key10.2', '', false, Setting::TYPE_CHECKBOX);
Setting::add('key10.3', '', false, Setting::TYPE_CHECKBOXGROUP);
Setting::add('key10.4', '');
$_POST = array('key10.2' => 'postcheckboxvalue10', 'key10.3' => array_flip(array(1, 2, 3, 4, 5, 6)), 'key10.4' => 'postvalue10');
try {
Setting::storeFromPost();
} catch (Exception $e) {
} finally {
Setting::init('MultiSiteTest', 'posttestgroup', 'FileSystem');
$this->assertEquals('postcheckboxvalue10', Setting::getValue('key10.2'));
$this->assertEquals('1,2,3,4,5,6', Setting::getValue('key10.3'));
$this->assertEquals('postvalue10', Setting::getValue('key10.4'));
Setting::init('MultiSiteTest', null, 'FileSystem');
Setting::deleteModule();
}
}