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


PHP Requests::view_feedback_request方法代码示例

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


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

示例1: while

    function view_feedback_request($db_object, $common, $user_id, $all_ids)
    {
        $path = $common->path;
        $template = $path . "/templates/learning/view_all_requests.html";
        $returncontent = $common->return_file_content($db_object, $template);
        $returncontent = $common->direct_replace($db_object, $returncontent, $array);
        preg_match("/<{people_loopstart}>(.*?)<{people_loopend}>/s", $returncontent, $match1);
        $internalcon = $match1[1];
        preg_match("/<{reports_loopstart}>(.*?)<{reports_loopend}>/s", $returncontent, $match2);
        $directcon = $match1[1];
        preg_match("/<{self_loopstart}>(.*?)<{self_loopend}>/s", $returncontent, $match3);
        $selfcon = $match1[1];
        while (list($val, $userarr) = @each($all_ids)) {
            while (list($userid, $chkval) = @each($userarr)) {
                $emp_name = $common->name_display($db_object, $userid);
                $repl = $val . "repl";
                $con = $val . "con";
                $mode = $val;
                ${$repl} .= preg_replace("/<{(.*?)}>/e", "\$\$1", ${$con});
            }
        }
        $returncontent = preg_replace("/<{people_loopstart}>(.*?)<{people_loopend}>/s", $internalrepl, $returncontent);
        $returncontent = preg_replace("/<{reports_loopstart}>(.*?)<{reports_loopend}>/s", $directrepl, $returncontent);
        $returncontent = preg_replace("/<{self_loopstart}>(.*?)<{self_loopend}>/s", $selfrepl, $returncontent);
        echo $returncontent;
    }
}
$obj = new Requests();
$all_ids = $learning->persons_to_be_rated($db_object, $common, $user_id);
$obj->view_feedback_request($db_object, $common, $user_id, $all_ids);
include "footer.php";
开发者ID:nloadholtes,项目名称:people-prodigy,代码行数:31,代码来源:view_all_requests.php


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