本文整理汇总了PHP中Option::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Option::delete方法的具体用法?PHP Option::delete怎么用?PHP Option::delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Option
的用法示例。
在下文中一共展示了Option::delete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Option
function test_delete()
{
// arrange
$name = "Vegan";
$test_option = new Option($name);
$test_option->save();
$name2 = "Seafood-free";
$test_option2 = new Option($name2);
$test_option2->save();
// act
$test_option2->delete();
$result = Option::getAll();
// assert
$this->assertEquals([$test_option], $result);
}
示例2: defined
<?php
defined('MONSTRA_ACCESS') or die('No direct script access.');
// Delete Options
Option::delete('sandbox');
Option::delete('sandbox_template');
示例3: defined
<?php
// let only monstra allow to use this script
defined('MONSTRA_ACCESS') or die('No direct script access.');
// Delete Options
Option::delete('toggle_duration');
Option::delete('toggle_easing');
示例4: defined
<?php
// let only monstra allow to use this script
defined('MONSTRA_ACCESS') or die('No direct script access.');
// drop db tables
// Table::drop('events');
// Table::drop('categories');
// Table::drop('locations');
// Delete Options
Option::delete('upcon_title');
Option::delete('upcon_id');
Option::delete('upcon_active');
Option::delete('upcon_mail_confirmation');
Option::delete('upcon_mail_confirmation_subject');
Option::delete('upcon_mail_info');
Option::delete('upcon_mail_info_subject');
Option::delete('upcon_admin_mail');
示例5: delete_opt
/**
*
*/
public function delete_opt($i_key)
{
return Option::delete(get_called_class(), $this->id, $i_key);
}
示例6: defined
<?php
defined('MONSTRA_ACCESS') or die('No direct script access.');
// Delete Options
Option::delete('captcha_installed');