[00:23:48] I found a job class that creates pages. How can I use it with a hook to create a page? [00:24:20] (ideally, to create a list of pages, from the red links of the current article that has just been saved) [00:37:51] (PS2) Mwjames: Add 'SG\PropertyRegistry' [extensions/SemanticGlossary] - https://gerrit.wikimedia.org/r/117159 [00:41:01] (CR) Mwjames: "> Also, I would really like to keep the extension compatible with SMW 1.8. Of the 10 wikis using the extension according to Wikiapiary, on" [extensions/SemanticGlossary] - https://gerrit.wikimedia.org/r/117159 (owner: Mwjames) [00:41:49] (PS5) Mwjames: Add SG\CacheInvalidator + unit tests [extensions/SemanticGlossary] - https://gerrit.wikimedia.org/r/117168 [00:49:04] If anyone has ideas on how to do this, please leave a message on https://www.mediawiki.org/wiki/User_talk:Robolobster Thank you! [00:56:03] (CR) Mwjames: "> Else you'll rewrite the whole extension" [extensions/SemanticGlossary] - https://gerrit.wikimedia.org/r/117159 (owner: Mwjames) [07:16:19] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1058 (store - 525d858 : mwjames): The build is still failing. [07:16:19] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/525d8588b044 [07:16:19] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/20586745 [11:52:49] Hi Yaron, sorry to bother you again. I understand you must be quite busy. I think I now understand the code in SF_CreatePageJob but I still don't know how to use it in a hook to get the functionality I want (that is, automatically creating pages for the red links of the article that has just been saved). [11:53:09] I tried this syntax but it doesn't work: $wgHooks['ArticleSaveComplete'][] = 'SF_CreatePageJob.run()'; [11:53:14] Right, I saw - sorry, I'll respond to that. [11:53:19] Well, that's C-type syntax. [11:53:23] Thank you, sorry for stalking you Yaron [11:53:41] Oh I see [11:56:56] robolobster: okay, I just responded. [11:57:18] Cool, thanks Yaron! :) [12:04:42] Yaron, I get "Error: Exception Caught: Invalid callback in hooks for ArticleSaveComplete" [12:05:32] When saving with visual editor. When saving with the traditional "Edit source", I get "[0ada4dc2] 2014-03-12 12:05:02: Fatal exception of type MWException" [12:13:03] robolobster: you probably need to change the function itself, to look a function that's called by a hook. [12:13:20] Another reason to make your own copy of the code, instead of just reusing the SF code. [12:13:45] Ok, that makes sense. Should I also think about input arguments? I'm not sure which title SF_CreatePageJob is using [12:15:36] (BTW if you know of any such functions I could look at as examples, I'd be very grateful if you could tell me its/their names) [12:28:25] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#1067 (tags - 3637d05 : mwjames): The build has errored. [12:28:25] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/3637d05369b5 [12:28:25] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/20602096 [12:30:05] Hi all, could anyone tell me of a function used by a hook, so I can look at how it is written? [14:05:37] Hi all, could anyone tell me of a function used by a hook, so I can look at how it is written? [14:29:40] robolobster: check out the $wgHooks section in SemanticForms.php - all of those are functions, whose headers you can look at. [15:57:22] Thanks again Yaron! :) [15:57:29] Will do