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


PHP setOptionDefault函數代碼示例

本文整理匯總了PHP中setOptionDefault函數的典型用法代碼示例。如果您正苦於以下問題:PHP setOptionDefault函數的具體用法?PHP setOptionDefault怎麽用?PHP setOptionDefault使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: getOptionsSupported

 function getOptionsSupported()
 {
     setOptionDefault('ldap_id_offset', 100000);
     $options = parent::getOptionsSupported();
     $ldapOptions = LDAP_auth_options::getOptionsSupported();
     return array_merge($ldapOptions, $options);
 }
開發者ID:ariep,項目名稱:ZenPhoto20-DEV,代碼行數:7,代碼來源:LDAP+auth.php

示例2: __construct

 function __construct()
 {
     setOptionDefault('htmlmeta_cache_control', 'no-cache');
     setOptionDefault('htmlmeta_pragma', 'no-cache');
     setOptionDefault('htmlmeta_robots', 'index');
     setOptionDefault('htmlmeta_revisit_after', '10 Days');
     setOptionDefault('htmlmeta_expires', '43200');
     setOptionDefault('htmlmeta_tags', '');
     // the html meta tag selector prechecked ones
     setOptionDefault('htmlmeta_htmlmeta_tags', '1');
     setOptionDefault('htmlmeta_http-equiv-cache-control', '1');
     setOptionDefault('htmlmeta_http-equiv-pragma', '1');
     setOptionDefault('htmlmeta_name=keywords', '1');
     setOptionDefault('htmlmeta_name-description', '1');
     setOptionDefault('htmlmeta_name-robot', '1');
     setOptionDefault('htmlmeta_name-publisher', '1');
     setOptionDefault('htmlmeta_name-creator', '1');
     setOptionDefault('htmlmeta_name-author', '1');
     setOptionDefault('htmlmeta_name-copyright', '1');
     setOptionDefault('htmlmeta_name-generator', '1');
     setOptionDefault('htmlmeta_name-revisit-after', '1');
     setOptionDefault('htmlmeta_name-expires', '1');
     setOptionDefault('htmlmeta_name-generator', '1');
     setOptionDefault('htmlmeta_name-date', '1');
     setOptionDefault('htmlmeta_canonical-url', '0');
     setOptionDefault('htmlmeta_sitelogo', '');
     setOptionDefault('htmlmeta_twittercard', '');
     setOptionDefault('htmlmeta_twittername', '');
     setOptionDefault('htmlmeta_ogimage_width', 1280);
     setOptionDefault('htmlmeta_ogimage_height', 900);
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('html_meta_tags');
         cacheManager::addThemeCacheSize('html_meta_tags', NULL, getOption('htmlmeta_ogimage_width'), getOption('htmlmeta_ogimage_height'), NULL, NULL, NULL, NULL, NULL, NULL, NULL, true);
     }
 }
開發者ID:rb26,項目名稱:zenphoto,代碼行數:35,代碼來源:html_meta_tags.php

示例3: __construct

 function __construct()
 {
     setOptionDefault('print_album_menu_showsubs', 0);
     setOptionDefault('print_album_menu_count', 1);
     setOptionDefault('menu_truncate_string', 0);
     setOptionDefault('menu_truncate_indicator', '');
 }
開發者ID:rauldobrota,項目名稱:zenphoto,代碼行數:7,代碼來源:print_album_menu.php

