OnChangeAdd()
__clone()
__construct()
accept()
addAttribute()
copy()
getAttrbyLdapType()
getAttribute()
getAttributeNames()
getAttributes()
getAttributesInternal()
getAttributesShown()
getAvailAttrs()
getContainer()
getContainerEncode()
getContext()
getDN()
getDNEncode()
getDescription()
getFileName()
getForceDeleteAttrs()
getID()
getIcon()
getLDAPadd()
getLDAPmodify()
getName()
getObjectClasses()
getRDN()
getRDNAttributeName()
getRDNAttrs()
getReadTime()
getRegExp()
getTitle()
getType()
isAdminDisabled()
isAttrType()
isInValid()
isNoLeaf()
isReadOnly()
isType()
isVisible()
setContainer()
setDN()
setInvalid()
setInvisible()
setRDNAttributes()
setVisible()
getAttrID()
getServer()
getServerID()
hasDefaultTemplate()
readTemplates()
storeTemplate()
getRDNObjects()
rebuildTemplateAttrs()
setAttrLDAPtype()
setMinValueCount()
$title
$attributes
$container
$description
$filename
$id
$name
$readtime
$server_id
$structural_oclass
$type
$dn
$icon
$invalid
$invalid_admin
$invalid_reason
$noleaf
$rdn
$readonly
$regexp
$visible
Template Class
| package | phpLDAPadmin |
|---|---|
| subpackage | Templates |
| todo | RDN attributes should be treated as MUST attributes even though the schema marks them as MAY |
| todo | RDN attributes need to be checked that are included in the schema, otherwise mark it is invalid |
| todo | askcontainer is no longer used? |
OnChangeAdd($origin, $value)
__clone()
__construct($server_id, $name, $filename, $type, $id)
accept($makeVisible)
(OLD values are IGNORED, we will have got them when we build this object from the LDAP server DN.)
addAttribute($name, $value, $source) : int
| inherited_from | \xmlTemplate::addAttribute() |
|---|
intAttribute IDcopy($template, $rdn, $asnew)
getAttrbyLdapType($type) : array
arrayArray of attributes.getAttribute(string $name) : object
| inherited_from | \xmlTemplate::getAttribute() |
|---|
stringName of attribute to retrieve
objectAttributegetAttributeNames() : array
| inherited_from | \xmlTemplate::getAttributeNames() |
|---|
arrayArray of attributes NamesgetAttributes(boolean $optional) : array
booleanInclude the optional attributes
arrayArray of attributesgetAttributesInternal()
getAttributesShown()
getAvailAttrs()
getContainer() : \dn
\dnDN of the containergetContainerEncode($url)
getContext()
getDN() : \dn
If the DN is not set (creating a new entry), then a generated DN will be produced, taken from the RDN and the CONTAINER details.
\dngetDNEncode($url)
getDescription() : string
stringDescriptiongetFileName()
| inherited_from | \xmlTemplate::getFileName() |
|---|
getForceDeleteAttrs()
getID()
| inherited_from | \xmlTemplate::getID() |
|---|
getIcon()
getLDAPadd($attrsOnly)
Attributes with empty values will be excluded.
getLDAPmodify(boolean $attrsOnly, $index)
Only attributes that have changed their value will be returned.
This function will cache its results, so that it can be called with count() to see if there are changes, and if they are, the 2nd call will just return the results
booleanReturn the attribute objects (useful for a confirmation process), or the modification array for ldap_modify()
getName(boolean $lower)
| inherited_from | \xmlTemplate::getName() |
|---|
booleanForce the name to be lowercase (default)
getObjectClasses() : array
arrayArray of ObjectsgetRDN() : \rdn
If the DN is already defined, then the RDN will be calculated from it. If the DN is not set, then the RDN will be calcuated from the template attribute definitions
\rdnRDN for this templategetRDNAttributeName()
getRDNAttrs() : array
arrayRDNs in order.getReadTime()
| inherited_from | \xmlTemplate::getReadTime() |
|---|
getRegExp()
getTitle()
| inherited_from | \xmlTemplate::getTitle() |
|---|
getType()
| inherited_from | \xmlTemplate::getType() |
|---|
isAdminDisabled()
isAttrType($attr, $type)
isInValid() : string
stringInvalid reason, or false if not invalidisNoLeaf()
isReadOnly()
isType($type) : boolean
| inherited_from | \xmlTemplate::isType() |
|---|
booleanisVisible() : boolean
booleansetContainer(\dn $container)
| todo | Trigger a query to the LDAP server and generate an error if the container doesnt exist |
|---|
\dnThe DN of the container
setDN(\dn $dn)
\dnThe DN of the entry
setInvalid(string $msg, $admin)
stringMessage indicating the reason the template has been invalidated
setInvisible()
setRDNAttributes($rdn) : \RDN
If there is no defined attribute, then the remaining RDNs will be returned.
RDN
\RDNattributes not processedsetVisible()
getAttrID(string $attr) : int
| inherited_from | \xmlTemplate::getAttrID() |
|---|
stringThe Attribute being searched.
intAttribute ID in the arraygetServer() : object
| inherited_from | \xmlTemplate::getServer() |
|---|
objectDataStore ServergetServerID() : int
| inherited_from | \xmlTemplate::getServerID() |
|---|
intServer IDhasDefaultTemplate() : boolean
booleanreadTemplates(\$string $type) : array
\$stringtype - creation/modification
array- Array of templates of that typestoreTemplate(\xmldata $xmldata)
\xmldataParsed xmldata from xml2array object
getRDNObjects() : array
arrayArray of RDN objectsrebuildTemplateAttrs()
setAttrLDAPtype(object $attr, string $value)
objectAttribute
string(MUST,MAY,OPTIONAL)
setMinValueCount(object $attr, $value)
objectAttribute
int
$title
$attributes
| inherited_from | \xmlTemplate::$$attributes |
|---|
$container
$description
$filename
| inherited_from | \xmlTemplate::$$filename |
|---|
$id
| inherited_from | \xmlTemplate::$$id |
|---|
$name
| inherited_from | \xmlTemplate::$$name |
|---|
$readtime
| inherited_from | \xmlTemplate::$$readtime |
|---|
$server_id
| inherited_from | \xmlTemplate::$$server_id |
|---|
$structural_oclass
$type
| inherited_from | \xmlTemplate::$$type |
|---|
$dn
$icon
$invalid
$invalid_admin
$invalid_reason
$noleaf
$rdn
$readonly
$regexp
$visible