« Return to Thread: Redefining base class functions?

Redefining base class functions?

by Benjamin Smith :: Rate this Message:

Reply to Author | View in Thread

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.


--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: Redefining base class functions?