Pluf Framework

Pluf Framework Git Change Log

Age Message
9 months 17 days Merge branch 'develop'
11 months 15 days Bump Markdown (Extra) to 1.0.1o (1.2.5) which - amongst other things -

fixes a problem with newer PHP 5.3 versions (issue 807).
1 year 5 days Merge branch 'develop' of projects.ceondo.com:pluf into develop
1 year 5 days When new tables are created (e.g. on initial installations or during upgrades),

Pluf used to create foreign key relations as part of the table definitions.
This however made problems when two tables, A and B, cross-referenced
themselves via a foreign key relation, because strict DBMS like PostgreSQL
or MySQL couldn't create such a relation without that both target tables
existed prior. This patch changes this behaviour by separating table creation
and foreign key setup into two phases, that have to be called after another,
namely Pluf_DB_Schema::createTables() and Pluf_DB_Schema::createConstraints().
For "reverse" migrations the same logic is used, at first
Pluf_DB_Schema::dropConstraints() has to be called, then Pluf_DB_Schema::dropTables()
can be executed.

While being at it, I fixed the following things:
- Association tables (*_assoc) where missing foreign key relations to the base
tables for PostgreSQL; this has been fixed
- PostgreSQL's (and MySQL's as well) limit for name identifiers are 64 characters;
the schema code now ensures that we do not hit this boundary for foreign keys
- MySQL uses InnoDB tables now by default and also sets up foreign key relations
- no changes to SQLite, beside that constraints are still completly ignored, due
to the unability of SQLite to change table definitions after a table has been
created

All these changes are likely to break backwards compatibility, so if you are already
using Pluf for example to manage your database, you might be surprised that some
of your (old) tables are relation-less, while others (new ones) come with relations.
In cases like this it might be wise to backup your database (migrate.php -b) and
restore it from the dump, because this re-creates the table structure including
all the foreign key relations. Note however that the data dump might have become
inconsistent, so the restore might not go through without that your DBMS yells
at you...
1 year 14 days Merge branch 'develop'
1 year 28 days Skip validation of dates and datetimes if a form field is not required and

the entered value is recognized as empty value; also streamline the datetime
validation a little more according to the date validation and don't accept
'60' in the seconds part silently.
1 year 28 days Check dates for validity, which is unfortunately not done by strptime

internally. Now inputs like 2012-04-31 are no longer accepted.
1 year 6 months Add basic introspection for MySQL as well.
1 year 6 months Object member variables like $t.class or $t.function where wrongly

parsed, as the original code enforced a T_STRING symbol after the
dot symbol ".", which denotes the object accessor here.
1 year 10 months Merge branch 'develop'
1 year 11 months If error_reporting is disabled, give the userland code a chance

to query the error still by returning false from the error handler.
(See <https://groups.google.com/forum/#!topic/indefero-users/qDuwPN2etgM>
for a discussion.)
1 year 11 months Add support for closures / lambdas as per-field validation methods

The syntax for closures is

$this->clean_foo = function($form) {
// process $form->cleaned_data['foo']
}

This eases the handling of dynamic form fields somewhat that all
share some basic validation code, but can occur multiple times.
1 year 11 months Fix issue 685
1 year 11 months Fix issue 642
2 years 1 month Fixed some serious spelling errors and completed the translation.
2 years 2 months Merge branch 'develop' of projects.ceondo.com:pluf into develop
2 years 2 months Use RFC2822 instead of RFC822 date, the latter produces invalid

dates with only two year digits and the RFC is deprecated anyways
(fixes indefero issue 438)
2 years 2 months Always force UTF-8 locales to be loaded for specific languages (closes

issue 457)
2 years 2 months Use only the language part of the locale to resolve the name of the

configured / available language (closes code review 8)
2 years 5 months Show cache files included in debug mode.
2 years 5 months Merge branch 'develop' of projects.ceondo.com:pluf into develop
2 years 5 months Merge branch 'paginator_max_pages' into develop
2 years 5 months Cosmectic changes to respect conventions
2 years 5 months Merge branch 'extends_pluf_user_and_group' into develop
2 years 5 months Merge branch 'develop' of projects.ceondo.com:pluf into develop

Branches

Tags