本文整理匯總了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');