سؤال

I was going through the Hydrators in zend Framework 2 but I failed to understand it properly. What are Hydrators in ZF2contained in Zend\Stdlib\Hydrator class?

هل كانت مفيدة؟

المحلول

Please read through the official Documentation about Zend\Stdlib\Hydrator, this will give you enough insight about what these things are.

In short: they are classes that you use to have an inputFormat turn into an outputFormat going by some specification. For example you can turn an array into instanceof SomeClass or vice versa, using either public keys or public setter functions.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top