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


PHP PMA_Util::showPHPDocu方法代碼示例

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


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

示例1: testShowPHPDocu

 /**
  * Test for showPHPDocu
  *
  * @return void
  */
 function testShowPHPDocu()
 {
     $target = "docu";
     $lang = _pgettext('PHP documentation language', 'en');
     $expected = '<a href="./url.php?url=http%3A%2F%2Fphp.net%2Fmanual%2F' . $lang . '%2F' . $target . '" target="documentation">' . '<img src="themes/dot.gif" title="' . __('Documentation') . '" alt="' . __('Documentation') . '" class="icon ic_b_help" /></a>';
     $this->assertEquals($expected, PMA_Util::showPHPDocu($target));
 }
開發者ID:yonh,項目名稱:php-mvc,代碼行數:12,代碼來源:PMA_showPHPDocu_test.php

示例2: PMA_printListItem

    echo '<ul>';
    if ($GLOBALS['cfg']['ShowServerInfo']) {
        PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
        if ($server > 0) {
            $client_version_str = $GLOBALS['dbi']->getClientInfo();
            if (preg_match('#\\d+\\.\\d+\\.\\d+#', $client_version_str)) {
                $client_version_str = 'libmysql - ' . $client_version_str;
            }
            PMA_printListItem(__('Database client version:') . ' ' . $client_version_str, 'li_mysql_client_version');
            $php_ext_string = __('PHP extension:') . ' ';
            if (PMA_DatabaseInterface::checkDbExtension('mysqli')) {
                $extension = 'mysqli';
            } else {
                $extension = 'mysql';
            }
            $php_ext_string .= $extension . ' ' . PMA_Util::showPHPDocu('book.' . $extension . '.php');
            PMA_printListItem($php_ext_string, 'li_used_php_extension');
        }
    }
    if ($cfg['ShowPhpInfo']) {
        PMA_printListItem(__('Show PHP information'), 'li_phpinfo', 'phpinfo.php' . $common_url_query, null, '_blank');
    }
    echo '  </ul>';
    echo ' </div>';
}
echo '<div class="group pmagroup">';
echo '<h2>phpMyAdmin</h2>';
echo '<ul>';
$class = null;
// We rely on CSP to allow access to http://www.phpmyadmin.net, but IE lacks
// support here and does not allow request to http once using https.
開發者ID:RyoBamboo,項目名稱:RoughSetSystem,代碼行數:31,代碼來源:index.php

示例3: __

    echo '  </ul>';
    echo ' </div>';
}
if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) {
    echo '<div class="group">';
    echo '<h2>' . __('Web server') . '</h2>';
    echo '<ul>';
    if ($GLOBALS['cfg']['ShowServerInfo']) {
        PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
        if ($server > 0) {
            $client_version_str = PMA_DBI_get_client_info();
            if (preg_match('#\\d+\\.\\d+\\.\\d+#', $client_version_str) && in_array($GLOBALS['cfg']['Server']['extension'], array('mysql', 'mysqli'))) {
                $client_version_str = 'libmysql - ' . $client_version_str;
            }
            PMA_printListItem(__('Database client version') . ': ' . $client_version_str, 'li_mysql_client_version');
            $php_ext_string = __('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension'] . ' ' . PMA_Util::showPHPDocu('book.' . $GLOBALS['cfg']['Server']['extension'] . '.php');
            PMA_printListItem($php_ext_string, 'li_used_php_extension');
        }
    }
    if ($cfg['ShowPhpInfo']) {
        PMA_printListItem(__('Show PHP information'), 'li_phpinfo', 'phpinfo.php?' . $common_url_query, null, '_blank');
    }
    echo '  </ul>';
    echo ' </div>';
}
echo '<div class="group pmagroup">';
echo '<h2>phpMyAdmin</h2>';
echo '<ul>';
$class = null;
// We rely on CSP to allow access to http://www.phpmyadmin.net, but IE lacks
// support here and does not allow request to http once using https.
開發者ID:SashiAsakura,項目名稱:AWS_QuikID_website,代碼行數:31,代碼來源:index.php

示例4: __

}
if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) {
    echo '<div class="group">';
    echo '<h2>' . __('Web server') . '</h2>';
    echo '<ul>';
    if ($GLOBALS['cfg']['ShowServerInfo']) {
        PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software');
        if ($server > 0) {
            $client_version_str = $GLOBALS['dbi']->getClientInfo();
            if (preg_match('#\\d+\\.\\d+\\.\\d+#', $client_version_str) && in_array($GLOBALS['cfg']['Server']['extension'], array('mysql', 'mysqli'))) {
                $client_version_str = 'libmysql - ' . $client_version_str;
            }
            PMA_printListItem(__('Database client version:') . ' ' . $client_version_str, 'li_mysql_client_version');
            $php_ext_string = __('PHP extension:') . ' ' . $GLOBALS['cfg']['Server']['extension'] . ' ';
            if (!empty($GLOBALS['cfg']['Server']['extension'])) {
                $php_ext_string .= PMA_Util::showPHPDocu('book.' . $GLOBALS['cfg']['Server']['extension'] . '.php');
            } else {
                $php_ext_string .= __('None');
            }
            PMA_printListItem($php_ext_string, 'li_used_php_extension');
        }
    }
    if ($cfg['ShowPhpInfo']) {
        PMA_printListItem(__('Show PHP information'), 'li_phpinfo', 'phpinfo.php?' . $common_url_query, null, '_blank');
    }
    echo '  </ul>';
    echo ' </div>';
}
echo '<div class="group pmagroup">';
echo '<h2>phpMyAdmin</h2>';
echo '<ul>';
開發者ID:AtomPy,項目名稱:AtomPySite,代碼行數:31,代碼來源:index.php


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