示例4: __construct

 /**
  * class instantiation function
  *
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('elFinder_files', 1);
         setOptionDefault('elFinder_tinymce', 0);
     }
 }
開發者ID:ariep,項目名稱:ZenPhoto20-DEV,代碼行數:11,代碼來源:elFinder.php

示例5: flowplayer3_options

 function flowplayer3_options()
 {
     setOptionDefault('flow_player3_width', '320');
     setOptionDefault('flow_player3_height', '240');
     setOptionDefault('flow_player3_controlsbackgroundcolor', '#110e0e');
     setOptionDefault('flow_player3_controlsbackgroundcolorgradient', 'none');
     setOptionDefault('flow_player3_controlsbordercolor', '#000000');
     setOptionDefault('flow_player3_autoplay', '');
     setOptionDefault('flow_player3_backgroundcolor', '#000000');
     setOptionDefault('flow_player3_backgroundcolorgradient', 'none');
     setOptionDefault('flow_player3_controlsautohide', 'never');
     setOptionDefault('flow_player3_controlstimecolor', '#fcfcfc');
     setOptionDefault('flow_player3_controlsdurationcolor', '#ffffff');
     setOptionDefault('flow_player3_controlsprogresscolor', '#ffffff');
     setOptionDefault('flow_player3_controlsprogressgradient', 'low');
     setOptionDefault('flow_player3_controlsbuffercolor', '#275577');
     setOptionDefault('flow_player3_controlsbuffergradient', 'low');
     setOptionDefault('flow_player3_controlsslidercolor', '#ffffff');
     setOptionDefault('flow_player3_controlsslidergradient', 'low');
     setOptionDefault('flow_player3_controlsbuttoncolor', '#567890');
     setOptionDefault('flow_player3_controlsbuttonovercolor', '#999999');
     setOptionDefault('flow_player3_splashimagescale', 'fit');
     setOptionDefault('flow_player3_scaling', 'fit');
     setOptionDefault('flow_player3_mp3coverimage', '');
 }
開發者ID:hatone,項目名稱:zenphoto-1.4.1.4,代碼行數:25,代碼來源:flowplayer3.php

示例6: __construct

 /**
  *
  * class instantiator
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('menu_truncate_string', 0);
         setOptionDefault('menu_truncate_indicator', '');
     }
 }
開發者ID:ariep,項目名稱:ZenPhoto20-DEV,代碼行數:11,代碼來源:menu_manager.php

示例7: __construct

 function __construct()
 {
     $me = basename(dirname(__FILE__));
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Theme_colors', 'light');
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('image_size', 595);
     setThemeOptionDefault('image_use_side', 'longest');
     setThemeOptionDefault('thumb_size', 100);
     setThemeOptionDefault('thumb_crop_width', 100);
     setThemeOptionDefault('thumb_crop_height', 100);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('thumb_transition', 1);
     setOptionDefault('colorbox_' . $me . '_album', 1);
     setOptionDefault('colorbox_' . $me . '_image', 1);
     setOptionDefault('colorbox_' . $me . '_search', 1);
     if (class_exists('cacheManager')) {
         $me = basename(dirname(__FILE__));
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL);
         cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, NULL, NULL, NULL);
     }
 }
開發者ID:rb26,項目名稱:zenphoto,代碼行數:26,代碼來源:themeoptions.php

示例8: __construct

 function __construct()
 {
     setOptionDefault('htmlmeta_cache_control', 'no-cache');
     setOptionDefault('htmlmeta_pragma', 'no-cache');
     setOptionDefault('htmlmeta_robots', 'index');
     setOptionDefault('htmlmeta_revisit_after', '10 Days');
     setOptionDefault('htmlmeta_expires', '43200');
     setOptionDefault('htmlmeta_tags', '');
     // the html meta tag selector prechecked ones
     setOptionDefault('htmlmeta_htmlmeta_tags', '1');
     setOptionDefault('htmlmeta_http-equiv-cache-control', '1');
     setOptionDefault('htmlmeta_http-equiv-pragma', '1');
     setOptionDefault('htmlmeta_name=keywords', '1');
     setOptionDefault('htmlmeta_name-description', '1');
     setOptionDefault('htmlmeta_name-robot', '1');
     setOptionDefault('htmlmeta_name-publisher', '1');
     setOptionDefault('htmlmeta_name-creator', '1');
     setOptionDefault('htmlmeta_name-author', '1');
     setOptionDefault('htmlmeta_name-copyright', '1');
     setOptionDefault('htmlmeta_name-generator', '1');
     setOptionDefault('htmlmeta_name-revisit-after', '1');
     setOptionDefault('htmlmeta_name-expires', '1');
     setOptionDefault('htmlmeta_name-generator', '1');
     setOptionDefault('htmlmeta_name-date', '1');
     setOptionDefault('htmlmeta_canonical-url', '0');
     setOptionDefault('htmlmeta_sitelogo', '');
     setOptionDefault('htmlmeta_twittercard', '');
     setOptionDefault('htmlmeta_twittername', '');
 }
開發者ID:andrewfandrew,項目名稱:ferdinand-miranda,代碼行數:29,代碼來源:html_meta_tags.php

示例9: viewer_size_image_options

 function viewer_size_image_options()
 {
     $default = getOption('image_size');
     setOptionDefault('viewer_size_image_sizes', '$s=' . ($default - 200) . '; $s=' . ($default - 100) . '; $s=' . $default . '; $s=' . ($default + 100) . '; $s=' . ($default + 200) . ';');
     setOptionDefault('viewer_size_image_default', '$s=' . $default);
     setOptionDefault('viewer_size_image_radio', 2);
 }
開發者ID:hatone,項目名稱:zenphoto-1.4.1.4,代碼行數:7,代碼來源:viewer_size_image.php

示例10: VideoObject_Options

 function VideoObject_Options()
 {
     setOptionDefault('zp_plugin_class-video_mov_w', 520);
     setOptionDefault('zp_plugin_class-video_mov_h', 390);
     setOptionDefault('zp_plugin_class-video_3gp_w', 520);
     setOptionDefault('zp_plugin_class-video_3gp_h', 390);
 }
開發者ID:hatone,項目名稱:zenphoto-1.4.1.4,代碼行數:7,代碼來源:class-video.php

示例11: __construct

 /**
  * class instantiation function
  *
  * @return filter_zenphoto_seo
  */
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('quota_default', 250000);
         setOptionDefault('quota_allowZIP', 1);
     }
 }
