constructor __construct [line 59]
Template __construct(
$server_id, [
$name = null], [
$filename = null], [
$type = null], [
$id = null])
|
|
Tags:
Overrides
xmlTemplate::__construct() (parent method not documented)
Parameters:
method accept [line 261]
void accept(
[
$makeVisible = false])
|
|
This function will perform the following intialisation steps:
- If a DN is set, query the ldap and load the object
- Read our $_REQUEST variable and set the values
After this action, the template should self describe as to whether it is an update, create or delete. (OLD values are IGNORED, we will have got them when we build this object from the LDAP server DN.)
Tags:
Parameters:
method copy [line 687]
void copy(
$template,
$rdn, [
$asnew = false])
|
|
Copy a DN
Tags:
Parameters:
method getAttrbyLdapType [line 757]
array getAttrbyLdapType(
$type)
|
|
Get Attributes by LDAP type This function will return a list of attributes by LDAP type (MUST,MAY).
Tags:
Parameters:
method getAttributes [line 950]
array getAttributes(
[boolean
$optional = false])
|
|
Get the attribute entries
Tags:
Parameters:
method getAttributesInternal [line 987]
void getAttributesInternal(
)
|
|
Return a list of the internal attributes
Tags:
method getAttributesShown [line 971]
void getAttributesShown(
)
|
|
Return a list of attributes that should be shown
Tags:
method getAvailAttrs [line 1527]
Get available attributes
Tags:
method getContainer [line 669]
Get the DN of the container for this entry
Tags:
method getContainerEncode [line 676]
void getContainerEncode(
[
$url = true])
|
|
Tags:
Parameters:
method getContext [line 890]
Determine the type of template this is
Tags:
method getDescription [line 1031]
Return the template description
Tags:
method getDN [line 621]
Display the DN for this template entry. 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.
Tags:
method getDNEncode [line 637]
void getDNEncode(
[
$url = true])
|
|
Tags:
Parameters:
method getForceDeleteAttrs [line 1508]
void getForceDeleteAttrs(
)
|
|
Get the attributes that are marked as force delete We'll cache this result in the event of multiple calls.
Tags:
method getIcon [line 1019]
method getLDAPadd [line 1392]
void getLDAPadd(
[
$attrsOnly = false])
|
|
Return an array, that can be passed to ldap_add().
Attributes with empty values will be excluded.
Tags:
Parameters:
method getLDAPmodify [line 1427]
void getLDAPmodify(
[boolean
$attrsOnly = false], [
$index = 0])
|
|
Return an array, that can be passed to ldap_mod_replace().
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
Tags:
Parameters:
method getObjectClasses [line 1005]
array getObjectClasses(
)
|
|
Return the objectclasses defined in this template
Tags:
method getRDN [line 837]
Return the RDN for this template. 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
Tags:
method getRDNAttributeName [line 865]
void getRDNAttributeName(
)
|
|
Return the attribute name part of the RDN
Tags:
method getRDNAttrs [line 808]
Get all the RDNs for this template, in RDN order.
Tags:
method getRegExp [line 924]
method hasDefaultTemplate [line 229]
boolean hasDefaultTemplate(
)
|
|
Is default templates enabled? This will disable the default template from the engine.
Tags:
method isAdminDisabled [line 1067]
method isAttrType [line 774]
void isAttrType(
$attr,
$type)
|
|
Return true if this is a MUST,MAY attribute
Parameters:
method isInValid [line 1057]
Get the template validity or the reason it is invalid
Tags:
method isNoLeaf [line 1563]
method isReadOnly [line 934]
Test if this template has been marked as a read-only template
Tags:
method isVisible [line 909]
Test if the template is visible
Tags:
method OnChangeAdd [line 1111]
void OnChangeAdd(
$origin,
$value)
|
|
OnChangeAdd javascript processing
Tags:
Parameters:
method readTemplates [line 245]
array readTemplates(
$string
$type)
|
|
Return the templates of type (creation/modification)
Tags:
Parameters:
method setContainer [line 651]
void setContainer(
dn
$container)
|
|
Set the container for this template, if we are creating entries
Tags:
Parameters:
method setDN [line 573]
Set the DN for this template, if we are editing entries
Tags:
Parameters:
method setInvalid [line 1043]
void setInvalid(
string
$msg, [
$admin = false])
|
|
Set a template as invalid
Tags:
Parameters:
method setInvisible [line 920]
method setRDNAttributes [line 594]
RDN setRDNAttributes(
RDN
$rdn)
|
|
Set the RDN attributes Given an RDN, mark the attributes as RDN attributes. If there is no defined attribute, then the remaining RDNs will be returned.
Tags:
Parameters:
method setVisible [line 916]
method storeTemplate [line 81]
void storeTemplate(
xmldata
$xmldata)
|
|
Main processing to store the template.
Tags:
Parameters:
method __clone [line 67]