當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。