Friday
2
January
2009

Reference guide

Hy interested ones,

the last two weeks I was working on a new dependency guide.

It is available for you since yesterday. You can download it from trunk.
Those who can not wait have to build the manual themself.
All others will get the guide with the next release when the manual is build by Zend and made public on the projects homepage.

The new dependency guide supports now also Sub-dependencies which means that you can use it to seperate Components from the rest of the Framework even when this is no good practice and you should not do it.

There are 4 depencendies:
Hard:
Hard Components are required. Without them the class will not work

Soft:
Soft Components can be required when using special methods. It could be that the class can work without them.

Fix:
Fixed Subcomponents are required by Hard Components. Without them the Component will not work.

Sub:
Subbed Subcomponents can be required by Soft or Fixed Components when using special methods. Also this Components are only needed optional.

This dependency guide is based of ZF 1.7.2 and can be found in the reference section. When I find time in the next few days, I will also add the new manual here as download.
Note that it refers only to components and not to single classes. A component consists of a base class and a directory.

I hope you find it usefull and wish you a good new year.

Greetings
Thomas Weidner
I18N Team Leader, Zend Framework

Zend Framework Advisory Board Member
Zend Certified Engineer for Zend Framework

Back to top
Sunday
5
October
2008

Migrating your Script using Zend_File_Transfer from 1.6.1 to a newer release

Hy interested ones,

most of you know this already. But it seems that users tend not to read migration notes so I will say it once more here.

When you are using Zend_File_Transfer in conjunction with validations you will have to note that the API has changed.

I added a $breakChainOnFailure parameter which allows to break the validation chain for further validators if a validation error occurs.

To give you an example:

// Example for 1.6.1 or earlier
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidator('FilesSize', array('1B', '100kB'));
// Same example for 1.6.2 and newer
// Note the added boolean false
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidator('FilesSize', false, array('1B', '100kB'));

So as conclusio for you:
If you have to migrate old scripts simply add a boolean false after the validator name.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework

Back to top