Modules: Howto insert data to database... Help needed.

Modules: Howto insert data to database... Help needed.

Sunday 27 July 2003 11:45:58 am - 7 replies

Author Message

Jerry Jalava

Monday 28 July 2003 1:10:40 am

PLS. Someone...

Regards,
Jerry

Selmah Maxim

Monday 28 July 2003 3:05:16 am

You need to use Ezdb and make query from db !

Jerry Jalava

Monday 28 July 2003 5:45:31 am

Hi Selmah,

That doesn't do the trick in this problem... I already can fetch the data from database, but I don't know what kind of parameters shoul I send to eZPersistentObject.php so it would _save_ the data to database... Like you see from above example I already know how to send data to PersistentObject, but don't know how can I send it the "save to database" command...

Seems like I have to spend lot more time with schooling eZ, 'cause I never had an answer to these kind of question from the people that really know the system aka ez staff...
No hard feelings, it's just wierd that these kind of simple things cannot be answered...

Regards,
Jerry

Selmah Maxim

Monday 28 July 2003 6:06:32 am

I see ..

This may help you,if look the /kernel/classes/ezpersistentobject.php , you file function 'storeObject' with ($obj, $fieldFilters) parameters !

Also you can take a look at another files to see how its work, coz I think this the function to store to the DB !

Jerry Jalava

Monday 28 July 2003 11:55:06 am

Finally got it working...
I just lost one day again because of this problem...

Soon gonna add it to the tutorial in the documentation, after I have finished this module first... I have no time at this moment...

Regards,
Jerry

Francisco Felix

Tuesday 29 July 2003 2:07:35 pm

I hope you can get time soon, I have not found good documentation about writing your own modules, any help on this matter would be really appreciated.

Jerry Jalava

Wednesday 30 July 2003 2:11:47 am

Hi,

If you want to practise building modules, you should check my first tutorial... http://www.ez.no/developer/ez_publish_3/documentation/development/extensions/module/module_tutorial_part_1

Hope it's any help...
I'm trying to write the second part on weekend...

Regards,
Jerry

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.