On Sat, Sep 26, 2009 at 12:31 PM, Julien Cochennec
<j.cochen...@laposte.net>wrote:

> I've built a web application that handle skills and evaluation results,
> I would like to plu it into a CMS, to avoid a lot of work.
> I was thinking about ezpublish, it has a great new editor.
>
> Do I have to completely rewrite my classes, or is it possible to plug
> into eZpublish?
> I have classes, a database, relations between classes, a special class
> called "pelement" that all my classes extends.
> Classes have been generated by ezc, so they all have the method
> getState() and setState(), except "pelement".
>
> Do you have any advice about what I should do?
> I hope it's not a complete rewrite.

Well, what you're describing here looks very much like a module/view
extension [1]. Integrating it in eZ Publish shouldn't be too complex. Each
view has to return a result, mainly HTML + Path information. This HTML can
perfectly be generated by what you currently use, maybe even with an output
buffer. The most important part will be to map your application to the
module/views API, and change the way results are handled. You'll probably
have to make a few changes to your DB Handling. The best option would
probably be to use the DB API eZ Publish already features.

Depending on your application's complexity, configuring the permissions can
require some thinking, but you probably won't have to change much.

Now if you want to provide a better integration , a few options are
available:
 - modify your app so that it uses view parameters instead of GET
parameters;
 - add fetch functions that will allow you to fetch data from your
application from any eZ Publish template;
 - change your settings system so that it uses eZINI. That way, you will
benefit from overrides
 - and probably many more ;)

Do you plan on releasing this to the eZ Publish community, or is it too
private ?

-- 
Bertrand

1.
http://ez.no/developer/articles/an_introduction_to_developing_ez_publish_extensions
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to