a | b | |
---|
| 0 | + | $m = $article->metadata; |
---|
| 0 | + | var_dump($m); |
---|
| 0 | + | var_dump($article->metadata->published); |
---|
| 0 | + | var_dump($article->metadata->published); |
---|
| 0 | + | $article->metadata->published->setTimestamp(time()); |
---|
| 0 | + | var_dump($article->metadata); |
---|
| 0 | + | die(); |
---|
| 0 | + | |
---|
| 0 | + | |
---|
| 0 | + | object(midgard_datetime)#65 (5) { |
---|
| 0 | + | ["object":"midgard_datetime":private]=> |
---|
| 0 | + | string(0) "" |
---|
| 0 | + | ["property":"midgard_datetime":private]=> |
---|
| 0 | + | string(0) "" |
---|
| 0 | + | ["date"]=> |
---|
| 0 | + | string(19) "0001-01-01 00:00:00" |
---|
| 0 | + | ["timezone_type"]=> |
---|
| 0 | + | int(1) |
---|
| 0 | + | ["timezone"]=> |
---|
| 0 | + | string(6) "+00:00" |
---|
| 0 | + | } |
---|
| 0 | + | object(midgard_datetime)#242 (5) { |
---|
| 0 | + | ["object":"midgard_datetime":private]=> |
---|
| 0 | + | string(0) "" |
---|
| 0 | + | ["property":"midgard_datetime":private]=> |
---|
| 0 | + | string(0) "" |
---|
| 0 | + | ["date"]=> |
---|
| 0 | + | string(19) "0001-01-01 00:00:00" |
---|
| 0 | + | ["timezone_type"]=> |
---|
| 0 | + | int(1) |
---|
| 0 | + | ["timezone"]=> |
---|
| 0 | + | string(6) "+00:00" |
---|
| 0 | + | } |
---|
| 0 | + | object(midgard_datetime)#216 (5) { |
---|
| 0 | + | ["object":"midgard_datetime":private]=> |
---|
| 0 | + | string(0) "" |
---|
| 0 | + | ["property":"midgard_datetime":private]=> |
---|
| 0 | + | string(0) "" |
---|
| 0 | + | ["date"]=> |
---|
| 0 | + | string(19) "0001-01-01 00:00:00" |
---|
| 0 | + | ["timezone_type"]=> |
---|
| 0 | + | int(1) |
---|
| 0 | + | ["timezone"]=> |
---|
| 0 | + | string(6) "+00:00" |
---|
| 0 | + | } |
---|
| 0 | + | |
---|
| 0 | + | Notice: Trying to get property of non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72 |
---|
| 0 | + | |
---|
| 0 | + | Fatal error: Call to a member function setTimestamp() on a non-object in /home/bergie/.midgard2/openkeidas/org_midgardproject_news/bin/update_news.php on line 72 |
---|
... | |
---|