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() |
---|
int
Attribute IDcopy($template, $rdn, $asnew)
getAttrbyLdapType($type) : array
array
Array of attributes.getAttribute(string $name) : object
inherited_from | \xmlTemplate::getAttribute() |
---|
string
Name of attribute to retrieve
object
AttributegetAttributeNames() : array
inherited_from | \xmlTemplate::getAttributeNames() |
---|
array
Array of attributes NamesgetAttributes(boolean $optional) : array
boolean
Include the optional attributes
array
Array of attributesgetAttributesInternal()
getAttributesShown()
getAvailAttrs()
getContainer() : \dn
\dn
DN 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.
\dn
getDNEncode($url)
getDescription() : string
string
DescriptiongetFileName()
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
boolean
Return the attribute objects (useful for a confirmation process), or the modification array for ldap_modify()
getName(boolean $lower)
inherited_from | \xmlTemplate::getName() |
---|
boolean
Force the name to be lowercase (default)
getObjectClasses() : array
array
Array 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
\rdn
RDN for this templategetRDNAttributeName()
getRDNAttrs() : array
array
RDNs in order.getReadTime()
inherited_from | \xmlTemplate::getReadTime() |
---|
getRegExp()
getTitle()
inherited_from | \xmlTemplate::getTitle() |
---|
getType()
inherited_from | \xmlTemplate::getType() |
---|
isAdminDisabled()
isAttrType($attr, $type)
isInValid() : string
string
Invalid reason, or false if not invalidisNoLeaf()
isReadOnly()
isType($type) : boolean
inherited_from | \xmlTemplate::isType() |
---|
boolean
isVisible() : boolean
boolean
setContainer(\dn $container)
todo | Trigger a query to the LDAP server and generate an error if the container doesnt exist |
---|
\dn
The DN of the container
setDN(\dn $dn)
\dn
The DN of the entry
setInvalid(string $msg, $admin)
string
Message 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
\RDN
attributes not processedsetVisible()
getAttrID(string $attr) : int
inherited_from | \xmlTemplate::getAttrID() |
---|
string
The Attribute being searched.
int
Attribute ID in the arraygetServer() : object
inherited_from | \xmlTemplate::getServer() |
---|
object
DataStore ServergetServerID() : int
inherited_from | \xmlTemplate::getServerID() |
---|
int
Server IDhasDefaultTemplate() : boolean
boolean
readTemplates(\$string $type) : array
\$string
type - creation/modification
array
- Array of templates of that typestoreTemplate(\xmldata $xmldata)
\xmldata
Parsed xmldata from xml2array object
getRDNObjects() : array
array
Array of RDN objectsrebuildTemplateAttrs()
setAttrLDAPtype(object $attr, string $value)
object
Attribute
string
(MUST,MAY,OPTIONAL)
setMinValueCount(object $attr, $value)
object
Attribute
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