當前位置: 首頁>>代碼示例>>PHP>>正文


PHP api::read_user_evidence方法代碼示例

本文整理匯總了PHP中core_competency\api::read_user_evidence方法的典型用法代碼示例。如果您正苦於以下問題:PHP api::read_user_evidence方法的具體用法?PHP api::read_user_evidence怎麽用?PHP api::read_user_evidence使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在core_competency\api的用法示例。


在下文中一共展示了api::read_user_evidence方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: data_for_user_evidence_page

 /**
  * Loads the data required to render the user_evidence_page template.
  *
  * @param int $id User id.
  * @return boolean
  */
 public static function data_for_user_evidence_page($id)
 {
     global $PAGE;
     $params = self::validate_parameters(self::data_for_user_evidence_page_parameters(), array('id' => $id));
     $userevidence = api::read_user_evidence($id);
     self::validate_context($userevidence->get_context());
     $output = $PAGE->get_renderer('tool_lp');
     $renderable = new \tool_lp\output\user_evidence_page($userevidence);
     return $renderable->export_for_template($output);
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:16,代碼來源:external.php

示例2: request_review_of_user_evidence_linked_competencies

 /**
  * Send user evidence competencies to review.
  *
  * @param int $id The user evidence id.
  * @return boolean
  */
 public static function request_review_of_user_evidence_linked_competencies($id)
 {
     $params = self::validate_parameters(self::request_review_of_user_evidence_linked_competencies_parameters(), array('id' => $id));
     $userevidence = api::read_user_evidence($id);
     self::validate_context($userevidence->get_context());
     return api::request_review_of_user_evidence_linked_competencies($id);
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:13,代碼來源:external.php

示例3: require_login

// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
/**
 * User evidence (evidence of prior learning).
 *
 * @package    tool_lp
 * @copyright  2015 Frédéric Massart - FMCorz.net
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
require_once __DIR__ . '/../../../config.php';
require_login(null, false);
if (isguestuser()) {
    throw new require_login_exception('Guests are not allowed here.');
}
\core_competency\api::require_enabled();
$id = required_param('id', PARAM_INT);
$userevidence = \core_competency\api::read_user_evidence($id);
$url = new moodle_url('/admin/tool/lp/user_evidence.php', array('id' => $id));
list($title, $subtitle) = \tool_lp\page_helper::setup_for_user_evidence($userevidence->get_userid(), $url, $userevidence);
$output = $PAGE->get_renderer('tool_lp');
echo $output->header();
$page = new \tool_lp\output\user_evidence_page($userevidence);
echo $output->render($page);
echo $output->footer();
開發者ID:evltuma,項目名稱:moodle,代碼行數:31,代碼來源:user_evidence.php


注:本文中的core_competency\api::read_user_evidence方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。