Unknown magic properties

It's nice that there is a way to autocomplete magic properties with @property when they are known limited amount. however in some classes I use magic properties that are generated by loading content (like simplexml or a template engine). Is there any way (other than writing a pligin) to assign magic properties depending on what's loaded?

If not, is there any simple example of a template engine plugin which I can have a look at. The custom template engine I use is everywhere in code and not having auto-completion/inspection is very inconvenient.

2 comments
Comment actions Permalink

Probably Latte? There's a plugin available for it with 15k downloads, recently updated.

0
Comment actions Permalink

I'm not looking for a template engine. I'm looking for a plugin source which I can use as an example to implement my own template engine. Latte is not much different than plain php source. It's not designer/html developer friendly.

But thanks for the link. I can have a look at the decompiled plugin classes. Might be handy.

0

Please sign in to leave a comment.