Tag Archives: P4A

P4A 3.8.1 is out!

A bugfix release for the 3.8.x serie, if you’re using P4A be sure to update to the new release, here you’ve the changelog:

– jQuery was updated to 1.4.4
– a bug with multiple p4a_load_js calls (with the same url and within the
same loading cycle) was solved
– a bug with MSSQL and query limits was fixed (thanks to Diego Fattori)
– CKEditor was updated to 3.5
– P4A_DB_Source::getRowPosition() now returns 1 if the query throws an error
– P4A_DB_Source::addHaving(), setHaving() and getHaving() methods were added
– Zend Framework was updated to 1.11.2
– a bug with P4A::restart() method was fixed (thanks to Daniel Carrero)
– a bug with P4A_Data_Source::saveUploads() and custom file paths was solved
– a new technique to unload CKEditor was implemented

Download P4A 3.8.1

– UPDATE: due to a SourceForge downtime P4A 3.8.1 tarballs can’t be downloaded at the moment, I’ll update this post when everything will be up again, in the meanwhile you can check out the P4A SVN (tags/3.8.1).

– UPDATE 2: SF should have fixed the problem, P4A 3.8.1 packages are available right now.

P4A 3.8.0 is out!

It took me a couple of month to work on this release, we’ve a pretty long changelog you’ve to be sure to check out because we’ve a lot of important changes that may impact your upgrades.

One of the most important things is that now P4A supports MS SQL, it was quite easy but surely we need a stronger user base to test out every possible scenario. The next big thing is that MySQL connections are now UTF-8 safe, it could hurt your existing applications so please check out the notes in the changelog before upgrating.

– !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
– !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
– !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
– P4A_DB’s connection charset is now set to UTF 8
This could lead to possible data corruption, if you’re upgrading from a
previous release and you’re using MySQL or PostgreSQL (Oracle and SQLite
should not be involved in this change) you’ve to be sure to convert the DB
charset to UTF-8 before editing data in your P4A applications.


For MySQL we used this procedure to migrate our DBs:
mysqldump –default-character-set=latin1 DBNAME > dump.sql
open dump.sql and replace this line
/*!40101 SET NAMES latin1 */;
/*!40101 SET NAMES utf8 */;
mysql NEWDBNAME < dump.sql - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - Support For MS SQL was added, check out the README file - AJAX STACK REVERTED TO XML (instead of JSON) due to the bugs with jQuery::form - README file was updated - CKEditor was updated to 3.4.1 - a new strategy to avoid CKEDITOR loading problems was implemented - P4A_Data_Fields::getSchemaTableField now correctly handles calculated fields - a bug with P4A_I18N::format and time fields was fixed - P4A::__construct() now has a "cache" param, simply pass a Zend_Cache object to override all Zend_Cache configurations inside P4A - P4A::getCache() method was added - P4A_I18N now uses P4A::getCache() to pass an overridden Zend_Cache object to Zend_Locale_Data - a bug with "onreturnpress" and IE was fixed - a bug with multicple CKEditor instances (loaded via AJAX call) and IE was solved - CKEditor's forcePasteAsPlainText option was enabled again - jQuery::form was updated to 2.49 - jQuery was updated to 1.4.3 - file upload percentage and speed is shown while uploading (if PECL uploadprogress is available, APC not implemented beacuse it does not work with PHP CGI) - a bug with autocomplete and HTML tags (in the value) was fixed - a bug with autocomplete loading was fixed (thank to Lorenzo Valori) - a bug with CKEDITOR and AJAX was fixed

Download P4A 3.8.0

P4A 3.6.2 available now!

Another 3.6 serie release, let’s take a look at the changelog

