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


PHP Display::description方法代码示例

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


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

示例1: show_exercise_result_header

 /**
  * @param array $user_data result of api_get_user_info()
  * @param null $start_date
  * @param null $duration
  * @param string $ip Optional. The user IP
  * @return string
  */
 public function show_exercise_result_header($user_data, $start_date = null, $duration = null, $ip = null)
 {
     $array = array();
     if (!empty($user_data)) {
         $array[] = array('title' => get_lang('Name'), 'content' => $user_data['complete_name']);
         $array[] = array('title' => get_lang('Username'), 'content' => $user_data['username']);
         if (!empty($user_data['official_code'])) {
             $array[] = array('title' => get_lang('OfficialCode'), 'content' => $user_data['official_code']);
         }
     }
     // Description can be very long and is generally meant to explain
     //   rules *before* the exam. Leaving here to make display easier if
     //   necessary
     /*
     if (!empty($this->description)) {
         $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
     }
     */
     if (!empty($start_date)) {
         $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
     }
     if (!empty($duration)) {
         $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
     }
     if (!empty($ip)) {
         $array[] = array('title' => get_lang('IP'), 'content' => $ip);
     }
     $html = '<div class="question-result">';
     $html .= Display::page_header(Display::return_icon('test-quiz.png', get_lang('Result'), null, ICON_SIZE_MEDIUM) . ' ' . $this->exercise . ' : ' . get_lang('Result'));
     $html .= Display::description($array);
     $html .= "</div>";
     return $html;
 }
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:40,代码来源:exercise.class.php

示例2: show_exercise_result_header

 /**
  * @param array $user_data result of api_get_user_info()
  * @param null $start_date
  * @param null $duration
  * @return string
  */
 public function show_exercise_result_header($user_data, $start_date = null, $duration = null)
 {
     $array = array();
     if (!empty($user_data)) {
         $array[] = array('title' => get_lang("Name"), 'content' => $user_data['complete_name']);
         $array[] = array('title' => get_lang("Username"), 'content' => $user_data['username']);
         if (!empty($user_data['official_code'])) {
             $array[] = array('title' => get_lang("OfficialCode"), 'content' => $user_data['official_code']);
         }
     }
     // Description can be very long and is generally meant to explain
     //   rules *before* the exam. Leaving here to make display easier if
     //   necessary
     /*
     if (!empty($this->description)) {
         $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
     }
     */
     if (!empty($start_date)) {
         $array[] = array('title' => get_lang("StartDate"), 'content' => $start_date);
     }
     if (!empty($duration)) {
         $array[] = array('title' => get_lang("Duration"), 'content' => $duration);
     }
     $html = Display::page_header(Display::return_icon('quiz_big.png', get_lang('Result')) . ' ' . $this->exercise . ' : ' . get_lang('Result'));
     $html .= Display::description($array);
     return $html;
 }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:34,代码来源:exercise.class.php

示例3: api_get_user_id

                $table_user = Database::get_main_table(TABLE_MAIN_USER);
                $sql = "UPDATE {$table_user} SET picture_uri = '{$new_picture}' WHERE user_id =  " . api_get_user_id();
                $result = Database::query($sql);
            }
        }
    }
}
$user_info = UserManager::get_user_info_by_id(api_get_user_id());
$social_left_content = SocialManager::show_social_menu('home');
$usergroup = new UserGroup();
$social_right_content = '<div class="span5">';
$social_right_content .= '<div class="well_border">';
$social_right_content .= '<h3>' . get_lang('ContactInformation') . '</h3>';
$list = array(array('title' => get_lang('Name'), 'content' => api_get_person_name($user_info['firstname'], $user_info['lastname'])), array('title' => get_lang('Email'), 'content' => $user_info['email']));
// Current user information
$social_right_content .= '<div>' . Display::description($list) . '</div>';
$social_right_content .= '
        <div class="form-actions">
            <a class="btn" href="' . api_get_path(WEB_PATH) . 'main/auth/profile.php">
                ' . get_lang('EditProfile') . '
            </a>
        </div>
    </div>';
if (api_get_setting('allow_skills_tool') == 'true') {
    $social_right_content .= '<div class="well_border">';
    $skill = new Skill();
    $ranking = $skill->get_user_skill_ranking(api_get_user_id());
    $url = api_get_path(WEB_CODE_PATH) . 'social/skills_ranking.php';
    $ranking_url = Display::url(sprintf(get_lang('YourSkillRankingX'), $ranking), $url, array('class' => 'btn'));
    $skills = $skill->get_user_skills(api_get_user_id(), true);
    $social_right_content .= '<h3>' . get_lang('Skills') . '</h3>';
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:home.php

示例4: get_lang

$socialRightContent = '<div class="span5">';
$socialRightContent .= '<div class="well_border">';
$socialRightContent .= '<h3>' . get_lang('ContactInformation') . '</h3>';

$list = array(
    array(
        'title' => get_lang('Name'),
        'content' => api_get_person_name(
            $user_info['firstname'],
            $user_info['lastname']
        )
    ),
    array('title' => get_lang('Email'), 'content' => $user_info['email']),
);
// information current user
$socialRightContent .= '<div>' . Display::description($list) . '</div>';

$editProfileUrl = api_get_path(WEB_CODE_PATH) . 'auth/profile.php';

if (api_get_setting('sso_authentication') === 'true') {
    $subSSOClass = api_get_setting('sso_authentication_subclass');
    $objSSO = null;

    if (!empty($subSSOClass)) {
        require_once api_get_path(SYS_CODE_PATH) . 'auth/sso/sso.' . $subSSOClass . '.class.php';

        $subSSOClass = 'sso' . $subSSOClass;
        $objSSO = new $subSSOClass();
    } else {
        $objSSO = new sso();
    }
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:31,代码来源:home.php


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