Re: Re: ClassHints and NULL

From: Date: Fri, 18 Jun 2004 19:52:56 +0000
Subject: Re: Re: ClassHints and NULL
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-10608@lists.php.net to get a copy of this message
Andrei Zmievski wrote:
abstract class BasePeer { // ... public static function doDelete(Criteria $criteria, Connection $con) { // ... } } class AuthorPeer extends BasePeer { public static function doDelete(Criteria $criteria, $con = null) {
    if ($con === null) {
       $con = Transaction::begin();
    }
    // ...
    parent::doDelete($criteria, $con);
} }
Wow. When did Java get $ for variables?
Just about the same time that Apache Torque got ported to PHP5 ;) Hans

« previous php.internals (#10608) next »