From: Andreas A. <a.a...@th...> - 2001-09-22 14:10:52
|
> Im not quite sure if we should make the Bcc object global. > If so, the user can register the tags automatically to > Bcc by just importing the compiler >classes. I retire that. It's bad to do so, this might lead to conflicts if the user wants to use a compiler module outside bcc context. Better is to use something like this: --- base/mod/bcc/BccInit.php --- import('binarycloud.mod.bcc.Bcc'); import('binarycloud.mod.bcc.BccModuleCompiler'); import('binarycloud.mod.bcc.BccImgCompiler'); global $Bcc; $Bcc = new Bcc(); $Bcc->knownTags( 'BC:MODULE' => "BccModuleCompiler", 'BC:IMG' => "BccImgCompiler" ); ---/ base/mod/bcc/BccInit.php --- |