DocumentProperties
in package
\PhpOffice\PhpPresentation\DocumentProperties.
Table of Contents
Constants
- PROPERTY_TYPE_BOOLEAN = 'b'
- PROPERTY_TYPE_DATE = 'd'
- PROPERTY_TYPE_FLOAT = 'f'
- PROPERTY_TYPE_INTEGER = 'i'
- PROPERTY_TYPE_STRING = 's'
- PROPERTY_TYPE_UNKNOWN = 'u'
Properties
- $category : string
- Category.
- $company : string
- Company.
- $created : int
- Created.
- $creator : string
- Creator.
- $customProperties : array<string, array<string, mixed>>
- Custom Properties.
- $description : string
- Description.
- $keywords : string
- Keywords.
- $lastModifiedBy : string
- LastModifiedBy.
- $modified : int
- Modified.
- $revision : string
- Revision.
- $status : string
- Status.
- $subject : string
- Subject.
- $title : string
- Title.
Methods
- __construct() : mixed
- Create a new \PhpOffice\PhpPresentation\DocumentProperties.
- getCategory() : string
- Get Category.
- getCompany() : string
- Get Company.
- getCreated() : int
- Get Created.
- getCreator() : string
- Get Creator.
- getCustomProperties() : array<int, string>
- Get a List of Custom Property Names.
- getCustomPropertyType() : string|null
- Get a Custom Property Type.
- getCustomPropertyValue() : null|mixed
- Get a Custom Property Value.
- getDescription() : string
- Get Description.
- getKeywords() : string
- Get Keywords.
- getLastModifiedBy() : string
- Get Last Modified By.
- getModified() : int
- Get Modified.
- getRevision() : string
- Get Revision.
- getStatus() : string
- Get Status.
- getSubject() : string
- Get Subject.
- getTitle() : string
- Get Title.
- isCustomPropertySet() : bool
- Check if a Custom Property is defined.
- setCategory() : DocumentProperties
- Set Category.
- setCompany() : DocumentProperties
- Set Company.
- setCreated() : DocumentProperties
- Set Created.
- setCreator() : DocumentProperties
- Set Creator.
- setCustomProperty() : self
- Set a Custom Property.
- setDescription() : DocumentProperties
- Set Description.
- setKeywords() : DocumentProperties
- Set Keywords.
- setLastModifiedBy() : DocumentProperties
- Set Last Modified By.
- setModified() : DocumentProperties
- Set Modified.
- setRevision() : self
- Set Revision.
- setStatus() : self
- Set Status.
- setSubject() : DocumentProperties
- Set Subject.
- setTitle() : DocumentProperties
- Set Title.
Constants
PROPERTY_TYPE_BOOLEAN
public
mixed
PROPERTY_TYPE_BOOLEAN
= 'b'
PROPERTY_TYPE_DATE
public
mixed
PROPERTY_TYPE_DATE
= 'd'
PROPERTY_TYPE_FLOAT
public
mixed
PROPERTY_TYPE_FLOAT
= 'f'
PROPERTY_TYPE_INTEGER
public
mixed
PROPERTY_TYPE_INTEGER
= 'i'
PROPERTY_TYPE_STRING
public
mixed
PROPERTY_TYPE_STRING
= 's'
PROPERTY_TYPE_UNKNOWN
public
mixed
PROPERTY_TYPE_UNKNOWN
= 'u'
Properties
$category
Category.
private
string
$category
$company
Company.
private
string
$company
$created
Created.
private
int
$created
$creator
Creator.
private
string
$creator
$customProperties
Custom Properties.
private
array<string, array<string, mixed>>
$customProperties
= []
$description
Description.
private
string
$description
$keywords
Keywords.
private
string
$keywords
$lastModifiedBy
LastModifiedBy.
private
string
$lastModifiedBy
$modified
Modified.
private
int
$modified
$revision
Revision.
private
string
$revision
$status
Status.
private
string
$status
$subject
Subject.
private
string
$subject
$title
Title.
private
string
$title
Methods
__construct()
Create a new \PhpOffice\PhpPresentation\DocumentProperties.
public
__construct() : mixed
getCategory()
Get Category.
public
getCategory() : string
Return values
stringgetCompany()
Get Company.
public
getCompany() : string
Return values
stringgetCreated()
Get Created.
public
getCreated() : int
Return values
intgetCreator()
Get Creator.
public
getCreator() : string
Return values
stringgetCustomProperties()
Get a List of Custom Property Names.
public
getCustomProperties() : array<int, string>
Return values
array<int, string>getCustomPropertyType()
Get a Custom Property Type.
public
getCustomPropertyType(string $propertyName) : string|null
Parameters
- $propertyName : string
Return values
string|nullgetCustomPropertyValue()
Get a Custom Property Value.
public
getCustomPropertyValue(string $propertyName) : null|mixed
Parameters
- $propertyName : string
Return values
null|mixedgetDescription()
Get Description.
public
getDescription() : string
Return values
stringgetKeywords()
Get Keywords.
public
getKeywords() : string
Return values
stringgetLastModifiedBy()
Get Last Modified By.
public
getLastModifiedBy() : string
Return values
stringgetModified()
Get Modified.
public
getModified() : int
Return values
intgetRevision()
Get Revision.
public
getRevision() : string
Return values
stringgetStatus()
Get Status.
public
getStatus() : string
Return values
stringgetSubject()
Get Subject.
public
getSubject() : string
Return values
stringgetTitle()
Get Title.
public
getTitle() : string
Return values
stringisCustomPropertySet()
Check if a Custom Property is defined.
public
isCustomPropertySet(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
boolsetCategory()
Set Category.
public
setCategory([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''
Return values
DocumentPropertiessetCompany()
Set Company.
public
setCompany([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''
Return values
DocumentPropertiessetCreated()
Set Created.
public
setCreated([int $pValue = null ]) : DocumentProperties
Parameters
- $pValue : int = null
Return values
DocumentPropertiessetCreator()
Set Creator.
public
setCreator([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''
Return values
DocumentPropertiessetCustomProperty()
Set a Custom Property.
public
setCustomProperty(string $propertyName[, mixed $propertyValue = '' ][, null|string $propertyType = null ]) : self
Parameters
- $propertyName : string
- $propertyValue : mixed = ''
- $propertyType : null|string = null
-
'i' : Integer 'f' : Floating Point 's' : String 'd' : Date/Time 'b' : Boolean
Return values
selfsetDescription()
Set Description.
public
setDescription([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''
Return values
DocumentPropertiessetKeywords()
Set Keywords.
public
setKeywords([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''
Return values
DocumentPropertiessetLastModifiedBy()
Set Last Modified By.
public
setLastModifiedBy([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''
Return values
DocumentPropertiessetModified()
Set Modified.
public
setModified([int $pValue = null ]) : DocumentProperties
Parameters
- $pValue : int = null
Return values
DocumentPropertiessetRevision()
Set Revision.
public
setRevision([string $pValue = '' ]) : self
Parameters
- $pValue : string = ''
Return values
selfsetStatus()
Set Status.
public
setStatus([string $pValue = '' ]) : self
Parameters
- $pValue : string = ''
Return values
selfsetSubject()
Set Subject.
public
setSubject([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''
Return values
DocumentPropertiessetTitle()
Set Title.
public
setTitle([string $pValue = '' ]) : DocumentProperties
Parameters
- $pValue : string = ''