Closed addshore closed 11 years ago
Why? EchoSite
, CheckUserSite
, SiteMatrixSite
, etc? Just keep it in one class and people who re-use should know that some things are dependent on various extensions.
Hmm, my plan was not quite to have different classes for a bunch of sites with different functions available.
Instead have an extensions folder where extension specific functions are written, i.e. /Wikibase/api/allapifunctions. When creating a site object the object would find out what extensions are included and then load all possible functions?
Hmmmm. That makes sense. The concept of PHP namespaces seems weird to me, but this makes sense I think.
I have just pushed something along these lines to the dev branch. Its not quite as described above but I guess this is closed..
Currently all api calls etc are in the main site class... This should be split up by extension...