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
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
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);
}
}
--
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);
}
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
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
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
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
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
9 matches
Mail list logo