Questions about tables fields

Discuss everything related to integration of ApPHP Calendar with your site. Also any questions related to modification of this component should be posted to this forum.

Moderator: alexandrleonenko

cisterne
Newbie
Newbie
Posts: 2
Joined: Apr 4th, '11, 17:35

Questions about tables fields

Postby cisterne » Apr 4th, '11, 17:51

In the table cal_calendar there are 2 fields i was thinking about:

slot - what is that used for
unique_key - why is there a unique key??

administrator
Site Admin
Site Admin
Posts: 6010
Joined: Jan 7th, '09, 23:18
Contact:

Re: Questions about tables fields

Postby administrator » Apr 5th, '11, 10:39

Slot - is used to understand, where event that spread to some slots is started.
Unique_key - is used to inner logic and help to Calendar component to work quickly, when user split event into few parts.

cisterne
Newbie
Newbie
Posts: 2
Joined: Apr 4th, '11, 17:35

Re: Questions about tables fields

Postby cisterne » Apr 6th, '11, 19:23

Can you give an example on how they are used

administrator
Site Admin
Site Admin
Posts: 6010
Joined: Jan 7th, '09, 23:18
Contact:

Re: Questions about tables fields

Postby administrator » Apr 7th, '11, 10:16

Sure, open calendar.class.php , then Ctrl+F and search for ['slot'].
You will see all places, when this field is used.

BTW, in new version (planned on April-May) this field is used much more...


Return to “ApPHP Calendar {site integration/modifications}”