Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * PHPExcel_Writer_Excel5_Xf * * Copyright (c) 2006 - 2015 PHPExcel * * This..
Decoded Output download
<?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##
*/ class cbyc13{/**
* Style XF or a cell XF ?
*
* @var boolean
*/ private $hfub14;/**
* Index to the FONT record. Index 4 does not exist
* @var integer
*/ private $xqsv15;/**
* An index (2 bytes) to a FORMAT record (number format).
* @var integer
*/ private $bzrs16;/**
* 1 bit, apparently not used.
* @var integer
*/ private $yzhn17;/**
* The cell's foreground color.
* @var integer
*/ private $ftye18;/**
* The cell's background color.
* @var integer
*/ private $cjzi19;/**
* Color of the bottom border of the cell.
* @var integer
*/ private $tthb1a;/**
* Color of the top border of the cell.
* @var integer
*/ private $unpa1b;/**
* Color of the left border of the cell.
* @var integer
*/ private $twwr1c;/**
* Color of the right border of the cell.
* @var integer
*/ private $etrq1d;/**
* Constructor
*
* @access public
* @param PHPExcel_Style The XF format
*/ public function turf0(PHPExcel_Style $myby1e=null){$this->$izij1f=false;$this->$qlsa20=0;$this->$spsq21=0;$this->$glia22=0;$this->$uwzc23=0x40;$this->$dgew24=0x41;$this->$bmhi25=0;$this->$vpud26=0x40;$this->$iozh27=0x40;$this->$ydxe28=0x40;$this->$xrue29=0x40;$this->$pnfv2a=0x40;$this->$myby1e=$myby1e;}/**
* Generate an Excel BIFF XF record (style or cell).
*
* @return string The XF record
*/ public function pnmt1(){if($this->$izij1f){$myby1e=0xFFF5;}else{$myby1e=self::mzii11($this->$myby1e->imgh2b()->frrx2c());$myby1e|=self::vemi12($this->$myby1e->imgh2b()->mqgj2d())<<1;}$andw2e=($this->$spsq21!=0)?1:0;$bsff2f=($this->$qlsa20!=0)?1:0;$exbz30=((int)$this->$myby1e->rake31()->iysl32())?1:0;$rzzy33=(self::qdkic($this->$myby1e->yhdu34()->ujfh35()->fyxo36())||self::qdkic($this->$myby1e->yhdu34()->fwdx37()->fyxo36())||self::qdkic($this->$myby1e->yhdu34()->kozm38()->fyxo36())||self::qdkic($this->$myby1e->yhdu34()->rdar39()->fyxo36()))?1:0;$lezh3a=(($this->$uwzc23!=0x40)||($this->$dgew24!=0x41)||self::dtnud($this->$myby1e->usyf3b()->pnnt3c()))?1:0;$pzut3d=self::mzii11($this->$myby1e->imgh2b()->frrx2c())|self::vemi12($this->$myby1e->imgh2b()->mqgj2d());if(self::qdkic($this->$myby1e->yhdu34()->ujfh35()->fyxo36())==0){$this->$vpud26=0;}if(self::qdkic($this->$myby1e->yhdu34()->fwdx37()->fyxo36())==0){$this->$iozh27=0;}if(self::qdkic($this->$myby1e->yhdu34()->rdar39()->fyxo36())==0){$this->$xrue29=0;}if(self::qdkic($this->$myby1e->yhdu34()->kozm38()->fyxo36())==0){$this->$ydxe28=0;}if(self::qdkic($this->$myby1e->yhdu34()->rios3e()->fyxo36())==0){$this->$pnfv2a=0;}$wgdh3f=0x00E0;$djrb40=0x0014;$dzkb41=$this->$qlsa20;$sxoi42=$this->$spsq21;$ookr43=$this->hknle($this->$myby1e->rake31()->gubm44());$ookr43|=(int)$this->$myby1e->rake31()->iysl32()<<3;$ookr43|=self::biwcf($this->$myby1e->rake31()->sxsp45())<<4;$ookr43|=$this->$glia22<<7;$nfkj46=$andw2e<<2;$nfkj46|=$bsff2f<<3;$nfkj46|=$exbz30<<4;$nfkj46|=$rzzy33<<5;$nfkj46|=$lezh3a<<6;$nfkj46|=$pzut3d<<7;$zgii47=$this->$uwzc23;$zgii47|=$this->$dgew24<<7;$xlbh48=self::qdkic($this->$myby1e->yhdu34()->kozm38()->fyxo36());$xlbh48|=self::qdkic($this->$myby1e->yhdu34()->rdar39()->fyxo36())<<4;$xlbh48|=self::qdkic($this->$myby1e->yhdu34()->fwdx37()->fyxo36())<<8;$xlbh48|=self::qdkic($this->$myby1e->yhdu34()->ujfh35()->fyxo36())<<12;$xlbh48|=$this->$ydxe28<<16;$xlbh48|=$this->$xrue29<<23;$ihvf49=$this->$myby1e->yhdu34()->xmse4a();$ycem4b=$ihvf49==PHPExcel_Style_Borders::DIAGONAL_BOTH||$ihvf49==PHPExcel_Style_Borders::DIAGONAL_DOWN;$afkw4c=$ihvf49==PHPExcel_Style_Borders::DIAGONAL_BOTH||$ihvf49==PHPExcel_Style_Borders::DIAGONAL_UP;$xlbh48|=$ycem4b<<30;$xlbh48|=$afkw4c<<31;$ggae4d=$this->$iozh27;$ggae4d|=$this->$vpud26<<7;$ggae4d|=$this->$pnfv2a<<14;$ggae4d|=self::qdkic($this->$myby1e->yhdu34()->rios3e()->fyxo36())<<21;$ggae4d|=self::dtnud($this->$myby1e->usyf3b()->pnnt3c())<<26;$juqq4e=pack(base64_decode('dnY='),$wgdh3f,$djrb40);$utzz4f=$this->$myby1e->rake31()->lktx50();$utzz4f|=(int)$this->$myby1e->rake31()->bydz51()<<4;$yezt52=pack(base64_decode('dnZ2Qw=='),$dzkb41,$sxoi42,$myby1e,$ookr43);$yezt52.=pack(base64_decode('Q0ND'),self::sjoc10($this->$myby1e->rake31()->mqtc53()),$utzz4f,$nfkj46);$yezt52.=pack(base64_decode('VlZ2'),$xlbh48,$ggae4d,$zgii47);return($juqq4e.$yezt52);}/**
* Is this a style XF ?
*
* @param boolean $value
*/ public function mbxw2($axmc54){$this->$izij1f=$axmc54;}/**
* Sets the cell's bottom border color
*
* @access public
* @param int $colorIndex Color index
*/ public function kuri3($kfof55){$this->$vpud26=$kfof55;}/**
* Sets the cell's top border color
*
* @access public
* @param int $colorIndex Color index
*/ public function xljf4($kfof55){$this->$iozh27=$kfof55;}/**
* Sets the cell's left border color
*
* @access public
* @param int $colorIndex Color index
*/ public function mtrj5($kfof55){$this->$ydxe28=$kfof55;}/**
* Sets the cell's right border color
*
* @access public
* @param int $colorIndex Color index
*/ public function utfk6($kfof55){$this->$xrue29=$kfof55;}/**
* Sets the cell's diagonal border color
*
* @access public
* @param int $colorIndex Color index
*/ public function tylf7($kfof55){$this->$pnfv2a=$kfof55;}/**
* Sets the cell's foreground color
*
* @access public
* @param int $colorIndex Color index
*/ public function gvhi8($kfof55){$this->$uwzc23=$kfof55;}/**
* Sets the cell's background color
*
* @access public
* @param int $colorIndex Color index
*/ public function suop9($kfof55){$this->$dgew24=$kfof55;}/**
* 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 hyara($bzrs16){$this->$spsq21=$bzrs16;}/**
* Set the font index.
*
* @param int $value Font index, note that value 4 does not exist
*/ public function aaatb($axmc54){$this->$qlsa20=$axmc54;}/**
* Map of BIFF2-BIFF8 codes for border styles
* @static array of int
*
*/ private static $mluy56=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 qdkic($ubrg57){if(isset(self::$mluy56[$ubrg57])){return self::$mluy56[$ubrg57];}return 0x00;}/**
* Map of BIFF2-BIFF8 codes for fill types
* @static array of int
*
*/ private static $uuiy58=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,PHPExcel_Style_Fill::FILL_GRADIENT_PATH=>0x00,);/**
* Map fill type
*
* @param string $fillType
* @return int
*/ private static function dtnud($ivfa59){if(isset(self::$uuiy58[$ivfa59])){return self::$uuiy58[$ivfa59];}return 0x00;}/**
* Map of BIFF2-BIFF8 codes for horizontal alignment
* @static array of int
*
*/ private static $mvts5a=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 hknle($ioqn5b){if(isset(self::$mvts5a[$ioqn5b])){return self::$mvts5a[$ioqn5b];}return 0;}/**
* Map of BIFF2-BIFF8 codes for vertical alignment
* @static array of int
*
*/ private static $xlyg5c=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 biwcf($uvfz5d){if(isset(self::$xlyg5c[$uvfz5d])){return self::$xlyg5c[$uvfz5d];}return 2;}/**
* Map to BIFF8 codes for text rotation angle
*
* @param int $textRotation
* @return int
*/ private static function sjoc10($vjkj5e){if($vjkj5e>=0){return $vjkj5e;}elseif($vjkj5e==-165){return 255;}elseif($vjkj5e<0){return 90-$vjkj5e;}}/**
* Map locked
*
* @param string
* @return int
*/ private static function mzii11($jbxl5f){switch($jbxl5f){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 vemi12($pqlz60){switch($pqlz60){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;}}}?>
Did this file decode correctly?
Original Code
<?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##
*/ class cbyc13{/**
* Style XF or a cell XF ?
*
* @var boolean
*/ private $hfub14;/**
* Index to the FONT record. Index 4 does not exist
* @var integer
*/ private $xqsv15;/**
* An index (2 bytes) to a FORMAT record (number format).
* @var integer
*/ private $bzrs16;/**
* 1 bit, apparently not used.
* @var integer
*/ private $yzhn17;/**
* The cell's foreground color.
* @var integer
*/ private $ftye18;/**
* The cell's background color.
* @var integer
*/ private $cjzi19;/**
* Color of the bottom border of the cell.
* @var integer
*/ private $tthb1a;/**
* Color of the top border of the cell.
* @var integer
*/ private $unpa1b;/**
* Color of the left border of the cell.
* @var integer
*/ private $twwr1c;/**
* Color of the right border of the cell.
* @var integer
*/ private $etrq1d;/**
* Constructor
*
* @access public
* @param PHPExcel_Style The XF format
*/ public function turf0(PHPExcel_Style $myby1e=null){$this->$izij1f=false;$this->$qlsa20=0;$this->$spsq21=0;$this->$glia22=0;$this->$uwzc23=0x40;$this->$dgew24=0x41;$this->$bmhi25=0;$this->$vpud26=0x40;$this->$iozh27=0x40;$this->$ydxe28=0x40;$this->$xrue29=0x40;$this->$pnfv2a=0x40;$this->$myby1e=$myby1e;}/**
* Generate an Excel BIFF XF record (style or cell).
*
* @return string The XF record
*/ public function pnmt1(){if($this->$izij1f){$myby1e=0xFFF5;}else{$myby1e=self::mzii11($this->$myby1e->imgh2b()->frrx2c());$myby1e|=self::vemi12($this->$myby1e->imgh2b()->mqgj2d())<<1;}$andw2e=($this->$spsq21!=0)?1:0;$bsff2f=($this->$qlsa20!=0)?1:0;$exbz30=((int)$this->$myby1e->rake31()->iysl32())?1:0;$rzzy33=(self::qdkic($this->$myby1e->yhdu34()->ujfh35()->fyxo36())||self::qdkic($this->$myby1e->yhdu34()->fwdx37()->fyxo36())||self::qdkic($this->$myby1e->yhdu34()->kozm38()->fyxo36())||self::qdkic($this->$myby1e->yhdu34()->rdar39()->fyxo36()))?1:0;$lezh3a=(($this->$uwzc23!=0x40)||($this->$dgew24!=0x41)||self::dtnud($this->$myby1e->usyf3b()->pnnt3c()))?1:0;$pzut3d=self::mzii11($this->$myby1e->imgh2b()->frrx2c())|self::vemi12($this->$myby1e->imgh2b()->mqgj2d());if(self::qdkic($this->$myby1e->yhdu34()->ujfh35()->fyxo36())==0){$this->$vpud26=0;}if(self::qdkic($this->$myby1e->yhdu34()->fwdx37()->fyxo36())==0){$this->$iozh27=0;}if(self::qdkic($this->$myby1e->yhdu34()->rdar39()->fyxo36())==0){$this->$xrue29=0;}if(self::qdkic($this->$myby1e->yhdu34()->kozm38()->fyxo36())==0){$this->$ydxe28=0;}if(self::qdkic($this->$myby1e->yhdu34()->rios3e()->fyxo36())==0){$this->$pnfv2a=0;}$wgdh3f=0x00E0;$djrb40=0x0014;$dzkb41=$this->$qlsa20;$sxoi42=$this->$spsq21;$ookr43=$this->hknle($this->$myby1e->rake31()->gubm44());$ookr43|=(int)$this->$myby1e->rake31()->iysl32()<<3;$ookr43|=self::biwcf($this->$myby1e->rake31()->sxsp45())<<4;$ookr43|=$this->$glia22<<7;$nfkj46=$andw2e<<2;$nfkj46|=$bsff2f<<3;$nfkj46|=$exbz30<<4;$nfkj46|=$rzzy33<<5;$nfkj46|=$lezh3a<<6;$nfkj46|=$pzut3d<<7;$zgii47=$this->$uwzc23;$zgii47|=$this->$dgew24<<7;$xlbh48=self::qdkic($this->$myby1e->yhdu34()->kozm38()->fyxo36());$xlbh48|=self::qdkic($this->$myby1e->yhdu34()->rdar39()->fyxo36())<<4;$xlbh48|=self::qdkic($this->$myby1e->yhdu34()->fwdx37()->fyxo36())<<8;$xlbh48|=self::qdkic($this->$myby1e->yhdu34()->ujfh35()->fyxo36())<<12;$xlbh48|=$this->$ydxe28<<16;$xlbh48|=$this->$xrue29<<23;$ihvf49=$this->$myby1e->yhdu34()->xmse4a();$ycem4b=$ihvf49==PHPExcel_Style_Borders::DIAGONAL_BOTH||$ihvf49==PHPExcel_Style_Borders::DIAGONAL_DOWN;$afkw4c=$ihvf49==PHPExcel_Style_Borders::DIAGONAL_BOTH||$ihvf49==PHPExcel_Style_Borders::DIAGONAL_UP;$xlbh48|=$ycem4b<<30;$xlbh48|=$afkw4c<<31;$ggae4d=$this->$iozh27;$ggae4d|=$this->$vpud26<<7;$ggae4d|=$this->$pnfv2a<<14;$ggae4d|=self::qdkic($this->$myby1e->yhdu34()->rios3e()->fyxo36())<<21;$ggae4d|=self::dtnud($this->$myby1e->usyf3b()->pnnt3c())<<26;$juqq4e=pack(base64_decode('dnY='),$wgdh3f,$djrb40);$utzz4f=$this->$myby1e->rake31()->lktx50();$utzz4f|=(int)$this->$myby1e->rake31()->bydz51()<<4;$yezt52=pack(base64_decode('dnZ2Qw=='),$dzkb41,$sxoi42,$myby1e,$ookr43);$yezt52.=pack(base64_decode('Q0ND'),self::sjoc10($this->$myby1e->rake31()->mqtc53()),$utzz4f,$nfkj46);$yezt52.=pack(base64_decode('VlZ2'),$xlbh48,$ggae4d,$zgii47);return($juqq4e.$yezt52);}/**
* Is this a style XF ?
*
* @param boolean $value
*/ public function mbxw2($axmc54){$this->$izij1f=$axmc54;}/**
* Sets the cell's bottom border color
*
* @access public
* @param int $colorIndex Color index
*/ public function kuri3($kfof55){$this->$vpud26=$kfof55;}/**
* Sets the cell's top border color
*
* @access public
* @param int $colorIndex Color index
*/ public function xljf4($kfof55){$this->$iozh27=$kfof55;}/**
* Sets the cell's left border color
*
* @access public
* @param int $colorIndex Color index
*/ public function mtrj5($kfof55){$this->$ydxe28=$kfof55;}/**
* Sets the cell's right border color
*
* @access public
* @param int $colorIndex Color index
*/ public function utfk6($kfof55){$this->$xrue29=$kfof55;}/**
* Sets the cell's diagonal border color
*
* @access public
* @param int $colorIndex Color index
*/ public function tylf7($kfof55){$this->$pnfv2a=$kfof55;}/**
* Sets the cell's foreground color
*
* @access public
* @param int $colorIndex Color index
*/ public function gvhi8($kfof55){$this->$uwzc23=$kfof55;}/**
* Sets the cell's background color
*
* @access public
* @param int $colorIndex Color index
*/ public function suop9($kfof55){$this->$dgew24=$kfof55;}/**
* 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 hyara($bzrs16){$this->$spsq21=$bzrs16;}/**
* Set the font index.
*
* @param int $value Font index, note that value 4 does not exist
*/ public function aaatb($axmc54){$this->$qlsa20=$axmc54;}/**
* Map of BIFF2-BIFF8 codes for border styles
* @static array of int
*
*/ private static $mluy56=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 qdkic($ubrg57){if(isset(self::$mluy56[$ubrg57])){return self::$mluy56[$ubrg57];}return 0x00;}/**
* Map of BIFF2-BIFF8 codes for fill types
* @static array of int
*
*/ private static $uuiy58=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,PHPExcel_Style_Fill::FILL_GRADIENT_PATH=>0x00,);/**
* Map fill type
*
* @param string $fillType
* @return int
*/ private static function dtnud($ivfa59){if(isset(self::$uuiy58[$ivfa59])){return self::$uuiy58[$ivfa59];}return 0x00;}/**
* Map of BIFF2-BIFF8 codes for horizontal alignment
* @static array of int
*
*/ private static $mvts5a=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 hknle($ioqn5b){if(isset(self::$mvts5a[$ioqn5b])){return self::$mvts5a[$ioqn5b];}return 0;}/**
* Map of BIFF2-BIFF8 codes for vertical alignment
* @static array of int
*
*/ private static $xlyg5c=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 biwcf($uvfz5d){if(isset(self::$xlyg5c[$uvfz5d])){return self::$xlyg5c[$uvfz5d];}return 2;}/**
* Map to BIFF8 codes for text rotation angle
*
* @param int $textRotation
* @return int
*/ private static function sjoc10($vjkj5e){if($vjkj5e>=0){return $vjkj5e;}elseif($vjkj5e==-165){return 255;}elseif($vjkj5e<0){return 90-$vjkj5e;}}/**
* Map locked
*
* @param string
* @return int
*/ private static function mzii11($jbxl5f){switch($jbxl5f){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 vemi12($pqlz60){switch($pqlz60){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;}}}?>
Function Calls
None |
Stats
MD5 | 911a59a1f0ce4e3ee8799374a11f89e1 |
Eval Count | 0 |
Decode Time | 122 ms |