示例#1
0
文件: Xls.php 项目: rtsantos/mais
 /**
  * Checa se o estilo da celula já existe, se não chama a função para criar os estilos novos.
  * Retorna o nome do novo estilo ou do estilo já existente
  * 
  * @param ZendT_Report_Cell $cell
  * @return string 
  */
 private function _checkStyle(ZendT_Report_Cell $cell)
 {
     $styleName = false;
     $cellStyleName = $cell->getStyleName();
     if (is_array($this->_styles) && in_array($cellStyleName, $this->_styles)) {
         $styleName = $cellStyleName;
     } else {
         $styleName = $cellStyleName;
         $this->_styles[count($this->_styles)] = $cellStyleName;
         $this->_createStyle($cell, $styleName);
     }
     return $styleName;
 }