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


PHP Skin::makeLinkObj方法代码示例

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


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

示例1: formatResult

 /**
  * Format an individual result
  *
  * @param Skin $skin Skin to use for UI elements
  * @param object $result Result row
  * @return string
  */
 public function formatResult($skin, $result)
 {
     $title = Title::makeTitleSafe($result->namespace, $result->title);
     if ($title instanceof Title) {
         if ($this->isCached()) {
             $pageLink = $title->exists() ? '<s>' . $skin->makeLinkObj($title) . '</s>' : $skin->makeBrokenLinkObj($title);
         } else {
             $pageLink = $skin->makeBrokenLinkObj($title);
         }
         return wfSpecialList($pageLink, $this->makeWlhLink($title, $skin, $result));
     } else {
         $tsafe = htmlspecialchars($result->title);
         return "Invalid title in result set; {$tsafe}";
     }
 }
开发者ID:Jobava,项目名称:diacritice-meta-repo,代码行数:22,代码来源:SpecialWantedpages.php

示例2: formatResult

 /**
  * Format a result row
  *
  * @param Skin $skin Skin to use for UI elements
  * @param object $result Result row
  * @return string
  */
 public function formatResult($skin, $result)
 {
     $title = Title::makeTitleSafe($result->namespace, $result->title);
     if ($title instanceof Title) {
         return wfSpecialList($skin->makeLinkObj($title), $this->makeWlhLink($title, $skin, $result));
     } else {
         $tsafe = htmlspecialchars($result->title);
         return "Invalid title in result set; {$tsafe}";
     }
 }
开发者ID:BackupTheBerlios,项目名称:shoutwiki-svn,代码行数:17,代码来源:SpecialMostlinkedtemplates.php

示例3: formatResult

 /**
  * Format a result row
  *
  * @param Skin $skin Skin to use for UI elements
  * @param object $result Result row
  * @return string
  */
 public function formatResult($skin, $result)
 {
     $title = Title::makeTitleSafe($result->namespace, $result->title);
     $skin->link($title);
     return wfSpecialList($skin->makeLinkObj($title), $this->makeWlhLink($title, $skin, $result));
 }
开发者ID:amjadtbssm,项目名称:website,代码行数:13,代码来源:SpecialMostlinkedtemplates.php

示例4: buildRemoveLine

 /**
  * Build a single list item containing a check box selecting a title
  * and a link to that title, with various additional bits
  *
  * @param Title $title
  * @param bool $redirect
  * @param Skin $skin
  * @return string
  */
 private function buildRemoveLine($title, $redirect, $skin)
 {
     $link = $skin->makeLinkObj($title);
     if ($redirect) {
         $link = '<span class="watchlistredir">' . $link . '</span>';
     }
     $tools[] = $skin->makeLinkObj($title->getTalkPage(), wfMsgHtml('talkpagelinktext'));
     if ($title->exists()) {
         $tools[] = $skin->makeKnownLinkObj($title, wfMsgHtml('history_short'), 'action=history');
     }
     if ($title->getNamespace() == NS_USER && !$title->isSubpage()) {
         $tools[] = $skin->makeKnownLinkObj(SpecialPage::getTitleFor('Contributions', $title->getText()), wfMsgHtml('contributions'));
     }
     return '<li>' . Xml::check('titles[]', false, array('value' => $title->getPrefixedText())) . $link . ' (' . implode(' | ', $tools) . ')' . '</li>';
 }
开发者ID:BackupTheBerlios,项目名称:shoutwiki-svn,代码行数:24,代码来源:WatchlistEditor.php


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