Manual:GlobalFunctions.php/es

GlobalFunctions.php is a file that contains global functions, including such important functions as wfMsgExt, which is used for.


 * (antes wfMsg y wfMsgExt, ahora desaconsejado)
 * , llama a.

wfFindFile
Passing a string (with a file name) or a object, returns a  object, or   if the file does not exist. It's a shortcut for. Use if you need to get files only from the local repository.

wfRunHooks
Ejemplo de uso de wfRunHooks, de :

wfRandom
wfRandom is used to populate.

wfBaseConvert
Use Wikimedia\base_convert directly. The function used to generate the base-36 SHA-1 text content hash in is. API modules like use.

wfTempDir
This function attempts to get the system directory for temporary files.

wfIsCLI
Returns true if the code is being run from the command line.