FusionDirectory
 All Data Structures Files Functions Variables
Static Public Member Functions
objects Class Reference

Static Public Member Functions

static ls ($types, $attrs=NULL, $ou=NULL, $filter= '', $checkAcl=FALSE, $scope= 'subtree')
 Get list of object of objectTypes from $types in $ou. More...
 
static count ($types, $ou=NULL, $filter= '', $checkAcl=FALSE)
 Get count of objects of objectTypes from $types in $ou. More...
 
static open ($dn, $type)
 Create the tab object for the given dn. More...
 

Detailed Description

Definition at line 22 of file class_objects.inc.

Member Function Documentation

static count (   $types,
  $ou = NULL,
  $filter = '',
  $checkAcl = FALSE 
)
static

Get count of objects of objectTypes from $types in $ou.

Parameters
array$typesthe objectTypes to list
string$outhe LDAP branch to search in, base will be used if it is NULL
string$filteran additional filter to use in the LDAP search.
Returns
The number of objects of type $type in $ou

Definition at line 153 of file class_objects.inc.

Referenced by ls().

static ls (   $types,
  $attrs = NULL,
  $ou = NULL,
  $filter = '',
  $checkAcl = FALSE,
  $scope = 'subtree' 
)
static

Get list of object of objectTypes from $types in $ou.

Parameters
array$typesthe objectTypes to list
mixed$attrsThe attributes to fetch. If this is a single value, the resulting associative array will have for each dn the value of this attribute. If this is an array, the keys must be the wanted attributes, and the values can be either 1, '*' or 'raw' depending if you want a single value or an array of values. 'raw' means untouched LDAP value and is only useful for dns. Other values are considered to be 1.
string$outhe LDAP branch to search in, base will be used if it is NULL
string$filteran additional filter to use in the LDAP search.
boolean$checkAclshould ACL be ignored or checked? Defaults to FALSE.
string$scopescope, defaults to subtree. When using one, be careful what you put in $ou.
Returns
The list of objects as an associative array (keys are dns)

Definition at line 40 of file class_objects.inc.

References count().

Referenced by listing\getDepartments().

static open (   $dn,
  $type 
)
static

Create the tab object for the given dn.

Parameters
string$typethe objectType to open
string$dnthe dn to open
Returns
The created tab object

Definition at line 244 of file class_objects.inc.

References DEBUG().

Referenced by change_password(), simpleManagement\editEntry(), CopyPasteHandler\load_entry_from_ldap(), simplePlugin\mainInc(), simpleManagement\newEntry(), and template\reset().


The documentation for this class was generated from the following file: