Here's the parent class:
class Event {
public function getLang($lang){
$sql = "select * from Event where EventID =" . $this->EventID . "AND Lang =" . $lang;
$result = $this->selectOneRow($sql);
}
}
and here is the child:
class Invitation extends Event{
public function getLang($lang){
Event::getLang($lang);
$sql = "select * from invitation where EventID =" . $this->EventID . " and Lang = " . $lang;
}
}
I had hope that EVENT :: getLang ($ lang) would work, but after I repeat the request, I see that it ends with EventID.
Is there a proper way to do this?
I tried to copy / paste the code into the child element directly, but this will not work, because I got the variables at the parent level, which will be assigned the result of the event selection.
Is there a way around this or am I at a dead end?
source
share