Manual:Code/ru

На этой странице перечислены основные файлы (классы) и папки, составляющие программный код MediaWiki. Для получения более подробной информации см. документацию этих классов, файлов и общую, автоматически генерируемую из исходного кода MediaWiki посредством doxygen.

Папка /includes/
Эта папка содержит все файлы, требуемые MediaWiki.

Папка /includes/actions/
This directory contains the Action classes, which handle the different actions which can be performed on pages (e.g. view, delete, edit, etc.). All these classes extend the,   or   classes. Some of them are just stubs which call methods in the  or   classes to do the actual work.

Папка /includes/api/
This directory contains the code for the MediaWiki API. See API:Main page. The most important files are:

Папка /includes/cache/
This directory contains files with code relating to MediaWiki's caching mechanisms.

Папка /includes/context/
This directory contains a few classes related to (request)contexts. As of MediaWiki 1.18 the context of a request is encapsulated inside a  instance which implements. A context is a way of grouping the parts of a request together. This reduces the need for globals. See Manual:RequestContext for more information.

Папка /includes/db/
This directory contains the code for database support.  provides MediaWiki's database abstraction layer.

Папка /includes/diff/
This directory contains the standard MediaWiki difference engine. A difference engine computes the difference between two texts. Whether this difference engine is used or some external diff tool, depends on the $wgExternalDiffEngine setting.

Папка /includes/job/
Files related to the job queue. Each job class for a specific type of job derives from the  class and has to implement a   method which does the actual job.

Папка /includes/logging/</tt>
Some files related to logging the events which happen on a Wiki. This directory was introduced in MW 1.19. Some of the files were already present in olders versions, in the includes/ directory.

Папка /includes/media/</tt>
This directory contains files for handling several media formats, mostly images.

Папка /includes/normal/</tt>
This directory contains some Unicode normalization routines. See for more information.

Папка /includes/objectcache/</tt>
Files related to MediaWiki's caching mechanisms. The files in this directory provide the possibility to store objects in PHP accelerators, in memcached, in a database or in DBA files.

Папка /includes/parser/</tt>
The MediaWiki parser, which transforms wikitext to HTML, can be found here together with related files. The most interesting files in this directory:

Папка /includes/resourceloader/</tt>
Files related to ResourceLoader, a JavaScript/CSS delivery optimizing system for MediaWiki.

Папка /includes/search/</tt>
This directory contains the code to implement the possibility of searching a wiki using one the possible backends.

Папка /includes/specials/</tt>
This directory contains the code and classes for the standard special pages. All special page classes derive from class  (defined in includes/SpecialPage.php). Special pages which come with extension are located in their respective extensions directories. See also Manual:Special pages.

Папка /includes/upload/</tt>
Files providing the backend of MediaWiki's file uploads.

Папка /languages/</tt>
Эта папка содержит файлы, используемые для локализации и организации многоязычных проектов. Получить быстрый обзор можно на стр. Language in MediaWiki.

Папка /maintenance/</tt>
Эта папка содержит сервисные сценарии (скрипты), которые должны запускаться из интерфейса командной строки.

См. обзор этих сценариев в Manual:Maintenance scripts.

Папка /resources/</tt>
Эта папка содержит используемые MediaWiki ресурсы JavaScript и таблицы стилей CSS, включая jQuery.

Папка /skins/</tt>
Эта папка содержит все классы стилей оформления, сценарии на языке JavaScript, таблицы стилей CSS и некоторые файлы изображений, используемых в оформлении. См. Manual:Skins.

Папка /tests/</tt>
Содержит различные относящиеся к файлам (юнит-)тесты, включая:
 * Parser tests
 * PHPUnit tests
 * QUnit tests
 * Selenium Framework