previousXML_Beautifier::apiVersion (Previous) (Next) XML_Beautifier::formatStringnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

XML_Beautifier::formatFile

XML_Beautifier::formatFile() – rend jolie un fichier

Synopsis

require_once 'XML/Beautifier.php';

object XML_Beautifier::formatFile ( string $file , string $newFile = = null , string $renderer = "Plain" )

Description

Rend jolie un fichier.

Parameter

  • string $file - nom du fichier original

  • string $newFile - nom du fichier devenu jolie ;) Si aucun fichier n'est donné, la méthode retournera le résultat du document XML. Pour réécrit par dessus le fichier original, utilisez la constante XML_BEAUTIFIER_OVERWRITE.

  • string $renderer - rendu à utiliser, actuellement, seul le rendu XML "Plain" peut être utilisé.

Return value

mixed : Soit TRUE si le fichier a été écrit ou alors une chaîne représentant le document XML.

Note

This function can not be called statically.

previousXML_Beautifier::apiVersion (Previous) (Next) XML_Beautifier::formatStringnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.