addshore / addframe

OLD addwiki framework (See the newer https://github.com/addwiki libraries)
7 stars 2 forks source link

Api modules only available if available on site #89

Closed addshore closed 11 years ago

addshore commented 11 years ago

Currently all api calls etc are in the main site class... This should be split up by extension...

legoktm commented 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.

addshore commented 11 years ago

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?

legoktm commented 11 years ago

Hmmmm. That makes sense. The concept of PHP namespaces seems weird to me, but this makes sense I think.

addshore commented 11 years ago

I have just pushed something along these lines to the dev branch. Its not quite as described above but I guess this is closed..