[SMW-devel] Parse template

2013-12-27 Thread Alexey Klimovich
Hi, everyone! I wonder if there is a way to parse template into object with mediawiki functions/classes? The goal is to extract parameters and values from string like: {{MyTemplate|param1=10|Param2=20}} I can not find related class or function.

[SMW-devel] A bit more MVC into MediaWiki!

2013-08-25 Thread Alexey Klimovich
Hi, everyone! I would like to share another helper instrument for extension developers. It is class, called "Model"[1]. Abstractions help us keep code clean and readable, focus on logic. One way or another, when developing big mediawiki extension, which should have a lot of functions and work

[SMW-devel] Useful tiny thing extension developers - Views

2013-08-25 Thread Alexey Klimovich
Hi, everyone. I want to share my tiny class "Views"[1] which helps me in development process. Many extensions created have UI-part: kind of panels, widgets, etc added to page output. Usually, html code just stored in some variable and pushed to $wgOut: $myWidget = 'Today weather:' .$someData. '

Re: [SMW-devel] Using SMW queries to find information about the wiki

2013-06-27 Thread Alexey Klimovich
Looks like you can query special property "Modification date" [1] with |sort parameters to obtain pages for "Last X Edits". [1] http://semantic-mediawiki.org/wiki/Help:Special_property_Modification_date 27.06.2013 23:33, Mark A. Hershberger пишет: > I'm helping Mozilla with their wiki and they

Re: [SMW-devel] [SRF] Filtered result format effected by PHP upgrade

2013-06-27 Thread Alexey Klimovich
Hi! Do you see any errors or warnings? If no, try to set php settings for error_reporting option to E_ALL in php.ini and check again. Also, can you post link to page with filtered? Also try to run /maintenance/update.php and /extensions/SemanticMediawiki/SMW_refreshData.php 27.06.2013 17:31, De

Re: [SMW-devel] Making subobjects correctly ordered

2013-06-20 Thread Alexey Klimovich
We are using anonymous (name=hash) subobjects in our system. In semantic queries and from code, we linking them using their hash. Subobjects not changing from every page save or edit. Only one way we discovered they change their hash - when page has renamed/moved. So, subobjects have a good consist

Re: [SMW-devel] Making subobjects correctly ordered

2013-06-20 Thread Alexey Klimovich
Hi, Yaron! I think subobjects sorting is good task, but i suggest not to use subobjects name for this because of big problem with that: imagine we have 3 subobjects on page: Page name#001_4bd1f1b74a76de5322dd74956a71f089 Page name#002_03163dfd1d2502668b00c1f521688984 Page name#003_02dwa3j349j8d3

Re: [SMW-devel] SMW 1.9, Subobject - get properties

2013-06-03 Thread Alexey Klimovich
W_SpecialBrowse.php;hb=HEAD#l106 > > PS: Tests deployed with SMW 1.9 will generally show how to access or > interact with those objects therefore a general advise is to use those > sources to verify their use cases. > > Cheers > > On 6/4/13, Alexey Klimovich wrote: >>

[SMW-devel] SMW 1.9, Subobject - get properties

2013-06-03 Thread Alexey Klimovich
Hi, everyone! I have a little question about Sub-objects in SMW 1.9. I am trying to fetch sub-object properties list, like a page properties list, but unsuccessful. I have a sub-objects $title variable (received from semantic query), which holds Title with mFragment holding sub-object name. Thi

Re: [SMW-devel] Webinar for amateur SMW programmers

2013-05-10 Thread Alexey Klimovich
I am also think such webinars can be very useful for understanding SMW architecture and make things a bit clearer for side developers. I will be happy to assist Yury in writing down the meeting and creating guides/howtos after. 09.05.2013 21:08, Yury Katkov пишет: > (I've changed the subject n

Re: [SMW-devel] [SF] Turning "uploadable" into "input type=upload"

2013-05-09 Thread Alexey Klimovich
Hi, Yaron! I think standalone "upload" input type is a good idea. In my vision, upload input should carry only "file upload" case and not "existing file choose" case, like it can be done threw textarea/text + autocomplete on Files namespace. Simple and lightweight for users upload input like on

[SMW-devel] SMW 1.18 and Maps update errors

2012-12-10 Thread Alexey Klimovich
Hi, everyone! I am suffering from such problem: when i am run update to SMW 1.8 Store3 with Maps and SMaps 2.0 extensions enabled: php SMW_refreshData.php -v -b SMWSQLStore3 -fp i've got error like: (234) Processing ID 240 ... (235) Processing ID 241 ... (236) Processing ID 242 ... Invalid m