138 $this->_created =
time();
139 $this->_modified =
time();
158 $this->_creator = $pValue;
178 $this->_lastModifiedBy = $pValue;
198 if ($pValue === NULL) {
200 } elseif (is_string($pValue)) {
201 if (is_numeric($pValue)) {
202 $pValue = intval($pValue);
204 $pValue = strtotime($pValue);
208 $this->_created = $pValue;
228 if ($pValue === NULL) {
230 } elseif (is_string($pValue)) {
231 if (is_numeric($pValue)) {
232 $pValue = intval($pValue);
234 $pValue = strtotime($pValue);
238 $this->_modified = $pValue;
258 $this->_title = $pValue;
278 $this->_description = $pValue;
298 $this->_subject = $pValue;
318 $this->_keywords = $pValue;
338 $this->_category = $pValue;
358 $this->_company = $pValue;
378 $this->_manager = $pValue;
388 return array_keys($this->_customProperties);
398 return isset($this->_customProperties[$propertyName]);
408 if (isset($this->_customProperties[$propertyName])) {
409 return $this->_customProperties[$propertyName][
'value'];
421 if (isset($this->_customProperties[$propertyName])) {
422 return $this->_customProperties[$propertyName][
'type'];
441 if (($propertyType === NULL) || (!in_array($propertyType,
array(self::PROPERTY_TYPE_INTEGER,
442 self::PROPERTY_TYPE_FLOAT,
443 self::PROPERTY_TYPE_STRING,
444 self::PROPERTY_TYPE_DATE,
445 self::PROPERTY_TYPE_BOOLEAN)))) {
446 if ($propertyValue === NULL) {
447 $propertyType = self::PROPERTY_TYPE_STRING;
448 } elseif (is_float($propertyValue)) {
449 $propertyType = self::PROPERTY_TYPE_FLOAT;
450 } elseif(is_int($propertyValue)) {
451 $propertyType = self::PROPERTY_TYPE_INTEGER;
452 } elseif (is_bool($propertyValue)) {
453 $propertyType = self::PROPERTY_TYPE_BOOLEAN;
455 $propertyType = self::PROPERTY_TYPE_STRING;
459 $this->_customProperties[$propertyName] =
array(
'value' => $propertyValue,
'type' => $propertyType);
467 $vars = get_object_vars($this);
468 foreach ($vars as
$key => $value) {
469 if (is_object($value)) {
470 $this->
$key = clone $value;
472 $this->
$key = $value;
478 switch ($propertyType) {
490 return (
int) $propertyValue;
497 return abs((
int) $propertyValue);
502 return (
float) $propertyValue;
507 return $propertyValue;
511 return strtotime($propertyValue);
514 return ($propertyValue ==
'true') ? True : False;
529 return $propertyValue;
532 return $propertyValue;
536 switch ($propertyType) {
547 return self::PROPERTY_TYPE_INTEGER;
552 return self::PROPERTY_TYPE_FLOAT;
559 return self::PROPERTY_TYPE_STRING;
563 return self::PROPERTY_TYPE_DATE;
566 return self::PROPERTY_TYPE_BOOLEAN;
581 return self::PROPERTY_TYPE_UNKNOWN;
584 return self::PROPERTY_TYPE_UNKNOWN;
setDescription($pValue='')
Set Description.
setCreator($pValue='')
Set Creator.
setTitle($pValue='')
Set Title.
setSubject($pValue='')
Set Subject.
setCustomProperty($propertyName, $propertyValue='', $propertyType=NULL)
Set a Custom Property.
setKeywords($pValue='')
Set Keywords.
setCreated($pValue=null)
Set Created.
getKeywords()
Get Keywords.
isCustomPropertySet($propertyName)
Check if a Custom Property is defined.
setLastModifiedBy($pValue='')
Set Last Modified By.
getCategory()
Get Category.
getCustomPropertyValue($propertyName)
Get a Custom Property Value.
getCustomPropertyType($propertyName)
Get a Custom Property Type.
getModified()
Get Modified.
const PROPERTY_TYPE_STRING
static convertProperty($propertyValue, $propertyType)
const PROPERTY_TYPE_FLOAT
setManager($pValue='')
Set Manager.
const PROPERTY_TYPE_BOOLEAN
constants
Create styles array
The data for the language used.
const PROPERTY_TYPE_INTEGER
const PROPERTY_TYPE_UNKNOWN
getDescription()
Get Description.
setCategory($pValue='')
Set Category.
setCompany($pValue='')
Set Company.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
getCustomProperties()
Get a List of Custom Property Names.
getLastModifiedBy()
Get Last Modified By.
setModified($pValue=null)
Set Modified.
__construct()
Create a new PHPExcel_DocumentProperties.
static convertPropertyType($propertyType)
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.