[phplib-users] $class->classname
Brought to you by:
nhruby,
richardarcher
From: Lindsay H. <fmo...@fm...> - 2008-04-11 23:29:00
|
Rather than trying to cover all possible bases, I'll focus on one issue at a time. What's the purpose and function of PHPlib's classname property which occurs throughout local4.inc where classes are extended with user-supplied names? PHP4 and PHP5 provide the get_class() and get_parent_class() functions which return the names of classes. Would it not be possible to drop the classname property altogether and rely on these functions if class name information is needed? The PHPlib documentation is pretty ambiguous on this matter, and seems to imply that at this point in the evolution of PHPlib, setting $classname is optional, although I believe that under PHP3 it wasn't. I'm trying to iron out and understand the dependencies and relationships between session names (PHP's session_name() func), cookie names, the $name property of session objects and the $classname property. These are rather tangled up in the PHPlib code, and if anyone can give me some insight on how they relate and what they're used for I'd appreciate it. It looks a bit like a case of legacy code getting overlaid but not replaced by newer data structures. -- Lindsay Haisley | "In an open world, | PGP public key FMP Computer Services | who needs Windows | available at 512-259-1190 | or Gates" | http://pubkeys.fmp.com http://www.fmp.com | | |