Manual:ApiBase.php/es

El   implementa muchas de las funciones básicas de la API, y es la base de todas las clases de la API. Las funciones de clase se dividen en varias áreas de funcionalidad:


 * Module parameters: Derived classes can define  to specify which parameters to expect, how to parse and validate them.
 * Profiling: various methods to allow keeping tabs on various tasks and their time costs
 * Self-documentation: code to allow the API to document its own state

getAllowedParams
Specify which parameters are allowed and what requirements are to be imposed on them. See the documentation at the top of for the constants PARAM_DFLT, PARAM_ISMULTI, PARAM_TYPE, PARAM_MAX, PARAM_MAX2, PARAM_MIN, PARAM_ALLOW_DUPLICATES, PARAM_DEPRECATED, PARAM_REQUIRED, and PARAM_RANGE_ENFORCE. The possible types of parameters are NULL, string, integer, limit, boolean, timestamp, user, or upload. A "user" parameter is a username that is validated using. For boolean parameters, a default value of anything other than 'false' is not allowed.

Ejemplo:

getResultProperties y getFinalResultProperties
PENDIENTE: describir lo que hacen

getResult
Obtiene el resultado de la API (véase Manual:ApiResult.php).

Ganchos


Hooks called from this file are listed in the MediaWiki hooks included in ApiBase.php category.

Véase también

 * Estrategia de implementación de API
 * Manual:Código
 * Manual:Código
 * Manual:Código