ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved