On the topic of channel ids

0
No votes yet

Given recent discoveries I have become interessted in how channels are stored in the database. If any of you have looked closely at the data each channel has during rendering you would see there are two types of channel_ids offered.

One is of the form n61(a user added channel), the other looks like u52|1n5(a default channel).

I could not find in the database any field that contained either of the above ids. However this information is found in the up_layout_struct. In the case of a channel with id of n61 the row can be found where user_id equals the numeric id of the logged in user, and struct_id is equal to 61.

The other channel id type (u52|1n5) is for a default channel. u52 represents user id 52, while 1n5 represents layout_id equal to 1 and struct_id equal to 5.

Now to find out where the minimise/maximise flags are stored as well as how luminis/uPortal knows which tab a channel belongs to.