– P4A_Field::setSource() now correctly handles null param
– CKEditor was updated to 3.4
– P4A_DB_Source::getRowPosition() now correctly handles multivalue fields
(bug #3057839)
– forcing IE to use his latest rendering engine
– some javascript fixes were applied to make IE ajax system work
– Zend Framework was updated to 1.10.8
– P4A_I18N now correcly handles 3 chars languages (like “fil”)
– translations were updated
– Filipino translation was added (thanks to Elin Eon)

Download P4A 3.6.2

P4A 3.6.1 available now!

The first bugfix spin after the 3.6 rollout, let’s take a look at the changelog

– P4A_DB_Source::load() now returns an object also when setQuery() is used
– P4A_DB_Source::load()’s autosequence creation now checks that the field
exists before calling the setSequence()
– a bug with P4A_Redirect_To_Url and P4A_Redirect_To_File was solved
(bug #3039449)
– better focus management for P4A_Grid
– a bug with AJAX javascript returning and html entities was solved

Download P4A 3.6.1

P4A 3.6.0 is finally out!

It’s time for a big P4A release before the summer vacation :)

The changelog is really long as usual but there are no explosive changes or new features, the main focus was porting from the old FCKEditor to the new CKEditor 3.3 (that now has come to a complete and stable feature set).

I also worked on updating all various softwares we embed (Zend Framework and jQuery plugins), fixing some bugs and reworking the AJAX stack.

After CreaLabs (the company I previously own) closure don’t worry, I’ll still continue to work and support P4A, I’ll keep using it for all my jobs and I also have some big plan for the future releases :)

So here you’ve the full changelog:

– Zend Framework was updated to 1.10.3
– FCKEditor was dropped and CKEditor 3.3 was added
– all AJAX stack was rewritten to use JSON instead of XML
– in full AJAX environment external javascripts are loaded only if
they were not loaded before
– in full AJAX environment widgets can now execute javascript code before
or after the HTML substitution
– focus internal management was rewritten
– P4A_Mask::setLeftSidebarWidth(), setRightSidebarWidth(),
getLeftSidebarWidth() and getRightSidebarWidth() methods were added
– jQuery::form was updated to 2.43
– jQuery was updated to 1.4.2
– jQuery UI was updated to 1.8.1
– jQuery::autocomplete plugin was replaced by jQuery UI autocomplete
– mask’s right sidebar is now shown correctly
– P4A_Data_Source::exportToCSV() deprecated method was removed
– P4A::isPopupOpened() deprecated method was removed
– P4A_Mask::unsetFocus() deprecated method was removed
– P4A_Mask::displayText() deprecated method was removed
– P4A_Table::setHeader() deprecated method was removed
– P4A_Box::setValue() and getValue() deprecated methods ware removed
– P4A_DB::getAll(), queryAll(), getRow(), queryRow(), getCol(), queryCol(),
getOne() and queryOne() deprecated methods ware removed
– P4A_Output_File now supports the “new window” param
– P4A_DB_Source::rowByPk() method now returns the retrieved row
– pt_BR translation was added to products_catalogue sample application
(thanks to Cassiano Faria)
– es_MX translation was added to products_catalogue sample application
(thanks to Edgar Joel)
– Yahoo CSS reset was updated to 3.1.0
– P4A_I18N::normalize() $num_of_decimals params now has a default value
– P4A_Table_Rows’ onformat event now passes a 5th parameter to the interceptor
method, this param is the complete row
– P4A_DB_Navigator::setRootLabel() and getRootLabel() methods were added
– P4A_DB_Navigator::allowMovementToRoot() method now supports a 2nd param
(root element label)
– P4A_DB_Source::getRowPosition() now adds “GROUP BY” clause
– default CSS font is now “Verdana,Arial,sans-serif” to match
jQuery::UI settings

Download P4A 3.6.0
Have fun!

P4A 3.4.3 is out!


– Zend Framework was updated to 1.9.5
– jQuery::form was updated to 2.36
– tooltip javascript was enhanced to make it location aware (bug #1908495)
– setTooltip() methods were moved to P4A_Widget
– tooltip support was added to P4A_Tab_Pane
– PEAR::Net_Useragent_Detect was updated to 2.5.1
– tooltips hiding methods now have a timeout to allow clicking links inside the
tooltip itself
– new_window parameter was added to P4A_Redirect_To_File() and P4A_Redirect_To_Url()
global functions
– P4A_DB_Source::_composePkString() was fixed handling multiple primary keys
(bug #2833159)
– onautocomplete event was added, it can be used to create a custom search for
fields instead of using P4A’s default one
– P4A_DB_Source::setTable() now supports a second parameter “alias”
– P4A_DB_Source::setTableAlias() and getTableAlias() methods were added
– P4A_DB_Source::addJoin*() methods now support alias on table (see code reference)
– P4A_Table elements/page user selector was added (disabled by default)
– P4A_Table::showElementsOnPageBar() and P4A_Table::hideElementsOnPageBar() were added

Download P4A 3.4.3