php5 and possible oop features/questions
| From: | Tit \"Black\" Petric | Date: | Sun, 05 Oct 2003 12:14:54 +0000 |
| Subject: | php5 and possible oop features/questions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165084@lists.php.net to get a copy of this message | ||
will something in the likes of this be possible in php5?
/***/
class some_classname
{
function some_function();
}
function some_classname::some_function($prefix, $text) {
return $prefix.": ".$text."\n";
}
$test = new some_classname;
$test->some_function("Output","Hello World!");
/***/
how about object/class aggregation from php4 (it was experimental and i
imagine it still has a few bugs left, but it was a really usefull
feature)..?
i know the following is possible:
class class_name implements class1, class2, class3 extends parent_class {
...
}
but, can you do something more dynamic, so you can tell which classes to
implement at runtime? class class_name implemenets $vars extends
parent_class ?