You are here

class PHPExcel_Reader_Excel2007_Theme in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Theme.php \PHPExcel_Reader_Excel2007_Theme

PHPExcel_Reader_Excel2007_Theme

@category PHPExcel @package PHPExcel_Reader_Excel2007 @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

Hierarchy

Expanded class hierarchy of PHPExcel_Reader_Excel2007_Theme

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Theme.php, line 36

View source
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;
      }
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PHPExcel_Reader_Excel2007_Theme::$_colourMap private property * Colour Map * *
PHPExcel_Reader_Excel2007_Theme::$_colourMapValues private property * Colour Map indexed by position * *
PHPExcel_Reader_Excel2007_Theme::$_colourSchemeName private property * Colour Scheme Name * *
PHPExcel_Reader_Excel2007_Theme::$_themeName private property * Theme Name * *
PHPExcel_Reader_Excel2007_Theme::getColourByIndex public function Get colour Map Value by Position
PHPExcel_Reader_Excel2007_Theme::getColourSchemeName public function Get colour Scheme Name
PHPExcel_Reader_Excel2007_Theme::getThemeName public function * Get Theme Name * *
PHPExcel_Reader_Excel2007_Theme::__clone public function * Implement PHP __clone to create a deep clone, not just a shallow copy.
PHPExcel_Reader_Excel2007_Theme::__construct public function Create a new PHPExcel_Theme *