Platform  3.1
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)
 
 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)
 
 Affect ($array)
 
 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 ()
 
 savePoint ($point)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

 $serveur
 
 $port
 
 $racine
 
 $rootdn
 
 $rootpw
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = null
 
 $debug = false
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 

Detailed Description

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

Member Function Documentation

ConvertToLdap ( )

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

Definition at line 196 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 348 of file Class.DocLDAP.php.

DeleteLdapCard ( )

delete LDAP cards of document

Definition at line 139 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 90 of file Class.DocLDAP.php.

getLDAPDN (   $rdn,
  $path = "" 
)

get DN of document

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

getLDAPValue (   $idattr,
  $index = "" 
)

get ldap value

Parameters
string$idattrldap attribute name
Returns
string the value

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

+ Here is the call graph for this function:

getMapAttributes ( )

get Attribute mapping FREEDOM -> LDAP

Returns
array

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

ModifyLdapCard (   $tinfoldap)

modify in LDAP database information

Definition at line 282 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 32 of file Class.DocLDAP.php.

+ Here is the call graph for this function:

RefreshLdapCard ( )

update or delete LDAP card

Definition at line 122 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
void

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

+ Here is the call graph for this function:

SetLdapParam ( )

initialialize LDAP coordonates

Definition at line 74 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 67 of file Class.DocLDAP.php.

Field Documentation

$port

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

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

$rootdn

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

$rootpw

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

$serveur

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


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase