|
Posted by Rik Wasmus on 01/03/08 17:17
On Thu, 03 Jan 2008 18:03:36 +0100, Anthony Smith <mrsmithq@hotmail.com>
wrote:
> I may have more of a design problem, but here goes.
>
>
> I have a class that has 3 methods. One method simply calls the other
> two. I wanted to make the class static, and to do this in php, you
> just have to make the function static. So I did that for all three
> functions. But now I cannot call the other two functions from the
> first function.
self::functionname();
<?php
class foo{
static function bar(){
self::foz();
self::baz();
}
static function foz(){echo 'hello';}
static function baz(){echo ', world';}
}
foo::bar();
?>
--
Rik Wasmus
Navigation:
[Reply to this message]
|