hideBlock() (Previous) (Next) parse()

View this page in Last updated: Sun, 05 Oct 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

loadTemplateFile()

loadTemplateFile() -- テンプレートファイルを読み込む

説明

テンプレートファイルを読み込みます。キャッシングを有効にしている場合は、 まず "準備された" テンプレートが存在するかどうかを調べます。 存在する場合は、もとのテンプレートの代わりにそれを読み込みます。 存在しない場合は、もとのテンプレートを読み込んで準備し、 その準備したバージョンを保存します。 addBlockfile() および replaceBlockfile() は、まったく同じロジックを実装しています。

パラメータ

string $filename

ファイル名。

boolean $removeUnknownVariables

未知の/使用していない変数を削除するかどうか?

boolean $removeEmptyBlocks

空のブロックを削除するかどうか?

返り値

成功した場合に SIGMA_OK、 失敗した場合にエラーオブジェクトを返します。

参照

HTML_Template_Sigma::setTemplate()HTML_Template_Sigma::$removeUnknownVariablesHTML_Template_Sigma::$removeEmptyBlocks も参照ください。

注意

この関数は、スタティックにコールする ことはできません。

hideBlock() (Previous) (Next) parse()

Download Documentation Last updated: Sun, 05 Oct 2008
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.