本文整理匯總了PHP中Skill::get_skills_info方法的典型用法代碼示例。如果您正苦於以下問題:PHP Skill::get_skills_info方法的具體用法?PHP Skill::get_skills_info怎麽用?PHP Skill::get_skills_info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Skill
的用法示例。
在下文中一共展示了Skill::get_skills_info方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
//$tpl->assign('user_list', $user_list);
$tpl->assign('order_user_list', $ordered_user_list);
$tpl->assign('total_search_skills', $count_skills);
if (!empty($skills)) {
$counter = 0;
foreach ($skills as $hidden_skill_id) {
$form->addElement('hidden', 'hidden_skills[]', $hidden_skill_id);
$counter++;
}
}
if (!empty($skills)) {
foreach ($skills as $my_skill) {
$total_skills_to_search[$my_skill] = $my_skill;
}
}
$total_skills_to_search = $skill->get_skills_info($total_skills_to_search);
$action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;
$id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : null;
switch ($action) {
case 'remove_skill':
$new_skill = array();
foreach ($skills as $skill_id) {
if ($id != $skill_id) {
$new_skill[] = $skill_id;
}
}
$skills = $new_skill;
Session::write('skills', $skills);
break;
case 'load_profile':
$skill_profile = new SkillRelProfile();