last day (311 days later) » 

10:00 PM
PeeHaa has made a change to the feeds posted into this room
PeeHaa has stopped a feed from being posted into this room
PeeHaa has made a change to the feeds posted into this room
 
Feel free to add more crap to the stream :)
2
 
0
Q: How do i deal with multiple contructor arguments or class variables?

johnHow do I know what to load in a constructor and what to set using the set methods later on? For example, I have a question class which most of the time will call the following vars: protected $question; protected $content; protected $creator; protected $date_added; protected $id; protected $cat...

1
Q: PHP: Can a object "evolve" into an object of one of it's child classes?

user2084732Assume we have a parent class and a child class. The parent class checks some parameters and decides that the child class would be better suited to handle the given request - is there a way to recreate the existing (parent)-object as an object of the child class from whithin the parent object? E...

1
Q: override static method wich is called in parent

ChazzBGI have this case <?php class Parent { public function worker(){ self::helper(); } public static function helper(){ echo 'Foo'; } } class Child extends Parent{ public static function helper(){ echo 'Bar'; } } $do = new Child(); $do->wo...

 
2 messages moved to bin
 

  last day (311 days later) »