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) {
 
  448            } elseif (is_float($propertyValue)) {
 
  450            } elseif(is_int($propertyValue)) {
 
  452            } elseif (is_bool($propertyValue)) {
 
  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) {
 
An exception for terminatinating execution or to throw for unit testing.
setCreator($pValue='')
Set Creator.
__construct()
Create a new PHPExcel_DocumentProperties.
setKeywords($pValue='')
Set Keywords.
getCustomProperties()
Get a List of Custom Property Names.
setDescription($pValue='')
Set Description.
getDescription()
Get Description.
setCategory($pValue='')
Set Category.
setLastModifiedBy($pValue='')
Set Last Modified By.
const PROPERTY_TYPE_BOOLEAN
constants
setCustomProperty($propertyName, $propertyValue='', $propertyType=NULL)
Set a Custom Property.
getCustomPropertyType($propertyName)
Get a Custom Property Type.
getCategory()
Get Category.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
setSubject($pValue='')
Set Subject.
setTitle($pValue='')
Set Title.
getModified()
Get Modified.
isCustomPropertySet($propertyName)
Check if a Custom Property is defined.
const PROPERTY_TYPE_UNKNOWN
setManager($pValue='')
Set Manager.
const PROPERTY_TYPE_FLOAT
const PROPERTY_TYPE_INTEGER
const PROPERTY_TYPE_STRING
setModified($pValue=null)
Set Modified.
getKeywords()
Get Keywords.
getLastModifiedBy()
Get Last Modified By.
getCustomPropertyValue($propertyName)
Get a Custom Property Value.
setCreated($pValue=null)
Set Created.
setCompany($pValue='')
Set Company.
static convertPropertyType($propertyType)
static convertProperty($propertyValue, $propertyType)