Kézikönyv:ApiMain.php
Appearance
Ez a lap elavult. |
MediaWiki-fájl: ApiMain.php | |
---|---|
Könyvtár: | includes/api/ |
Forráskód: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Osztályok: | ApiMain |
Az ApiMain a külső és belső feldolgozáshoz is használt API-osztály.
When executed, it will create the requested formatter object, instantiate and execute an object associated with the needed action, and use formatter to print results.
In case of an exception, an error message will be printed using the same formatter.
To call the API programmatically for testing, run it using the FauxRequest object, in which case any internal exceptions will not be handled but passed up to the caller.
After successful execution, use getResult()
for the resulting data.
Függvények
getResult()
getResult()
gets the ApiResult object associated with the current request.