EN_US
EN_US = 'en-US'
Language A couple of predefined values are defined here, see the websites below for more values
getChildStyleValue(\PhpOffice\PhpWord\Style\AbstractStyle $substyleObject, string $substyleProperty) : mixed
Return style value of child style object, e.g. `left` from `Indentation` child style of `Paragraph`
\PhpOffice\PhpWord\Style\AbstractStyle | $substyleObject | |
string | $substyleProperty |
setStyleValue(string $key, string $value) : self
Set style value template method
Some child classes have their own specific overrides. Backward compability check for versions < 0.10.0 which use underscore prefix for their private properties. Check if the set method is exists. Throws an exception?
string | $key | |
string | $value |
__construct(string|null $latin = null, string|null $eastAsia = null, string|null $bidirectional = null)
Constructor
string|null | $latin | |
string|null | $eastAsia | |
string|null | $bidirectional |
None found |
setLatin(string $latin) : self
Set the Latin Language
string | $latin | The value for the latin language |
None found |
None found |
setLangId(integer $langId) : self
Set the Language ID
integer | $langId | The value for the language ID |
None found |
None found |
setEastAsia(string $eastAsia) : self
Set the East Asian Language
string | $eastAsia | The value for the east asian language |
None found |
None found |
setBidirectional(string $bidirectional) : self
Set the Complex Script Language
string | $bidirectional | The value for the complex script language |
None found |
getBidirectional() : string|null
Get the Complex Script Language
None found |
setNonEmptyVal(string $value, string $default) : string
Set default for null and empty value
string | $value | (was: mixed) |
string | $default | (was: mixed) |
(was: mixed)
None found |
setBoolVal(boolean $value, boolean $default) : boolean
Set bool value
boolean | $value | |
boolean | $default |
None found |
setNumericVal(mixed $value, integer|float|null $default = null) : integer|float|null
Set numeric value
mixed | $value | |
integer|float|null | $default |
None found |
setIntVal(integer|null $value, integer|null $default = null) : integer|null
Set integer value: Convert string that contains only numeric into integer
integer|null | $value | |
integer|null | $default |
None found |
setFloatVal(mixed $value, float|null $default = null) : float|null
Set float value: Convert string that contains only numeric into float
mixed | $value | |
float|null | $default |
None found |
setEnumVal(mixed $value = null, array $enum = array(), mixed $default = null) : mixed
Set enum value
mixed | $value | |
array | $enum | |
mixed | $default |
None found |
setObjectVal(mixed $value, string $styleName, $style) : mixed
Set object value
mixed | $value | |
string | $styleName | |
$style |
None found |
setPairedVal( $property, $pairProperty, boolean $value) : self
Set $property value and set $pairProperty = false when $value = true
$property | ||
$pairProperty | ||
boolean | $value |
None found |
validateLocale(string $locale) : string
Validates that the language passed is in the format xx-xx
string | $locale |
None found |