本文整理汇总了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();