当前位置: 首页>>代码示例>>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;未经允许,请勿转载。