PHP Class PhpOffice\PhpPresentation\Style\ColorMap

Show file Open project: phpoffice/phppowerpoint

Public Properties

Property Type Description
$mappingDefault

Protected Properties

Property Type Description
$mapping array Mapping - Stores the mapping betweenSlide and theme

Public Methods

Method Description
__construct ( ) ColorMap constructor.
changeColor ( string $item, string $newThemeColor ) Change the color of one of the elements in the map
getMapping ( ) : array Get the whole mapping as an array
setMapping ( array $arrayMapping = [] ) Store a new map. For use with the reader

Method Details

__construct() public method

Create a new ColorMap with standard values
public __construct ( )

changeColor() public method

Change the color of one of the elements in the map
public changeColor ( string $item, string $newThemeColor )
$item string
$newThemeColor string

getMapping() public method

Get the whole mapping as an array
public getMapping ( ) : array
return array

setMapping() public method

Store a new map. For use with the reader
public setMapping ( array $arrayMapping = [] )
$arrayMapping array

Property Details

$mapping protected property

Mapping - Stores the mapping betweenSlide and theme
protected array $mapping
return array

$mappingDefault public static property

public static $mappingDefault