You are here

public function PHPExcel_Calculation_Function::setCategory in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Function.php \PHPExcel_Calculation_Function::setCategory()

Set Category (represented by CATEGORY_*)

Parameters

string $value:

Throws

PHPExcel_Calculation_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Function.php, line 106

Class

PHPExcel_Calculation_Function
PHPExcel_Calculation_Function

Code

public function setCategory($value = null) {
  if (!is_null($value)) {
    $this->_category = $value;
  }
  else {
    throw new PHPExcel_Calculation_Exception("Invalid parameter passed.");
  }
}