ColorMap
in package
PhpOffice\PhpPresentation\Style\ColorMap.
Table of Contents
Constants
- COLOR_ACCENT1 = 'accent1'
- COLOR_ACCENT2 = 'accent2'
- COLOR_ACCENT3 = 'accent3'
- COLOR_ACCENT4 = 'accent4'
- COLOR_ACCENT5 = 'accent5'
- COLOR_ACCENT6 = 'accent6'
- COLOR_BG1 = 'bg1'
- COLOR_BG2 = 'bg2'
- COLOR_FOLHLINK = 'folHlink'
- COLOR_HLINK = 'hlink'
- COLOR_TX1 = 'tx1'
- COLOR_TX2 = 'tx2'
Properties
- $mappingDefault : array<string, string>
- $mapping : array<string, string>
- Mapping - Stores the mapping betweenSlide and theme.
Methods
- __construct() : mixed
- ColorMap constructor.
- changeColor() : self
- Change the color of one of the elements in the map.
- getMapping() : array<string, string>
- Get the whole mapping as an array.
- setMapping() : self
- Store a new map. For use with the reader.
Constants
COLOR_ACCENT1
public
mixed
COLOR_ACCENT1
= 'accent1'
COLOR_ACCENT2
public
mixed
COLOR_ACCENT2
= 'accent2'
COLOR_ACCENT3
public
mixed
COLOR_ACCENT3
= 'accent3'
COLOR_ACCENT4
public
mixed
COLOR_ACCENT4
= 'accent4'
COLOR_ACCENT5
public
mixed
COLOR_ACCENT5
= 'accent5'
COLOR_ACCENT6
public
mixed
COLOR_ACCENT6
= 'accent6'
COLOR_BG1
public
mixed
COLOR_BG1
= 'bg1'
COLOR_BG2
public
mixed
COLOR_BG2
= 'bg2'
COLOR_FOLHLINK
public
mixed
COLOR_FOLHLINK
= 'folHlink'
COLOR_HLINK
public
mixed
COLOR_HLINK
= 'hlink'
COLOR_TX1
public
mixed
COLOR_TX1
= 'tx1'
COLOR_TX2
public
mixed
COLOR_TX2
= 'tx2'
Properties
$mappingDefault
public
static array<string, string>
$mappingDefault
= [self::COLOR_BG1 => 'lt1', self::COLOR_TX1 => 'dk1', self::COLOR_BG2 => 'lt2', self::COLOR_TX2 => 'dk2', self::COLOR_ACCENT1 => 'accent1', self::COLOR_ACCENT2 => 'accent2', self::COLOR_ACCENT3 => 'accent3', self::COLOR_ACCENT4 => 'accent4', self::COLOR_ACCENT5 => 'accent5', self::COLOR_ACCENT6 => 'accent6', self::COLOR_HLINK => 'hlink', self::COLOR_FOLHLINK => 'folHlink']
$mapping
Mapping - Stores the mapping betweenSlide and theme.
protected
array<string, string>
$mapping
= []
Methods
__construct()
ColorMap constructor.
public
__construct() : mixed
Create a new ColorMap with standard values.
changeColor()
Change the color of one of the elements in the map.
public
changeColor(string $item, string $newThemeColor) : self
Parameters
- $item : string
- $newThemeColor : string
Return values
selfgetMapping()
Get the whole mapping as an array.
public
getMapping() : array<string, string>
Return values
array<string, string>setMapping()
Store a new map. For use with the reader.
public
setMapping([array<string, string> $arrayMapping = [] ]) : self
Parameters
- $arrayMapping : array<string, string> = []