You are here

public function PHPExcel_Style::getHashCode in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style.php \PHPExcel_Style::getHashCode()

Get hash code

Return value

string Hash code

Overrides PHPExcel_IComparable::getHashCode

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style.php, line 628

Class

PHPExcel_Style
PHPExcel_Style

Code

public function getHashCode() {
  $hashConditionals = '';
  foreach ($this->_conditionalStyles as $conditional) {
    $hashConditionals .= $conditional
      ->getHashCode();
  }
  return md5($this->_fill
    ->getHashCode() . $this->_font
    ->getHashCode() . $this->_borders
    ->getHashCode() . $this->_alignment
    ->getHashCode() . $this->_numberFormat
    ->getHashCode() . $hashConditionals . $this->_protection
    ->getHashCode() . ($this->_quotePrefix ? 't' : 'f') . __CLASS__);
}