WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Zend Gdata Interfaces

The Zend Gdata interfaces contain everything you need to access Google's Data APIs from your PHP 5 WordPress installation.

Usage

Zend Gdata Interfaces is automatically made available in the PHP include path.

You may check Zend Gdata Interfaces availability using the WP_ZEND_GDATA_INTERFACES constant. Here is an example of how to do that in your plugin code:

function check_for_zend_gdata_interfaces() {
  // if the Zend Gdata Interfaces plugin is successfully
  // loaded this constant is set to true
  if (defined('WP_ZEND_GDATA_INTERFACES') && 
     constant('WP_ZEND_GDATA_INTERFACES')) {
    return true;
  }
  // you can also check if the Zend Gdata Interfaces are 
  // available on the system
  $paths = explode(PATH_SEPARATOR, get_include_path());
  foreach ($paths as $path) {
    if (file_exists("$path/Zend/Loader.php")) {
      define('WP_ZEND_GDATA_INTERFACES', true);
      return true;
    }
  }
  // nothing found, you may advice the user to install 
  // the Zend Gdata Interfaces plugin
  define('WP_ZEND_GDATA_INTERFACES', false);
}

add_action('init', 'check_for_zend_gdata_interfaces');

Requires: 2.0 or higher
Compatible up to: 2.9.2
Last Updated: 2010-6-28
Downloads: 6,133

Ratings

3 stars
3.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1