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