DocInfo
in package
Document information.
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|int, mixed>
- Custom Properties.
- $description : string
- Description.
- $keywords : string
- Keywords.
- $lastModifiedBy : string
- LastModifiedBy.
- $manager : string
- Manager.
- $modified : int
- Modified.
- $subject : string
- Subject.
- $title : string
- Title.
Methods
- __construct() : mixed
- Create new instance.
- convertProperty() : mixed
- Convert document property based on type.
- convertPropertyType() : string
- Convert document property type.
- getCategory() : string
- Get Category.
- getCompany() : string
- Get Company.
- getCreated() : int
- Get Created.
- getCreator() : string
- Get Creator.
- getCustomProperties() : array<string|int, mixed>
- Get a List of Custom Property Names.
- getCustomPropertyType() : string|null
- Get a Custom Property Type.
- getCustomPropertyValue() : mixed
- Get a Custom Property Value.
- getDescription() : string
- Get Description.
- getKeywords() : string
- Get Keywords.
- getLastModifiedBy() : string
- Get Last Modified By.
- getManager() : string
- Get Manager.
- getModified() : int
- Get Modified.
- getSubject() : string
- Get Subject.
- getTitle() : string
- Get Title.
- isCustomPropertySet() : bool
- Check if a Custom Property is defined.
- setCategory() : self
- Set Category.
- setCompany() : self
- Set Company.
- setCreated() : self
- Set Created.
- setCreator() : self
- Set Creator.
- setCustomProperty() : self
- Set a Custom Property.
- setDescription() : self
- Set Description.
- setKeywords() : self
- Set Keywords.
- setLastModifiedBy() : self
- Set Last Modified By.
- setManager() : self
- Set Manager.
- setModified() : self
- Set Modified.
- setSubject() : self
- Set Subject.
- setTitle() : self
- Set Title.
- getConversion() : string
- Get conversion model depending on property type.
- setValue() : mixed
- Set default for null and empty value.
Constants
PROPERTY_TYPE_BOOLEAN
public
mixed
PROPERTY_TYPE_BOOLEAN
= 'b'
Tags
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|int, mixed>
$customProperties
= []
$description
Description.
private
string
$description
$keywords
Keywords.
private
string
$keywords
$lastModifiedBy
LastModifiedBy.
private
string
$lastModifiedBy
$manager
Manager.
private
string
$manager
$modified
Modified.
private
int
$modified
$subject
Subject.
private
string
$subject
$title
Title.
private
string
$title
Methods
__construct()
Create new instance.
public
__construct() : mixed
convertProperty()
Convert document property based on type.
public
static convertProperty(string $propertyValue, string $propertyType) : mixed
Parameters
- $propertyValue : string
- $propertyType : string
convertPropertyType()
Convert document property type.
public
static convertPropertyType(string $propertyType) : string
Parameters
- $propertyType : string
Return values
stringgetCategory()
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<string|int, mixed>
Return values
array<string|int, mixed> —of 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) : mixed
Parameters
- $propertyName : string
getDescription()
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
stringgetManager()
Get Manager.
public
getManager() : string
Return values
stringgetModified()
Get Modified.
public
getModified() : int
Return values
intgetSubject()
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 $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetCompany()
Set Company.
public
setCompany([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetCreated()
Set Created.
public
setCreated([int $value = null ]) : self
Parameters
- $value : int = null
Return values
selfsetCreator()
Set Creator.
public
setCreator([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetCustomProperty()
Set a Custom Property.
public
setCustomProperty(string $propertyName[, mixed $propertyValue = '' ][, string $propertyType = null ]) : self
Parameters
- $propertyName : string
- $propertyValue : mixed = ''
- $propertyType : string = null
-
'i': Integer 'f': Floating Point 's': String 'd': Date/Time 'b': Boolean
Return values
selfsetDescription()
Set Description.
public
setDescription([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetKeywords()
Set Keywords.
public
setKeywords([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetLastModifiedBy()
Set Last Modified By.
public
setLastModifiedBy([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetManager()
Set Manager.
public
setManager([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetModified()
Set Modified.
public
setModified([int $value = null ]) : self
Parameters
- $value : int = null
Return values
selfsetSubject()
Set Subject.
public
setSubject([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfsetTitle()
Set Title.
public
setTitle([string $value = '' ]) : self
Parameters
- $value : string = ''
Return values
selfgetConversion()
Get conversion model depending on property type.
private
static getConversion(string $propertyType) : string
Parameters
- $propertyType : string
Return values
stringsetValue()
Set default for null and empty value.
private
setValue(mixed $value, mixed $default) : mixed
Parameters
- $value : mixed
- $default : mixed