本文整理汇总了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);
}
示例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);
}
}
示例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', '');
}
示例4: __construct
/**
* class instantiation function
*
*/
function __construct()
{
if (OFFSET_PATH == 2) {
setOptionDefault('elFinder_files', 1);
setOptionDefault('elFinder_tinymce', 0);
}
}
示例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', '');
}
示例6: __construct
/**
*
* class instantiator
*/
function __construct()
{
if (OFFSET_PATH == 2) {
setOptionDefault('menu_truncate_string', 0);
setOptionDefault('menu_truncate_indicator', '');
}
}
示例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);
}
}
示例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', '');
}
示例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);
}
示例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);
}
示例11: __construct
/**
* class instantiation function
*
* @return filter_zenphoto_seo
*/
function __construct()
{
if (OFFSET_PATH == 2) {
setOptionDefault('quota_default', 250000);
setOptionDefault('quota_allowZIP', 1);
}
}
示例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);
}
}
示例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);
}
示例14: __construct
function __construct()
{
$effect = getPluginFiles('*.txt', 'image_effects');
foreach ($this->effects = array_keys($effect) as $suffix) {
setOptionDefault('image_effects_random_' . $suffix, 1);
}
}
示例15: trackbackOptions
function trackbackOptions()
{
setOptionDefault('trackback_news', 1);
setOptionDefault('trackback_pages', 1);
setOptionDefault('trackback_images', 1);
setOptionDefault('trackback_albums', 1);
}