Giter Club home page Giter Club logo

flotilla's Introduction

Concordancer

A tool for person identification, based on wikipedia's person data.

flotilla's People

Contributors

torstenroeder avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flotilla's Issues

Logging changes to the database

The issue

  • Zefiro administers the logging table.
  • Flotilla provides the forms and has no knowledge about any logging table.
  • All forms should log changes to the database.
  • Adding information about a logging table to each form is error-prone: It's easy to miss one or mis-spell.
  • Flotilla does not know anything about Zefiro, however Zefiro comes with Flotilla

Suggested solution

  1. The logging tables become official part of Zefiro.
  2. Hook:
    2.1 Flotilla provides a hook registration function, that allows other frameworks and applications to hook-in - and get notified when any write operation on the database is performed.
    2.2 Implementation Details:
    2.2.1 Flotilla gets a hook-registration function allowing Zefiro to hook-in and a hook-run function that will call the hooked-in routines on certain events (e.g. database writes).
    2.2.2 Hooking can be designed in a generic fashion. A static class might be sufficient.
    2.2.3 Zefiro has to provide a (callback)function called when a hook is run and logs the updates in the log table and registers the hook with Flotilla.

Formulartrenner / Strukturierung

Für die Strukturierung der Formulare wird ein "Trenner" benötigt. Momentan kann man diesen mit dem Feldtyp STATIC_TEXT erstellen. Allerdings wären HTML-Fieldsets auch ganz schön.

How to: Look up field

Coder having a form with DATABASE action 'revisions' and the following tables:

revisions
id_rev          PK
id_item -> item FK

item
id_item         PK
name

How would one display item.name in the form. item.name should only be displayed. No select containing all possible items.

Does not work with column names containing spaces

Reproducing: Create a form and do:

$form->addField ('profession',SELECT)             ->setLabel ('profession')
    ->addOptionsFromTable ( 'nmv__professions', 'ID professions', 'profession');

Note the space in the database ID column.

Result:

Fatal error: Uncaught Error: Call to a member function fetch_object() on boolean in /var/www/html/flotilla/classes/field_select.php:69 Stack trace: #0 /var/www/html/nmv_edit_victim.php(32): Field_Select->addOptionsFromTable('nmv__profession...', 'ID professions', 'profession') #1 {main} thrown in /var/www/html/flotilla/classes/field_select.php on line 69

Expected result:
HTML select element.

Bearbeitungssperre einrichten

Für Datenbank-Zeilen, die gerade bearbeitet werden, sollte ein LOCK gesetzt werden (mit Timeout?) oder ein Hinweis eingeblendet werden. Geht das???

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.