当前位置: 首页>>代码示例>>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;未经允许,请勿转载。