Date: 09/15/07 (PHP Community) Keywords: php I'm trying to push PHP5 OOP to the limit, and it's breaking instead of bending :) What am I doing wrong? class Message {Then, I'd like to call OutgoingMessage::getMessageType(), and receive a valid value of the constant ("b")...Putting in a declaration of MY_CONSTANT into the base Message class doesn't help. Any ideas? What's a better way of doing this statically? I don't want to make the constant an object property, ad there are other elements in my interface that should be called statically. Here's me trying to do this through static class variables - returns "0" instead of "b": class Message {
|