[PHP] Class question

2006-09-15 Thread Roger Helgesen
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

Re: [PHP] Class question

2006-09-15 Thread Roger Helgesen
(){ $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 A,B and C class A { var $some_var; var $class_B; function

[PHP] Re: CLASS/Object lifetime - Solution

2006-02-22 Thread roger helgesen
[$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); } } - $this-subposter is the array of CLASS2

[PHP] Object lifetime

2006-02-21 Thread roger helgesen
of CLASS2 that $cl1 created before 'submit form'. 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

[PHP] CLASS/Object lifetime

2006-02-21 Thread roger helgesen
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 -- PHP General

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 same

[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. class1

[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){ echo

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

2006-02-21 Thread Roger Helgesen
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); } class Test { var $number; var $subposter; function Test($n = 0