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