PHP Class Horde_Kolab_Server_Object_Attribute_Field, horde

Copyright 2008-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Inheritance: extends Horde_Kolab_Server_Object_Attribute_Base
ファイルを表示 Open project: horde/horde

Protected Methods

Method Description
getField ( string $basekey, string $field, string $separator = '$', integer $max_count = null ) : mixed Get a derived attribute value by returning a given position in a delimited string.
quote ( string $string ) : string Quote field separators within a LDAP value.
setField ( string $key, array $attributes, array &$info, string $separator = '$', boolean $unset = true ) : NULL. Set a collapsed attribute value.
unquote ( string $string ) : string Unquote a LDAP value.

Method Details

getField() protected method

Get a derived attribute value by returning a given position in a delimited string.
protected getField ( string $basekey, string $field, string $separator = '$', integer $max_count = null ) : mixed
$basekey string Name of the attribute that holds the delimited string.
$field string The position of the field to retrieve.
$separator string The field separator.
$max_count integer The maximal number of fields.
return mixed The value of the attribute.

quote() protected method

Quote field separators within a LDAP value.
protected quote ( string $string ) : string
$string string The string that should be quoted.
return string The quoted string.

setField() protected method

Set a collapsed attribute value.
protected setField ( string $key, array $attributes, array &$info, string $separator = '$', boolean $unset = true ) : NULL.
$key string The attribute to collapse into.
$attributes array The attributes to collapse.
$info array The information currently working on.
$separator string Separate the fields using this character.
$unset boolean Unset the base values.
return NULL.

unquote() protected method

Unquote a LDAP value.
protected unquote ( string $string ) : string
$string string The string that should be unquoted.
return string The unquoted string.