本文整理匯總了PHP中TPage::getURLWithLinkText方法的典型用法代碼示例。如果您正苦於以下問題:PHP TPage::getURLWithLinkText方法的具體用法?PHP TPage::getURLWithLinkText怎麽用?PHP TPage::getURLWithLinkText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TPage
的用法示例。
在下文中一共展示了TPage::getURLWithLinkText方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: TPage
$tpage = new TPage();
$total_num = $tpage->countPageByTitle($page_title);
$pageObj_arr = $tpage->getByTitle($page_title);
if ($pageObj_arr == NULL) {
print "<p>The word has not founded.</p>\n";
} else {
if ($total_num > 1) {
print "<p>There are founded {$total_num} words.</p>\n";
if ($limit_request > 0 && $limit_request < $total_num) {
print "Restriction on the search for a maximum of {$limit_request} records";
}
//ограничение на поиск не более 100 записей
}
if (is_array($pageObj_arr)) {
foreach ($pageObj_arr as $pageObj) {
print "<h2 title=\"TPage->page_title\" style=\"color: #006a4e\">" . $pageObj->getPageTitle() . "</h2>\n" . "<p>Source page at " . TPage::getURLWithLinkText($pageObj->getPageTitle()) . "</p>";
$lang_pos_arr = $pageObj->getLangPOS();
if (is_array($lang_pos_arr)) {
foreach ($lang_pos_arr as $langPOSObj) {
print "<h3 title=\"TPage::TLangPOS::TLang->name\">" . $langPOSObj->getLang()->getName() . "</h3>\n" . "<p title=\"TPage::TLangPOS::TPOS->name\">Part of speach: <b>" . $langPOSObj->getPOS()->getName() . "</b></p>\n";
$meaning_arr = $langPOSObj->getMeaning();
$count_meaning = 1;
if (is_array($meaning_arr)) {
foreach ($meaning_arr as $meaningObj) {
if (is_null($meaningObj)) {
continue;
}
$meaning_id = $meaningObj->getID();
// LABELS OF MEANING
$labelMeaning_arr = $meaningObj->getLabelMeaning();
$label_name_arr = array();