Re: [PHP-GTK] Help with class constants
[email protected] (bob majdak jr)
| Newsgroups | php.gtk.general |
|---|---|
| Organization | KateOS |
| Message-ID | <[email protected]> |
� wrote:
> My question: how can I know if a class constant is defined?
Ohh. This is what she was talking about. Surprised nobody replied yet. Here have a code snippit.
<?php
if(defined('Gtk::TYPE_STRING')) {
echo("we should use Gtk::TYPE_STRING.\n");
}
else if(defined('GObject::TYPE_STRING')) {
echo("we should use GObject::TYPE_STRING.\n");
}
// - bob.
?>