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
(){
$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
[$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
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
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
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
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
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
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
9 matches
Mail list logo