Re: [Wikitech-l] History entry without content change?
On 12-03-12 01:20 PM, Marcin Cieslak wrote: Robert Cummings 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. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] History entry without content change?
>> Robert Cummings 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 ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] History entry without content change?
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. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] History entry without content change?
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() -- Best regards, Max Semenik ([[User:MaxSem]]) ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[Wikitech-l] History entry without content change?
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. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l