Re: [PHP-GTK] Help with class constants
by Bob Majdak Jr other posts by this author
Jul 28 2007 11:57PM messages near this date
[PHP-GTK] Help with class constants
|
[PHP-GTK] Re: Help with class constants
� 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 snip
pit.
<?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.
?>
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Conceicao Fernando
Bob Majdak Jr
Elizabeth Smith
|