public function PHPExcel_Calculation_Function::__construct in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Function.php \PHPExcel_Calculation_Function::__construct()
Create a new PHPExcel_Calculation_Function
Parameters
string $pCategory Category (represented by CATEGORY_*):
string $pExcelName Excel function name:
string $pPHPExcelName PHPExcel function mapping:
Throws
PHPExcel_Calculation_Exception
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Calculation/ Function.php, line 79
Class
- PHPExcel_Calculation_Function
- PHPExcel_Calculation_Function
Code
public function __construct($pCategory = NULL, $pExcelName = NULL, $pPHPExcelName = NULL) {
if ($pCategory !== NULL && $pExcelName !== NULL && $pPHPExcelName !== NULL) {
// Initialise values
$this->_category = $pCategory;
$this->_excelName = $pExcelName;
$this->_phpExcelName = $pPHPExcelName;
}
else {
throw new PHPExcel_Calculation_Exception("Invalid parameters passed.");
}
}