Sample Applications

Rob Loach - December 5, 2007 - 00:01
Project:Zend Framework
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

Create a sample application that uses the Zend Framework and Drupal.

#1

mustafau - December 19, 2007 - 11:52
Version:6.x-1.x-dev» 5.x-1.x-dev

I am writing a parser add on module for http://drupal.org/project/feedapi module using Zend Framework. Although my module tries to handle installation of Zend Framework I would love to change it so that Zend Framework functionality comes from your module.

Since Zend Framework requires its library path to be available in the PHP include_path I have written two functions that alter include_path calling set_include_path() and restore_include_path().

I have put a folder named "library" under my modules directory. That folder contains the Zend Framework's "Zend" folder.

My modules functions are like followings:

<?php

function _parser_zend_feed_set_include_path() {
 
$include_path = get_include_path();
 
$include_path .= PATH_SEPARATOR . drupal_get_path('module', 'parser_zend_feed') .'/library';
 
set_include_path($include_path);
}

function
_parser_zend_feed_restore_include_path() {
 
restore_include_path();
}
?>

My modules directory structure is like following:

parser_zend_feed
|---->library
       |--->Zend
             |-->Version.php

#2

Rob Loach - December 19, 2007 - 14:46

That's a great idea! I'll stick it in today sometime.

#3

Rob Loach - December 28, 2007 - 07:29
Version:5.x-1.x-dev» 6.x-1.x-dev

Do you have any idea for a module to use the Zend Framework?

#4

Rob Loach - January 2, 2008 - 07:03
Title:Sample Application» Sample Applications

There should be at least two modules provided with the Zend Framework module that demonstrate use of its feature set.

Ideas:

  1. Create PDFs from nodes using Zend_Pdf to create PDF documents from nodes
  2. Use Zend_Mail to create an alternative method of sending mail via drupal_mail - #205511
  3. Use Zend_OpenId to turn Drupal into an OpenID identity provider (might be an entirely different module)
  4. Make use of Zend_Rest to create a Services module REST server

#5

Rob Loach - January 5, 2008 - 06:25

REST Server created.

Another idea:
Use Zend_Gdata to display a user's latest saved Google Documents in their profile. There's a lot we could do with Gdata....

#6

mustafau - March 11, 2008 - 02:18
 
 

Drupal is a registered trademark of Dries Buytaert.