Jason Sweat wrote:
When the class is named SomeLongNameBecauseWedontHaveNamespaces and I
define a SELF_EXPLAINING_CONSTANT_NUMBER_ONE I've to write
SomeLongNameBecauseWedontHaveNamespaces::SELF_EXPLAINING_CONSTANT_NUMBER_ONE
to access it from within the class itself.
Is there a way to reference constants from the same class (or dervived
class) in a friendlier way?
I often use self::SELF_EXPLAINING_CONSTANT_NUMBER_ONE when in context
of a class method itself.
I forgot to add that I mean in static methods ..
but thanks,
- Markus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php