public function PHPExcel_HashTable::addFromSource in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/HashTable.php \PHPExcel_HashTable::addFromSource()
* Add HashTable items from source * *
Parameters
PHPExcel_IComparable[] $pSource Source array to create HashTable from: * @throws PHPExcel_Exception
1 call to PHPExcel_HashTable::addFromSource()
- PHPExcel_HashTable::__construct in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ HashTable.php - * Create a new PHPExcel_HashTable * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ HashTable.php, line 72
Class
- PHPExcel_HashTable
- PHPExcel_HashTable
Code
public function addFromSource($pSource = null) {
// Check if an array was passed
if ($pSource == null) {
return;
}
else {
if (!is_array($pSource)) {
throw new PHPExcel_Exception('Invalid array parameter passed.');
}
}
foreach ($pSource as $item) {
$this
->add($item);
}
}