當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Ldap_Node_Schema類代碼示例

本文整理匯總了PHP中Zend_Ldap_Node_Schema的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Ldap_Node_Schema類的具體用法?PHP Zend_Ldap_Node_Schema怎麽用?PHP Zend_Ldap_Node_Schema使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Zend_Ldap_Node_Schema類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _parseSchema

 /**
  * Parses the schema
  *
  * @param  Zend_Ldap_Dn $dn
  * @param  Zend_Ldap    $ldap
  * @return Zend_Ldap_Node_Schema Provides a fluid interface
  */
 protected function _parseSchema(Zend_Ldap_Dn $dn, Zend_Ldap $ldap)
 {
     parent::_parseSchema($dn, $ldap);
     $this->_loadAttributeTypes();
     $this->_loadLdapSyntaxes();
     $this->_loadMatchingRules();
     $this->_loadMatchingRuleUse();
     $this->_loadObjectClasses();
     return $this;
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:17,代碼來源:OpenLdap.php

示例2: _parseSchema

 /**
  * Parses the schema
  *
  * @param  Zend_Ldap_Dn $dn
  * @param  Zend_Ldap    $ldap
  * @return Zend_Ldap_Node_Schema Provides a fluent interface
  */
 protected function _parseSchema(Zend_Ldap_Dn $dn, Zend_Ldap $ldap)
 {
     parent::_parseSchema($dn, $ldap);
     foreach ($ldap->search('(objectClass=classSchema)', $dn, Zend_Ldap::SEARCH_SCOPE_ONE) as $node) {
         $val = new Zend_Ldap_Node_Schema_ObjectClass_ActiveDirectory($node);
         $this->_objectClasses[$val->getName()] = $val;
     }
     foreach ($ldap->search('(objectClass=attributeSchema)', $dn, Zend_Ldap::SEARCH_SCOPE_ONE) as $node) {
         $val = new Zend_Ldap_Node_Schema_AttributeType_ActiveDirectory($node);
         $this->_attributeTypes[$val->getName()] = $val;
     }
     return $this;
 }
開發者ID:tenstone,項目名稱:wecenter,代碼行數:20,代碼來源:ActiveDirectory.php

示例3: getSchema

 /**
  * Returns the schema
  *
  * @return Zend_Ldap_Node_Schema
  * @throws Zend_Ldap_Exception
  */
 public function getSchema()
 {
     if ($this->_schema === null) {
         /**
          * @see Zend_Ldap_Node_Schema
          */
         #require_once 'Zend/Ldap/Node/Schema.php';
         $this->_schema = Zend_Ldap_Node_Schema::create($this);
     }
     return $this->_schema;
 }
開發者ID:jpbender,項目名稱:mage_virtual,代碼行數:17,代碼來源:Ldap.php

示例4: getSchema

 /**
  * Returns the schema
  *
  * @return Zend_Ldap_Node_Schema
  * @throws Zend_Ldap_Exception
  */
 public function getSchema()
 {
     if ($this->_schema === null) {
         /**
          * @see Zend_Ldap_Node_Schema
          */
         $this->_schema = Zend_Ldap_Node_Schema::create($this);
     }
     return $this->_schema;
 }
開發者ID:kobmaki,項目名稱:icingaweb2,代碼行數:16,代碼來源:Ldap.php

示例5: testOpenLdapSchemaObjectClassAliases

 public function testOpenLdapSchemaObjectClassAliases()
 {
     if ($this->_getLdap()->getRootDse()->getServerType() !== Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP) {
         $this->markTestSkipped('Test can only be run on an OpenLDAP server');
     }
     $objectClasses = $this->_schema->getObjectClasses();
     $this->assertArrayHasKey('OpenLDAProotDSE', $objectClasses);
     $this->assertArrayHasKey('LDAProotDSE', $objectClasses);
     $ob1 = $objectClasses['OpenLDAProotDSE'];
     $ob2 = $objectClasses['LDAProotDSE'];
     $this->assertSame($ob1, $ob2);
 }
開發者ID:travisj,項目名稱:zf,代碼行數:12,代碼來源:SchemaTest.php


注:本文中的Zend_Ldap_Node_Schema類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。