Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Re: [MediaWiki-CVS] SVN: [39568] trunk/phase3/includes

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


roan.kattouw at home

Aug 18, 2008, 3:49 AM

Post #1 of 2 (515 views)
Permalink
Re: [MediaWiki-CVS] SVN: [39568] trunk/phase3/includes

dantman[at]svn.wikimedia.org schreef:
> Revision: 39568
> Author: dantman
> Date: 2008-08-18 03:56:38 +0000 (Mon, 18 Aug 2008)
>
> Log Message:
> -----------
> Create a placeholder for the LinkHook experimentation.
> This will allow us to develop a new method of parsing links (non-hacky), without breaking current syntax, and also allow us to make sure new methods don't break syntax.
>
> Currently this class merely inherits from the Parser class. Constants and static functions are coppied so that use of self:: won't break when we modify things.
Why don't you just use parent:: wrappers for the static functions, like:

static function func($foo, $bar) { return parent::func($foo, $bar); }

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


dan_the_man at telus

Aug 18, 2008, 7:57 AM

Post #2 of 2 (469 views)
Permalink
Re: [MediaWiki-CVS] SVN: [39568] trunk/phase3/includes [In reply to]

Hmm... that's an interesting option...
Though, I may be able to actually delete half those functions. I'll mark
this mail and see if I get to that tomorrow.

~Daniel Friesen(Dantman, Nadir-Seen-Fire) of:
-The Nadir-Point Group (http://nadir-point.com)
--It's Wiki-Tools subgroup (http://wiki-tools.com)
--The ElectronicMe project (http://electronic-me.org)
--Games-G.P.S. (http://ggps.org)
-And Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
--Animepedia (http://anime.wikia.com)
--Narutopedia (http://naruto.wikia.com)

Roan Kattouw wrote:
> dantman[at]svn.wikimedia.org schreef:
>
>> Revision: 39568
>> Author: dantman
>> Date: 2008-08-18 03:56:38 +0000 (Mon, 18 Aug 2008)
>>
>> Log Message:
>> -----------
>> Create a placeholder for the LinkHook experimentation.
>> This will allow us to develop a new method of parsing links (non-hacky), without breaking current syntax, and also allow us to make sure new methods don't break syntax.
>>
>> Currently this class merely inherits from the Parser class. Constants and static functions are coppied so that use of self:: won't break when we modify things.
>>
> Why don't you just use parent:: wrappers for the static functions, like:
>
> static function func($foo, $bar) { return parent::func($foo, $bar); }
>
> Roan Kattouw (Catrope)
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.