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

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

XML_Beautifier::formatFile

XML_Beautifier::formatFile() – ファイルを美化する

Synopsis

require_once 'XML/Beautifier.php';

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

Description

ファイルを美化します。

Parameter

  • string $file - オリジナルファイルのファイル名です。

  • string $newFile - 美化したファイルのファイル名です。 もしファイルが与えられなかった場合、 このメソッドはXMLドキュメントの結果を返すでしょう。 オリジナルファイルを上書きするには XML_BEAUTIFIER_OVERWRITEを通してください。

  • string $renderer - 使用するレンダラです。 現在は"Plain"XMLレンダラのみ使用出来ます。

Return value

mixed ファイルに書き込まれるか、XML文書文字列化した場合はtrueが返ります。

Note

This function can not be called statically.

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

Download Documentation Last updated: Sun, 21 Jun 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.