Re: [SMW-devel] Need hook for page property changes

2019-10-11 Thread Sebastian Trueg
Thanks. those are good sources for inspiration but do not do what I need
by themselves.

On 10.10.19 14:03, Krabina Bernhard wrote:
> and you should look in to https://github.com/SemanticMediaWiki/SemanticTasks
> which is maintained an can do that.
> 
> cheers,
> Bernhard
> 
> PS: There is also a somewhat unmaintained extension that did somethink like 
> that:
> https://www.mediawiki.org/wiki/Extension:Semantic_Watchlist
> 
> - Am 10. Okt 2019 um 12:00 schrieb Sebastian Trueg tr...@truegeex.de:
> 
>> Hello SMW experts,
>>
>> I am currently working on a simple extension that allows to send email
>> notifications when a property of a page changes to a certain value.
>>
>> To that end I need to check the new property value after a page
>> modification.
>>
>> Since SMW seems to use the Mediawiki hook PageContentSaveComplete itself
>> I figured using that would not be safe.
>>
>> Is the "AfterUpdateDispatcherJobComplete" hook a sensible place to queue
>> jobs that would check those changes?
>>
>> Thanks in advance.
>>
>> Regards,
>> Sebasian
>>
>> --
>> Sebastian Trueg
>> Managing Director
>> TrueGeeX UG (haftungsbeschränkt)
>> tr...@truegeex.de
>> http://www.linkedin.com/in/trueg
>> Mobile: 0049 1762 3244 664
>>
>>
>> ___
>> Semediawiki-devel mailing list
>> Semediawiki-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

-- 
Sebastian Trueg
Managing Director
TrueGeeX UG (haftungsbeschränkt)
tr...@truegeex.de
http://www.linkedin.com/in/trueg
Mobile: 0049 1762 3244 664


___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Need hook for page property changes

2019-10-11 Thread Sebastian Trueg
Thank you. That works perfectly. :)

On 10.10.19 12:31, Jeroen De Dauw wrote:
> Hey Sebastian,
> 
> I suspect this hook is the most appropriate for your use case:
> https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/6d3ce63cbeb3d2b881dfe6c255375c2b07e1b75d/src/Store.php#L240-L243
> 
> Cheers
> 
> --
> Jeroen De Dauw | www.EntropyWins.wtf
>  |www.Professional.Wiki 
> Entrepreneur| Software Crafter |Speaker|Open Souce and Wikimedia contributor
> ~=[,,_,,]:3

-- 
Sebastian Trueg
Managing Director
TrueGeeX UG (haftungsbeschränkt)
tr...@truegeex.de
http://www.linkedin.com/in/trueg
Mobile: 0049 1762 3244 664


___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Need hook for page property changes

2019-10-10 Thread Krabina Bernhard
and you should look in to https://github.com/SemanticMediaWiki/SemanticTasks
which is maintained an can do that.

cheers,
Bernhard

PS: There is also a somewhat unmaintained extension that did somethink like 
that:
https://www.mediawiki.org/wiki/Extension:Semantic_Watchlist

- Am 10. Okt 2019 um 12:00 schrieb Sebastian Trueg tr...@truegeex.de:

> Hello SMW experts,
> 
> I am currently working on a simple extension that allows to send email
> notifications when a property of a page changes to a certain value.
> 
> To that end I need to check the new property value after a page
> modification.
> 
> Since SMW seems to use the Mediawiki hook PageContentSaveComplete itself
> I figured using that would not be safe.
> 
> Is the "AfterUpdateDispatcherJobComplete" hook a sensible place to queue
> jobs that would check those changes?
> 
> Thanks in advance.
> 
> Regards,
> Sebasian
> 
> --
> Sebastian Trueg
> Managing Director
> TrueGeeX UG (haftungsbeschränkt)
> tr...@truegeex.de
> http://www.linkedin.com/in/trueg
> Mobile: 0049 1762 3244 664
> 
> 
> ___
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Need hook for page property changes

2019-10-10 Thread Jeroen De Dauw
Hey Sebastian,

I suspect this hook is the most appropriate for your use case:
https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/6d3ce63cbeb3d2b881dfe6c255375c2b07e1b75d/src/Store.php#L240-L243

Cheers

--
Jeroen De Dauw | www.EntropyWins.wtf  |
www.Professional.Wiki 
Entrepreneur | Software Crafter | Speaker | Open Souce and Wikimedia
contributor
~=[,,_,,]:3
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel