phpLDAPadmin
[ class tree: phpLDAPadmin ] [ index: phpLDAPadmin ] [ all elements ]

Class: ObjectClass

Source Location: /lib/schema_functions.php

Class Overview

SchemaItem
   |
   --ObjectClass

Represents an LDAP objectClass


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 53]
Represents an LDAP objectClass



[ Top ]


Class Variables

$children_objectclasses =

[line 67]


Type:   mixed


[ Top ]

$is_obsolete =

[line 65]


Type:   mixed


[ Top ]

$may_attrs =

[line 63]


Type:   mixed


[ Top ]

$must_attrs =

[line 61]


Type:   mixed


[ Top ]

$name =

[line 55]


Type:   mixed


[ Top ]

$sup_classes =

[line 57]


Type:   mixed


[ Top ]

$type =

[line 59]


Type:   mixed


[ Top ]



Class Methods


constructor ObjectClass [line 147]

ObjectClass ObjectClass( $raw_ldap_schema_string, $ldapserver)

Creates a new ObjectClass object given a raw LDAP objectClass string.



Parameters:

   $raw_ldap_schema_string  
   $ldapserver  

[ Top ]

method addChildObjectClass [line 457]

bool addChildObjectClass( String $object_class_name)

Adds an objectClass to the list of objectClasses that inherit from this objectClass.



Tags:

return:  Returns true on success or false on failure (objectclass already existed for example)


Parameters:

String   $object_class_name   The name of the objectClass to add

[ Top ]

method addMayAttrs [line 538]

void addMayAttrs( array $new_may_attrs)

Behaves identically to addMustAttrs, but it operates on the MAY attributes of this objectClass.



Parameters:

array   $new_may_attrs   An array of attribute names (strings) to add.

[ Top ]

method addMustAttrs [line 519]

void addMustAttrs( array $new_must_attrs)

Adds the specified array of attributes to this objectClass' list of MUST attributes. The resulting array of must attributes will contain unique members.



Parameters:

array   $new_must_attrs   An array of attribute names (strings) to add.

[ Top ]

method getChildObjectClasses [line 477]

Array getChildObjectClasses( )

Returns the array of objectClass names which inherit from this objectClass.



Tags:

return:  Names of objectClasses which inherit from this objectClass.


[ Top ]

method getIsObsolete [line 508]

void getIsObsolete( )

Gets whether this objectClass is flagged as obsolete by the LDAP server.



[ Top ]

method getMayAttrNames [line 438]

array getMayAttrNames( [array $oclasses = null])

Gets an array of attribute names (strings) that entries of this ObjectClass must define.

This differs from getMayAttrs in that it returns an array of strings rather than array of AttributeType objects




Tags:

return:  The array of allowed attribute names (strings).
see:  ObjectClass::getMustAttrNames()
see:  ObjectClass::getMayAttrs()
see:  ObjectClass::getMustAttrs()


Parameters:

array   $oclasses   An array of ObjectClass objects to use when traversing the inheritance tree. This presents some what of a bootstrapping problem as we must fetch all objectClasses to determine through inheritance which attributes this objectClass provides.

[ Top ]

method getMayAttrs [line 367]

array getMayAttrs( [array $oclasses = null])

Gets an array of AttributeType objects that entries of this ObjectClass may define.

This differs from getMayAttrNames in that it returns an array of AttributeType objects




Tags:

return:  The array of allowed AttributeType objects.
see:  AttributeType
see:  ObjectClass::getMayAttrNames()
see:  ObjectClass::getMustAttrs()
see:  ObjectClass::getMustAttrNames()


Parameters:

array   $oclasses   An array of ObjectClass objects to use when traversing the inheritance tree. This presents some what of a bootstrapping problem as we must fetch all objectClasses to determine through inheritance which attributes this objectClass provides.

[ Top ]

method getMustAttrNames [line 410]

array getMustAttrNames( [array $oclasses = null])

Gets an array of attribute names (strings) that entries of this ObjectClass must define.

This differs from getMustAttrs in that it returns an array of strings rather than array of AttributeType objects




Tags:

return:  The array of allowed attribute names (strings).
see:  ObjectClass::getMayAttrNames()
see:  ObjectClass::getMayAttrs()
see:  ObjectClass::getMustAttrs()


Parameters:

array   $oclasses   An array of ObjectClass objects to use when traversing the inheritance tree. This presents some what of a bootstrapping problem as we must fetch all objectClasses to determine through inheritance which attributes this objectClass provides.

[ Top ]

method getMustAttrs [line 325]

array getMustAttrs( [array $oclasses = null])

Gets an array of AttributeType objects that entries of this ObjectClass must define.

This differs from getMustAttrNames in that it returns an array of AttributeType objects




Tags:

return:  The array of required AttributeType objects.
see:  ObjectClass::getMayAttrNames()
see:  ObjectClass::getMayAttrs()
see:  ObjectClass::getMustAttrNames()


Parameters:

array   $oclasses   An array of ObjectClass objects to use when traversing the inheritance tree. This presents some what of a bootstrapping problem as we must fetch all objectClasses to determine through inheritance which attributes this objectClass requires.

[ Top ]

method getName [line 485]

string getName( )

Gets the name of this objectClass (ie, "inetOrgPerson")



Tags:

return:  The name of the objectClass


[ Top ]

method getSupClasses [line 494]

array getSupClasses( )

Gets the objectClass names from which this objectClass inherits.



Tags:

return:  An array of objectClass names (strings)


[ Top ]

method getType [line 501]

void getType( )

Gets the type of this objectClass: STRUCTURAL, ABSTRACT, or AUXILIARY.



[ Top ]

method initVars [line 70]

void initVars( $ldapserver)



Overrides SchemaItem::initVars() (parent method not documented)

Parameters:

   $ldapserver  

[ Top ]

method _parse_list [line 84]

void _parse_list( $i, $strings, &$attrs)



Parameters:

   $i  
   $strings  
   &$attrs  

[ Top ]


Documentation generated on Sun, 30 Dec 2007 17:50:34 -0800 by phpDocumentor 1.3.1