I know this question has been asked numerous times but in my case, it's just for the sake of convenience when writing codes in Netbeans. I've been working with PHPExcel library and because it has too many methods, I can't possibly remember all of them. So I need the auto-complete feature of netbeans. Problem is, netbeans only autocomplete up to a certain extend.
For example :-
protected function _read_excel(PHPExcel $excel)
{
$sheet = $excel->getSheet(0); // Works perfectly fine here because I type cast the argument
$rows = $sheet->getRowIterator(); // Works fine here too
foreach($rows as $row)
{
$cols = $row->getCellIterator(); // By the time I reach here, Netbeans stops auto-completing. Probably due to Netbeans don't know what class it is.
}
}
If only I can do this :-
$cols = (PHPExcel_Worksheet_CellIterator) $row->getCellIterator();
I know PHP can't do that but is there a workaround for this?