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


PHP Review::createReview方法代码示例

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


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

示例1: length_one

    $data->contribution1 = length_one(test_input(test_num($_POST["contribution1"])));
    $data->contribution2 = length_one(test_input(test_num($_POST["contribution2"])));
    $data->contribution3 = length_one(test_input(test_num($_POST["contribution3"])));
    $data->s3 = length_three(test_input(test_num($_POST["s3"])));
    $data->presentation1 = length_one(test_input(test_num($_POST["presentation1"])));
    $data->presentation2 = length_one(test_input(test_num($_POST["presentation2"])));
    $data->presentation3 = length_one(test_input(test_num($_POST["presentation3"])));
    $data->presentation4 = length_one(test_input(test_num($_POST["presentation4"])));
    $data->presentation5 = length_one(test_input(test_num($_POST["presentation5"])));
    $data->s4 = length_three(test_input(test_num($_POST["s4"])));
    $data->s5 = length_three(test_input(test_num($_POST["s5"])));
    $data->s6 = length_one(test_input(test_grade($_POST["s6"])));
    $data->impression = input_length(test_input($_POST["impression"]));
    $data->rname = input_length(test_input($_POST["rname"]));
    $data->date = length_date(test_input($_POST["date"]));
    $data->feedback = input_length(test_input($_POST["feedback"]));
    // Create the review
    $review = Review::createReview($data);
    // Add it to the submission
    $submission->addReview($review->id);
    echo '<h3>Success!</h3><a href="?"><button class="btn btn-success">Go back</button></a>';
} else {
    $data;
    $latestID = $submission->getLatestReview($user->id);
    // If user already has a review
    if ($latestID > -1) {
        $review = new Review($latestID);
        $data = $review->data;
    }
    include 'includes/content/dp_thesis-eval_supervisor.php';
}
开发者ID:RosanderOliver,项目名称:DV1512_Projekt_HT2015,代码行数:31,代码来源:reviewthesis.php

示例2: test_input

    $form->s2 = test_input(test_num($_POST["s2"]));
    $form->presentation1 = test_input(test_num($_POST["presentation1"]));
    $form->presentationcomment1 = test_input($_POST["presentationcomment1"]);
    $form->presentation2 = test_input(test_num($_POST["presentation2"]));
    $form->presentationcomment2 = test_input($_POST["presentationcomment2"]);
    $form->presentation3 = test_input(test_num($_POST["presentation3"]));
    $form->presentationcomment3 = test_input($_POST["presentationcomment3"]);
    $form->presentation4 = test_input(test_num($_POST["presentation4"]));
    $form->presentationcomment4 = test_input($_POST["presentationcomment4"]);
    $form->presentation5 = test_input(test_num($_POST["presentation5"]));
    $form->presentationcomment5 = test_input($_POST["presentationcomment5"]);
    $form->s3 = test_num(test_input(test_num($_POST["s3"])));
    $form->s4 = test_num(test_input(test_num($_POST["s4"])));
    $form->feedback = test_input($_POST["feedback"]);
    // Create the review
    $review = Review::createReview($form);
    // Add it to the submission
    $submission->addReview($review->id);
    echo '<h3>Success!</h3><a href="?"><button class="btn btn-success">Go back</button></a>';
} else {
    $data;
    if (isset($uid)) {
        $latestID = $submission->getLatestReview($uid);
    } else {
        $latestID = $submission->getLatestReview($user->id);
    }
    // If user already has a review
    if ($latestID > -1) {
        $review = new Review($latestID);
        $data = $review->data;
    }
开发者ID:RosanderOliver,项目名称:DV1512_Projekt_HT2015,代码行数:31,代码来源:reviewplan.php


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