docblocks
This commit is contained in:
parent
a6ab41cd65
commit
d4e7026c95
|
@ -26,7 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPExcel_Calculation_Logger
|
* PHPExcel_CalcEngine_Logger
|
||||||
*
|
*
|
||||||
* @category PHPExcel
|
* @category PHPExcel
|
||||||
* @package PHPExcel_Calculation
|
* @package PHPExcel_Calculation
|
||||||
|
|
|
@ -1701,6 +1701,8 @@ class PHPExcel_Calculation {
|
||||||
* Get an instance of this class
|
* Get an instance of this class
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
|
* @param PHPExcel $workbook Injected workbook for working with a PHPExcel object,
|
||||||
|
* or NULL to create a standalone claculation engine
|
||||||
* @return PHPExcel_Calculation
|
* @return PHPExcel_Calculation
|
||||||
*/
|
*/
|
||||||
public static function getInstance(PHPExcel $workbook = NULL) {
|
public static function getInstance(PHPExcel $workbook = NULL) {
|
||||||
|
@ -1718,6 +1720,12 @@ class PHPExcel_Calculation {
|
||||||
return self::$_instance;
|
return self::$_instance;
|
||||||
} // function getInstance()
|
} // function getInstance()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unset an instance of this class
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @param PHPExcel $workbook Injected workbook identifying the instance to unset
|
||||||
|
*/
|
||||||
public static function unsetInstance(PHPExcel $workbook = NULL) {
|
public static function unsetInstance(PHPExcel $workbook = NULL) {
|
||||||
if ($workbook !== NULL) {
|
if ($workbook !== NULL) {
|
||||||
if (isset(self::$_workbookSets[$workbook->getID()])) {
|
if (isset(self::$_workbookSets[$workbook->getID()])) {
|
||||||
|
@ -1738,6 +1746,12 @@ class PHPExcel_Calculation {
|
||||||
} // function flushInstance()
|
} // function flushInstance()
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the debuglog for this claculation engine instance
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return PHPExcel_CalcEngine_Logger
|
||||||
|
*/
|
||||||
public function getDebugLog() {
|
public function getDebugLog() {
|
||||||
return $this->_debugLog;
|
return $this->_debugLog;
|
||||||
}
|
}
|
||||||
|
@ -1849,6 +1863,8 @@ class PHPExcel_Calculation {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear calculation cache for a specified worksheet
|
* Clear calculation cache for a specified worksheet
|
||||||
|
*
|
||||||
|
* @param string $worksheetName
|
||||||
*/
|
*/
|
||||||
public function clearCalculationCacheForWorksheet($worksheetName) {
|
public function clearCalculationCacheForWorksheet($worksheetName) {
|
||||||
if (isset($this->_calculationCache[$worksheetName])) {
|
if (isset($this->_calculationCache[$worksheetName])) {
|
||||||
|
@ -1858,6 +1874,9 @@ class PHPExcel_Calculation {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename calculation cache for a specified worksheet
|
* Rename calculation cache for a specified worksheet
|
||||||
|
*
|
||||||
|
* @param string $fromWorksheetName
|
||||||
|
* @param string $toWorksheetName
|
||||||
*/
|
*/
|
||||||
public function renameCalculationCacheForWorksheet($fromWorksheetName, $toWorksheetName) {
|
public function renameCalculationCacheForWorksheet($fromWorksheetName, $toWorksheetName) {
|
||||||
if (isset($this->_calculationCache[$fromWorksheetName])) {
|
if (isset($this->_calculationCache[$fromWorksheetName])) {
|
||||||
|
@ -1880,9 +1899,10 @@ class PHPExcel_Calculation {
|
||||||
/**
|
/**
|
||||||
* Set the locale code
|
* Set the locale code
|
||||||
*
|
*
|
||||||
|
* @param string $locale The locale to use for formula translation
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function setLocale($locale='en_us') {
|
public function setLocale($locale = 'en_us') {
|
||||||
// Identify our locale and language
|
// Identify our locale and language
|
||||||
$language = $locale = strtolower($locale);
|
$language = $locale = strtolower($locale);
|
||||||
if (strpos($locale,'_') !== FALSE) {
|
if (strpos($locale,'_') !== FALSE) {
|
||||||
|
@ -2230,6 +2250,8 @@ class PHPExcel_Calculation {
|
||||||
* Calculate the value of a formula
|
* Calculate the value of a formula
|
||||||
*
|
*
|
||||||
* @param string $formula Formula to parse
|
* @param string $formula Formula to parse
|
||||||
|
* @param string $cellID Address of the cell to calculate
|
||||||
|
* @param PHPExcel_Cell $pCell Cell to calculate
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws PHPExcel_Calculation_Exception
|
* @throws PHPExcel_Calculation_Exception
|
||||||
*/
|
*/
|
||||||
|
@ -2407,6 +2429,10 @@ class PHPExcel_Calculation {
|
||||||
*
|
*
|
||||||
* @param mixed &$matrix1 First matrix operand
|
* @param mixed &$matrix1 First matrix operand
|
||||||
* @param mixed &$matrix2 Second matrix operand
|
* @param mixed &$matrix2 Second matrix operand
|
||||||
|
* @param integer $matrix1Rows Row size of first matrix operand
|
||||||
|
* @param integer $matrix1Columns Column size of first matrix operand
|
||||||
|
* @param integer $matrix2Rows Row size of second matrix operand
|
||||||
|
* @param integer $matrix2Columns Column size of second matrix operand
|
||||||
*/
|
*/
|
||||||
private static function _resizeMatricesShrink(&$matrix1,&$matrix2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns) {
|
private static function _resizeMatricesShrink(&$matrix1,&$matrix2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns) {
|
||||||
if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) {
|
if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) {
|
||||||
|
@ -2446,6 +2472,10 @@ class PHPExcel_Calculation {
|
||||||
*
|
*
|
||||||
* @param mixed &$matrix1 First matrix operand
|
* @param mixed &$matrix1 First matrix operand
|
||||||
* @param mixed &$matrix2 Second matrix operand
|
* @param mixed &$matrix2 Second matrix operand
|
||||||
|
* @param integer $matrix1Rows Row size of first matrix operand
|
||||||
|
* @param integer $matrix1Columns Column size of first matrix operand
|
||||||
|
* @param integer $matrix2Rows Row size of second matrix operand
|
||||||
|
* @param integer $matrix2Columns Column size of second matrix operand
|
||||||
*/
|
*/
|
||||||
private static function _resizeMatricesExtend(&$matrix1,&$matrix2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns) {
|
private static function _resizeMatricesExtend(&$matrix1,&$matrix2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns) {
|
||||||
if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) {
|
if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) {
|
||||||
|
@ -3596,10 +3626,11 @@ class PHPExcel_Calculation {
|
||||||
*
|
*
|
||||||
* @param string &$pRange String based range representation
|
* @param string &$pRange String based range representation
|
||||||
* @param PHPExcel_Worksheet $pSheet Worksheet
|
* @param PHPExcel_Worksheet $pSheet Worksheet
|
||||||
|
* @param boolean $resetLog Flag indicating whether calculation log should be reset or not
|
||||||
* @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
|
* @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
|
||||||
* @throws PHPExcel_Calculation_Exception
|
* @throws PHPExcel_Calculation_Exception
|
||||||
*/
|
*/
|
||||||
public function extractCellRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog=TRUE) {
|
public function extractCellRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog = TRUE) {
|
||||||
// Return value
|
// Return value
|
||||||
$returnValue = array ();
|
$returnValue = array ();
|
||||||
|
|
||||||
|
@ -3654,9 +3685,10 @@ class PHPExcel_Calculation {
|
||||||
* @param string &$pRange String based range representation
|
* @param string &$pRange String based range representation
|
||||||
* @param PHPExcel_Worksheet $pSheet Worksheet
|
* @param PHPExcel_Worksheet $pSheet Worksheet
|
||||||
* @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
|
* @return mixed Array of values in range if range contains more than one element. Otherwise, a single value is returned.
|
||||||
|
* @param boolean $resetLog Flag indicating whether calculation log should be reset or not
|
||||||
* @throws PHPExcel_Calculation_Exception
|
* @throws PHPExcel_Calculation_Exception
|
||||||
*/
|
*/
|
||||||
public function extractNamedRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog=TRUE) {
|
public function extractNamedRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = NULL, $resetLog = TRUE) {
|
||||||
// Return value
|
// Return value
|
||||||
$returnValue = array ();
|
$returnValue = array ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue