当前位置: 首页>>代码示例>>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;未经允许,请勿转载。