Represents an attribute of a template.

package phpLDAPadmin
subpackage Templates

 Methods

__construct()

__construct($name, $values, $server_id, $source) 

Parameters

$name

$values

$server_id

$source

addValue()

addValue($new_val, $i) 

Parameters

$new_val

$i

Autovalue is called after the attribute is initialised, and thus the values from the ldap server will be set.

autoValue($new_val) 

Parameters

$new_val

clearValue()

clearValue() 

delValue()

delValue($i) 

Parameters

$i

Display the values removed in an attribute.

getAddedValues() 

Return a list of aliases for this Attribute (as defined by the schema) This list will be lowercase.

getAliases() 

getAutoValue()

getAutoValue() 

getDescription()

getDescription() 

getFriendlyName()

getFriendlyName() 

getHelper()

getHelper() 

getHelperValue()

getHelperValue() 

getHint()

getHint() 

getIcon()

getIcon() 

getLDAPtype()

getLDAPtype() 

getMaxLength()

getMaxLength() 

getMaxValueCount()

getMaxValueCount() 

getMinValueCount()

getMinValueCount() 

Return the name of the attribute.

getName(boolean $lower, boolean $real) : string

Parameters

$lower

boolean
  • Return the attribute in normal or lower case (default lower)

$real

boolean
  • Return the real attribute name (with ;binary, or just the name)

Returns

stringAttribute name

getOldValue()

getOldValue($i) 

Parameters

$i

getOldValues()

getOldValues() 

getOnChange()

getOnChange() 

getPage()

getPage() 

getPostValue()

getPostValue() 

Display the values removed in an attribute.

getRemovedValues() 

getSize()

getSize() 

getSource()

getSource() 

getSpacer()

getSpacer() 

getType()

getType() 

getValue()

getValue($i) 

Parameters

$i

getValueCount()

getValueCount() 

getValues()

getValues() 

getVerify()

getVerify() 

hasBeenModified()

hasBeenModified() 

haveFriendlyName()

haveFriendlyName() 

haveMoreValues()

haveMoreValues() 

hide()

hide() 

initValue()

initValue($new_val) 

Parameters

$new_val

isForceDelete()

isForceDelete() 

isInternal()

isInternal() 

isMay()

isMay() 

isMultiple()

isMultiple() 

Return if this attribute is an RDN attribute

isRDN() : boolean

Returns

boolean

isReadOnly()

isReadOnly() 

isRequired()

isRequired() 

isVisible()

isVisible() 

justModified()

justModified() 

Does this attribute need supporting JS

needJS($type) 

Parameters

$type

setDescription()

setDescription($description) 

Parameters

$description

setForceDelete()

setForceDelete() 

setHint()

setHint($hint) 

Parameters

$hint

setIcon()

setIcon($icon) 

Parameters

$icon

setInternal()

setInternal() 

setLDAPtype()

setLDAPtype($type) 

Parameters

$type

setMaxLength()

setMaxLength($maxlength) 

Parameters

$maxlength

setMaxValueCount()

setMaxValueCount($max) 

Parameters

$max

setMinValueCount()

setMinValueCount($min) 

Parameters

$min

setOldValue()

setOldValue($val) 

Parameters

$val

setOptional()

setOptional() 

setPage()

setPage($page) 

Parameters

$page

setPostValue()

setPostValue($postvalue) 

Parameters

$postvalue

setProperties()

setProperties($properties) 

Parameters

$properties

setRDN()

setRDN($rdn) 

Parameters

$rdn

setReadOnly()

setReadOnly() 

setRequired()

setRequired() 

setSize()

setSize($size) 

Parameters

$size

setType()

setType($type) 

Parameters

$type

setValue()

setValue($new_val) 

Parameters

$new_val

setXML()

setXML($values) 

Parameters

$values

show()

show() 

Prunes off anything after the ";" in an attr name.

real_attr_name() : string

This is useful for attributes that may have ";binary" appended to their names. With real_attr_name(), you can more easily fetch these attributes' schema with their "real" attribute name.

Returns

string

Capture all the LDAP details we are interested in

setLDAPdetails(\sattr $sattr) 

Parameters

$sattr

\sattr

Schema Attribute

 Properties

 

$name

$name 

 

$order

$order 

 

$ordersort

$ordersort 

 

$page

$page 

 

$rdn

$rdn 

 

$aliases

$aliases 

 

$autovalue

$autovalue 

 

$cols

$cols 

 

$display

$display 

 

$forcedelete

$forcedelete 

 

$forcehide

$forcehide 

 

$helper

$helper 

 

$helpervalue

$helpervalue 

 

$hint

$hint 

 

$icon

$icon 

 

$internal

$internal 

 

$ldaptype

$ldaptype 

 

$max_value_count

$max_value_count 

 

$maxlength

$maxlength 

 

$min_value_count

$min_value_count 

 

$modified

$modified 

 

$oldvalues

$oldvalues 

 

$onchange

$onchange 

 

$postvalue

$postvalue 

 

$readonly

$readonly 

 

$rows

$rows 

 

$size

$size 

 

$source

$source 

 

$spacer

$spacer 

 

$type

$type 

 

$unique

$unique 

 

$values

$values 

 

$verify

$verify 

 

$visible

$visible