You are here

public static function PHPExcel_Calculation_Functions::setCompatibilityMode in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php \PHPExcel_Calculation_Functions::setCompatibilityMode()

* Set the Compatibility Mode * * @access public * @category Function Configuration *

Parameters

string $compatibilityMode Compatibility Mode: * Permitted values are: * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel' * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric' * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc' * @return boolean (Success or Failure)

10 calls to PHPExcel_Calculation_Functions::setCompatibilityMode()
CalculationTest::setUp in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/CalculationTest.php
CalculationTest::testBinaryComparisonOperation in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/CalculationTest.php
@dataProvider providerBinaryComparisonOperation
DateTimeTest::setUp in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/DateTimeTest.php
EngineeringTest::setUp in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/EngineeringTest.php
FinancialTest::setUp in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/FinancialTest.php

... See full list

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Functions.php, line 116

Class

PHPExcel_Calculation_Functions
PHPExcel_Calculation_Functions

Code

public static function setCompatibilityMode($compatibilityMode) {
  if ($compatibilityMode == self::COMPATIBILITY_EXCEL || $compatibilityMode == self::COMPATIBILITY_GNUMERIC || $compatibilityMode == self::COMPATIBILITY_OPENOFFICE) {
    self::$compatibilityMode = $compatibilityMode;
    return True;
  }
  return False;
}