Model extension for mediawiki
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
Model.class.php
Model.hooks.php
Model.i18n.php
Model.php
README.md
composer.json

README.md

Mediawiki-Model

Model is extension for mediawiki brings "M" from MVC pattern into MediaWiki.

Model

What is Model?

Very simple and lightweight thing. Model allows you use model-objects over Mediawiki DatabaseBase class.

With Model you can focus on work with objects, not SQL-queries.

 $user = new Model_User();
 $user->password = '1234';
 $user->save();

more examples can be found here.

To start using Model:

  • include it in LocalSettings.php
  • create model classes based on class Model with your model description
  • create proper database tables
  • use models in your code.

Read documentation for additional information.