本文整理汇总了PHP中wpdreamsType::getErrorNum方法的典型用法代码示例。如果您正苦于以下问题:PHP wpdreamsType::getErrorNum方法的具体用法?PHP wpdreamsType::getErrorNum怎么用?PHP wpdreamsType::getErrorNum使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wpdreamsType
的用法示例。
在下文中一共展示了wpdreamsType::getErrorNum方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ob_get_clean
?>
</div>
<div class="item">
<input type='submit' class='submit' value='Save options'/>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$fulltext = wpdreams_fulltext::getInstance();
$fulltext_enabled = $fulltext->check(array('posts'));
$fulltext_indexed = $fulltext->indexExists('posts', 'asp_title');
$updated = false;
if (isset($_POST) && isset($_POST['fulltext']) && wpdreamsType::getErrorNum() == 0) {
foreach ($_POST as $key => $value) {
if (is_string($key) && strpos('asp_', $key) == 0) {
update_option($key, $value);
$updated = true;
}
}
}
?>
<?php
$_comp = wpdreamsCompatibility::Instance();
if ($_comp->has_errors()) {
?>
<div class="wpdreams-slider errorbox">
<p class='errors'>Possible incompatibility! Please go to the <a href="<?php
echo get_admin_url() . "admin.php?page=ajax-search-pro/comp_check.php";
示例2: ob_start
<div class="wpdreams-box">
<?php
ob_start();
?>
<div class="item">
<?php
$o = new wpdreamsYesNo("enabled", "Enable performance tracking?", wpdreams_setval_or_getoption($perf_options, 'enabled', 'asp_performance_def'));
?>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$updated = false;
if (isset($_POST) && isset($_POST['asp_performance']) && wpdreamsType::getErrorNum() == 0) {
$values = array("enabled" => $_POST['enabled']);
update_option('asp_performance', $values);
$updated = true;
}
if (isset($_POST) && isset($_POST['asp_perf_clear'])) {
$pstats = new wpd_Performance('asp_performance_stats');
$pstats->reset();
}
?>
<?php
$pstats = new wpd_Performance('asp_performance_stats');
$asp_performance = $pstats->get_data();
$_comp = wpdreamsCompatibility::Instance();
if ($_comp->has_errors()) {
?>
示例3: wpdreamsText
<div class="item">
<?php
$o = new wpdreamsText("cachinginterval", "Caching interval (in minutes, default 1440, aka. 1 day)", wpdreams_setval_or_getoption($cache_options, 'cachinginterval', 'asp_caching_def'), array(array("func" => "ctype_digit", "op" => "eq", "val" => true)));
?>
</div>
<div class="item">
<input type='submit' class='submit' value='Save options'/>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$updated = false;
if (isset($_POST) && isset($_POST['asp_caching']) && wpdreamsType::getErrorNum() == 0) {
$values = array("caching" => $_POST['caching'], "image_cropping" => $_POST['image_cropping'], "use_bfi_thumb" => $_POST['use_bfi_thumb'], "cachinginterval" => $_POST['cachinginterval']);
update_option('asp_caching', $values);
$updated = true;
}
?>
<?php
$_comp = wpdreamsCompatibility::Instance();
if ($_comp->has_errors()) {
?>
<div class="wpdreams-slider errorbox">
<p class='errors'>Possible incompatibility! Please go to the <a
href="<?php
echo get_admin_url() . "admin.php?page=ajax-search-pro/backend/comp_check.php";
?>
示例4: wpdreamsText
$o = new wpdreamsText("analytics_string", "Google analytics pageview string", wpdreams_setval_or_getoption($ana_options, "analytics_string", 'asp_analytics_def'));
?>
<p class='infoMsg'>
This is how the pageview will look like on the google analytics website. Use the {asp_term} variable to add the search term to the pageview.
</p>
</div>
<div class="item">
<input type='submit' class='submit' value='Save options'/>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$updated = false;
if (isset($_POST) && isset($_POST['asp_analytics']) && wpdreamsType::getErrorNum() == 0) {
print "saving!";
$values = array("analytics" => $_POST['analytics'], "analytics_string" => $_POST['analytics_string']);
update_option('asp_analytics', $values);
$updated = true;
}
?>
<?php
$_comp = wpdreamsCompatibility::Instance();
if ($_comp->has_errors()) {
?>
<div class="wpdreams-slider errorbox">
<p class='errors'>Possible incompatibility! Please go to the <a href="<?php
echo get_admin_url() . "admin.php?page=ajax-search-pro/backend/comp_check.php";
?>
">error check</a> page to see the details and solutions!</p>
示例5: wpdreamsYesNo
<p class='infoMsg'>You can turn this off, if you are not using the polaroid-styled result list.</p>
<?php
$o = new wpdreamsYesNo("asp_loadpolaroidjs", "Load the polaroid gallery js?", postval_or_getoption('asp_loadpolaroidjs'));
?>
</div>
<div class="item">
<input type='submit' class='submit' value='Save options'/>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$updated = false;
if (isset($_POST) && isset($_POST['compatibility']) && wpdreamsType::getErrorNum() == 0) {
foreach ($_POST as $key => $value) {
if (is_string($key) && strpos('asp_', $key) == 0) {
update_option($key, $value);
$updated = true;
}
}
}
?>
<?php
$_comp = wpdreamsCompatibility::Instance();
if ($_comp->has_errors()) {
?>
<div class="wpdreams-slider errorbox">
<p class='errors'>Possible incompatibility! Please go to the <a href="<?php
echo get_admin_url() . "admin.php?page=ajax-search-pro/comp_check.php";
示例6: wpdreamsTextarea
</div>
<div class="item">
<?php
$o = new wpdreamsTextarea("it_exclude_shortcodes", "Remove these shortcodes", wpdreams_setval_or_getoption($it_options, 'it_exclude_shortcodes', 'asp_it_def'));
?>
<p class="descMsg"><strong>Comma</strong> separated list of shortcodes to remove. Use this to exclude
shortcodes, which does not reflect your content appropriately.</p>
</div>
</div>
<?php
$_r = ob_get_clean();
?>
<?php
$updated = false;
if (isset($_POST) && isset($_POST['submit_asp_index_options']) && wpdreamsType::getErrorNum() == 0) {
$values = array('it_index_title' => $_POST['it_index_title'], 'it_index_content' => $_POST['it_index_content'], 'it_index_excerpt' => $_POST['it_index_excerpt'], 'it_post_types' => $_POST['it_post_types'], 'it_index_tags' => $_POST['it_index_tags'], 'it_index_categories' => $_POST['it_index_categories'], 'it_index_taxonomies' => $_POST['it_index_taxonomies'], 'it_index_customfields' => $_POST['it_index_customfields'], 'it_post_statuses' => $_POST['it_post_statuses'], 'it_index_author_name' => $_POST['it_index_author_name'], 'it_index_author_bio' => $_POST['it_index_author_bio'], 'it_blog_ids' => $_POST['it_blog_ids'], 'it_limit' => $_POST['it_limit'], 'it_use_stopwords' => $_POST['it_use_stopwords'], 'it_stopwords' => $_POST['it_stopwords'], 'it_min_word_length' => $_POST['it_min_word_length'], 'it_extract_shortcodes' => $_POST['it_extract_shortcodes'], 'it_exclude_shortcodes' => $_POST['it_exclude_shortcodes']);
update_option('asp_it_options', $values);
$updated = true;
}
?>
<?php
$_comp = wpdreamsCompatibility::Instance();
if ($_comp->has_errors()) {
?>
<div class="wpdreams-slider errorbox">
<p class='errors'>Possible incompatibility! Please go to the <a
href="<?php
echo get_admin_url() . "admin.php?page=ajax-search-pro/backend/comp_check.php";
?>
">error