開發者ID:ariep,項目名稱:ZenPhoto20-DEV,代碼行數:12,代碼來源:quota_manager.php

示例12: ThemeOptions

 function ThemeOptions()
 {
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('demoTheme_colors', 'none');
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('image_size', 595);
     setThemeOptionDefault('image_use_side', 'longest');
     setThemeOptionDefault('thumb_size', 100);
     setThemeOptionDefault('thumb_crop_width', 100);
     setThemeOptionDefault('thumb_crop_height', 100);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('thumb_transition', 1);
     /*
     	You can of course also set other options if your theme requires this.
     	This example enables the colorbox plugin if it is used for the theme pages noted.
     */
     setOptionDefault('colorbox_default_album', 1);
     setOptionDefault('colorbox_default_image', 1);
     setOptionDefault('colorbox_default_search', 1);
     /*
     	This is adds support for the cache manager so you can pre-cache your thumbs and other sized images as defined.
     	Zenphoto generally does this on the fly when needed but on very slow servers or if you have really a lot of images that also are quite big
     	it might be necessary to do this.
     */
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('default');
         cacheManager::addThemeCacheSize('default', getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL);
         cacheManager::addThemeCacheSize('default', getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, getOption('Image_watermark'), NULL, NULL);
     }
 }
開發者ID:benuri,項目名稱:DevTools,代碼行數:33,代碼來源:themeoptions.php

示例13: SpamFilter

 /**
  * The SpamFilter class instantiation function.
  *
  * @return SpamFilter
  */
 function SpamFilter()
 {
     setOptionDefault('Words_to_die_on', implode(',', $this->wordsToDieOn));
     setOptionDefault('Patterns_to_die_on', implode(' ', $this->patternsToDieOn));
     setOptionDefault('Excessive_URL_count', $this->excessiveURLCount);
     setOptionDefault('Forgiving', 0);
 }
開發者ID:ItsHaden,項目名稱:epicLanBootstrap,代碼行數:12,代碼來源:simple.php

示例14: __construct

 function __construct()
 {
     $effect = getPluginFiles('*.txt', 'image_effects');
     foreach ($this->effects = array_keys($effect) as $suffix) {
         setOptionDefault('image_effects_random_' . $suffix, 1);
     }
 }
開發者ID:rb26,項目名稱:zenphoto,代碼行數:7,代碼來源:image_effects.php

示例15: trackbackOptions

 function trackbackOptions()
 {
     setOptionDefault('trackback_news', 1);
     setOptionDefault('trackback_pages', 1);
     setOptionDefault('trackback_images', 1);
     setOptionDefault('trackback_albums', 1);
 }
開發者ID:Imagenomad,項目名稱:Unsupported,代碼行數:7,代碼來源:comment_trackback.php


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