From: Mark A. Hershberger Date: Wed, 20 Apr 2011 03:58:34 +0000 (+0000) Subject: Refactor need for duplicate private Title in FeedSMItem away by moving functionality... X-Git-Tag: 1.31.0-rc.0~30689 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=aadcbd395773c73402da456c306703ccd1592c6d;p=lhc%2Fweb%2Fwiklou.git Refactor need for duplicate private Title in FeedSMItem away by moving functionality to parent. --- diff --git a/includes/Feed.php b/includes/Feed.php index 0ca419ed76..e48f3119c1 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -70,6 +70,15 @@ class FeedItem { $this->Comments = $Comments; } + /** + * Get the last touched timestamp + * + * @return String last-touched timestamp + */ + public function getLastMod() { + return $this->Title->getTouched(); + } + /** * Encode $string so that it can be safely embedded in a XML document * @@ -113,6 +122,16 @@ class FeedItem { return $this->xmlEncode( $this->Title ); } + /** + * Get the DB prefixed title + * + * @return String the prefixed title, with underscores and + * any interwiki and namespace prefixes + */ + public function getDBPrefixedTitle() { + return $this->Title->getPrefixedDBKey(), + } + /** * Get the URL of this item; already xml-encoded * @@ -401,7 +420,7 @@ class AtomFeed extends ChannelFeed { getComments() ) { ?>getComments() ?> - */ + */ } /**