File_Fortune
File_Fortune::setFiles
(
)
setFiles() は、fortune を取得するファイル名の一覧を指定する際に使用します。 文字列引数をひとつ渡したり、配列引数をひとつ渡したり、 あるいは複数の文字列引数を渡したりすることができます。以下に使用例を示します。
<?php
// 単一のファイル
$fortunes->setFiles('/path/to/fortunefile');
// ファイルの配列
$fortunes->setFiles(array('/path/to/fortunefile', '/another/fortunefile', '/more/fortunes'));
// 複数のファイル
$fortunes->setFiles('/path/to/fortunefile', '/another/fortunefile', '/more/fortunes');
?>
例外はスローされません。
This function can not be called statically.