Hi group,
my question is:
If you have an object A with a method A1 and a second object B where you overgive object A within the B-Constructor: how can you call a object A method out of object B?
e.g.
class A {
function A1() { }
}
class B {
var $aktObjA;
function B ($objectA_in) {
$this->aktObjA = $objectA_in;
}
function concatBA () {
????? $myTest = $this->aktObjA->A1();
}
}
This code above did not result the A1-Value.
Isn't this syntax possible in PHP?
$this->var_from_obj_b->method_from_obj_a()
where var_from_obj_b is a type of Obj. A
Hope anybody of you has an idea.
TIA
John