Redefining base class functions?

From: Date: Fri, 13 Jun 2008 21:48:42 +0000
Subject: Redefining base class functions?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8270@lists.php.net to get a copy of this message
Is there a way (PHP-GTK1) to redefine a base class method? Specifically, I need to change set_usize() so that the values for X and Y can be recalculated. The function I'm envisioning might look like: define('SIZEMULTIPLIER', 1.5); ... snip ... function set_usize($x, $y) { return parent::set_usize(round($x * SIZEMULTIPLIER), round($y * SIZEMULTIPLIER)); } So far, I'm drawing blanks. Is this possible? Any ideas? Thanks, Ben -- Only those who reach toward a goal are likely to achieve it. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

« previous php.gtk.general (#8270) next »