Re: [PHP] Class question

2006-09-15 Thread Roger Helgesen
y } } class C extends A { function C(){ $this->A(); // $this->some_var= some_var_from_class_A; <-- $this->some_var contains the value allready } } on Friday 15 September 2006 11:01, Roger Helgesen wrote: I have 3 classes, CLASS

[PHP] Class question

2006-09-15 Thread Roger Helgesen
ome_var_class_A without using "$this->class_B = new B($some_var);" roger helgesen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: CLASS/Object lifetime - > Solution

2006-02-22 Thread roger helgesen
ne $kontoen=& $this->subposter[$konto]; solved all roger roger helgesen wrote: The function that gives me trouble - function fyll_sub_konto($pv){ foreach($this->subposter AS $konto){ $konto->fyll_fra_post($pv); } } --

Re: [PHP] Re: CLASS/Object lifetime - > more info

2006-02-21 Thread Roger Helgesen
or you could try php5 and forget about 'object hell'. :-) roger helgesen wrote: The function that gives me trouble - function fyll_sub_konto($pv){ foreach($this->subposter AS $konto){ $konto->fyll_fra_post($pv); }

[PHP] Re: CLASS/Object lifetime - > more info

2006-02-21 Thread roger helgesen
The function that gives me trouble - function fyll_sub_konto($pv){ foreach($this->subposter AS $konto){ $konto->fyll_fra_post($pv); } } - $this->subposter is the array of CLASS2 function fyll_fra_post($post_vars){ ec

[PHP] Re: CLASS/Object lifetime - > Here is the code

2006-02-21 Thread roger helgesen
roger helgesen wrote: Hi! I'v got 2 classes. CLASS1 makes a array of instanses of class2. I need thees classes 2 live for the duration of the session so I serialize class1 to a _session var. I submit the form and the page is reloaded. I unserialize class1 back 2 same instanse var. c

Re: [PHP] CLASS/Object lifetime

2006-02-21 Thread roger helgesen
Jochem Maas wrote: roger helgesen wrote: Hi! I'v got 2 classes. CLASS1 makes a array of instanses of class2. I need thees classes 2 live for the duration of the session so I serialize class1 to a _session var. I submit the form and the page is reloaded. I unserialize class1 back 2

[PHP] CLASS/Object lifetime

2006-02-21 Thread roger helgesen
anses of class2 almost work. I can read all data from the class/object, I can run functions off class2 BUT I can't change the data in objects og class2. Is this at all possible. ps.I do not serialize/unserialize object of CLASS2, these are instanses of CLASS1. regard Roger Helgesen -- P

[PHP] Object lifetime

2006-02-21 Thread roger helgesen
mark I'v only serialized CLASS1. Is this at all possible ?? I'v find it strange since I can use/print the data that is stored in CLASS2 before 'submit form'. regards Roger Helgesen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php