You are here

public static function PHPExcel_Calculation::setArrayReturnType in Loft Data Grids 7.2

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

* Set the Array Return Type (Array or Value of first element in the array) * * @access public *

Parameters

string $returnType Array return type: * @return boolean Success or failure

5 calls to PHPExcel_Calculation::setArrayReturnType()
MathTrigTest::testMROUND in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/MathTrigTest.php
@dataProvider providerMROUND
PHPExcel_Writer_CSV::save in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/CSV.php
* Save PHPExcel to file * *
PHPExcel_Writer_HTML::save in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Save PHPExcel to file * *
PHPExcel_Writer_PDF_Core::prepareForSave in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/PDF/Core.php
Save PHPExcel to PDF file, pre-save
PHPExcel_Writer_PDF_Core::restoreStateAfterSave in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/PDF/Core.php
Save PHPExcel to PDF file, post-save

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php, line 1854

Class

PHPExcel_Calculation
PHPExcel_Calculation (Multiton)

Code

public static function setArrayReturnType($returnType) {
  if ($returnType == self::RETURN_ARRAY_AS_VALUE || $returnType == self::RETURN_ARRAY_AS_ERROR || $returnType == self::RETURN_ARRAY_AS_ARRAY) {
    self::$returnArrayAsType = $returnType;
    return TRUE;
  }
  return FALSE;
}