/** * Constructor. * * Constructor is protected to enforce the use of factory methods. * * @param Zend_Ldap_Dn $dn * @param array $data * @param Zend_Ldap $ldap */ protected function __construct(Zend_Ldap_Dn $dn, array $data, Zend_Ldap $ldap) { parent::__construct($dn, $data, true); $this->_parseSchema($dn, $ldap); }
/** * Constructor. * * Constructor is protected to enforce the use of factory methods. * * @param Zend_Ldap_Dn $dn * @param array $data * @param boolean $fromDataSource * @param Zend_Ldap $ldap * @throws Zend_Ldap_Exception */ protected function __construct(Zend_Ldap_Dn $dn, array $data, $fromDataSource, Zend_Ldap $ldap = null) { parent::__construct($dn, $data, $fromDataSource); if ($ldap !== null) { $this->attachLdap($ldap); } else { $this->detachLdap(); } }
/** * Constructor. * * Constructor is protected to enforce the use of factory methods. * * @param Zend_Ldap_Dn $dn * @param array $data */ protected function __construct(Zend_Ldap_Dn $dn, array $data) { parent::__construct($dn, $data, true); }