parse error, expecting `T_STRING\' in ...
Jeg har lavet følgende to klasser i hver sin fil. Når jeg include\'er dem får jeg parse error!Hvad er der galt?
<?
class List{
var $l; //array
var $current; //integer
function List($objectList){
$this->l = $objectList;
$this->first();
}
function first(){
$this->current = 0;
return & $this->current();
}
function hasMore(){
if ($this->l[$this->current]){
return TRUE;
}
else{
return FALSE;
}
}
function current(){
return & $this->l[$this->current];
}
function next(){
$this->current++;
return & $this->current();
}
}//end of class List
?>
<?
class DbList extends List{
function DbList($class){
$myList = $database->getAll($class);
$this->List($myList);
}
}//end of class DbList
?>
