Forums / Developer / How to set an objects' creation date in PHP via the API?
Rainer Krauss
Wednesday 24 June 2009 2:53:00 am
Dear all,
I intend to change the date an object was created. How would I do that, please?
Background info: I'm importing content from another site. Thanks to examples, I'm already able to change attributes in the data_map.
By the way, is there any info available on how to be using the information located at http://pubsvn.ez.no/doxygen/trunk/html/index.html ? Being fairly new to developing extensions using the API, I find that information quite confusing and overwhelming. Any help or step-by-step examples would greatly help me in becoming able to find my way around the API.
Best wishes,Rainer
Carlos Revillo
Wednesday 24 June 2009 3:17:00 pm
Hi. Have you tried
$object->setAttribute('published', [timestamp here]);
hope it helps.
Thursday 25 June 2009 1:28:17 am
Yes, I did, Carlos, and it helped! Thank you!