当前位置: 首页>>代码示例>>PHP>>正文


PHP Preference::delete方法代码示例

本文整理汇总了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;
 }
开发者ID:nioc,项目名称:ampache,代码行数:13,代码来源:Growl.plugin.php

示例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;
 }
开发者ID:cheese1,项目名称:ampache,代码行数:13,代码来源:Amazon.plugin.php

示例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');
 }
开发者ID:axelsimon,项目名称:ampache,代码行数:14,代码来源:Librefm.plugin.php

示例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;
 }
开发者ID:bl00m,项目名称:ampache,代码行数:10,代码来源:CatalogFavorites.plugin.php

示例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;
 }
开发者ID:nioc,项目名称:ampache,代码行数:11,代码来源:mpd.controller.php

示例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;
 }
开发者ID:nioc,项目名称:ampache,代码行数:11,代码来源:RSSView.plugin.php

示例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');
 }
开发者ID:axelsimon,项目名称:ampache,代码行数:11,代码来源:Yourls.plugin.php

示例8: uninstall

 /**
  * uninstall
  * This is a required plugin function
  */
 public function uninstall()
 {
     Preference::delete('tadb_api_key');
     return true;
 }
开发者ID:cheese1,项目名称:ampache,代码行数:9,代码来源:TheAudioDb.plugin.php

示例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');
 }
开发者ID:nioc,项目名称:ampache,代码行数:10,代码来源:Bitly.plugin.php

示例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;
 }
开发者ID:cheese1,项目名称:ampache,代码行数:12,代码来源:vlc.controller.php

示例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;
 }
开发者ID:bl00m,项目名称:ampache,代码行数:10,代码来源:Discogs.plugin.php

示例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;
 }
开发者ID:cheese1,项目名称:ampache,代码行数:20,代码来源:Lastfm.plugin.php

示例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);
}
开发者ID:hashemgamal,项目名称:OSClass,代码行数:6,代码来源:index.php


注:本文中的Preference::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。