本文整理匯總了PHP中LogFormatter::getComment方法的典型用法代碼示例。如果您正苦於以下問題:PHP LogFormatter::getComment方法的具體用法?PHP LogFormatter::getComment怎麽用?PHP LogFormatter::getComment使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類LogFormatter
的用法示例。
在下文中一共展示了LogFormatter::getComment方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getComment
public function getComment() {
$timestamp = wfTimestamp( TS_MW, $this->entry->getTimestamp() );
if ( $timestamp < '20080129000000' ) {
# Suppress $comment from old entries (before 2008-01-29),
# not needed and can contain incorrect links
return '';
}
return parent::getComment();
}
示例2: getComment
public function getComment()
{
$legacy = $this->entry->getParameters();
if (isset($legacy['reason'])) {
$comment = Linker::commentBlock($legacy['reason']);
// No hard coded spaces thanx
return ltrim($comment);
}
return parent::getComment();
}
示例3: getComment
public function getComment()
{
if ($this->comment === null) {
$this->comment = parent::getComment();
}
// Make sure we execute the LogLine hook so that we immediately return
// the correct value.
if ($this->revert === null) {
$this->getActionLinks();
}
return $this->comment;
}