本文整理汇总了PHP中learnpath::set_maker方法的典型用法代码示例。如果您正苦于以下问题:PHP learnpath::set_maker方法的具体用法?PHP learnpath::set_maker怎么用?PHP learnpath::set_maker使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类learnpath
的用法示例。
在下文中一共展示了learnpath::set_maker方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: stripos
$auth_init = stripos($author, '<p>');
if ($auth_init === false) {
$auth_init = stripos($author, '<body>');
$auth_end = $auth_init + stripos(substr($author, $auth_init + 6), '</body>') + 7;
$len = $auth_end - $auth_init + 6;
} else {
$auth_end = strripos($author, '</p>');
$len = $auth_end - $auth_init + 4;
}
$author_fixed = substr($author, $auth_init, $len);
//$author_fixed = $author;
$learnPath->set_author($author_fixed);
// TODO (as of Chamilo 1.8.8): Check in the future whether this field is needed.
$learnPath->set_encoding($_REQUEST['lp_encoding']);
if (isset($_REQUEST['lp_maker'])) {
$learnPath->set_maker($_REQUEST['lp_maker']);
}
if (isset($_REQUEST['lp_proximity'])) {
$learnPath->set_proximity($_REQUEST['lp_proximity']);
}
$learnPath->set_theme($_REQUEST['lp_theme']);
if (isset($_REQUEST['hide_toc_frame']) && $_REQUEST['hide_toc_frame'] == 1) {
$hide_toc_frame = $_REQUEST['hide_toc_frame'];
} else {
$hide_toc_frame = null;
}
$learnPath->set_hide_toc_frame($hide_toc_frame);
$learnPath->set_prerequisite($_REQUEST['prerequisites']);
$learnPath->set_use_max_score($_REQUEST['use_max_score']);
$subscribers = isset($_REQUEST['subscribe_users']) ? $_REQUEST['subscribe_users'] : '';
$learnPath->setSubscribeUsers($subscribers);