Date: 12/05/00
- Next message: Max Derkachev: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Previous message: Sascha Schumann: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- In reply to: R.B. Scholtus: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Next in thread: Ulf Wendel: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"R.B. Scholtus" wrote:
> Is it possible to make a global reference to a function inside a class? i
> could use the global reference inside a simple function and pass that simple
> function's name to set_save_handler().
You can not reference a function itself, only its name in PHP.
You can access methods using Class::Method syntax, but only within one hierarchy (inheritance chain).
E.g. ClassC extends ClassB, which in turn extends ClassA.
You can refer to ClassA method from a hier class' object, even if it was redefined, by calling ClassA::method().
But it is impossible to refer to it from outside of that classes' hierarchy.
-- Best regards, Max A. Derkachev mailto:kot <email protected> Symbol-Plus Publishing Ltd. phone: +7 (812) 324-5353 http://www.Books.Ru -- All Books of Russia--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected> For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: Max Derkachev: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Previous message: Sascha Schumann: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- In reply to: R.B. Scholtus: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Next in thread: Ulf Wendel: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

