Open main menu

Manual:Code/id

Halaman ini menjelaskan beberapa berkas dan direktori utama dalam kode sumber MediaWiki. Untuk keterangan lebih lanjut, lihat dokumentasi otomatis doxygen untuk kelas dan berkas MediaWiki.

Titik aksesEdit

File Description
index.php Main access point for the MediaWiki software. It handles most requests made to MediaWiki. Manual:index.php
api.php External access point for MediaWiki's API. Manual:api.php
img_auth.php Script that only serves images to logged in users. To configure the wiki to use that script, see Manual:Image Authorisation. Manual:img_auth.php
opensearch_desc.php Returns an OpenSearch description document that describes the web interface of MediaWiki's search engine. Manual:opensearch_desc.php
profileinfo.php Allow users to see the profiling information that are stored in the database. See How to debug#Profiling. Manual:profileinfo.php
redirect.php Script that redirects to the article passed in the wpDropdown parameter of the request. Needed for Nostalgia skin. Manual:redirect.php
thumb.php Script used to resize images. Manual:thumb.php
trackback.php Adds trackbacks to the database. Manual:trackback.php

Direktori /includes/Edit

This directory stores common include files needed by MediaWiki.

File Description
Article.php Contains the Article class, which represents an article in the wiki and provides methods to view, modify and manage articles. Manual:Article.php
Edit.php Provides much of the code related to the editing user interface Manual:Edit.php
LinkCache.php Description Manual:LinkCache.php
Linker.php Contains methods to create internal, external or image links and implements page existence detection. Manual:Linker.php
OutputPage.php Hold HTML and wikitext parsing. Will also generate the <head> element or part of it. Manual:OutputPage.php
Pager.php Contains the IndexPager class used for paging results of MySQL queries. Manual:Pager.php
Parser.php Contains most of the code that converts wikitext to HTML (though few bits and pieces are in Manual:Skin.php.) Manual:Parser.php
Setup.php Include commonly used files and initializes the global object variables so that MediaWiki can work. Manual:Setup.php
Skin.php Encapsulates a "look and feel" for the wiki. Manual:Skin.php
Title.php Represents the title of an article, and does all the work of translating among various forms such as plain text, URL, database key, etc. For convenience, and for historical reasons, it also represents a few features of articles that don't involve their text, such as access rights. Manual:Title.php
User.php Encapsulates the state of the user viewing/using the site. Can be queried for things like the user's settings, name, etc. Handles the details of getting and saving to the user table of the database, and dealing with sessions and cookies. Manual:User.php
UserMailer.php Collection of static functions for sending mail. Manual:UserMailer.php
WebRequest.php This file contains the definition of the WebRequest class. Manual:WebRequest.php
WebStart.php It does the initial setup for a web request: security checks, loads LocalSettings.php and Setup.php. Manual:WebStart.php
MediaWiki.php This file consists of the definition of the class MediaWiki. Manual:MediaWiki.php

Direktori /includes/db/Edit

This directory contains the code for database support. Database.php provides MediaWiki's database abstraction layer.

Direktori /languages/Edit

This directory contains files used for localization and internationalization.

File Description
Language.php Contains the Language class, it represents the language used for incidental text, and also has some character encoding functions and other locale stuff. Two globals contain an instance of this class: $wgContLang for the site language and $wgLang for the user language. Manual:Language.php

Direktori /maintenance/Edit

This directory contains maintenance scripts that must be run from a command line interface.

See Manual:Maintenance scripts for an overview of those scripts.

Direktori /skins/Edit

This directory contain all skins classes, JavaScripts, CSS and some images used by that skins.

Code for most special pages is in files named Special*.php in the /includes/specials/ directory.

English  • Deutsch • français • Bahasa Indonesia • 日本語 • português • português do Brasil • русский • 中文