當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Preference::exists方法代碼示例

本文整理匯總了PHP中Preference::exists方法的典型用法代碼示例。如果您正苦於以下問題:PHP Preference::exists方法的具體用法?PHP Preference::exists怎麽用?PHP Preference::exists使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Preference的用法示例。


在下文中一共展示了Preference::exists方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     if (Preference::exists('gmaps_api_key')) {
         return false;
     }
     Preference::insert('gmaps_api_key', 'GoogleMaps api key', '', '75', 'string', 'plugins', $this->name);
     return true;
 }
開發者ID:bl00m,項目名稱:ampache,代碼行數:13,代碼來源:GoogleMaps.plugin.php

示例2: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     if (Preference::exists('flickr_api_key')) {
         return false;
     }
     Preference::insert('flickr_api_key', 'Flickr api key', '', '25', 'string', 'plugins');
     return true;
 }
開發者ID:axelsimon,項目名稱:ampache,代碼行數:13,代碼來源:Flickr.plugin.php

示例3: install

 /**
  * install
  * This is a required plugin function
  */
 public function install()
 {
     if (Preference::exists('tmdb_api_key')) {
         return false;
     }
     Preference::insert('tmdb_api_key', 'Tmdb api key', '', '75', 'string', 'plugins');
     return true;
 }
開發者ID:nioc,項目名稱:ampache,代碼行數:12,代碼來源:Tmdb.plugin.php

示例4: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     // Check and see if it's already installed
     if (Preference::exists('flattr_user_id')) {
         return false;
     }
     Preference::insert('flattr_user_id', 'Flattr User ID', '', 25, 'string', 'plugins');
     return true;
 }
開發者ID:cheese1,項目名稱:ampache,代碼行數:14,代碼來源:Flattr.plugin.php

示例5: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     // Check and see if it's already installed
     if (Preference::exists('ftl_max_items')) {
         return false;
     }
     Preference::insert('ftl_max_items', 'Friends timeline max items', '5', '25', 'integer', 'plugins', $this->name);
     return true;
 }
開發者ID:bl00m,項目名稱:ampache,代碼行數:14,代碼來源:FriendsTimeline.plugin.php

示例6: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     // Check and see if it's already installed
     if (Preference::exists('googleanalytics_tracking_id')) {
         return false;
     }
     Preference::insert('googleanalytics_tracking_id', 'Google Analytics Tracking ID', '', 100, 'string', 'plugins', $this->name);
     return true;
 }
開發者ID:bl00m,項目名稱:ampache,代碼行數:14,代碼來源:GoogleAnalytics.plugin.php

示例7: install

 /**
  * install
  * This is a required plugin function
  */
 public function install()
 {
     if (Preference::exists('discogs_api_key')) {
         return false;
     }
     Preference::insert('discogs_api_key', 'Discogs consumer key', '', '75', 'string', 'plugins', $this->name);
     Preference::insert('discogs_secret_api_key', 'Discogs secret', '', '75', 'string', 'plugins', $this->name);
     return true;
 }
開發者ID:bl00m,項目名稱:ampache,代碼行數:13,代碼來源:Discogs.plugin.php

示例8: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     if (Preference::exists('stream_control_bandwidth_max')) {
         return false;
     }
     Preference::insert('stream_control_bandwidth_max', 'Stream control maximal bandwidth (Mo)', '1024', '50', 'integer', 'plugins', $this->name);
     Preference::insert('stream_control_bandwidth_days', 'Stream control bandwidth history (days)', '30', '50', 'integer', 'plugins', $this->name);
     return true;
 }
開發者ID:bl00m,項目名稱:ampache,代碼行數:14,代碼來源:StreamBandwidth.plugin.php

示例9: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     if (Preference::exists('7digital_api_key')) {
         return false;
     }
     Preference::insert('7digital_api_key', '7digital consumer key', '', '75', 'string', 'plugins');
     Preference::insert('7digital_secret_api_key', '7digital secret', '', '75', 'string', 'plugins');
     return true;
 }
開發者ID:nioc,項目名稱:ampache,代碼行數:14,代碼來源:7Digital.plugin.php

示例10: install

 /**
  * install
  * This is a required plugin function
  */
 public function install()
 {
     if (Preference::exists('tadb_api_key')) {
         return false;
     }
     // API Key requested in TheAudioDB forum, see http://www.theaudiodb.com/forum/viewtopic.php?f=6&t=8&start=140
     Preference::insert('tadb_api_key', 'TheAudioDb api key', '41214789306c4690752dfb', '75', 'string', 'plugins');
     return true;
 }
開發者ID:cheese1,項目名稱:ampache,代碼行數:13,代碼來源:TheAudioDb.plugin.php

示例11: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     if (Preference::exists('stream_control_hits_max')) {
         return false;
     }
     Preference::insert('stream_control_hits_max', 'Stream control maximal hits', '-1', '50', 'integer', 'plugins');
     Preference::insert('stream_control_hits_days', 'Stream control hits history (days)', '30', '50', 'integer', 'plugins');
     return true;
 }
開發者ID:ivan801,項目名稱:ampache,代碼行數:14,代碼來源:StreamHits.plugin.php

示例12: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     // Check and see if it's already installed
     if (Preference::exists('piwik_site_id')) {
         return false;
     }
     Preference::insert('piwik_site_id', 'Piwik Site ID', '1', 100, 'string', 'plugins', 'piwik');
     Preference::insert('piwik_url', 'Piwik URL', AmpConfig::get('web_path') . '/piwik/', 100, 'string', 'plugins', $this->name);
     return true;
 }
開發者ID:bl00m,項目名稱:ampache,代碼行數:15,代碼來源:Piwik.plugin.php

示例13: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     // Check and see if it's already installed (they've just hit refresh, those dorks)
     if (Preference::exists('lastfm_user')) {
         return false;
     }
     Preference::insert('lastfm_challenge', 'Last.FM Submit Challenge', '', '25', 'string', 'internal');
     Preference::insert('lastfm_grant_link', 'Last.FM Grant URL', '', '25', 'string', 'plugins');
     return true;
 }
開發者ID:cheese1,項目名稱:ampache,代碼行數:15,代碼來源:Lastfm.plugin.php

示例14: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     // Check and see if it's already installed
     if (Preference::exists('rssview_feed_url')) {
         return false;
     }
     Preference::insert('rssview_feed_url', 'RSS Feed url', '', '25', 'string', 'plugins');
     Preference::insert('rssview_max_items', 'RSS Feed max items', '5', '25', 'integer', 'plugins');
     return true;
 }
開發者ID:nioc,項目名稱:ampache,代碼行數:15,代碼來源:RSSView.plugin.php

示例15: install

 /**
  * install
  * This is a required plugin function. It inserts our preferences
  * into Ampache
  */
 public function install()
 {
     // Check and see if it's already installed
     if (Preference::exists('paypal_business')) {
         return false;
     }
     Preference::insert('paypal_business', 'Paypal ID', '', 25, 'string', 'plugins', $this->name);
     Preference::insert('paypal_currency_code', 'Paypal Currency Code', 'USD', 25, 'string', 'plugins', $this->name);
     return true;
 }
開發者ID:bl00m,項目名稱:ampache,代碼行數:15,代碼來源:Paypal.plugin.php


注:本文中的Preference::exists方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。