>> I am planning on having all of the metrics data returned as objects
>> (with 'get' functions), kind of like an ORM for the XML. I was inspired
>> by the ORM interfaces like doctrine and prototype and how easy it is to
>> work with this data, including related data.
>>     
>
> Sounds like a good idea.
>
> Cheers,
> Chris
>   
The GAPI PHP class now has the object-mapper interface created for 
report data.

See the project 
http://code.google.com/p/gapi-google-analytics-php-interface/

You can now retrieve the GA data with simple 'get' methods:

foreach($results as $result)
{
  echo $result->getVisits();
  echo $result->getBrowser();
}

All chosen dimensions and metrics are available through 'get' methods, 
allowing quick and easy processing of the data.

If anyone is interested in joining the project to help create the 
account data object-mapper, or help create plugins for various 
frameworks like symfony, zend, cakePHP, drupal, silverstripe then give 
me an email off-list and I can add you to the Google Code project 
administration.

Cheers,
Stig
--
Stig Manning
http://www.sdm.co.nz

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to