Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Database layout for 1.0

Featured Replies

Just watched the 1.0 screencast regarding creating the HelloWorld-module. I have a question to the structure of the database as observed in this screencast: I noticed that in the table frx_modules, 'installed' can be yes/no and activated can be on/off. This is not very consistent in my opinion, maybe it would be better to use 0 and 1 to point the activation/installation out? Thanks!

What's the difference? What does using "yes/no" instead of "0/1" have to do with consistency? We tried to use "speaking variables", means:

 

A module is installed: yes | no

The module's activation status: on | off

That'd make more sense if the column was called "activation_status", but even then it's confusing. The database is there to store data, not to give it any meaning. Perhaps a better way would be to provide setActivationStatus and/or setActivated methods in the model class.

These fields are not accessed directly - it's all done automatically by the module-object, devs|users won't even see this...EOD

// Edit: Splitted the topic, discussion has nothing todo with 0.9.9 release

I think also that this Parameters are options and not values, and options have to be 0/1 and not yes/no or on/off.

  • Author
A module is installed: yes | no

The module's activation status: on | off

 

Well its not that clear. The identifiers of the fields are "activated" and "installed".

 

A third person may also think "A module is installed: yes | no". So yes, the variables are speaking, but not very clearly.

 

Just by looking at the field identifier its not possible to say if yes/no or on/off is required currently.

"a third person" will not even see this.

 

This layout describes the backend! What is shown on the frontent is something completely different.

 

Sorry, i'm closing this (in my opinion unnecessary) discussion. If you don't like it - don't use it

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.