Hi.
I'm working with zf for a while, and I noticed some things:
1. Many methods and constructors, are poorly documented.
Example: Zend_Translate constructor
/**
* Generates the standard translation object
*
* @param string $adapter Adapter to use
* @param array $data Translation source data for the
adapter
* Depends on the Adapter
* @param string|Zend_Locale $locale OPTIONAL locale to use
* @param array $options OPTIONAL options for the
adapter
* @throws Zend_Translate_Exception
*/
public function __construct($adapter, $data, $locale = null, array
$options = array())
by looking at this, I don't know what are the possible options, which keys
can it have and what do they mean? Is there any simple way to find out?
(There are many wxamples like this Zend_Db::factory...)
2. Some methods don't have @throw declared, but they still throw exceptions
in some cases. How to know what to catch?
3. It's fine to have constants instead hardcoded strings sometimes:
$form->addElement('text', 'username');
$username->addValidator('alnum');
Regards,
Saša Stamenković