Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 537 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: Properties  - X-Ref

__construct()   X-Ref
Create a new Document Properties instance.


getCreator()   X-Ref
Get Creator.


setCreator(string $creator)   X-Ref
Set Creator.

return: $this

getLastModifiedBy()   X-Ref
Get Last Modified By.


setLastModifiedBy(string $modifiedBy)   X-Ref
Set Last Modified By.

return: $this

intOrFloatTimestamp($timestamp)   X-Ref

return: float|int
param: null|float|int|string $timestamp

getCreated()   X-Ref
Get Created.

return: float|int

setCreated($timestamp)   X-Ref
Set Created.

return: $this
param: null|float|int|string $timestamp

getModified()   X-Ref
Get Modified.

return: float|int

setModified($timestamp)   X-Ref
Set Modified.

return: $this
param: null|float|int|string $timestamp

getTitle()   X-Ref
Get Title.


setTitle(string $title)   X-Ref
Set Title.

return: $this

getDescription()   X-Ref
Get Description.


setDescription(string $description)   X-Ref
Set Description.

return: $this

getSubject()   X-Ref
Get Subject.


setSubject(string $subject)   X-Ref
Set Subject.

return: $this

getKeywords()   X-Ref
Get Keywords.


setKeywords(string $keywords)   X-Ref
Set Keywords.

return: $this

getCategory()   X-Ref
Get Category.


setCategory(string $category)   X-Ref
Set Category.

return: $this

getCompany()   X-Ref
Get Company.


setCompany(string $company)   X-Ref
Set Company.

return: $this

getManager()   X-Ref
Get Manager.


setManager(string $manager)   X-Ref
Set Manager.

return: $this

getCustomProperties()   X-Ref
Get a List of Custom Property Names.

return: string[]

isCustomPropertySet(string $propertyName)   X-Ref
Check if a Custom Property is defined.


getCustomPropertyValue(string $propertyName)   X-Ref
Get a Custom Property Value.

return: mixed

getCustomPropertyType(string $propertyName)   X-Ref
Get a Custom Property Type.

return: null|string

identifyPropertyType($propertyValue)   X-Ref

param: mixed $propertyValue

setCustomProperty(string $propertyName, $propertyValue = '', $propertyType = null)   X-Ref
Set a Custom Property.

return: $this
param: mixed $propertyValue
param: string $propertyType

convertProperty($propertyValue, string $propertyType)   X-Ref
Convert property to form desired by Excel.

return: mixed
param: mixed $propertyValue

convertProperty2($propertyValue, string $type)   X-Ref
Convert property to form desired by Excel.

return: mixed
param: mixed $propertyValue

convertPropertyType(string $propertyType)   X-Ref
No description