139 $this->_created = time();
140 $this->_modified = time();
159 $this->_creator = $pValue;
179 $this->_lastModifiedBy = $pValue;
199 if (is_null($pValue)) {
201 } elseif (is_string($pValue)) {
202 if (is_numeric($pValue)) {
203 $pValue = intval($pValue);
205 $pValue = strtotime($pValue);
209 $this->_created = $pValue;
229 if (is_null($pValue)) {
231 } elseif (is_string($pValue)) {
232 if (is_numeric($pValue)) {
233 $pValue = intval($pValue);
235 $pValue = strtotime($pValue);
239 $this->_modified = $pValue;
259 $this->_title = $pValue;
279 $this->_description = $pValue;
299 $this->_subject = $pValue;
319 $this->_keywords = $pValue;
339 $this->_category = $pValue;
359 $this->_company = $pValue;
379 $this->_manager = $pValue;
389 return array_keys($this->_customProperties);
399 return isset($this->_customProperties[$propertyName]);
409 if (isset($this->_customProperties[$propertyName])) {
410 return $this->_customProperties[$propertyName][
'value'];
422 if (isset($this->_customProperties[$propertyName])) {
423 return $this->_customProperties[$propertyName][
'type'];
442 if ((is_null($propertyType)) || (!in_array($propertyType,array(self::PROPERTY_TYPE_INTEGER,
443 self::PROPERTY_TYPE_FLOAT,
444 self::PROPERTY_TYPE_STRING,
445 self::PROPERTY_TYPE_DATE,
446 self::PROPERTY_TYPE_BOOLEAN)))) {
447 if (is_null($propertyValue)) {
449 } elseif (is_float($propertyValue)) {
451 } elseif(is_int($propertyValue)) {
453 } elseif (is_bool($propertyValue)) {
460 $this->_customProperties[$propertyName] = array(
'value' => $propertyValue,
'type' => $propertyType);
468 $vars = get_object_vars($this);
469 foreach ($vars as $key => $value) {
470 if (is_object($value)) {
471 $this->$key = clone $value;
473 $this->$key = $value;
479 switch ($propertyType) {
491 return (
int) $propertyValue;
498 return abs((
int) $propertyValue);
503 return (
float) $propertyValue;
508 return $propertyValue;
512 return strtotime($propertyValue);
515 return ($propertyValue ==
'true') ? True : False;
530 return $propertyValue;
533 return $propertyValue;
537 switch ($propertyType) {