Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
DocLDAP Class Reference
+ Inheritance diagram for DocLDAP:
+ Collaboration diagram for DocLDAP:

Public Member Functions

 OrgInit ()
 
 UseLdap ()
 
 SetLdapParam ()
 
 getDNs ()
 
 setDNs ($ds, $tdn)
 
 canUpdateLdapCard ()
 
 RefreshLdapCard ()
 
 DeleteLdapCard ()
 
 getLDAPDN ($rdn, $path="")
 
 getMapAttributes ()
 
 ConvertToLdap ()
 
 getLDAPValue ($idattr, $index="")
 
 ModifyLdapCard ($tinfoldap)
 
 createLDAPDc ($ds, $n)
 
- Public Member Functions inherited from DbObj
 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Select ($id)
 
 getValues ()
 
 affectColumn ($fields, $reset=true)
 
 affect ($array, $more=false, $reset=true)
 
 isAffected ()
 
 Complete ()
 
 preInsert ()
 
 postInsert ()
 
 preUpdate ()
 
 postUpdate ()
 
 preDelete ()
 
 postDelete ()
 
 preSelect ($id)
 
 postSelect ($id)
 
 Add ($nopost=false, $nopre=false)
 
 modify ($nopost=false, $sfields="", $nopre=false)
 
 delete ($nopost=false)
 
 Adds (&$tcopy, $nopost=false)
 
 lw ($prop)
 
 CloseConnect ()
 
 Create ($nopost=false)
 
 postInit ()
 
 init_dbid ()
 
 exec_query ($sql, $lvl=0, $prepare=false)
 
 numrows ()
 
 fetch_array ($c, $type=PGSQL_ASSOC)
 
 update ()
 
 setError ($moreerr= '')
 
 autoUpdate ()
 
 savePoint ($point)
 
 lockPoint ($exclusiveLock, $exclusiveLockPrefix= '')
 
 setMasterLock ($useLock)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

 $serveur
 
 $port
 
 $racine
 
 $rootdn
 
 $rootpw
 
 $useldap = false
 
 $infoldap = array()
 
 $cindex = false
 
 $ldapmap
 
 $ldapdn
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $id_fields
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = ''
 
 $debug = false
 
 $sqlcreate
 
 $sqlinit
 
 $log
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 
static $lockpoint = array()
 
static $sqlStrict = null
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Detailed Description

Definition at line 18 of file Class.DocLDAP.php.

Member Function Documentation

canUpdateLdapCard ( )

test if the document can be set in LDAP to be defined in child families

Definition at line 129 of file Class.DocLDAP.php.

ConvertToLdap ( )

return array(card) of array of ldap values LDAP card from user document

Definition at line 213 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

createLDAPDc (   $ds,
  $n 
)

created an LDAP DC object in root directory

Definition at line 367 of file Class.DocLDAP.php.

DeleteLdapCard ( )

delete LDAP cards of document

Returns
string error message

Definition at line 154 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

getDNs ( )

get DNs created in LDAP database from this document

Returns
array of Dns indexed by card index which comes from definition of mapping

Definition at line 96 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

getLDAPDN (   $rdn,
  $path = "" 
)

get DN of document

Definition at line 178 of file Class.DocLDAP.php.

getLDAPValue (   $idattr,
  $index = "" 
)

get ldap value

Parameters
string$idattrldap attribute name
Returns
string the value

Definition at line 286 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

getMapAttributes ( )

get Attribute mapping FREEDOM -> LDAP

Returns
array

Definition at line 191 of file Class.DocLDAP.php.

ModifyLdapCard (   $tinfoldap)

modify in LDAP database information

Definition at line 301 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

OrgInit ( )

init society organization of the tree

Returns
bool true if organization has been created or its already created

Definition at line 35 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

RefreshLdapCard ( )

update or delete LDAP card

Definition at line 136 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

setDNs (   $ds,
  $tdn 
)

set new DNs created in LDAP database from this document suppress old DNs card from LDAP if exists

Parameters
resource$dsLDAP connection ressouce
array$tdnarray of DN new DN
Returns
string

Definition at line 108 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

SetLdapParam ( )

initialialize LDAP coordonates

Definition at line 77 of file Class.DocLDAP.php.

UseLdap ( )

Indicate if ::refreshLdapCard must be activate or not use for families which doesn't want to be inserted in LDAP

Definition at line 70 of file Class.DocLDAP.php.

Field Documentation

$cindex = false

Definition at line 28 of file Class.DocLDAP.php.

$infoldap = array()

Definition at line 27 of file Class.DocLDAP.php.

$ldapdn

Definition at line 30 of file Class.DocLDAP.php.

$ldapmap

Definition at line 29 of file Class.DocLDAP.php.

$port

Definition at line 22 of file Class.DocLDAP.php.

Definition at line 23 of file Class.DocLDAP.php.

$rootdn

Definition at line 24 of file Class.DocLDAP.php.

$rootpw

Definition at line 25 of file Class.DocLDAP.php.

$serveur

Definition at line 21 of file Class.DocLDAP.php.

$useldap = false

Definition at line 26 of file Class.DocLDAP.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen