当前位置: 首页>>代码示例>>PHP>>正文


PHP EntryManager::fetchEntryRequiredFields方法代码示例

本文整理汇总了PHP中EntryManager::fetchEntryRequiredFields方法的典型用法代码示例。如果您正苦于以下问题:PHP EntryManager::fetchEntryRequiredFields方法的具体用法?PHP EntryManager::fetchEntryRequiredFields怎么用?PHP EntryManager::fetchEntryRequiredFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EntryManager的用法示例。


在下文中一共展示了EntryManager::fetchEntryRequiredFields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: switch

        }
    } else {
        General::redirect(URL . "/symphony/?page=/publish/section/new/&_sid=" . $section_id);
    }
} else {
    General::redirect(URL . "/symphony/?page=/publish/section/new/&_sid=" . $section_id);
}
if (isset($_GET['_f'])) {
    switch ($_GET['_f']) {
        case "saved":
            $Admin->pageAlert("saved-time", array("Entry", date("h:i:sa", $date->get(true, false))));
            break;
    }
}
if (defined("__SYM_ENTRY_MISSINGFIELDS__")) {
    $Admin->pageAlert("required", array(@implode(", ", $entryManager->fetchEntryRequiredFields($section_id, true))), false, 'error');
} elseif (defined("__SYM_ENTRY_VALIDATION_ERROR__")) {
    $Admin->pageAlert("validation", __SYM_ENTRY_VALIDATION_ERROR__, false, 'error');
} elseif (defined("__SYM_ENTRY_FIELD_XSLT_ERROR__")) {
    $Admin->pageAlert("xslt-validation", __SYM_ENTRY_FIELD_XSLT_ERROR__, false, 'error');
} else {
    $TFM = new TextformatterManager(array('parent' => &$Admin));
    $about = $TFM->about($fields['formatter']);
    $entry_formatter = $about['name'];
    $about = $TFM->about($Admin->getAuthorTextFormatter());
    $author_formatter = $about['name'];
    unset($TFM);
    if ($entry_formatter != $author_formatter) {
        $Admin->pageAlert("diff-formatter", array($entry_formatter ? $entry_formatter : "raw XHTML", $author_formatter ? $author_formatter : "raw XHTML"), false, 'error');
    }
}
开发者ID:symphonycms,项目名称:symphony-1.7,代码行数:31,代码来源:sym_publish_section_edit.php

示例2: EntryManager

                    $code .= "</select></label>" . CRLF;
                    break;
            }
            $code .= CRLF;
        }
    }
    return $code;
}
include_once TOOLKIT . "/class.entrymanager.php";
$entryManager = new EntryManager($Admin);
if (!($section = $DB->fetchRow(0, "SELECT * FROM `tbl_sections` WHERE `id` = '" . intval($_REQUEST['_sid']) . "' LIMIT 1"))) {
    $Admin->fatalError("Unknown Section", "<p>The Section you are looking for could not be found.</p>", true, true);
}
$GLOBALS['pageTitle'] = $section['name'] . " > Untitled";
if (defined("__SYM_ENTRY_MISSINGFIELDS__")) {
    $Admin->pageAlert("required", array(@implode(", ", $entryManager->fetchEntryRequiredFields($_REQUEST['_sid'], true))), false, 'error');
} elseif (defined("__SYM_ENTRY_VALIDATION_ERROR__")) {
    $Admin->pageAlert("validation", __SYM_ENTRY_VALIDATION_ERROR__, false, 'error');
} elseif (defined("__SYM_ENTRY_FIELD_XSLT_ERROR__")) {
    $Admin->pageAlert("xslt-validation", __SYM_ENTRY_FIELD_XSLT_ERROR__, false, 'error');
}
$date = $Admin->getDateObj();
$specify_date = NULL;
if (isset($_REQUEST['date']) && isset($_REQUEST['month']) && isset($_REQUEST['year'])) {
    $fields['publish_date'] = $_REQUEST['date'] . " " . $_REQUEST['month'] . " " . $_REQUEST['year'];
    $specify_date = true;
}
if (isset($_POST['fields'])) {
    $fields = $_POST['fields'];
    $specify_date = $_POST['specify_date'];
}
开发者ID:symphonycms,项目名称:symphony-1.7,代码行数:31,代码来源:sym_publish_section_new.php


注:本文中的EntryManager::fetchEntryRequiredFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。