Exemple #1
0
 /**
  * Constructor.
  *
  * Constructor is protected to enforce the use of factory methods.
  *
  * @param  Dn      $dn
  * @param  array   $data
  * @param  bool $fromDataSource
  * @param  Ldap    $ldap
  * @throws Exception\LdapException
  */
 protected function __construct(Dn $dn, array $data, $fromDataSource, Ldap $ldap = null)
 {
     parent::__construct($dn, $data, $fromDataSource);
     if ($ldap !== null) {
         $this->attachLdap($ldap);
     } else {
         $this->detachLdap();
     }
 }
Exemple #2
0
 /**
  * Constructor.
  *
  * Constructor is protected to enforce the use of factory methods.
  *
  * @param  \Zend\LDAP\DN $dn
  * @param  array        $data
  */
 protected function __construct(LDAP\DN $dn, array $data)
 {
     parent::__construct($dn, $data, true);
 }
Exemple #3
0
 /**
  * Constructor.
  *
  * Constructor is protected to enforce the use of factory methods.
  *
  * @param  \Zend\Ldap\Dn $dn
  * @param  array        $data
  * @param  \Zend\Ldap\Ldap    $ldap
  */
 protected function __construct(Ldap\Dn $dn, array $data, Ldap\Ldap $ldap)
 {
     parent::__construct($dn, $data, true);
     $this->_parseSchema($dn, $ldap);
 }
Exemple #4
0
 /**
  * Constructor.
  *
  * Constructor is protected to enforce the use of factory methods.
  *
  * @param \Zend\Ldap\Dn $dn
  * @param array         $data
  */
 protected function __construct(Ldap\Dn $dn, array $data)
 {
     parent::__construct($dn, $data, true);
 }
Exemple #5
0
 /**
  * Constructor.
  *
  * Constructor is protected to enforce the use of factory methods.
  *
  * @param  \Zend\LDAP\DN $dn
  * @param  array        $data
  * @param  \Zend\LDAP\LDAP    $ldap
  */
 protected function __construct(LDAP\DN $dn, array $data, LDAP\LDAP $ldap)
 {
     parent::__construct($dn, $data, true);
     $this->_parseSchema($dn, $ldap);
 }
Exemple #6
0
 /**
  * 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    $ldap
  * @throws \Zend\LDAP\Exception
  */
 protected function __construct(LDAP\DN $dn, array $data, $fromDataSource, LDAP\LDAP $ldap = null)
 {
     parent::__construct($dn, $data, $fromDataSource);
     if (!is_null($ldap)) {
         $this->attachLDAP($ldap);
     } else {
         $this->detachLDAP();
     }
 }