Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.6.0
-
Component/s: Zend_OpenId
-
Labels:None
Description
We have need to sub-class Zend_OpenId_Consumer, but when we do so we can't succinctly change the storage nor the dumbMode properties because they are declared private. making them protected lets us customize these without having to redefine our own constructor.
$_starage and $_dumbMode where made private by design. They can be easily set through constructor and shouldn't be changed after that. I don't see any problem to set it from overridden constructor.
class My_OpenId extends Zend_OpenId_Consumer {
function __construct() { parent::__construct(new DB_Storage(), true); }
}
It is not a big problem to make them protected, but I don't see any reason. Could you please explain why constructor doesn't work for you?