From: Daryn H. <dar...@gm...> - 2009-11-30 13:56:28
|
Hi all, I have found a solution. I have used 'describeResource' as I don't think there is RCP support for the other method. Thanks! 2009/11/30 Daryn Holmes <dar...@gm...> > > Hi, > > I am new to all of this and I cannot seem to solve a problem. > I feel a bit stupid as you have basically given me the solution. > Still, I have having some problems fetching the required data through PHP. > > I am trying to get the Created and Modified time stamps. > > This is the code I am using: > > $downloadmessage = new XML_RPC_Message('last-modified', > array( new XML_RPC_Value('/db/somecollection/anothercollection', > 'string'), > new XML_RPC_Value('document.xml', 'string'))); > $downloadresponse = $xmlrpcclient->send($downloadmessage); > $downloadval = $downloadresponse->value(); > $lastmodified = $downloadval->getval(); > > $lastmodified seems to be an array with two empty elements. > I do not think it is the connection, as other queries are working. > > My apologies for my ignorance and for bothering you all with this basic > question. > > Can anyone help me? > > Thanks... > > 2009/11/27 Dan McCreary <dan...@gm...> > >> Hello Daryn, >> >> >> I assume you are looking for the XQuery functions that access when a >> resource was created and when a resource was last modified. >> >> Here are the two functions you seek: >> >> *xmldb:last-modified($collection, $resource) >> >> http://demo.exist-db.org/exist/functions/xmldb/last-modified >> >> xmldb:created($collection, $resource)* >> >> *http://demo.exist-db.org/exist/functions/xmldb/created* >> >> >> Here is an example of how they are used to sync two collections: >> >> http://en.wikibooks.org/wiki/XQuery/Synchronizing_Remote_Collections >> >> - Dan >> >> On Thu, Nov 26, 2009 at 12:11 PM, Daryn Holmes <dar...@gm...>wrote: >> >>> Hello, >>> >>> Is there a way to access the created and modified data that is eXists >>> maintains? >>> >>> Thanks... >>> >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> trial. Simplify your report design, integration and deployment - and >>> focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Exist-development mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-development >>> >>> >> >> >> -- >> Dan McCreary >> Semantic Solutions Architect >> syntactica.com >> 952-460-1674 >> VOIP: 111@69.199.167.229 >> > > |