本文整理汇总了PHP中Preference::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Preference::delete方法的具体用法?PHP Preference::delete怎么用?PHP Preference::delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Preference
的用法示例。
在下文中一共展示了Preference::delete方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uninstall
/**
* uninstall
* This is a required plugin function. It removes our preferences from
* the database returning it to its original form
*/
public function uninstall()
{
Preference::delete('growl_address');
Preference::delete('growl_pass');
Preference::delete('growl_message');
Preference::delete('growl_registered_address');
return true;
}
示例2: uninstall
/**
* uninstall
* This is a required plugin function
*/
public function uninstall()
{
Preference::delete('amazon_base_url');
Preference::delete('amazon_max_results_pages');
Preference::delete('amazon_developer_public_key');
Preference::delete('amazon_developer_private_api_key');
Preference::delete('amazon_developer_associate_tag');
return true;
}
示例3: uninstall
/**
* uninstall
* This is a required plugin function. It removes our preferences from
* the database returning it to its original form
*/
public function uninstall()
{
Preference::delete('librefm_md5_pass');
Preference::delete('librefm_user');
Preference::delete('librefm_url');
Preference::delete('librefm_host');
Preference::delete('librefm_port');
Preference::delete('librefm_challenge');
}
示例4: uninstall
/**
* uninstall
* This is a required plugin function. It removes our preferences from
* the database returning it to its original form
*/
public function uninstall()
{
Preference::delete('catalogfav_max_items');
return true;
}
示例5: uninstall
/**
* uninstall
* This removes the localplay controller
*/
public function uninstall()
{
$sql = "DROP TABLE `localplay_mpd`";
$db_results = Dba::write($sql);
Preference::delete('mpd_active');
return true;
}
示例6: uninstall
/**
* uninstall
* This is a required plugin function. It removes our preferences from
* the database returning it to its original form
*/
public function uninstall()
{
Preference::delete('rssview_feed_url');
Preference::delete('rssview_max_items');
return true;
}
示例7: uninstall
/**
* uninstall
* This is a required plugin function. It removes our preferences from
* the database returning it to its original form
*/
public function uninstall()
{
Preference::delete('yourls_domain');
Preference::delete('yourls_use_idn');
Preference::delete('yourls_api');
}
示例8: uninstall
/**
* uninstall
* This is a required plugin function
*/
public function uninstall()
{
Preference::delete('tadb_api_key');
return true;
}
示例9: uninstall
/**
* uninstall
* This is a required plugin function. It removes our preferences from
* the database returning it to its original form
*/
public function uninstall()
{
Preference::delete('bitly_username');
Preference::delete('bitly_api_key');
}
示例10: uninstall
/**
* uninstall
* This removes the localplay controller
*/
public function uninstall()
{
$sql = "DROP TABLE `localplay_vlc`";
$db_results = Dba::query($sql);
// Remove the pref we added for this
Preference::delete('vlc_active');
return true;
}
示例11: uninstall
/**
* uninstall
* This is a required plugin function
*/
public function uninstall()
{
Preference::delete('discogs_api_key');
Preference::delete('discogs_secret_api_key');
return true;
}
示例12: upgrade
/**
* upgrade
* This is a recommended plugin function
*/
public function upgrade()
{
$from_version = Plugin::get_plugin_version($this->name);
if ($from_version < 4) {
Preference::rename('lastfm_pass', 'lastfm_md5_pass');
}
if ($from_version < 5) {
Preference::delete('lastfm_md5_pass');
Preference::delete('lastfm_user');
Preference::delete('lastfm_url');
Preference::delete('lastfm_host');
Preference::delete('lastfm_port');
Preference::insert('lastfm_grant_link', 'Last.FM Grant URL', '', '25', 'string', 'plugins');
}
return true;
}
示例13: google_maps_call_after_uninstall
function google_maps_call_after_uninstall()
{
$dao_preference = new Preference();
$dao_preference->delete(array("s_section" => "plugin-google_maps", "s_name" => "google_maps_key"));
unset($dao_preference);
}