Hello srs,
Q 1.
Will the methode __clone() have the posibility of
take arguments ???? It would be usefull to
reinitialize the clone:
<?
class Ovelha {
var $age;
var $owner;
function __construct($age, $owner) {
$this->age = $age;
$this->owner = $owner;
}
function __clone($owner) {
$this->age = 0;
$this->owner = $owner;
}
}
$molly = new Ovelha(2, "Eduardo");
$dolly = $molly->__clone("Igor");
print $dolly->owner;
print $dolly->age;
?>
Warning: Clone method does not require arguments
that�s sure one can create a wrapper function that
initializes it, but....
Q 2.
In some old docs, I�ve read the following:
For convenience, the engine will suply a function
that imports all of the properties from the source
object, so they can start a by-value replica of the
object, and only override properties that need to be
changed. [The function hasn�t been implemented yet].
How is it actualy?????
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php