/** * Get hash code * * @return string Hash code */ public function getHashCode() { $hashElements = ''; foreach ($this->_richTextParagraphs as $element) { $hashElements .= $element->getHashCode(); } return md5($hashElements . $this->_fill->getHashCode() . $this->_borders->getHashCode() . $this->_width . __CLASS__); }
/** * Get hash code * * @return string Hash code */ public function getHashCode() { $hashElements = ''; foreach ($this->_cells as $cell) { $hashElements .= $cell->getHashCode(); } return md5($hashElements . $this->_fill->getHashCode() . $this->_height . __CLASS__); }
/** * Write Pattern Fill * * @param PHPPowerPoint_Shared_XMLWriter $objWriter XML Writer * @param PHPPowerPoint_Style_Fill $pFill Fill style * @throws Exception */ protected function _writePatternFill(PHPPowerPoint_Shared_XMLWriter $objWriter = null, PHPPowerPoint_Style_Fill $pFill = null) { // a:pattFill $objWriter->startElement('a:pattFill'); // fgClr $objWriter->startElement('a:fgClr'); // srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', $pFill->getStartColor()->getRGB()); $objWriter->endElement(); $objWriter->endElement(); // bgClr $objWriter->startElement('a:bgClr'); // srgbClr $objWriter->startElement('a:srgbClr'); $objWriter->writeAttribute('val', $pFill->getEndColor()->getRGB()); $objWriter->endElement(); $objWriter->endElement(); $objWriter->endElement(); }
/** * Get hash code * * @return string Hash code */ public function getHashCode() { return md5($this->_position . $this->_offsetX . $this->_offsetY . $this->_width . $this->_height . $this->_font->getHashCode() . $this->_border->getHashCode() . $this->_fill->getHashCode() . $this->_alignment->getHashCode() . ($this->_visible ? 't' : 'f') . __CLASS__); }
/** * Get hash code * * @return string Hash code */ public function getHashCode() { return md5((is_null($this->_fill) ? 'null' : $this->_fill->getHashCode()) . (is_null($this->_font) ? 'null' : $this->_font->getHashCode()) . var_export($this->_values, true) . var_export($this, true) . __CLASS__); }