You are here:  » Is MagicParser a PHP class yet?


Is MagicParser a PHP class yet?

Submitted by PriceSpin on Sun, 2009-02-01 10:43 in

Hi Everyone,

I haven't been to these forums for over 2 years!

Now, I have a quick question:

Is MagicParser a PHP5 class yet?

The reason I'm asking this is that I have been using the procedural code for years and now we're looking at a rewrite and I would prefer magic parser to be a class, like everything else in the code library.

Thanks in advance.

Submitted by support on Sun, 2009-02-01 12:21

Hi there,

The script isn't a class, however as it is not re-entrant (when you call MagicParser_parse() control does not return to your script until the parse has completed) you should not be restricted at all in the way you wish to use it - simply use global variables to pass any data required between your class code and the external record handler function...

Cheers,
David.