Entity tables or Map tables for "book" module

Umka

Joined: 2008-06-16
Posts: 12
Posted: Mon, 2008-10-06 14:42

Greetings!

I'm beginning to create a custom module with the "book" functionality. It would be a list of articles grouped in "books" and then in "chapters". Each article is going to be text formatted with bbcode and "book" and "chapter" would only be there properties, so I could sort them the way book looks like (If I put all articles in one book and one chapter - it could be a simple dictionary). While all articles are not associated with particular image or album in galley (at least most of them) I decided to make a module because I want to have one seamless site and use one login/pass for all operations. Actually this (book) is the only functionality I need besides image galley.

So I managed to create tutorial module, made some views and need to move on, but stuck with table creation.

Articles looks pretty much as an entity, so Entity table might be a right choice, but I'm confused with few things:
When declaring an entity I need to define "parent-class-name". What should I do if my entity is not related to any existing entity? Should I define parent class as some default root class? How this choice influence the rest? What should I write in GalleryCoreApi::requireOnce('modules/core/classes/XXXXXXXX.class')

What would be the difference if I use Map tables? Are they just self sufficient tables with no relation to anything?

What is <schema-major> and <schema-minor>?

Thanks in advance.

Login or register to post comments
Umka

Joined: 2008-06-16
Posts: 12
Posted: Mon, 2008-10-06 14:53

I'm sorry, there must be a glitch somewhere, I can't see my post in forum, but in "my topics" I'v got 5 of them. Could moderators remove other copies please? Hope only I can't see them.

Login or register to post comments
alecmyers

Joined: 2006-08-01
Posts: 1837
Posted: Mon, 2008-10-06 16:06

I've just deleted them... how did you managed to post 5 times? It seems to be happening a lot recently, so if you can explain what happened I can maybe investigate and prevent it.

Login or register to post comments
Umka

Joined: 2008-06-16
Posts: 12
Posted: Wed, 2008-10-08 12:30

When I done writing and press "Post comment" button - it opend a blank page. When I went to the forum page - there ware no my topic. I thought there was timeout of some kind, or browser glitch. Done it several times in several ways, even in different browsers. Then I went to "My topics" and find out that all 5 posts ware successful, but I could not see them in forum. I went to this topic through "My topics" page and wrote comments.

P.S. Adding comments works fine BTW.

P.P.S. Any help on the subject?

Login or register to post comments
serbanc

Joined: 2006-05-19
Posts: 291
Posted: Wed, 2008-10-08 14:17

I can help.

serbanc - www.e-poze.ro

Login or register to post comments