Hello all,
I was wondering if there's a clean way within the Wiki codebase to generate a history entry for an article without actually modifying the content. Essentially, from within an extension, I'd like to treat the history as a logfile for specific events related to the article that don't actually modify the article.
Thanks, Rob.
On 12.03.2012, 12:44 Robert wrote:
Hello all,
I was wondering if there's a clean way within the Wiki codebase to generate a history entry for an article without actually modifying the content. Essentially, from within an extension, I'd like to treat the history as a logfile for specific events related to the article that don't actually modify the article.
Thanks, Rob.
See Revision::newNullRevision()
On 12-03-12 05:25 AM, Max Semenik wrote:
On 12.03.2012, 12:44 Robert wrote:
Hello all,
I was wondering if there's a clean way within the Wiki codebase to generate a history entry for an article without actually modifying the content. Essentially, from within an extension, I'd like to treat the history as a logfile for specific events related to the article that don't actually modify the article.
See Revision::newNullRevision()
Perfect, thank you!
Cheers, Rob.
Robert Cummings robert@interjinn.com wrote:
On 12-03-12 05:25 AM, Max Semenik wrote:
On 12.03.2012, 12:44 Robert wrote:
Hello all,
I was wondering if there's a clean way within the Wiki codebase to generate a history entry for an article without actually modifying the content. Essentially, from within an extension, I'd like to treat the history as a logfile for specific events related to the article that don't actually modify the article.
See Revision::newNullRevision()
Perfect, thank you!
or maybe you can do something like
$logEntry = new ManualLogEntry( 'something', 'somethingmaybeese' ); $logEntry->setPerformer( $user ); $logEntry->setTarget( $this->mTitle ); $logEntry->setComment( $reason ); $logid = $logEntry->insert(); $logEntry->publish( $logid );
(from WikiPage.php line 2990)
//Saper
On 12-03-12 01:20 PM, Marcin Cieslak wrote:
Robert Cummingsrobert@interjinn.com wrote:
On 12-03-12 05:25 AM, Max Semenik wrote:
On 12.03.2012, 12:44 Robert wrote:
Hello all,
I was wondering if there's a clean way within the Wiki codebase to generate a history entry for an article without actually modifying the content. Essentially, from within an extension, I'd like to treat the history as a logfile for specific events related to the article that don't actually modify the article.
See Revision::newNullRevision()
Perfect, thank you!
or maybe you can do something like
$logEntry = new ManualLogEntry( 'something', 'somethingmaybeese' ); $logEntry->setPerformer( $user ); $logEntry->setTarget( $this->mTitle ); $logEntry->setComment( $reason ); $logid = $logEntry->insert(); $logEntry->publish( $logid );
(from WikiPage.php line 2990)
Thanks, I'll have a look at that also.
Cheers, Rob.
wikitech-l@lists.wikimedia.org